diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 8543fca0..7e734e80 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -288,6 +288,14 @@ const cfg = { value_template: '{{ value_json.action }}', }, }, + 'sensor_action_color': { + type: 'sensor', + object_id: 'action_color', + discovery_payload: { + value_template: '{{ value_json.action_color }}', + icon: 'mdi:palette', + }, + }, 'sensor_brightness': { type: 'sensor', object_id: 'brightness', @@ -1498,6 +1506,7 @@ const mapping = { 'TH1300ZB': [cfg.thermostat()], 'SP 220': [cfg.switch], '511.040': [cfg.light_brightness_colortemp_colorxy], + '511.344': [cfg.sensor_battery, cfg.sensor_action, cfg.sensor_action_color], }; Object.keys(mapping).forEach((key) => {