lz知道怎么把yaml文件里的tds虚拟开关给删了吗,我把这些删了会报错
switch:
- platform: template
name: "TDS Switch"
id: "tds_switch"
# lambda: return id(tds_switch).state;
optimistic: true
# turn_on_action:
# - uart.write: [0x55, 0x07, 0x05, 0x01, 0x00, 0x00, 0x00, 0x62]
# - uart.write: [0x55, 0x07, 0x03, 0x01, 0x01, 0x0B, 0xCA, 0x63]
turn_off_action:
- uart.write: [0x55, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x62]
# - uart.write: [0x55, 0x07, 0x05, 0x02, 0x00, 0x00, 0x00, 0x63]
# - switch.turn_on: switch1
|