danielperna84 / hahomematic

Python 3 Interface for Home Assistant to interact with HomeMatic devices
MIT License
130 stars 22 forks source link

Configuration for gas_flow parameters of HmIP-ESI throws warning #1453

Closed dawnbreak closed 6 months ago

dawnbreak commented 6 months ago

I agree to the following

The problem

After updating the latest version I see a new warning in the logs about the new GAS_FLOW parameter for HmIP-ESI.

using state class 'measurement' which is impossible considering device class ('gas')

What version of HomematicIP (local) has the issue?

1.57.0

What was the last working version of HomematicIP (local)?

1.56.0

What type of installation are you running?

Home Assistant Container

What type of installation are you running for your homematic backend?

CCU3

Which version of your homematic backend are you running?

3.73.9

What hardware are you running for your system?

No response

Which config details do you use

Which interfaces do you use?

Diagnostics information (no logs here)

No response

Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!

2024-03-05 08:18:13.552 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.hmip_esi_gas_gas_flow (<class 'custom_components.homematicip_local.sensor.HaHomematicSensor'>) is using state class 'measurement' which is impossible considering device class ('gas') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/danielperna84/hahomematic/issues

Additional information

In CCU3 I see that GAS_FLOW is measured in m³/h.

SukramJ commented 6 months ago

This is related to #1445

Please attach the device definition as described here.