Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Switching the device on and off with one RF code(RF Bridge)

$
0
0

@arek156 wrote:

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 

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>