I’ve recently decided to setup Home Assistant so I can simply turn on and off my projector with Alexa and Emulated Hue. I have a Global Cache Itach Flex IR device and I’m using this custom notify component I found to send an IR signal to the projector: https://github.com/tinglis1/home-assistant-custom/tree/master/custom_components/notify.
My current issue is that I have separate scripts working for projector_on and projector_off. I was able to turn it on by adding the script projector_on to a group and telling Alexa to turn that group on but I am unsure how to turn it off. I’ve tried putting the projector_off script in the group, and even creating a separate group for the projector_off script and nothing.
I’ve also tried setting up a template switch and template media center. Again, I had the turn_on command working and sending the IR message but I wasn’t able to trigger turn_off. I’m assuming I have to write a proper value_template that can change the state to ON without needing a sensor. Is there a way I can manually set the state of the switch or script to ON so I can properly turn it off? I’ve tried assumed state on the switch but still required a value_template.
Any help is appreciated, Thanks.
Script Examples:
script:
projector_on:
sequence:
- service: notify.ip2sl
data:
message: "sendir,1:1,1,36764,1,1,128,63,16,16,16,48,16,16,16,16,\
16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,\
16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,\
16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,\
16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,16,\
16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,48,16,2712"
projector_off:
sequence:
- service: notify.ip2sl
data:
message: "sendir,1:1,1,36764,1,1,128,63,16,16,16,48,16,16,16,16,\
16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,\
16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,\
16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,\
16,16,16,48,16,48,16,48,16,48,16,48,16,48,16,16,16,16,\
16,48,16,48,16,48,16,48,16,48,16,48,16,16,16,48,16,2712"