cjaliaga / home-assistant-aquarea

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

Implement statistics sensors #1

Open cjaliaga opened 1 year ago

cjaliaga commented 1 year ago

Add sensors for energy consumption:

Pending on https://github.com/cjaliaga/aioaquarea/issues/4.

luckow commented 1 year ago

I'm really looking forward to this.

Mavo81 commented 1 year ago

Same here, it's the most interesting feature for me.

owcazz commented 1 year ago

This is an option that I would also be happy about.

alessiovalvano commented 1 year ago

Same for me, will be great! any news?

maurilloh commented 9 months ago

Hi Cjaliaga, any news about this enhancement?

thank you very much for your work!

suprimex commented 8 months ago

Subscribed! impatiently waiting too.

cjaliaga commented 7 months ago

There's something I've been working on that I wanted to share with all of you:

image

It's still a work in progress, it requires some tweaks, testing and debugging. That said, as soon as I feel it's ready for a broader round of testing I'll publish a preview release, together with some design choices I needed to make due to the way the data is provided by the Aquarea API.

I'll also need your help to confirm a couple of things, for example with devices with more than 1 zone. I'll keep you updated 😊

cjaliaga commented 7 months ago

I just released 0.4.0 with the consumption sensors https://github.com/cjaliaga/home-assistant-aquarea/releases

I added two types of sensors, accumulated and sensors that start a new cycle every hour (ish). When there's data for the next hour (which happens few minutes past the hour, could be even 15 minutes or more), the sensor value goes to 0. I recommend using the accumulated ones (the other actually come disabled by default), the statistics are updated with the sum (variation) in both types so energy dashboards should work with both.

Please give them a try and let me know if you find anything. I'll do my best unless is a limitation of the API, on that case we might need to either ask Panasonic or live with it 😂

stephanlarsson commented 7 months ago

Just a question, no criticism. Does Panasonic provide an energy split for Aquaraa Heatumps between heating consumption and hot water production consumption?

cjaliaga commented 7 months ago

Just a question, no criticism. Does Panasonic provide an energy split for Aquaraa Heatumps between heating consumption and hot water production consumption?

Do you mean if the API provides the amount of water in liters the heat pump is consuming?

agm15 commented 7 months ago

Hello,

I would like to share some stuff i know about the Aquarea that maybe help your development.

If you sign up here (https://aquarea-service.panasonic.com/) you will have access like "tech support operator" and you will be able to receive a lot of information, and I mean it, its a lot of information, pump speed, water pressure, current consuption, resistance status, impulse temperature (for heater), return temperature (heater), and the same for the ACS blablabla. Worth checking it out.

The trick is to sign up there as tech support and granting total access to your aquarea through the normal website (https://aquarea-smart.panasonic.com/). Then you will be able to see all the information.

About obtaining it, its a bit tricky but nothing too complicated. I can share some code if needed.

Also I'd like to mention that suddenly the outside temperature sensor stopped working since this last update.

Cheers!

cjaliaga commented 7 months ago

Thanks @agm15. There has been some discussions for the past year (still going on haha) about if we want to get ourselves into trying to incorporate the Service Cloud data, if it's worth trying to use the installer access for the Home Assistant Integration or if we should limit the integration to what the Smart Cloud "public" API provides... For several different reasons, good and bad ones depending on the point of view 🙂. Happy to know your findings about how to log into the installers platform and consume the data tho. Let's move that conversation to the https://github.com/cjaliaga/aioaquarea repo.

Regarding the outdoor temperature, could you provide more details about what you mean with "stopped working"?

agm15 commented 7 months ago

About the error, it suddenly said "La integración aquarea ya no proporciona esta entidad. Si la entidad ya no está en uso, elimínala en la configuración.", something like "The aquarea integration does not provide this entity anymore. If the entity is no longer being used, remove it through the settings".

I have tried reinstalling but nothing seemed to work

raeserfisk commented 7 months ago

Excellent work on this one @cjaliaga - thank you kindly! :)

Quick question from a total noob: since we somehow integrate consumption to display kWh/hour and total I assume we could have "current power usage" displayed in W? I would love to have it available when compared to the total power usage for my house. Would this be possible?

Cheers from Sweden! :) /Kalle

cjaliaga commented 7 months ago

About the error, it suddenly said "La integración aquarea ya no proporciona esta entidad. Si la entidad ya no está en uso, elimínala en la configuración.", something like "The aquarea integration does not provide this entity anymore. If the entity is no longer being used, remove it through the settings".

I have tried reinstalling but nothing seemed to work

This is so strange. With the consumption sensors, I added the possibility of translating the entity names (including the temperature one) and I included the Spanish translation for it. But it should not delete nor remove any existing entity.

@agm15, could you give me more details about your environment? Such Home Assistant version, Home Assistant OS or container.. And also an screenshot from the device page?

image
agm15 commented 7 months ago

This is what it looks like, not even close to how it looks in your picture.

image

Im using the latest version of this addon, I believe its 0.4.1 installed through HACS. I am running HA on Docker and the version is 2013.1.0

agm15 commented 7 months ago

Nevermind, I upgraded Home Assistant to the latest version and after restarting everything now I can see all the sensors just like in your picture. Seems like my outdated version was causing some issues.

cjaliaga commented 7 months ago

Nevermind, I upgraded Home Assistant to the latest version and after restarting everything now I can see all the sensors just like in your picture. Seems like my outdated version was causing some issues.

Thanks! I updated the minimum supported version to ensure that entity name translations are supported.

francaaa commented 7 months ago

Hi Guys. @cjaliaga Thanks for this great piece of software, keep going :).

Regarding things mentioned by @agm15 - when you have access to "service portal" a lot of new information could be gathered. It was already implemented in the project:

https://github.com/lsochanowski/Aquarea2mqtt

and I'm already using it as separate systemd service which talks to my HA instance using mqtt. It is worth considering. Attaching screenshot with data provided by the aquarea-mqtt solution (mainly in the right column) ha_panasonic

.