mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add some components to the new testing framework (S part 1) (#6224)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
31
tests/components/sml/test.esp32-c3-idf.yaml
Normal file
31
tests/components/sml/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
31
tests/components/sml/test.esp32-c3.yaml
Normal file
31
tests/components/sml/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
31
tests/components/sml/test.esp32-idf.yaml
Normal file
31
tests/components/sml/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
uart:
|
||||
- id: uart_sml
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
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
|
31
tests/components/sml/test.esp32.yaml
Normal file
31
tests/components/sml/test.esp32.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
uart:
|
||||
- id: uart_sml
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
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
|
31
tests/components/sml/test.esp8266.yaml
Normal file
31
tests/components/sml/test.esp8266.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
31
tests/components/sml/test.rp2040.yaml
Normal file
31
tests/components/sml/test.rp2040.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
Reference in New Issue
Block a user