GusSafadi Posted April 19, 2021 Share Posted April 19, 2021 I am trying to use this driver for json output and rest import into home assistant for monitoring dry contact lock status connected to control4 I/O https://github.com/itsfrosty/control4-2way-web-driver The url with variable IF entered works great. Problem when lock status changes from open to close and vice versa, the URL does not update and the json output remains the same. Last update on driver was 2016! Tried to figure out how to update code to allow for polling update but just beyond my knowledge. Hoping someone can help Thanks Quote Link to comment Share on other sites More sharing options...
msgreenf Posted April 19, 2021 Share Posted April 19, 2021 So why don't you post a issue on the GitHub project? Quote Link to comment Share on other sites More sharing options...
GusSafadi Posted April 19, 2021 Author Share Posted April 19, 2021 Done that absolutely..but have not heard back.. As mentioned it seems it has been abandoned since 2016 Quote Link to comment Share on other sites More sharing options...
msgreenf Posted April 19, 2021 Share Posted April 19, 2021 And since then control4 has moved from OS2 to os3 and I bet what they were doing does not work in os3 Quote Link to comment Share on other sites More sharing options...
GusSafadi Posted April 19, 2021 Author Share Posted April 19, 2021 I am sure it has something to do with it. It does pull the status correctly. it just never updates that status.. Looking at the code, it is not a lengthy code. Hoping someone knows what to modify to allow that polling update to happen Quote Link to comment Share on other sites More sharing options...
eon Posted April 19, 2021 Share Posted April 19, 2021 8 hours ago, GusSafadi said: I am trying to use this driver for json output and rest import into home assistant for monitoring dry contact lock status connected to control4 I/O https://github.com/itsfrosty/control4-2way-web-driver The url with variable IF entered works great. Problem when lock status changes from open to close and vice versa, the URL does not update and the json output remains the same. Last update on driver was 2016! Tried to figure out how to update code to allow for polling update but just beyond my knowledge. Hoping someone can help Thanks You need to setup the rest sensor with scan interval... how often home assistant to query the value from control4. The driver is working on 3.2.1 Quote Link to comment Share on other sites More sharing options...
GusSafadi Posted April 19, 2021 Author Share Posted April 19, 2021 I have included scan_interval in configuration.yaml But even if I am reloading the url in a browser, I am not getting the lock status to update Quote Link to comment Share on other sites More sharing options...
eon Posted April 20, 2021 Share Posted April 20, 2021 I dont have a lock in my system, can you post the code for the rest sensor from home asistant and also which variable are you pooling? Quote Link to comment Share on other sites More sharing options...
GusSafadi Posted April 21, 2021 Author Share Posted April 21, 2021 My bad... The driver is working perfectly.. Somehow the Binding in C4 got reset to null, most probably during an attempt of driver reinstall on my part. Thanks for the help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.