Hi
My Actron air conditioner web interface produce following json result and what would be the best way to translate these information by getting the data by the web interface every 15min and show it under :climate panel or something similar within home assistent.
Can anyone tell me if this is possible to parse multiple json attributes that arenāt in the direct ātreeā? Iāve seen it done before and tested that it works when they are in the first line of the json results but canāt seem to get it to work or multiple attributes.
Is my only option to setup separate rest commands for each attribute? Is there a way I can reformat the URL so that it accesses the data I want as the first line?
Not exactly clear what youāre trying to do. It might help if you could provide a copy of what the returned JSON looks like, and what pieces of data youāre trying to retrieve from it.
The attributes i want to be able to access are all under the āDAā string so to get there in HASSIO i have to go through [ādataā][ālast_dataā][āDAā]. I can access the isOn attribute as per me config file above but i cant access any of the others.
Sorry for late reply, but above not going to work.
Actron air work got two way system, you need to device status from the actual device (via local IP address) eg 192.168.x or so on. Then control are from rest call to third party site. eg. https://actron.ninja.is/rest/v0/device/
I hope I format it correctly, this work except one issue, each time sensor get updated, it try to turn on the system. Eg. scan_intervel = 2 min, each time it try to turn on the unit. I wish there is a fix to that.
Idea is to scan the unit and update the status. That way if someone manually turn it on, HA will get updated. It would be good if someone can fix this, not to call the switch each time its update the status.
This is interesting because the URL that i use definitely gets me all the info i need as well as allowing me to send data back to the AC eg changing fan speed, modes, temps etc. You never used to be able to connect directly to the AC system, i know Actron have done work recently on the app and the servers so maybe theyve changed that and itās definitely the way to go especially considering its all running locally and will be better to no expose my access token.
Will give both options a go tonight and see what i end up with. Thanks all.
That could be possible, device prob send those data to server, so same data available from the server. Either way, you still need to update the HA status even min or so in case someone manually turn on the system.
Got this all working brilliantly thanks so much for your help guys
I used a combination of both @boomramada and @pnbruckner methods after now understanding that I can use the ACās local IP address so it all works great now.
I plan to do a full write up in the next few days to show people exactly how to get all this working as I know there are a few people out there trying to get all this to work. Will tag you in that post once I finish writing it.
Ultimately, Iād love to get a component written for the Actron Connect system I just donāt have the coding experience.