-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homebridge-Garage-Door-Switch #3
Comments
A couple of things to check/try.
I have noticed there could be an issue with newer versions of Homebridge where the command isn't being executed. I'm testing a fix now and will push out a new version shortly. |
Homebridge Logs show;
[3/17/2021, 10:26:00 PM] [Garage Door] currentReportedState: 0 CurrentTargetState: 0 actualState: 0
[3/17/2021, 10:26:00 PM] [Hourly] Schedule: [OFF]
[3/17/2021, 10:26:00 PM] [Evening] Schedule: [OFF]
[3/17/2021, 10:26:01 PM] [Hourly] Schedule: [OFF]
[3/17/2021, 10:26:01 PM] [Evening] Schedule: [OFF]
[3/17/2021, 10:26:02 PM] [Garage Door] currentReportedState: 0 CurrentTargetState: 0 actualState: 1
[3/17/2021, 10:26:02 PM] [Garage Door] Transitioning to 1
[3/17/2021, 10:26:04 PM] [Hourly] Schedule: [OFF]
[3/17/2021, 10:26:04 PM] [Evening] Schedule: [OFF]
[3/17/2021, 10:26:06 PM] [Garage Door] Transitioning to 0
[3/17/2021, 10:26:08 PM] [Garage Door] currentReportedState: 1 CurrentTargetState: 0 actualState: 0
[3/17/2021, 10:26:10 PM] [Hourly] Schedule: [OFF]
[3/17/2021, 10:26:10 PM] [Evening] Schedule: [OFF]
[3/17/2021, 10:26:14 PM] [Garage Door] Transitioning to 1
[3/17/2021, 10:26:15 PM] [Garage Door] currentReportedState: 0 CurrentTargetState: 1 actualState: 1
Using the full path doesn’t help
|
I just made an update to a new version that will hopefully resolve the issue. Do you want to give this a try and see if it fixes your issue? |
Still no success, tried various versions of path and file name (open_command.sh contains "echo batch file ran") A snip of the log file:- [3/18/2021, 4:08:18 PM] [Garage Door] Transitioning to 1 [3/18/2021, 4:08:21 PM] [Garage Door] currentReportedState: 0 CurrentTargetState: 0 actualState: 1 Using Homebridge Terminal: Using Putty: [/share/Container/homebridge] # ./open_command.sh Permissions: |
Ok so that error message you're getting now is definitely about file paths. It looks like the full path to your command within the container would be |
I have recreated the two batch files, I was concerned that they may have been contaminated by notepad++ (windows). |
All good, glad it's working for you and someone's using the plugin! |
I am running Homebridge in docker on a QNAP. Homebridge-Garage-Door-Switch has been installed with Homebridge-Http-Switch to mimic the door status.
Every part of the system works fine except I can not call the open or closed scripts.
The scripts work as a stand-alone and power the door, but I can not trigger them from the plugin.
{
"accessory": "EzzGarageDoorSwitch",
"name": "Garage Door",
"open": "open_command.sh && echo OPENING",
"close": "close_command.sh && echo CLOSING",
"state": "bash get_garage_status.sh",
"pollStateTime": 15,
"debug": true,
"httpPort": 8965
}
I am guessing I can not find the right path and/or do I need to prefix with "sh" ?
Currently they are in the homebridge directory with config.json etc.
They do run from the terminal or via putty, just not from within EzzGarageDoorSwitch.
What am I doing wrong ?
The text was updated successfully, but these errors were encountered: