Hello, I am finding that the REST API json request result a little unstable.
I use my home AI server to poll the Vera for various reasons.
However, when requesting geofence info for “ishome” information for my users, I can see that sometimes “user_settings” does not update itself and reads “0” even if I am home, where as requesting geofence info and reading the “PK_User” info will read correctly as “1”.
Then, sometimes the PK_User info reads incorrectly and the “user_settings” “ishome” info will update correctly.
Strange stuff!
Which object would be best to try and read the correct info?
I am trying to figure out how I can set virtual switches based on individual iduser numbers. I am trying to use the ishome variable for each user to set a Vswitch but I am not sure how to get the information out of http://:3480/data_request?id=user_data&output_format=xml.
Once I have the information I am not sure how I could monitor it, but if you could tell me how you are getting it I would be one step closer.
I use the following solution. I have the MultiSwitch plugin installed and one instance I have a button assigned per person’s phone. I use two simple scenes with the geofence enter/exit as the trigger to turn the matching button off or on set on each (android) phone. That way I can see who is home or not. Also added some code triggered by the button states to determine someone is home or not and based on that I set the Vera’s Home/Away status. Sounds a bit cumbersome you might say, but I have near 100% reliable (meets WAF standard!) multi user geofencing working for two years now.
So works without poking into the undocumented at random changing Vera internals. I basically stopped trying that.
Cheers Rene
Best Home Automation shopping experience. Shop at Ezlo!