diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 7a5c7f118..eeb2f34e2 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -273,6 +273,15 @@ const cfg = { icon: 'mdi:view-array', }, }, + 'sensor_consumption': { + type: 'sensor', + object_id: 'consumption', + discovery_payload: { + unit_of_measurement: 'kWh', + value_template: '{{ value_json.consumption }}', + icon: 'mdi:flash', + }, + }, 'sensor_sensitivity': { type: 'sensor', object_id: 'sensitivity', @@ -815,7 +824,10 @@ const mapping = { 'BY 285 C': [cfg.light_brightness_colortemp_colorxy], 'HS1RC-M': [cfg.sensor_action, cfg.sensor_battery], 'SWO-WDS1PA': [cfg.binary_sensor_contact], - 'LLKZMK11LM': [switchWithPostfix('l1'), switchWithPostfix('l2')], + 'LLKZMK11LM': [ + switchWithPostfix('l1'), switchWithPostfix('l2'), + cfg.sensor_power, cfg.sensor_temperature, cfg.sensor_consumption, + ], 'LVS-SM10ZW': [cfg.binary_sensor_contact, cfg.binary_sensor_battery_low], 'HS2SK': [cfg.switch, cfg.sensor_power], '45853GE': [cfg.switch, cfg.sensor_power],