Hello,
last week I decided to upgrade to hass 2021.11.5. And I’m having some issues with mqtt switches[1].
The problem is that when I’m toggling one switch entity, all switches are toggled, and I’m lost to what is causing this behavior.
At the beginning I though it was my automation or some mistake under my blueprint, but testing with developers tools shows the same result[2]. Any help will be welcome
configuration.yaml
group: !include groups.yaml
automation: !include_dir_list automations
switch: !include switch.yaml
sensor: !include_dir_list sensors
script: !include scripts.yaml
scene: !include scenes.yaml
...
[1] switch.yaml
- platform : mqtt
name: "Watering System Back Yard"
unique_id: back_yard_switch
state_topic: "riego/jardin/POWER"
command_topic: "riego/jardin/POWER"
payload_on: "RELAY_1_ON"
payload_off: "RELAY_1_OFF"
optimistic: false
retain: true
- platform : mqtt
name: watering_system_front_yard
unique_id: front_yard_switch
state_topic: "riego/jardin/POWER"
command_topic: "riego/jardin/POWER"
payload_on: "RELAY_1_ON"
payload_off: "RELAY_1_OFF"
optimistic: false
retain: true
- platform : mqtt
name: watering_system_orchard
unique_id: orchard_switch
state_topic: "riego/jardin/POWER"
command_topic: "riego/jardin/POWER"
payload_on: "RELAY_1_ON"
payload_off: "RELAY_1_OFF"
optimistic: false
retain: true
[2]