Skip to content

Commit

Permalink
indented with 4 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovaneck committed May 31, 2024
1 parent 95ccfb9 commit 9763af3
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions components/sensor/dsmr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -487,34 +487,34 @@ You can use another uart to supply another P1 receiver with the same telegram. S

.. code-block:: yaml
# define multiple uart's
uart:
- id: p1_uart
rx_pin:
number: 4
inverted: true
baud_rate: 115200
rx_buffer_size: 1700
- id: p1_bridge_uart
tx_pin:
number: 10
baud_rate: 115200
# define multiple uart's
uart:
- id: p1_uart
rx_pin:
number: 4
inverted: true
baud_rate: 115200
rx_buffer_size: 1700
- id: p1_bridge_uart
tx_pin:
number: 10
baud_rate: 115200
# link input uart to dsmr
dsmr:
uart_id: p1_uart
max_telegram_length: 1700
# link input uart to dsmr
dsmr:
uart_id: p1_uart
max_telegram_length: 1700
# log the telegram and pass telegram to p1_bridge_uart
text_sensor:
- platform: dsmr
telegram:
name: "telegram"
on_value:
then:
- lambda: |-
ESP_LOGV("dsrm", "telegram: %s", x.c_str());
p1_bridge_uart->write_str(x.c_str());
# log the telegram and pass telegram to p1_bridge_uart
text_sensor:
- platform: dsmr
telegram:
name: "telegram"
on_value:
then:
- lambda: |-
ESP_LOGV("dsrm", "telegram: %s", x.c_str());
p1_bridge_uart->write_str(x.c_str());
See Also
Expand Down

0 comments on commit 9763af3

Please sign in to comment.