Hi
I have one binary switch rf 433, it sends only one code. Is it possible to set the automation so that if the device is turned off and the button is pressed, the device is turned on, while if it is turned on and the button is pressed again, it is turned off?
- platform: mqtt
name: "RF switch"
state_topic: "tasmotaRF/tele/RESULT"
value_template: '{{value_json.RfReceived.Data}}'
payload_on: "582AB8" ## only one code##
device_class: plug
qos: 1