@jjudson wrote:
A bit earlier, some folks here helped me come up with a scheme to time my lights coming on when the door is unlocked by sunrise and sunset. It’s working great – except I need to add something…
The scenario is: We’re leaving the house, we turn off all of the lights, go into the foyer and unlock the door – and the lights come back on (as expected by the automation). So then we have to go back into the house and turn the lights back off again, then leave (hopefully before the deadbolt re-lock sequence times out, which will turn the lights on again).
How can I add to my code to prevent this? I would like to able to turn the lights off in the house, unlock the door and leave. The lights would not come back on again until we return home and unlock the door.
My current code is:
- id: '1578666729834' alias: Interior lights on when front door unlocks after sunset description: '' trigger: - entity_id: lock.schlage_allegion_be469_touchscreen_deadbolt_locked platform: state to: unlocked condition: - condition: or conditions: - after: sunset after_offset: "-01:30:00" condition: sun - before: sunrise condition: sun action: - scene: scene.front_door_unlock_lights_on
Posts: 6
Participants: 3