Smart Home Automation Forum
add M30 to home assistant "Energy" dashboard - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-M16 / M1 / MB / M30 (https://www.kincony.com/forum/forumdisplay.php?fid=50)
+--- Thread: add M30 to home assistant "Energy" dashboard (/showthread.php?tid=5853)



add M30 to home assistant "Energy" dashboard - admin - 06-05-2024

add all "kwh sensor" these two options:
state_class: total_increasing
device_class: energy

for example:
  - platform: modbus_controller
    state_class: total_increasing
    device_class: energy
    modbus_controller_id: modbus_hub_m30
    address: 121
    register_type: holding
    name: m30_1_energy_1
    id: m30_1_energy_1
    unit_of_measurement: kWh
    accuracy_decimals: 2
    value_type: U_WORD