Giter Site home page Giter Site logo

cjaliaga / home-assistant-aquarea Goto Github PK

View Code? Open in Web Editor NEW
74.0 14.0 13.0 135 KB

Home Assistant integration for Panasonic Aquarea devices connected to Aquarea Smart Cloud

License: MIT License

Python 100.00%
aquarea home-assistant integration panasonic panasonic-comfort-cloud panasonic-smart-cloud

home-assistant-aquarea's Introduction

Manage Panasonic Aquarea Smart Cloud devices from Home Assistant

hacs_badge GitHub Release (latest SemVer including pre-releases)

Panasonic Aquarea Smart Cloud is a cloud service that allows you to control your Panasonic Aquarea heat pump from your smartphone. This integration allows you to control your heat pump from Home Assistant.

The integration uses aioaquarea to communicate with the Panasonic Aquarea Smart Cloud service.

This integration is currently in beta. Please report any issues you find and any feedback you may have. Thanks!

⚠️ As of March 18th, 2024 Panasonic changed the way to log into Aquarea Smart Cloud

  • Changes has been merged and released with version > 0.7.0 thanks to priceless bimusiek help.
  • Please report any issue regarding the new auth changes in the pinned issue: #105
  • The investigation was peformed in the aioaquarea repository: cjaliaga/aioaquarea#44

Features

  • Climate entity per device zone that allows you to control the operation mode, read the current temperature of the water in the device/zone and (if the zone supports it), change the target temperature.
  • Sensor entity for the outdoor temperature.
  • Water heater entity for the hot water tank (if the device has one), that allows you to control the operation mode (enabled/disabled) and read the current temperature of the water in the tank.
  • Diagnostic sensor to indicate if the device has any problem (such not enough water flow).
  • Energy consumption sensors (accumulated and sensors that reset the cycle every hour)
  • Quiet mode select entity
  • Request defrost
  • Powerful mode select entity
  • Holiday timer
  • Force DHW
  • Force heater
  • Set the device in eco mode/comfort mode (if the device supports it).

Features in the works

  • Weekly schedule.
  • Improve translations
  • Rework of the water tank entity
  • Additional sensors/switches for the device.

Remarks

Panasonic only allows one connection per account at the same time. This means that if you open the session from the Panasonic Confort Cloud app or the Panasonic Confort Cloud website, the session will be closed and you will be disconnected from Home Assistant. The integration will try to reconnect automatically, clossing the session from the app or the website. If you want to use the app or the website, you will have to temporarily disable the integration.

A possible solution to this behaviour is to create a second account specifically for home assistant.

  1. Go to https://csapl.pcpf.panasonic.com/ and create a new account.
  2. Then login with your new account into https://aquarea-smart.panasonic.com/.
  3. You will be asked to enter your device id and your password. Enter the device id which is label on your Wifi Module (e.g. CZ-TAW1) and your password which you already created with your main account.
  4. Now you will get a user request to your main account. It should be somewhere under Users -> Userlist. Accept this user request.
  5. Use the new panasonic acount to setup your "Panasonic Aquarea Smart Cloud" home assistant integration.

Now it should be possible to access the aquarea smart cloud website and also use the home assistant integration at the same time.

Minimum Home Assistant version required

The minimum supported version of Home Assistant is 2024.2

Installation

Using HACS (recommended)

  1. Download the integration via (one of them):

    • Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
    • Go to HACS > Integrations > Look for "Aquarea"
  2. Restart Home Assistant

  3. Add integration via (one of them):

    • Open your Home Assistant instance and start setting up a new integration.
    • Go to "Settings" >> "Devices & Services", click "+ ADD INTEGRATION" and select "Aquarea Smart Cloud"
  4. Follow the configuration steps. You'll need to provide your Panasonic ID and your password. The integration will discover the devices associated to your Panasonic ID.

Manual installation

  1. Copy the folder named aquarea from the latest release to the custom_components folder in your config folder.
  2. Restart Home Assistant
  3. Add integration via (one of them):
    • Open your Home Assistant instance and start setting up a new integration.
    • Go to "Settings" >> "Devices & Services", click "+ ADD INTEGRATION" and select "Aquarea Smart Cloud"
  4. Follow the configuration steps. You'll need to provide your Panasonic ID and your password. The integration will discover the devices associated to your Panasonic ID.

⚠️ Update to v0.2.0 from v0.1.X

If you are updating from a version prior to v0.2.0, the recommendation is for you to remove the integration and add it again before updating. This is because v0.2.0 introduces a breaking change in the unique id generation for the entities. If you don't remove the integration and add it again, you will end up with duplicate entities.

This is a one time thing during the beta that was needed in order to support multiple devices and zones. From now on, the unique id generation will be stable and you won't need to remove the integration and add it again.

Warning

This integration is currently in beta. It supports several devices but it has been tested with a single device. If you have multiple devices under the same Panasonic ID, please test it and report any issue you find.

The integration also supports devices with several zones, but it has not been tested with multiple zones. If you have a device with multiple zones, please test it and report any issue you find.

The integration has been tested with a heat pump with a hot water tank, but it has not been tested with a heat pump without a hot water tank. If you have a heat pump without a hot water tank, please test it and report any issue you find.

Disclaimer

THIS PROJECT IS NOT IN ANY WAY ASSOCIATED WITH OR RELATED TO PANASONIC. The information here and online is for educational and resource purposes only and therefore the developers do not endorse or condone any inappropriate use of it, and take no legal responsibility for the functionality or security of your devices.

Acknowledgements and alternatives

  • Big thanks to ronhks for his awesome work on the Panasonic Aquaera Smart Cloud integration with MQTT. You can use his integration if you want to use MQTT instead.
  • Panasonic introduced authentication breaking changes on March 18th 2024. A heartfelt thank you to bimusiek for generously sharing their implementation in the Homebridge plugin. Their contribution played a crucial role in having the integration working back, and I am truly grateful for their remarkable help.

home-assistant-aquarea's People

Contributors

afharo avatar cjaliaga avatar drawgas avatar elvit avatar kuadam avatar lcavalli avatar pjbaert avatar shajek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-aquarea's Issues

Translations

Add translation keys to all entities and complete translations.

  • Climate entity and all the states
  • Diagnostic entities
  • Sensor entities and states

Currently, an initial translation to energy consumption sensors and outdoor temperature sensor has been added as part of #64 (Spanish and English), however, we should do a full check to the integration to ensure that everything that can be translated, it's translated.

I'll do that and add the keys to the JSON files and I'd appreciate your help with the translations: @pjbaert @drawgas @kuadam @shajek

Only 3 entities?

Using this integration with WH-MDC05J3E5 I get only 3 entities.

Do I need to configure something to get access to all the settings in Comfort Cloud?

image

not working with new update ( heatpump not switch to active )[Bug]:

The problem

sensors are ok , when i try to setup the heat pump( cold, hot, setting temperature) nothing happened.Same thing with tank.

What version of Home Assistant Core are you running?

core-2024.1.5

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

0.6

Device description

Number of zone 1
Support cooling
Have a dhw
nothing happened when i try to switch modes on home assistant. It works all fine with prev versions 0,5.

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

Yes

Area of the issue

No response

Anything in the logs?

No response

Additional information

No response

Error connecting

Since a few days ago. Since I intall last version of Home assistance I lost contection to my device. Any help?

here you have the log:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 201, in login
response: aiohttp.ClientResponse = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 154, in request
resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed

IMG_6902

[Bug]: Water tank state

The problem

If the heat pump switches (in the combined zone/DHW mode) from DHW heating back to zone heating, all is well. But if zone heating mode not start (e.g. because the outdoor temperature is higher than the maximum set for heating to be switched on), the state of the water tank entity will remain permanently "heating" even though in reality the water tank is no longer heated.

What version of Home Assistant Core are you running?

2024.2.2

What type of installation are you running?

Home Assistant Container

What version of the integration are you running?

0.6.3

Device description

1 zone, yes, yes

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

Yes

Area of the issue

No response

Anything in the logs?

No response

Additional information

No response

Cant change setpoint

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?

Conflict with original Panasonic Comfort Cloud app

Hi!
With the enabled integration, the original Panasonic Comfort Cloud application popups error 1001-0007: Your Cloud session has expired due to inactivity. This is mentioned in the README.

I assume, if there was any configurable setting in the integration, to regulate the frequency of Aquarea current values pulling, it would be possible to use these both apps simultaneously. Like, if to setup values pulling once per 10 mins, a user could run Panasonic Cloud app for 5-7 mins, which is more than enough to look through the current stats (power consumption, costs, etc., which are not available through integration).
Thank you!

Problem with Integration

Hello,

Since today there is a problem with the Integration. In the App is everthing ok an the Adapter works.

Here can you see the log informations:

`Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant.config_entries
Source: custom_components/aquarea/init.py:52
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 20:07:39 (2 occurrences)
Last logged: 20:08:17

Error setting up entry [email protected] for aquarea
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 201, in login
response: aiohttp.ClientResponse = await self.request(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 154, in request
resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 399, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed
`

`Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.aquarea.coordinator
Source: custom_components/aquarea/coordinator.py:57
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 20:07:32 (1 occurrences)
Last logged: 20:07:32

Unexpected error fetching aquarea-xxxx@xx-B38826xxxx data: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data
self._device = await self._client.get_device(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 352, in get_device
device_info, await self.get_device_status(device_info.long_id), self
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 287, in get_device_status
response = await self.request(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 166, in request
raise ApiError(error.error_code, error.error_message)
aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure
it is connected to the network or check again
after resetting adaptor.
`
Screenshot_20221001-201442_Comfort Cloud

Thanks fo your help!
Best regards

[Bug]: accumulated sensors are no longer getting new data

The problem

The three accumulated sensors (total/tank/heat)
Do not grow anymore since I updated to the latest version. The sensor is there and no error visible but the data is not changing. The individual sensors for energy are not active anymore.

What version of Home Assistant Core are you running?

2024.1.2

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

V0.5.0

Device description

12kW All in One air to water
1 zone
With DHW

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

N/A

Area of the issue

Accumulated sensors

Anything in the logs?

Logger: custom_components.aquarea.coordinator
Source: helpers/update_coordinator.py:313
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 9:51:32 AM (1 occurrences)
Last logged: 9:51:32 AM

Error requesting aquarea-……@live.com-B679814583 data: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://aquarea-smart.panasonic.com/remote/v1/api/devices/008007B679814583001434545313831373030634345373130434345373138313931304300000000?var.deviceDirect=1')

Additional information

No response

Unable to set 0 setpoint in hvac

Hi, I don't know if it's just for me but I can't set 0. Other values ​​-5, -4, -3, -2, - 1,1,2,3,4 5 changes without problem, but 0 doesn't

Warning shown when starting HASS

2024-02-08 23:00:36.430 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.aquarea.climate.HeatPumpClimate'>) implements HVACMode(s): heat, off, cool, heat_cool and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/cjaliaga/home-assistant-aquarea/issues

I just noticed this warning when starting HASS in its latest version (2024.2.0)

API error: Failed communication with adaptor

There is no more data shown in home assistant. There seems to be an login issue. The api can no longer communicate with the adaptor.

Full logs:
2022-12-13 19:58:37.711 ERROR (MainThread) [custom_components.aquarea.coordinator] Unexpected error fetching aquarea-<email>@<email>.<extension>- data: API error: 1000-1504 - Failed communication with adaptor. Please make sure File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 352, in get_device File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 287, in get_device_status File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 166, in request aioaquarea.errors.ApiError: API error: 1000-1504 - Failed communication with adaptor. Please make sure 2022-12-13 19:58:37.807 WARNING (MainThread) [homeassistant.config_entries] Config entry '<email>@<email>.<extension>' for aquarea integration not ready yet: API error: 1000-1504 - Failed communication with adaptor. Please make sure 2022-12-13 19:58:38.579 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry <email>@<email>.<extension> for aquarea File "/config/custom_components/aquarea/__init__.py", line 52, in async_setup_entry File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 201, in login File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 154, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs) 2022-12-13 20:03:59.707 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry <email>@<email>.<extension> for aquarea File "/config/custom_components/aquarea/__init__.py", line 52, in async_setup_entry File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 201, in login File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 154, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)

Could this be related to cjaliaga/aioaquarea#20 ?

Integration stopped working | "Session is closed" | 1000-1503 - Failed communication with adaptor

Integration doesn't work anymore. It stopped working 12.9.2023 at 1.30 (GMT+2). There is error logs.

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/aquarea/init.py:52
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 18:39:22 (2 occurrences)
Last logged: 18:43:26

Error setting up entry [email protected] for aquarea
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 201, in login
response: aiohttp.ClientResponse = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 154, in request
resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed

[Bug]: wrong consumption stats since 0.5 version

The problem

Prior to 0.5 version, the consumption the « heating accumulated consumption » and « tank accumulated consumption » were very accurate. From 0.5 it seems to be no longer the case.

FYI when I look at the consumption of yesterday, based on these 2 sensors I have consumed 64kWh, while my energy provider reports 59kWh.

i provide 2 pictures (Panasonic SmartCloud + a chart on HA based on these 2 sensors) on my consumption on Jan 7th and 2 pictures of my consumption of Jan 11th.

IMG_3195
IMG_3197
IMG_3196
IMG_3199

What version of Home Assistant Core are you running?

core-2024.1.2

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

6.1.71-haos

Device description

1 zone
It supports cooling, but we never use it
It has DHW
Is it connected with 3 live wires (380V)

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

Yes

Area of the issue

Sensor values issues

Anything in the logs?

No response

Additional information

No response

Implement statistics sensors

Add sensors for energy consumption:

  • Energy consumption sensor for water
  • Energy consumption sensor for cool
  • Energy consumption sensor for heat
  • Energy consumption sensor for total consumption

Pending on cjaliaga/aioaquarea#4.

Login Error 1000-1503

Error while trying to connect with Smart Cloud
I've tried HACS installation and manual installation.
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data self._device = await self._client.get_device( File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap response = await fn(client, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 352, in get_device device_info, await self.get_device_status(device_info.long_id), self File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap response = await fn(client, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 287, in get_device_status response = await self.request( File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 166, in request raise ApiError(error.error_code, error.error_message) aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor.
I can connect with my Heat Pump via Panasonic Aquarea Smart Cloud site.

'DeviceZone' object has no attribute 'status'

Hi,

I have an Aquarea Heat Pump with 2 Zones and a 200l Tank. The integration is the version 0.2.1.

When i try to change the mode of a Zone the integration reply with "Invocazione del servizio climate/set_hvac_mode non riuscita. 'DeviceZone' object has no attribute 'status'".

Error after setup of the integration

After downloading the integration via HACS, I tried to install the integration.
I get the prompt that asks me for my AQUAREA Smart Cloud user info.
After submitting, I return to the integration overview and get the succes message.

On the integration overview page, I do however notice the failed setup error on the Aquara tile with a 'check the logs' link.

The log contains this:

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/aquarea/__init__.py:64
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 18:18:20 (1 occurrences)
Last logged: 18:18:20

Error setting up entry <[email protected]> for aquarea
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/aquarea/__init__.py", line 64, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setups'

Climate entity state (cool/heat/auto) seems wrong when the device is turned off

Right now if the device is completely turned off (this can happen if you manually turn it off or if the device is in error mode/restarted), the climate entry for the zone reports it's current mode, such heat/auto/cool mode and the status IDLE, since it's not heating/cooling.

image

This is technically correct as the API reports the mode selected, and if you turn the device mode, it will come back to that mode. That said, the experience seems wrong, since it's not showing the device is actually turned off.

I believe that showing the mode as "Off" seems more correct. Then, the device should either go back to the previous state if turn the device on from the device switch (#8) or to the new mode if you select the mode from the climate entity (cool/heat/auto).

Air condition units

Hello. I have panasonic heat pump and separate AC units. Which are all accusable from comfort cloud.
This home-assistant-aquarea does not see my AC units (just paired them).
But https://github.com/sockless-coding/panasonic_cc/ see's them.
Are there any risks using both panasonic_cc and home-assistant-aquarea at the same time?

Fully implement water temperature zone sensor

Having problems setting up the integration. My device is a heat pump "WH-MDC05J3E5" with 3rd party hot water tank, tank sensor, internet/cloud connector card. Log file attached:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant.config_entries
Source: custom_components/aquarea/init.py:54
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 10:53:33 (1 occurrences)
Last logged: 10:53:33

Error setting up entry [my user] for aquarea
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/aquarea/init.py", line 54, in async_setup_entry
devices = await client.get_devices(include_long_id=True)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 247, in get_devices
ZoneSensor(zone_record["zoneSensor"]),
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in new
raise ve_exc
ValueError: 'Water temperature' is not a valid ZoneSensor

Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor

Unexpected error fetching [email protected] data: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data
self._device = await self._client.get_device(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 352, in get_device
device_info, await self.get_device_status(device_info.long_id), self
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 287, in get_device_status
response = await self.request(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 166, in request
raise ApiError(error.error_code, error.error_message)
aioaquarea.errors.ApiError: API error: 1000-1503 - Failed communication with adaptor. Please make sure
it is connected to the network or check again
after resetting adaptor.

Error setting up entry [email protected] for aquarea
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 201, in login
response: aiohttp.ClientResponse = await self.request(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 154, in request
resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 399, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed

Integration stopped working - session is closed error in logs

Hi,

I've noticed the integration stopped working for me a couple days ago.
Looking into the logs, this is what I am seeing for the integration.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aquarea/__init__.py", line 52, in async_setup_entry await client.login() File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 201, in login response: aiohttp.ClientResponse = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 154, in request resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request raise RuntimeError("Session is closed") RuntimeError: Session is closed

Logger: homeassistant.config_entries
Source: custom_components/aquarea/init.py:52
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: July 14, 2023 at 3:14:58 PM (7 occurrences)
Last logged: 11:17:58 AM

The versions I'm running are all up to date.
Home Assistant 2023.7.2
Supervisor 2023.07.1
Operating System 10.3

I have accepted the new terms pushed by Panasonic onto users via the app and the web site, I checking in with the account I am using for the integration - they all can use the phone app and the web view.

Has anyone else seen this?

Thanks.

Integration crashed after update

`Logger: homeassistant.config_entries
Source: config_entries.py:642
First occurred: 13:41:26 (1 occurrences)
Last logged: 13:41:26

Migration handler not found for entry HeishaMon via panasonic_heat_pump/ topic for aquarea`

Recovering whole HA instance from backup, any clue how to workaround this issue?

Connect simultaneously with Panasonic app

Connect simultaneously with Panasonic app

To use the native Panasonic application together with Aquarea Smart Cloud you only have to connect with two different emails.
From the native Panasonic application you create a guest account (you can even give it administrator privileges). Now you log in to Home Assistant with the second account.
There is no problem, what is done in one place is seen in a few seconds in the other. It doesn't disconnect. Perfect.
I have two Gmail emails, but I would like someone to check if it can be done with the same email but with two aliases.

Expected Behaviour of Force Heater

m### The problem

Hi!

Iam using v0.6.3 of your integration and just wanted to ask what bvehaviour i should expect when i turn on "Force Heater", because when i try to use it, the pump turns off heating and i cant turn it back on.

Is this intended?

EDIT: Sorry for the "Bug" Label. Sadly i have no clue how to remove it.

What version of Home Assistant Core are you running?

2024.3.0

What type of installation are you running?

Home Assistant Supervised

What version of the integration are you running?

0.6.3

Device description

DHW Yes
Firmware: 040602

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

Yes

Area of the issue

No response

Anything in the logs?

No response

Additional information

No response

[Bug]: holiday mode switch keeps resetting its value

The problem

The moment you toggle the holiday mode switch it takes around 30 sec for it to show up on the device itself and after another 30 seconds or so it gets turned off again

What version of Home Assistant Core are you running?

2024.2.2

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

0.6.3

Device description

1 zone
Supports cooling
Less then one year old

Is the integration loading?

Yes

Is the adapter able to connect to the Aquarea Smart Cloud with a stable internet connection?

Yes

Are you able to perform the action you're trying to with the Aquarea Smart Cloud Site/App?

Yes

Area of the issue

The switch entity for holiday mode

Anything in the logs?

Nothing that i can make out

Additional information

I did try to restart home assistant and the system but both had no effect

Missing consumption values for some hours

Hi,

Really appreciate the work you put into this. I have upgraded the integration which now supports consumptions, but when added to HA, the values for consumptions are missing (always for the same hours). The values from consumption just stay the same and don't increase in some hour periods. Do you know what that is? Have I configured something wrong?

2024-01-02_10h54_33

2024-01-02_10h55_05

Again, thank you for the work you put into this

Heating status doesn’t change to idle

Hello,

First of all, thank for your work! It does nicelly what i was looking for!

I think i have an issue with the heater state, or maybe i am misunterstanding something ?

when the current temperature is equal to the temperature set, the heater stops heating and the status should be « idle »
But in my case, the status stay on « heating » as you can see on the image.
IMG_4726

Is there a way for this status to change to « idle » when it’s actually not heating ?

Regards,
Pierre

RuntimeError: Session is closed

Hi I use the latest version and the preview version I can't use anymore the integration, reloading / reinstalling the integration does not help.
What to do?
Logs:

Logger: custom_components.aquarea.coordinator
Source: helpers/update_coordinator.py:290
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 2 grudnia 2023 18:21:08 (860 occurrences)
Last logged: 13:48:31

Unexpected error fetching aquarea-(Removed personal data) data: Session is closed
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aquarea/coordinator.py", line 57, in _async_update_data
self._device = await self._client.get_device(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap
response = await fn(client, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 356, in get_device
device_info, await self.get_device_status(device_info.long_id), self
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 52, in _wrap
response = await fn(client, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 290, in get_device_status
response = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioaquarea/core.py", line 157, in request
resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 400, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed

Discussion: Water Entity for Water Tank implementation

From Home Assistant Community Post: https://community.home-assistant.io/t/panasonic-aquarea-heat-pump-integration/392095/31

The water heater entity supports the following operations, but it doesn't include a "turn_on" or "turn_off" one 😦

water_heater.set_temperature , water_heater.turn_away_mode_on , water_heater.turn_away_mode_off , water_heater.set_operation_mode

https://www.home-assistant.io/integrations/water_heater#services

I had a lot of doubts on how to implement the water heater entity with Aquarea devices, to support the actions "on" and "off" but also to show via the interface if the heat pump is heating the water of the water tank or not: it can be turned on but the heat pump could be heating water for the heating floor (or cooling it) so the state/operation would be like "idle".

While it doesn't support turn_off, we can define the state as "STATE_OFF" or "STATE_HEAT_PUMP": https://developers.home-assistant.io/docs/core/entity/water-heater#states

I've implemented this via operations and so far the device accepts 2: heating and off:

Turn on:

service: water_heater.set_operation_mode
target:
  entity_id: water_heater.aerotermia_tank
data:
  operation_mode: heating

Turn off:

service: water_heater.set_operation_mode
target:
  entity_id: water_heater.aerotermia_tank
data:
  operation_mode: off

Opening this issue to discuss feedback, implementations and keep track of it.

Error when try to change setpoint un hvac

Hello, with the last versión I have this issue when try to change the temperwture setpoint un hvac mode

[140508536701952] API error: 1000-0999 - Logged out due to system error. Please login again after a while.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 588, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/config/custom_components/aquarea/climate.py", line 196, in async_set_temperature
await self.coordinator.device.set_temperature(temperature, zone.zone_id)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 598, in set_temperature
await self._client.post_device_zone_heat_temperature(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 473, in post_device_zone_heat_temperature
return await self._post_device_zone_temperature(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 504, in _post_device_zone_temperature
response = await self.request(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 166, in request
raise ApiError(error.error_code, error.error_message)
aioaquarea.errors.ApiError: API error: 1000-0999 - Logged out due to system error. Please login again after a while

With water_heater works properly

Implement Quiet Mode

  • Add the option to check if the device is configured on quiet mode (what level).
  • Add the option to configure the quiet mode level

error after: Do you want to set up Aquarea Smart Cloud? > Config flow could not be loaded: {"message":"Invalid handler specified"}

I followed these steps:

Download the integration via (one of them):

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
Go to HACS > Integrations > Look for "Aquarea"
Restart Home Assistant

Add integration via (one of them):

Open your Home Assistant instance and start setting up a new integration.
Go to "Settings" >> "Devices & Services", click "+ ADD INTEGRATION" and select "Aquarea Smart Cloud"

and here I cant pass the config flow error. its HA in a docker @ raspberry 4

Any thoughts?

Receiving error

I have his integration running with two heat pumps and it worked fine. But since this morning it gives an error:

Logger: homeassistant.config_entries
Source: custom_components/aquarea/init.py:52
Integration: Aquarea Smart Cloud (documentation, issues)
First occurred: 15:26:23 (5 occurrences)
Last logged: 17:32:01
Error setting up entry [email protected] for aquarea

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 365, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/aquarea/init.py", line 52, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 201, in login
response: aiohttp.ClientResponse = await self.request(
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 154, in request
resp = await self._sess.request(method, AQUAREA_SERVICE_BASE + url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 399, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed

When logging in directly to the Panasonic Service Cloud everything seems to work.
Any idea what's going on?

Integration with 2 zones (second zone is missing)

Hi,
I have heat pump with 2 zones:

1st is named as ‘podlahovka’ (= floor heating)
2nd is ‘radiator’

img1

In home assistant I see only entity ID climate.majco_podlahovka, second zone is missing:

integrations

In HA log I see this error:

Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:520
Integration: Klimatizácia (documentation, issues)
First occurred: 20:14:26 (2 occurrences)
Last logged: 20:20:26

Platform aquarea does not generate unique IDs. ID None_heatpump already exists - ignoring climate.majco_podlahovka

If you need anything to add or test I'm here to asssist.

Marian

Error with version v0.1.0

Hello,

I have followed the steps to install and I manage to log in but I get the following error:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/aquarea/init.py", line 54, in async_setup_entry
devices = await client.get_devices(include_long_id=True)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 49, in _wrap
response = await fn(client, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aioaquarea/core.py", line 248, in get_devices
SensorMode(zone_record["heatSensor"]),
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in new
raise ve_exc
ValueError: 'Compensation curve' is not a valid SensorMode

I have:

Home Assistant Core (docker): latest version
HACS: latest version
Aquarea CZ-TAW1

I integrated @ronhks version (MQTT integration) into my home assistant and was able to control my Aquarea.

login error

I downloaded the integration, but when I try to connect I get this error:

Error setting up entry [email protected] for aquarea 11:06:25 – (ERRORE) Aquarea Smart Cloud (integrazione personalizzata) Config entry '[email protected]' for aquarea integration not ready yet: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor.; Retrying in background 11:06:20 – (AVVISO) config_entries.py Unexpected error fetching [email protected] data: API error: 1000-1503 - Failed communication with adaptor. Please make sure it is connected to the network or check again after resetting adaptor. 11:06:20 – (ERRORE) Aquarea Smart Cloud (integrazione personalizzata)

instead from the site https://aquarea-smart.panasonic.com/ I connect and I have no problem,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.