![]() |
|
MQTT Discovery: missing state_class for power sensors in Home Assistant - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=87) +--- Forum: N30 (https://www.kincony.com/forum/forumdisplay.php?fid=97) +--- Thread: MQTT Discovery: missing state_class for power sensors in Home Assistant (/showthread.php?tid=9741) |
MQTT Discovery: missing state_class for power sensors in Home Assistant - dominique_manas@hotmail.com - 08-13-2026 Hello, I noticed an issue with the MQTT Discovery configuration generated by the N30 when the device is integrated into Home Assistant. For example, Home Assistant creates the following entity: Code: sensor.n30_d0cf13020244_energy2_ch2_powerCode: {Code: device_class: powerCode: state_class: measurementCode: "stat_cla": "measurement"Code: state_class: measurementCode: sensor.n30_bl0910_1_power_6Code: state_classThis suggests that the issue is specific to some of the MQTT Discovery configurations generated by the N30 firmware, particularly the Code: energy*_ch*_powerCould you please check the N30 firmware and add: Code: "stat_cla": "measurement"The expected configuration would be: Code: "unit_of_meas": "W",Thank you. RE: MQTT Discovery: missing state_class for power sensors in Home Assistant - admin - 08-13-2026 we will check and feedback later. |