Some typos in the ZONE_ID and HEAT_ID guide, or should bpth be {account_id}?
Also: calls does not seem to contain these?
- appVersion
- device
- os
- timeOffset
- timeZone
Some typos in the ZONE_ID and HEAT_ID guide, or should bpth be {account_id}?
Also: calls does not seem to contain these?
Any update how to get the heater data from the Cloud?
Hi
Adax AS just released an app to Homey https://homey.app/sv-se/app/no.adax.smart-heater.homey-app/Adax-WiFi/. Can we expect an integration with HA aswell?
Adax just released API? my adax app suddenly has a third party connection option called âremote user client apiâ. Closer to integration?
I have made an integration: https://github.com/Danielhiversen/home-assistant_custom_components/tree/master/custom_components/adax
Not tested much, so all feedback is welcome
feedback: kjører standard pü RPi3, fikk følgende feil:
Platform error climate.adax - No module named âsanctionâ Invalid config for [sensor]: required key not provided @ data[âplatformâ]. Got None. (See ?, line ?).
Question: Client_ID I guess is the 5 digit account ID? and client_secret is the Remote user client API credential password?
pip install sanction
Yes, I have updated the config:
climate:
- platform: adax
account_id: "112395" # replace with your account ID (see Adax WiFi app, Account Section)
password: "6imtpX63D5WoRyKh" # replace with your remote user password (see Adax WiFi app, Account Section)
worked! After reboot of host system it came up
Cannot set temperature or turn off.
Do you use the latest version, I had to make some fixes.
I do not think turning on/off is possible from the API.
In API specification (https://api-1.adax.no/client-api/openapi, you can look at this with swagger editor for example) the ControlRequest payload has âtargetTemperatureâ but also âheatingEnabledâ. That field is just not used in example they published, I guess.
def set_room_heating_enabled(roomId, ena, token):
# Sets heating on/off
headers = { "Authorization": "Bearer " + token }
json = { 'rooms': [{ 'id': roomId, 'heatingEnabled': str(ena) }] }
requests.post(API_URL + '/rest/v1/control/', json = json, headers = headers)
I was able to turn heater off with that. To turn back on, it seems that one needs to pass the targetTemperature again, just requesting heatingEnabled: true wonât work.
Sorry, was outdated. It works setting the temp now!!
BTW: is the new power consumption available throught the API?
I donât see power consumption in json api spec. Would be nice to have it, maybe they have left it out in the first version.
could also be it is just a function of the app, where they calculate based on Watt specified and time used for heating
Nice, I will add it to component
Edit: use danielhiversenâs integration, youâll find it in HACS.
Iâve built a HACS compatible integration here:
(link to archived repository deleted because people keep following it)
This allows you not only to set the target temperature, but also turn the heater on and off. To do list includes config flow and async mode.
Since you have copied my code, it would be nice if you also credit me and remove your copyright.