|
本帖最后由 nuaawmy 于 2022-7-16 21:11 编辑
上一版MQTT组件的实体配置方法更新了,斐讯插排不会配置了,有人有相同问题吗?
老的配置:
switch:
- platform: mqtt
name: 'ztc1_1_d0bae464437c'
state_topic: 'device/ztc1/d0bae464437c/state'
command_topic: 'device/ztc1/d0bae464437c/set'
payload_on: '{"mac":"d0bae464437c","plug_0":{"on":1}}'
payload_off: '{"mac":"d0bae464437c","plug_0":{"on":0}}'
value_template: '{{ value_json.plug_0.on }}'
state_on: '1'
state_off: '0'
新的配置:
mqtt:
switch:
- name: 'ztc1_1_d0bae464437c'
state_topic: 'device/ztc1/d0bae464437c/state'
command_topic: 'device/ztc1/d0bae464437c/set'
payload_on: '{"mac":"d0bae464437c","plug_0":{"on":1}}'
payload_off: '{"mac":"d0bae464437c","plug_0":{"on":0}}'
value_template: '{{ value_json.plug_0.on }}'
state_on: '1'
state_off: '0'
发现新配置不生效,有人知道怎么改吗
|
|