You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do have a lamp that I can control using a IR Remote, I've bought IR Receiver and Transmitter and made a Python script that can Turn on and turn off the light.
Then I've created 2 files, accendiLampada.sh and spegniLampada.sh, and both works using the command line, so I thought, I'm ok, just add another configuration inside the hombridge's config.json file , but it seems to not completely execute the 2 scripts.
#!/bin/sh
echo "Spengo la luce"
rm ~/statoLampada.flag
python3 SpengiLuce.py
When I tap on the switch on my Apple Device I can see that te statoLampada.flag is removed or created, but the status led on the IR Transmitter doesn't blink and my light doesn't shut down/turn on.
This is usually a permissions related issue.
Make sure that you test the script as the same user that you run homebridge with.
Make sure that homebridge user can run the script.
Another thing to try is to use the full path when executing your scripts. Both the execution of the py script within the shell script you created and also in the homebridge config file.though it looks like the shell scripts are being run. So it’s probably a permission issue.
Hi,
I do have a lamp that I can control using a IR Remote, I've bought IR Receiver and Transmitter and made a Python script that can Turn on and turn off the light.
Then I've created 2 files,
accendiLampada.sh
andspegniLampada.sh
, and both works using the command line, so I thought, I'm ok, just add another configuration inside the hombridge's config.json file , but it seems to not completely execute the 2 scripts.Code of:
accendiLampada.sh
Code of:
spegniLampada.sh
When I tap on the switch on my Apple Device I can see that te
statoLampada.flag
is removed or created, but the status led on the IR Transmitter doesn't blink and my light doesn't shut down/turn on.Here's part of my
config.json
Any ideas?
The text was updated successfully, but these errors were encountered: