From 8e543606720c8495ef478e7ba2b2f49a66608b6f Mon Sep 17 00:00:00 2001 From: "V. Aret" Date: Thu, 11 Feb 2021 04:24:36 +0100 Subject: [PATCH 1/2] replace barrier states with integers --- hass/configurations.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hass/configurations.js b/hass/configurations.js index b75f6bbda9d..f60681032e1 100755 --- a/hass/configurations.js +++ b/hass/configurations.js @@ -137,13 +137,13 @@ module.exports = { state_topic: true, value_template: '{{ value_json.value }}', device_class: 'garage', - payload_open: 'Opened', - payload_close: 'Closed', - payload_stop: 'Stopped', - state_open: 'Opened', - state_opening: 'Opening', - state_closed: 'Closed', - state_closing: 'Closing' + payload_open: 255, + payload_close: 0, + payload_stop: 253, + state_open: 255, + state_opening: 254, + state_closed: 0, + state_closing: 252 } }, From a5d1114d58363eafe29c4f3a9af163fb704c75ba Mon Sep 17 00:00:00 2001 From: "V. Aret" Date: Thu, 11 Feb 2021 06:09:25 +0100 Subject: [PATCH 2/2] add new command states on garage doors --- hass/configurations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hass/configurations.js b/hass/configurations.js index f60681032e1..52b2c0621b0 100755 --- a/hass/configurations.js +++ b/hass/configurations.js @@ -128,7 +128,7 @@ module.exports = { payload_close: '0' } }, - + // Barrier operator support for zwave-js (numeric commands/states) barrier_state: { type: 'cover', object_id: 'barrier_state',