mirror of
https://github.com/esphome/esphome.git
synced 2025-04-12 19:45:57 +02:00
added test
This commit is contained in:
parent
4b4caff57c
commit
7bb45a62cc
23
tests/components/mbus/test.esp32-idf.yaml
Normal file
23
tests/components/mbus/test.esp32-idf.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
uart:
|
||||
- id: m_bus
|
||||
data_bits: 8
|
||||
baud_rate: 2400
|
||||
parity: EVEN
|
||||
stop_bits: 1
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
|
||||
mbus:
|
||||
secondary_address: 0x0025426642042002
|
||||
interval: "5s"
|
||||
|
||||
sensor:
|
||||
- platform: mbus_sensor
|
||||
data_index: 0
|
||||
factor: 10
|
||||
name: "Power Consumption"
|
||||
accuracy_decimals: 1
|
||||
device_class: power
|
||||
icon: "mdi:flash"
|
||||
state_class: measurement
|
||||
unit_of_measurement: "Wh"
|
Loading…
Reference in New Issue
Block a user