cjaliaga / home-assistant-aquarea

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

Consumption Unit? #109

Open MorVes opened 3 months ago

MorVes commented 3 months ago

The problem

I wonder if the unit used for consumption should be W instead of Wh?

Skærmbillede 2024-04-03 172823

What version of Home Assistant Core are you running?

2024.3.3

What type of installation are you running?

Home Assistant OS

What version of the integration are you running?

0.7.2

Device description

panasonic 9 kw monoblock

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

cjaliaga commented 3 months ago

Hi @MorVes,

The integration doesn't expose any power consumption sensor. Aquarea API only provides us with the energy consumption (kWh) and those are the units the entities use.

MorVes commented 3 months ago

I believe you, but then I don't understand this:

Screenshot_20240404_070133_io homeassistant companion android

adamus-tork commented 3 months ago

Think of this like your car give you the average fuel consumption of your last trip. Nobody can tell what was the exact value of the injected fuel into the engine at any moment during the trip.

(I'm just guessing from the previous answers -> ) The API provies with averages (kWh) what you see in HA is most probably an interpolated graph.

cjaliaga commented 3 months ago

Thanks @adamus-tork. For consumption we have 2 type of sensors, both are populated with the same data but they act in a different way. Both are total increasing https://developers.home-assistant.io/docs/core/entity/sensor/#state-class-total_increasing, however this one resets the cycle every hour (in fact when the data for the next hour starts populating). That's the reason you see that representation instead of seeing the accumulated.

That said, I believe there are some corner cases where the consumption sensors don't reflect the exact consumption, we have some reports of strange situations. I'll like to revisit them when I have some time, however for the time being, is the best that I could think of with the way Panasonic provides the data.