Hello,
I have a sonoff RF bridge flashed with tasmota and configured in HA using MQTT.
now I have ad a light switch to it in configuration.yaml
switch:
- platform: mqtt
name: "Lamp Woonkamer"
command_topic: cmnd/tasmota_EDEBDA/rfcode
#availability_topic: "tele/tasmota_EDEBDA/LWT"
payload_available: "Offline"
payload_not_available: "Offline"
payload_on: "#FFC7C0"
payload_off: "#FFC7C0"
now this works, but since there is only 1 on/off button I would like to have only one button.
now I have 2.
also I do never know the current state of the device
So I tried always having the offlline icon. but it doesn’t work.
Does someone know how I can really use this one as a toggle device?
Thank you