Kód: Vybrat vše
captive_portal:
uart:
baud_rate: 115200 # speed to STC15L101EW
tx_pin: GPIO1
rx_pin: GPIO3
switch:
- platform: uart
name: "A1on"
data: [0xA0, 0x01, 0x01, 0xA2]
- platform: uart
name: "A1off"
data: [0xA0, 0x01, 0x00, 0xA1]
- platform: uart
name: "A2on"
data: [0xA0, 0x02, 0x01, 0xA3]
- platform: uart
name: "A2off"
data: [0xA0, 0x02, 0x00, 0xA2]
- platform: restart
name: "2switch_a Restart"
web_server:
port: 80
Režim: single
Spouštěč:
Kód: Vybrat vše
platform: numeric_state
entity_id: sensor.teplota_strojovna01
for:
hours: 0
minutes: 0
seconds: 30
attribute: unit_of_measurement
above: '30'
Kód: Vybrat vše
type: toggle
device_id: 2b9bd3257da46a7522fef5e0a9168b32
entity_id: switch.a1on
domain: switch