Files
ad_trident/apps/global/virtualevents.yaml

21 lines
596 B
YAML

virtual_events:
module: virtualevents
class: VirtualEvents
priority: 100 # default priority app is 50, since the virtual_events doesn't create any sensor but is based on sensor created by many app, it's important it's created last
virtual_events:
good_morning:
event_name: good_morning
event_condition: not binary_sensor.is_anybody_sleeping
good_bye:
event_name: good_bye
event_condition: not binary_sensor.someone_home
turn_off_all_lights:
event_name: turn_off_all_lights
event_condition: binary_sensor.is_everybody_sleeping