Skip to content

Commit

Permalink
fixed sensor unavailable bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FutureTense committed Oct 29, 2020
1 parent 2e0742b commit 1b57d97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/lock-manager/const.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DOMAIN = "lock-manager"
VERSION = "0.0.36"
VERSION = "0.0.37"
ISSUE_URL = "https://github.com/FutureTense/lock-manager"
PLATFORM = "sensor"
ZWAVE_NETWORK = "zwave_network"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/lock-manager/lock_manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ automation:
state: "off"
- condition: template
value_template: >-
{{ states("sensor.LOCKNAME_code_slot_TEMPLATENUM") != "unknown" }}
{{ states("sensor.LOCKNAME_code_slot_TEMPLATENUM") != "unknown" and states("sensor.LOCKNAME_code_slot_TEMPLATENUM") != "unavailable" }}
action:
- choose:
- conditions:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/lock-manager/lock_manager_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
timer:

LOCKNAME_refresh_lock_node:
duration: '00:05:00'
duration: '00:15:00'

############### input_text: #################
input_text:
Expand Down

0 comments on commit 1b57d97

Please sign in to comment.