esphome/tests/components/sml/test.esp32-c3-ard.yaml
Keith Burzinski f6848fe24d
[CI] Introduce testing for IDF 5 (and other arbitrary framework versions) (#6802)
* Initial changes to support testing of additional framework versions

* Rename Arduino test files
2024-06-17 16:32:11 -05:00

31 lines
567 B
YAML

uart:
- id: uart_sml
tx_pin: 4
rx_pin: 5
baud_rate: 9600
sml:
id: mysml
on_data:
- logger.log: "SML on_data"
sensor:
- platform: sml
name: Total energy
sml_id: mysml
server_id: 0123456789abcdef
obis_code: "1-0:1.8.0"
unit_of_measurement: kWh
accuracy_decimals: 1
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
text_sensor:
- platform: sml
name: Manufacturer
sml_id: mysml
server_id: 0123456789abcdef
obis_code: "129-129:199.130.3"
format: text