- I learned the Ha with boradlink rm pro to control my ceiling light, using RF command.
- However, the command is toggleing the light, I.e. if the light is off, then sending the command turn it on, and the oppisite.
- I would like to create boolean state, so after sending the command, I can update it, so I can using the light on my automation.
Any suggestion?
Attached my scripit to toggle the light
alias: toggle light
sequence:
- service: remote.send_command
target:
device_id: 5c960f7024550fb340485974f253ced8
data:
device: ifan
command: offon
mode: single