This object is in archive! 

Assign value from JSON to a variable

The_Freakquency shared this question 5 years ago
Need Answer

Hello, I bought the pro package to be able to do HTTP request. I've read thru knowledge base and forum but what I saw is pretty old, and/or did not work.


I'm trying to achieve the following:

Using a Scheduler, send periodically a GET request to a thermostat.

The GET response is JSON based. Here's an example:

{"name":"Central","mode":2,"state":0,"fan":1,"fanstate":1,"tempunits":1,"schedule":0,"schedulepart":255,"away":0,"spacetemp":26.0,"heattemp":23.0,"cooltemp":25.5,"cooltempmin":1.5,"cooltempmax":37.0,"heattempmin":1.50,"heattempmax":37.0,"activestage":0,"hum_active":0,"hum":57,"hum_setpoint":44,"dehum_setpoint":99,"setpointdelta":2.0,"availablemodes":0} 
Using the information in the response, I would like to populate variables (like state, humidity, etc...) that I could reuse for a Virtual Thermostat or to trigger action (ex:if Humidity >55, then put fan on...)

Could you please provide info on how to achieve or provide documentation?

Regards,

Replies (1)

photo
1

Hello,

i have moved this request to the community, as we do not give support for such queries.

We would need to involve our developers and such requests we can provide only with the professional hour.


Best regards

photo
1

Can I get at least an answer on if this is attainable out-of-the-box or if special development is needed? I can manage my way around but a vague answer like this one does not help me.


I'm looking for guidance, not necessarily a fully written receipe. I don't mind to pay for when i'm confident I'll loose my time (like I was trying to find non existing documentation). If it's something that can be done in an hour, please advise.


Cheers,


P.

photo
1

that is a poor response form Zipato, sorry Philippe.

So Zipato didn't to you whether it was possible or not? It should be possible, I would pay for the 1 hour support as they will sort this out far quicker. And if it wont work, they will tell you asap, and I would imagine refund your costs, with out you wasting to much of your own time.

If you do, let us know how well support helps.

Yes, the lack of documentation is frustrating. Zipato really should have a full page dedicated to its API and authenticating to help others integrate Zipatos API into their own platform.

photo
1

My understanding is that you can't pull information in from outside sources into meters or variables from the Zipbox/Zipatile itself - which is a pretty big limitation. If there is a way, I would be very interested.


What I do is use Google App Scripts to obtain information from weather APIs, my air quality sensor Awair, and my Tado thermostat and push that data into virtual meters. Here is an example for weather APIs:


https://community.zipato.com/topic/as-promised-my-weather-information-gathering-system


I'm not sure right now whether you can populate variables, but you can definitely populate virtual meters.

photo
Leave a Comment
 
Attach a file