Skip to content

Commit

Permalink
P1 Out could be used too (thanks to Marcel v E)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhendriks committed Jul 13, 2024
1 parent 96dc769 commit e4eb538
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions p1-dongle-pro-h2o-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ substitutions:
device_name: p1-dongle-pro-h2o
device_description: "P1 Dongle Pro + H2O v2"
friendly_name: P1 Dongle Pro H2O
prj_version: "2024.6.1"
prj_version: "2024.7.1"

esphome:
name: ${device_name}
Expand Down Expand Up @@ -53,18 +53,32 @@ wifi:

dashboard_import:
package_import_url: github://mhendriks/esphome-p1/p1-dongle-pro-h2o-v2.yaml@main

external_components:
# - source: my_components
# components: [ dsmr ]
- source: github://mhendriks/esphome-p1@main
components: [dsmr]


# Enable logging
logger:
level: ERROR

dsmr:
uart_id: p1_uart
max_telegram_length: 1700
uart:
rx_pin:
number: 4
inverted: true
baud_rate: 115200
rx_buffer_size: 1700
- 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

status_led:
pin:
Expand Down Expand Up @@ -235,6 +249,14 @@ sensor:
update_interval: 60s

text_sensor:
- platform: dsmr
telegram:
name: "telegram"
disabled_by_default: true
on_value:
then:
- lambda: |-
p1_bridge_uart->write_str(x.c_str());
- platform: dsmr
identification:
name: "DSMR Identification"
Expand Down

0 comments on commit e4eb538

Please sign in to comment.