parent
0f4041c31d
commit
5fdc5762da
@ -0,0 +1,9 @@
|
|||||||
|
- alias: 'Carlo has left the building'
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: device_tracker.carlo
|
||||||
|
state: not_home
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.office_lamp
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
- alias: 'Holiday Stuff on'
|
||||||
|
trigger:
|
||||||
|
- platform: sun
|
||||||
|
event: sunset
|
||||||
|
- platform: event
|
||||||
|
event_type: halloween_lights_on
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.halloween_lights_den
|
||||||
|
|
||||||
|
- alias: 'Holiday Stuff off'
|
||||||
|
trigger:
|
||||||
|
- platform: sun
|
||||||
|
event: sunrise
|
||||||
|
offset: '-03:00:00'
|
||||||
|
- platform: event
|
||||||
|
event_type: halloween_lights_off
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.halloween_lights_den
|
||||||
|
|
||||||
Loading…
Reference in new issue