Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Wow! Finally! Thanks! #6

Open
jonerikandersen opened this issue Nov 3, 2019 · 11 comments
Open

Wow! Finally! Thanks! #6

jonerikandersen opened this issue Nov 3, 2019 · 11 comments

Comments

@jonerikandersen
Copy link

Will give the implementation a go, and give you some feedback along the way :-)

@jonerikandersen
Copy link
Author

Getting those heat signatures... Wow. I'll give it a massive go to get it from one heater. But I have four in total.

@kayjei
Copy link
Owner

kayjei commented Nov 3, 2019

Thanks!
Basically, you get the signatures per zone, not per radiator. Do you have them all in different zones?

@jonerikandersen
Copy link
Author

jonerikandersen commented Nov 3, 2019

IMG_CB80F5FC6616-1

Thanks!
Basically, you get the signatures per zone, not per radiator. Do you have them all in different zones?

And yes: I do. Because that's the only way to set unique temperatures in different rooms.

I have fetched all the signatures (I reckon it's the URL Encoded form: signature; ie. 302D0214616BC6DF275E505E923592AA5473566FBCCD9A08021500943A7xxxxxxxxxxx)

Is it mandatory to have the entire temperature range?

@kayjei
Copy link
Owner

kayjei commented Nov 3, 2019

No, but you need to retreive signature for all temperature you want to be able to set, plus temperature 0 (which is used to turn it off.
My recommendation is to retrieve siganture for all temperatures between min and max ( set in app).
Please also note that you must use the dev-branch to be able to set multiple zones

@jonerikandersen
Copy link
Author

Allready on it. At the moment, I get read temps from all through the zone list I guess. However, setting the temperatures, I need to add all four zones with all 30 temp signatures.
Even though I think I only need 0+14 to 23. Using the dev-branch atm. But this looks great! I'm trying to bridge it into Homekit atm. : )

@joggs
Copy link

joggs commented Dec 3, 2019

Have you succeeded in sniffing the adax app version 2? I am curious what the appVersion parameter value is and if the api response gives you different and hopefully more data.

@jchasey
Copy link

jchasey commented Jan 25, 2020

Grabbed the signatures just fine for heat and zone.
For the temperature however, there does not appear to be an encoded signature, just the temperature encoded into the url? Could you give an example of the form required?
Thanks!

@jchasey
Copy link

jchasey commented Jan 25, 2020

Grabbed the signatures just fine for heat and zone.
For the temperature however, there does not appear to be an encoded signature, just the temperature encoded into the url? Could you give an example of the form required?
Thanks!

Sorted, was checking the wrong request, signatures found ok.

@kayjei
Copy link
Owner

kayjei commented Jan 27, 2020

Have you succeeded in sniffing the adax app version 2? I am curious what the appVersion parameter value is and if the api response gives you different and hopefully more data.

@joggs my appversion is iOS-adax-2.4.0. I would say Yes, this should be version 2

@cortado
Copy link

cortado commented Apr 6, 2020

You have an example of how the parameters.py should look. Have got all the values, but still no dice. I am wondering if I have some values with wrong syntax or notation.

@kayjei
Copy link
Owner

kayjei commented Apr 16, 2020

Sorry for my late reply.
Basically, the file looks like (dev-branch):

def get_static(value):
    switcher = {
    "account_id": '12345',
    "appVersion": 'iOS-adax-2.4.0',
    "device": 'iPhone10,4',
    "os": 'iOS 2012.4',
    "timeOffset": '120',
    "timeZone": 'Europe/Stockholm',
    "locale": '',
    "zone_signature": '302C02142396D5FGFGAFG856468FDGCB4018FDF93F0214079A870064DBFE22691A27FC09F3AFE23B7A7B22'
    }
    return switcher.get(value,"Key missing")

def get_signature_456789(value):
    switcher = {
    "heat_signature": '302D0214035B337E5CDDC9EE3C59AA54FA688610215009740C147DAAB144859E592B9BC4493DBC2CAA004',
    0: '302D02146DB0C8AA23548666A666A69A81485434226B02150080BD1B0DE19DEABD3D8EE007AA09B93EB3BBBFBA', #Set as HVAC_OFF
    5: '302D02142572F806E126F9F4DEF0510AF7A9526ED3AC91D70215008AB85235A584FB928423C50E366261D4DD315B',
    }
    return switcher.get(value,"Key missing")

The signature key is normally 32 or 34 characters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants