Hello,
I’m struggling creating a script which would launch switches configured to send signal with a broadlink rm pro.
The switches alone works perfectly when I trigger them directly via the web interface.
But in the script, only 1 out of the 2 switches I configured work.
The log do not show anything…
Here is the relevant part of the config file.
I use the latest build : 0.40.1
The switch working is “ecran”, the one not working is “videop”
(sorry for repeating myself, but I insist : both switches works if I trigger them directly, “videop” doesn’t do anything through the script)
switch:
platform: broadlink
host: XX.XX.XX.XX
mac: 'XX.XX.XX.XX'
switches:
ecran:
friendly_name: "écran"
command_off: 'specific code'
command_on: 'specific code'
videop:
friendly_name: "video projecteur"
command_on: 'specific code'
command_off: 'specific code'
script:
fincine:
alias: "Fin de séance"
sequence:
- alias: "éteint le videoprojecteur"
service: switch.turn_off
entity_id: switch.videop
- delay:
seconds: 1
- alias: "éteint le videoprojecteur"
service: switch.turn_off
entity_id: switch.videop
- alias: remonte ecran
service: switch.turn_off
entity_id: switch.ecran
That anyone see something I did wrong ?
Thank you !