- 积分
- 783
- 金钱
- 628
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 783
- 金钱
- 628
- HASS币
- 0
|
如题,在APP上是有总开关的,而且Github上的config代码没有总开关.
请问总开关的代码是什么?
这个是他的插座1
sensor:
- platform: mqtt
name: 'ztc1_1_d0bae464079d'
unique_id: ztc1_1_d0bae464079d
state_topic: 'device/ztc1/d0bae464079d/state'
command_topic: 'device/ztc1/d0bae464079d/set'
payload_on: '{"mac":"d0bae464079d","plug_0":{"on":1}}'
payload_off: '{"mac":"d0bae464079d","plug_0":{"on":0}}'
value_template: '{{ value_json.plug_0.on }}'
state_on: '1'
state_off: '0'
homeassistant:
customize:
switch.ztc1_1_d0bae464079d:
friendly_name: zTC1插槽1
|
|