I have a pair of Schlage zwave locks to lock at 11PM. Sometime, not all locks lock. Locks are about 15ft or less away from HA Zwave. Below is my code.
Also had similar issues with Outdoor lights not coming on. I have included that code as well.
Any suggestions?
alias: Lock Doors
description: ""
triggers:
- trigger: time
at: "23:00:00"
conditions: []
actions:
- action: lock.lock
metadata: {}
data: {}
target:
entity_id: lock.exterior_doors
mode: single
alias: Outdoor Lights On at Sunset, Off at 11PM
description: ""
triggers:
- id: "off"
at: "23:00:00"
trigger: time
- trigger: sun
event: sunset
offset: 0
id: "on"
conditions: []
actions:
- choose:
- conditions:
- condition: template
value_template: "{{ trigger.id == 'on'}}"
sequence:
- action: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.outdoor_lights
- conditions:
- condition: template
value_template: "{{trigger.id == 'off'}}"
sequence:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.outdoor_lights
default: []
