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: "Porch Light Auto On"
trigger:
- platform: state
entity_id: binary_sensor.front_door
to: "on"
condition:
condition: and
conditions:
- condition: sun
after: sunset
- condition: state
entity_id: switch.front_porch_light_switch
state: "off"
action:
- service: homeassistant.turn_on
data:
entity_id: switch.front_porch_light_switch
- service: homeassistant.turn_on
data:
entity_id: input_boolean.porch_auto_on
- alias: "Porch Light Auto Off"
trigger:
- platform: state
entity_id: binary_sensor.front_door
to: "off"
for:
minutes: 3
condition:
condition: state
entity_id: input_boolean.porch_auto_on
state: "on"
action:
- service: homeassistant.turn_off
data:
entity_id: switch.front_porch_light_switch
- service: homeassistant.turn_off
data:
entity_id: input_boolean.porch_auto_on
# keep track of state
input_boolean:
porch_auto_on:
name: Downstairs Lamp Auto On