Hi,
I am using ebusd with the official configuration via an eBUS Adapter Shield C6 and am encountering an MQTT discovery validation error in Home Assistant regarding the heat pump (ehp) circuit.
The data point FirstHcEnergySavingPumpOffTime is being exported with the unit min (minutes). However, the generated MQTT discovery payload incorrectly assigns it the device_class: energy and state_class: total_increasing.
Since Home Assistant strictly validates these classes, it rejects the sensor creation entirely and throws the following error in the logs:
"Error 'The unit of measurement min is not valid together with device class energy' when processing MQTT discovery message topic: 'homeassistant/sensor/ebusd_ehp_FirstHcEnergySavingPumpOffTime_value/config'"
Suggested Fix:
In the corresponding CSV configuration file for the ehp, the mapping needs an update.
- The
device_class should be changed to duration (or removed entirely).
- The
state_class: total_increasing should likely be removed as well, since this represents a time value/setting and not an accumulating energy meter.
Thanks for your great work and for looking into this!
Hi,
I am using ebusd with the official configuration via an eBUS Adapter Shield C6 and am encountering an MQTT discovery validation error in Home Assistant regarding the heat pump (
ehp) circuit.The data point
FirstHcEnergySavingPumpOffTimeis being exported with the unitmin(minutes). However, the generated MQTT discovery payload incorrectly assigns it thedevice_class: energyandstate_class: total_increasing.Since Home Assistant strictly validates these classes, it rejects the sensor creation entirely and throws the following error in the logs:
"Error 'The unit of measurement
minis not valid together with device classenergy' when processing MQTT discovery message topic: 'homeassistant/sensor/ebusd_ehp_FirstHcEnergySavingPumpOffTime_value/config'"Suggested Fix:
In the corresponding CSV configuration file for the
ehp, the mapping needs an update.device_classshould be changed toduration(or removed entirely).state_class: total_increasingshould likely be removed as well, since this represents a time value/setting and not an accumulating energy meter.Thanks for your great work and for looking into this!