diff --git a/lib/homeassistant.js b/lib/homeassistant.js index f9e7db573..fd929cbdc 100644 --- a/lib/homeassistant.js +++ b/lib/homeassistant.js @@ -95,6 +95,15 @@ const configurations = { value_template: '{{ value_json.power }}', } }, + 'sensor_action': { + type: 'sensor', + object_id: 'action', + discovery_payload: { + icon: 'mdi:cube', + value_template: '{{ value_json.action }}', + json_attributes: ['battery'], + } + }, // Light 'light_brightness_colortemp_xy': {