大佬,不能加unique yaml报错的,这里是我的yaml配置。
light:
- platform: mqtt
name: "relay_37a290_l1"
state_topic: "relay/relay_37a290/stat/power1"
command_topic: "relay/relay_37a290/cmnd/power1"
payload_on: "on"
payload_off: "off"
availability_topic: "relay/relay_37a290/tele/availability"
payload_available: "online"
payload_not_available: "offline"
brightness_state_topic: "relay/relay_37a290/stat/brightness1"
brightness_command_topic: "relay/relay_37a290/cmnd/brightness1"
brightness_scale: 100
color_temp_state_topic: "relay/relay_37a290/stat/color_temp1"
color_temp_command_topic: "relay/relay_37a290/cmnd/color_temp1"
- platform: mqtt
name: "relay_37a290_l2"
state_topic: "relay/relay_37a290/stat/power2"
command_topic: "relay/relay_37a290/cmnd/power2"
payload_on: "on"
payload_off: "off"
availability_topic: "relay/relay_37a290/tele/availability"
payload_available: "online"
payload_not_available: "offline"
brightness_state_topic: "relay/relay_37a290/stat/brightness2"
brightness_command_topic: "relay/relay_37a290/cmnd/brightness2"
brightness_scale: 100
color_temp_state_topic: "relay/relay_37a290/stat/color_temp2"
color_temp_command_topic: "relay/relay_37a290/cmnd/color_temp2"
|