From b41cacd99202231cb284e9d72bde67fef80ab525 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Tue, 8 May 2018 20:20:57 +0200 Subject: [PATCH] Add homeassistant sensor_action --- lib/homeassistant.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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': {