Hi there,
Can someone do me a huge favour and replicate my config below with one relay configured as a light and the other as a switch? Then turn them both on and then restart the HA service and tell me if (only) the light turns off. If you have a Shelly2 configured already, you only need to change the first line.
light:
- platform: mqtt
name: "Kitchen Lights"
state_topic: "shellies/shellyswitch-9F6008/relay/1"
command_topic: "shellies/shellyswitch-9F6008/relay/1/command"
qos: 2
payload_on: "on"
payload_off: "off"
retain: false
optimistic: false
switch:
- platform: mqtt
name: "Family Room Fan"
state_topic: "shellies/shellyswitch-9F6008/relay/0"
command_topic: "shellies/shellyswitch-9F6008/relay/0/command"
qos: 2
payload_on: "on"
payload_off: "off"
retain: false
If you could also report whether you are using stock or Tasmota firmware, that would be appreciated. For me, HA is sending shellies/shellyswitch-9F6008/relay/1/command
with a payload of 'on'
when the HA service restarts but only for MQTT lights, not the switch.