-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.yaml
43 lines (41 loc) · 1.57 KB
/
config.sample.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pyscript:
apps:
occupancy_manager:
- state_entity: input_boolean.living_occupied
occupied_conditions:
- binary_sensor.home != 'off'
armed_conditions:
- binary_sensor.living_motion_counter == "on"
- binary_sensor.living_motion_tv == "on"
- binary_sensor.living_motion_over == "on"
occupied_states:
- binary_sensor.living_motion_counter == "on"
- binary_sensor.living_motion_tv == "on"
- binary_sensor.living_motion_over == "on"
- media_player.living_tv == "playing"
state_triggers:
- light.living_overhead == 'on' and light.living_overhead.old == 'off'
- light.living_tv_strip == 'on' and light.living_tv_strip.old == 'off'
timeout: 600
# OR
pyscript:
apps:
occupancy_manager: {}
apps_list:
- app: occupancy_manager
state_entity: input_boolean.living_occupied
occupied_conditions:
- binary_sensor.home != 'off'
armed_conditions:
- binary_sensor.living_motion_counter == "on"
- binary_sensor.living_motion_tv == "on"
- binary_sensor.living_motion_over == "on"
occupied_states:
- binary_sensor.living_motion_counter == "on"
- binary_sensor.living_motion_tv == "on"
- binary_sensor.living_motion_over == "on"
- media_player.living_tv == "playing"
state_triggers:
- light.living_overhead == 'on' and light.living_overhead.old == 'off'
- light.living_tv_strip == 'on' and light.living_tv_strip.old == 'off'
timeout: 600