Hi,
I've got a wall switch and a E27 LEDW bulb both flashed with tasmota. Now if the bulb is off, I want to turn the white light on (255,255,255,255) and if the bulb is already on (doesn't matter what color) the switch should turn it off.
I know how setup a rule to power toggle the bulb, but how can I make a rule, to get the current power state of the bulb by MQTT?
So that the switch knows the bulb is on (because I also can turn the bulb on with HASS or by voice assistant), so in this case pressing the button on the switch would turn the light off.
Thanks in advanced.