mirror of
https://github.com/esphome/esphome.git
synced 2026-09-23 21:14:03 +00:00
[emontx] emonTx component (#9027)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
Claude
J. Nick Koston
J. Nick Koston
parent
0d7f2f05b9
commit
14bcdfe700
@@ -0,0 +1,25 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: Send command test
|
||||
on_press:
|
||||
- emontx.send_command:
|
||||
id: test_emontx
|
||||
command: "v"
|
||||
|
||||
emontx:
|
||||
id: test_emontx
|
||||
on_json:
|
||||
- then:
|
||||
- logger.log: "Got JSON"
|
||||
on_data:
|
||||
- then:
|
||||
- logger.log:
|
||||
format: "Got data: %s"
|
||||
args: [data.c_str()]
|
||||
|
||||
sensor:
|
||||
- platform: emontx
|
||||
name: Power
|
||||
tag_name: P1
|
||||
emontx_id: test_emontx
|
||||
unit_of_measurement: W
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart_115200/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart_115200/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart_115200/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -9,3 +9,4 @@ uart:
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 2048
|
||||
|
||||
@@ -9,3 +9,4 @@ uart:
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 2048
|
||||
|
||||
@@ -10,3 +10,4 @@ uart:
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 2048
|
||||
|
||||
@@ -10,3 +10,4 @@ uart:
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 2048
|
||||
|
||||
@@ -9,3 +9,4 @@ uart:
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 2048
|
||||
|
||||
@@ -9,3 +9,4 @@ uart:
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 2048
|
||||
|
||||
Reference in New Issue
Block a user