Closed rentisob closed 7 months ago
Hello,
I have not build the controller part of the api. I will build it asap (but I can't give you an exact date)
Regards, Monique
Op wo 31 jan 2024 15:36 schreef rentisob @.***>:
Dear Mjilesen, I have just added a new controller to my Hydrawise account, still using the same API key, but the new zones added to the new controller, cannot be recognized by Homey. Do you have any idea how I can add these zones from the new controller to Homey?
Based on the API description, there should be a controller id field, how can it be supplied to Homey?
Parameters Parameters are supplied in URL (HTTP GET) api_key API key for your account controller_id (optional) The unique identifier for your controller. This is required when your account has multiple controllers.
Thanks a lot, Csaba
— Reply to this email directly, view it on GitHub https://github.com/mjilesen/com.hydrawise/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRHYWWBPG4LEBAGMUU657DYRJJGJAVCNFSM6AAAAABCTFTLQ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTAMRTHE2DSNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks a lot, that would be great, really appreciate your support! If I can support you somehow, please let me know. Best regards, Csaba
I have updated the app and there is a test version available. Can you please check if this is what you would like? https://homey.app/a/com.hydrawise/test/
Dear Monique, I have just tested it, Homey was able to recognize the new zones from the new controller and also recognized the old zones as well, so this part is working fine. When I tried to start a new zone from Homey, I’m getting this message: Error: Invalid operation requested.
Best regards, Csaba
Hi Monique,
Have you had a chance to check what can cause this issue? I have generated a report: 6d3362c6-a981-42ae-9483-e2db0afa786a
Thanks, Csaba
Hi,
I can't reproduce this issue and the report also doesn't give me any information. On my Hunter Hydrawise HC601 together with a HomeyPro, it works fine. The error message suggests that there is a problem on the Homey side.
The only thing that I can offer you, is that you give me a (temporary) api key and I try it on my system.
Regards, Monique
Hi Monique,
That would be great, here is my API key: XXXXX, I will change it later on. If I can support you somehow please let me know.
Thanks, Csaba
As you might have noticed, it worked fine on my configuration. It seems to be a problem with Homey..... You can reset your API key (next time, please don't post it here, this is a public site)
Have you tried all zones? I made some research and here is my observation. I have 2 controllers (A&B), primary controller (A) has 7 zones and the secondary controller (B) have 2 zones. With your new test version I was able to add all zones (9) from both controllers, and the zones of the primary controller (A) were working fine (7 zones), just the secondary controller's zones (B controller 2 zones) were producing the error. Now after your message, I changed the primary and secondary controllers in Hunter, "B" became the primary, added again all zones to Homey, and now the issue is valid only for the 7 zones of the A controller. It seems to me that Homey is not capable to make difference that these zones are controlled by a different controller. What do you think? Do you want to test again with a new API key all zones?
Hi,
Thank you for your investigations. Yes, can you send me a new api key ( @.***) and tell me exactly which ones are not working. I didn't want to start all of your sprinklers :). Monique
Op vr 9 feb 2024 15:18 schreef rentisob @.***>:
Have you tried all zones? I made some research and here is my observation. I have 2 controllers (A&B), primary controller (A) has 7 zones and the secondary controller (B) have 2 zones. With your new test version I was able to add all zones (9) from both controllers, and the zones of the primary controller (A) were working fine (7 zones), just the secondary controller's zones (B controller 2 zones) were producing the error. Now after your message, I changed the primary and secondary controllers in Hunter, "B" became the primary, added again all zones to Homey, and now the issue is valid only for the 7 zones of the A controller. It seems to me that Homey is not capable to make difference that these zones are controller by a different controller. What do you think? Do you want to test again with a new API key all zones?
— Reply to this email directly, view it on GitHub https://github.com/mjilesen/com.hydrawise/issues/17#issuecomment-1936012050, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRHYWX5C7Z4R73G2VU6UP3YSYV3LAVCNFSM6AAAAABCTFTLQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWGAYTEMBVGA . You are receiving this because you commented.Message ID: <mjilesen/com. @.***>
Here it is: xxxx. "Z1" to "Z7" are not working now, "1.zna" and "2.zna" are working. You can play with them, I closed both pumps. (Unfortunately your mail address is not visible in the message).
Sorry for disturbing you again, could you reproduce the issue?
I am just thinking, that maybe if you are creating the possibility in the app to have multiple accounts option (with different API key), then I could separate the two controllers to different Hunter accounts, and in this case there is no need to integrate the multiple controller option to the app. What do you think? Is it easier to implement?
Hi,
No, that makes it harder. I haven't had time this week, but you are still on my todo list.
Regards, Monique
Op zo 18 feb 2024 07:36 schreef rentisob @.***>:
I am just thinking, that maybe if you are creating the possibility in the app to have multiple accounts option (with different API key), then I could separate the two controllers to different Hunter accounts, and in this case there is no need to integrate the multiple controller option to the app. What do you think? Is it easier to implement?
— Reply to this email directly, view it on GitHub https://github.com/mjilesen/com.hydrawise/issues/17#issuecomment-1950979044, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRHYWSHF6TQKHVOBZTWJTLYUGONBAVCNFSM6AAAAABCTFTLQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQHE3TSMBUGQ . You are receiving this because you commented.Message ID: <mjilesen/com. @.***>
I have looked into the issue and it is a problem on Hydrawise side that I cannot fix. I have contacted Hydrawise for something else some time ago and they either do not answer or it takes months.
Therefore I have created the possibility to use multiple accounts. What you need to do is switch api key in the settings and install the device (the api key will now be stored with the device). "Old" devices will use the API key that is defined at that moment in the settings. The only thing that I have not "fixed" is StartAllZones and StopAllZones, this is only possible at the moment for the in the settings defined API key. If you need those, I need to add something to the flowcard (you have to choose your api key).
There is a test version available. Please check if this works for you.
Dear Monique, I have just tested it and now everything works fine with both controllers. This was the method I have followed: Installed the v.1.4.0 test version, changed the API key in Hunter, reconfigured the new API key in the Homey app. Removed all devices from Homey and re-added all the zones from both controllers. Now all the zones are working fine from both controllers.
Thank you very much for your support, it would be great if you can release this version.
Fixed and released
Dear Mjilesen, I have just added a new controller to my Hydrawise account, still using the same API key, but the new zones added to the new controller, cannot be recognized by Homey. Do you have any idea how I can add these zones from the new controller to Homey?
Based on the API description, there should be a controller id field, how can it be supplied to Homey?
Parameters Parameters are supplied in URL (HTTP GET) api_key API key for your account controller_id (optional) The unique identifier for your controller. This is required when your account has multiple controllers.
Thanks a lot, Csaba