Closed RaginBajin closed 8 years ago
@RaginBajin - This error suggests that for some reason the call to the variables endpoint on the ISY is failing. This suggests you have an older version of the ISY firmware that doesn't support variables or a recent update which breaks the contract.
What version of ISY are you running. (You can find it in the ISY admin interface).
Does hitting http://192.168.XX.XX/rest/vars/definitions/1 (where XX is obviously replaced with actual values) not resolve?
(Sorry for the delay in responding to your bug, life got in the way).
No biggie.. Totally understand
So, when I hit the rest URL I get a 404 message - 2016-03-23 18:50:11 ERROR 404: OK. If I go to /rest/vars/definitions/2 I get the following
<CList type="VAR_INT"><e id="1" name="RaginIpad_XXXX" /><e id="42" name="RaginIPhone_New Geofence" /><e id="2" name="RaginIPhone_New Geofence" /></CList>
So, I know that there is data being stored, there is just nothing in var 1 and it completely falls apart.
My version is 5.0.2, so it definitely supports variables.
Do you have at least one of each type of variable?
I wonder if the ISY returns 404 on the call you mention if you have no state variables. Could you go and define a state variable and see if that fixes the problem? The variable should be harmless and doesn't take up much resources.
On Wed, Mar 23, 2016 at 3:53 PM Joseph Bajin notifications@github.com wrote:
No biggie.. Totally understand
So, when I hit the rest URL I get a 404 message - 2016-03-23 18:50:11 ERROR 404: OK. If I go to /rest/vars/definitions/2 I get the following
My version is 5.0.2, so it definitely supports variables.
— You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/rodtoll/homebridge-isy-js/issues/26#issuecomment-200574162
Ok. So I went ahead and set a state variable and that didn't work. I then went ahead and set an "Integer" Variable with each having 1 as the ID number and that now returned data back.
It looks like everything now works, but I wonder what others may run into if those variables are not set. Will they experience the same thing?
Good news you are unblocked.
And you are absolutely correct, I need to fix it so that if this call returns a 404 that the code doesn't crash it just assumes no variables of that type.
Good bug, I'll leave this open until I address. On Thu, Mar 24, 2016 at 3:30 PM Joseph Bajin notifications@github.com wrote:
Ok. So I went ahead and set a state variable and that didn't work. I then went ahead and set an "Integer" Variable with each having 1 as the ID number and that now returned data back.
It looks like everything now works, but I wonder what others may run into if those variables are not set. Will they experience the same thing?
— You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/rodtoll/homebridge-isy-js/issues/26#issuecomment-201057135
Just published 0.4.3 which makes it so that the the plugin no longer crashes when working against ISYs with no variables defined. Thanks for reporting.
rodtoll, thank you for making this plugin! Using it with homebridge is vastly superior to the Insteon HomeKit compatible product.
I just want to report that even with 0.1.7 the ISY lacking any integer or state values will still cause this issue. Creating any integer or state values on the ISY, no matter the values, makes it work. My ISY was brand new (currently with only two devices) and running v4.5.4
I seem to be having a problem running this against my ISY. I am running 5.0.2 and I'm seeing the following error when running homebridge.
My config.json file looks like this.
When I run the query by hand it seems that it is querying for type "1" which comes back and undefined.