From 0ede845b98aacffa4fc0e3de999b3ad3567b00d0 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Wed, 25 Mar 2020 10:36:31 +0100 Subject: [PATCH] fix: Locks hass discovery #294 --- hass/configurations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hass/configurations.js b/hass/configurations.js index faa716bdeb9..5a44f87eb48 100755 --- a/hass/configurations.js +++ b/hass/configurations.js @@ -239,8 +239,8 @@ module.exports = { object_id: 'lock', discovery_payload: { command_topic: true, - state_locked: true, - state_unlocked: false, + state_locked: 'true', + state_unlocked: 'false', value_template: '{% if value_json.value == false %} false {% elif value_json.value == true %} true {% else %} unknown {% endif %}' } },