cjaliaga / home-assistant-aquarea

Home Assistant integration for Panasonic Aquarea devices connected to Aquarea Smart Cloud
MIT License
85 stars 13 forks source link

Cant change setpoint #13

Closed eliashe92 closed 2 years ago

eliashe92 commented 2 years ago

Thanks for the great work you have done. I have been waiting a long while for the ability to integrate my air to water heat pump (WH-MXC12H9E8). Current temperature, tank temperature, outside temperature and status seems to be working fine

I get the following message when i try to change set point (added the climate object to thermostat card) "Failed to call service climate/set_temperature. API error: 1000-0999 - Logged out due to system error. Please login after a while"

The set point of my heat pump is normally adjusted +- 5 degrees from a base setpoint that changes depending on the outdoor temperature. I have tried to reload the integration, is there something else I can try?

cjaliaga commented 2 years ago

Hey @eliashe92, it might be something specific about your type of configuration that's pending on the integration. Let's see if we can figure it out 😊

Could you do the following for me?

1 - Temporarily disable the integration in Home Assistant 2 - Open the Aquarea page on your browser: https://aquarea-smart.panasonic.com/ and log in 3 - On a new tab in your browser, open this URL: https://aquarea-smart.panasonic.com/remote/v1/api/devices 4 - Copy the content and paste it here. You can remove the deviceGuid or any name from the JSON such a2wName 5 - Show me screenshots of the main page of Aquarea and also from the place where you can change the temperature

We may need additional data/troubleshooting but let's start with this.

eliashe92 commented 2 years ago

Thanks for the quick reply and support

Here is the content (I have REMOVED the "token" and "deviceGuid" "{"accessToken":{"token":"REMOVED"},"device":[{"deviceGuid":"B334311462","configration":[{"zoneInfo":[{"zoneSensor":"Water temperature","coolMode":"disable","heatSensor":"Compensation curve","coolSensor":"Compensation curve","outdoorType":"TCAP","zoneId":1,"zoneType":"Room","zoneName":"Dalsvingen"}],"a2wName":"WH-MXC12H9","operationMode":"Heat","deviceGuid":"REMOVED","lastErrorNumber":"","bivalent":"No","specialStatus":0,"tankInfo":[{"tankType":"Internal","tank":"Yes"}],"firmVersion":"030402"}]}],"errorCode":0}"

I can try to remove [Compensation curve","outdoorType"] and set a static setpoint later today for the floor heating later to see if this makes it possible to change setpoint

I have added some pictures from Panasonic and Home Assistant Main page image

Device page image

Heat pump image I can see that the temperature of field is set to "null"? image

Hot water image It seems like it is possible to change the setpoint for the hot water

States image

cjaliaga commented 2 years ago

Thanks @eliashe92.

I think the work on #9 should help here, I think it could be just that, I'll work on it later today and let you know 😊

Could you also show me the screen on the Panasonic Aquarea page when you click on the temperature for the zone (where allows you to set the temperature? Just to confirm something.

eliashe92 commented 2 years ago

Great :)

Here are picture from heat (floor heating) image

-5 image

+5 image

Tank heating image

min 40 deg image

max image

cjaliaga commented 2 years ago

@eliashe92 I've released v0.1.4 https://github.com/cjaliaga/home-assistant-aquarea/releases/tag/v0.1.4 with the fix. Please let me know if now you're able to modify the temperature or if there's anything missing.

eliashe92 commented 2 years ago

It seems to be going in the right direction, I now get the possibility to change setpoint, but get the following fault message when for the heat pump, se picture (adjusting setpoint for the tank seems to be working fineπŸ‘)

Heat pump Screenshot_20220910-102746_Home Assistant

Tank Screenshot_20220910-104034_Home Assistant

Screenshot_20220910-104446_Home Assistant

cjaliaga commented 2 years ago

@eliashe92 can you please try with v0.1.5? Hopefully this is the one 🀞

eliashe92 commented 2 years ago

πŸ‘πŸ‘πŸ‘ Works perfectly now, thanks a lot!! Have you lookes into the possibilities to use Aquarea service account? From there it is possible to see a lot of information (power usage, power consumtion, pump flow and so on)

cjaliaga commented 2 years ago

Yaay!!

I've looked at the service account and I have to say that API is a pain in the *** to say something πŸ˜‚

That said, the main goal of the integration is to work as much as possible with aquarea smart as it's what most people uses, the service one is for installers, even if we can register ourselves as installers (as we both have done 😁).

We can study the possibilities in the future, either with a complementary integration or trying to extend this one in a way that makes sense.

Coming back to the power consumption and usage, lucky enough, they can be obtained using the normal API, and that's something I'll work on soon. Pump flow or the possibility of fully restarting the device when there's an error are things that from my investigations, I only found possible using the service account.

eliashe92 commented 2 years ago

It would be much appreciated to get the power consumption and usage (I was not aware it was possible to get from the standard user) Should the tank setpoint also be integer? (From the Aquarea app and control panel it is only possible to change in 1 degree steps)

Again, thanks for your great work!πŸ˜€

cjaliaga commented 2 years ago

My pleasure, thanks a lot for all the testing, it makes all the difference, instead of me trying to guess how all different devices will behave πŸ˜„

Should the tank setpoint also be integer? (From the Aquarea app and control panel it is only possible to change in 1 degree steps)

Yes, the tank setpoint is currently converting the value to integer before sending it to the API, the problem is with the water heater entity that doesn't support setting the step (https://developers.home-assistant.io/docs/core/entity/water-heater/) and the UI moves on a half degree per step basis. The climate entity on the other hand exposes the _target_temperaturestep property that can be set to configure a 1 degree step: https://developers.home-assistant.io/docs/core/entity/climate