Skip to content

Commit

Permalink
fix(hass): lock payload and state (#168)
Browse files Browse the repository at this point in the history
* add support for new driver, using integrer instead of true/false

* lint: autofix

Co-authored-by: V. Aretakis <v.aretakis@elsevier.com>
  • Loading branch information
varet80 and aretakisv authored Jan 7, 2021
1 parent 8f326de commit 04952ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hass/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,11 @@ module.exports = {
object_id: 'lock',
discovery_payload: {
command_topic: true,
state_locked: 'true',
state_unlocked: 'false',
value_template:
'{% if value_json.value == false %} false {% elif value_json.value == true %} true {% else %} unknown {% endif %}'
state_locked: 255,
state_unlocked: 0,
payload_lock: 255,
payload_unlock: 0,
value_template: '{{ value_json.value }}'
}
},

Expand Down

0 comments on commit 04952ea

Please sign in to comment.