Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################
- # _ _ _ _
- # / \ _ _| |_ ___ _ __ ___ __ _| |_(_) ___ _ __
- # / _ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \
- # / ___ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | |
- # /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|
- #
- ###############################################################################
- - alias: Kitchen light on
- trigger:
- - platform: state
- entity_id: binary_sensor.occupancy_kitchen
- to: 'on'
- condition:
- - condition: sun
- after: sunset
- after_offset: "-01:00:00"
- action:
- - service: light.turn_on
- entity_id: light.light_001
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement