Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
automation:
- alias: "Lamp Auto On"
trigger:
- platform: state
entity_id: binary_sensor.stairs_motion_sensor
to: "on"
condition:
condition: and
conditions:
- condition: sun
before: sunrise
- condition: time
after: '04:30:00'
action:
- service: light.turn_on
data:
entity_id: light.downstairs_lamp
brightness: 200
transition: 5
- service: switch.turn_on
data:
entity_id: switch.giraffe_lights
- service: input_boolean.turn_on
data:
entity_id: input_boolean.lamp_auto_on
- alias: "Lamp Auto Off"
trigger:
- platform: sun
event: sunrise
offset: '00:30:00'
condition:
condition: state
entity_id: input_boolean.lamp_auto_on
state: "on"
action:
- service: light.turn_off
data:
entity_id: light.downstairs_lamp
- service: input_boolean.turn_off
data:
entity_id: input_boolean.lamp_auto_on
# keep track of state
input_boolean:
lamp_auto_on:
name: Porch Light Auto On