![]() |
|
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. RE: MQTT Discovery: missing state_class for power sensors in Home Assistant - admin - 10-15-2026 new fimrware have added "measurement". you can download for testing: New KCS V3.27.4_beta_20261012-010554 Test Firmware: 1. Added a manual current direction reversal setting for CT sensors. 2. Extended the maximum CT sensor channel name length to 32 characters. 3. Moved “Clear All Energy Data” to the Energy → Settings page, with separate options for “Clear All Energy Data” and “Reset Calibration Factors.” 4. Added the statistics attribute to MQTT messages reported to Home Assistant. 5. Fixed missing CRC validation in certain cases that could result in incorrect data. 6. Fixed an issue on N-series energy meters where MQTT reported incorrect zero energy readings after the initial power-up.
KCS_N30_V3.27.4_beta_20261012-010554.zip (Size: 1.09 MB / Downloads: 50)
|