mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
nursery to girls room... finally
This commit is contained in:
@@ -47,17 +47,17 @@ This is how to actuall do it!
|
||||
```yaml
|
||||
- platform: template
|
||||
value_template: >
|
||||
{{ is_state('binary_sensor.nursery_multisensor_home_security_motion_detection','off') and states('sensor.nursery_last_motion') | int <= 300 and states('sensor.system_uptime') | int >= 5 }}
|
||||
{{ is_state('binary_sensor.girls_room_multisensor_home_security_motion_detection','off') and states('sensor.girls_room_last_motion') | int <= 300 and states('sensor.system_uptime') | int >= 5 }}
|
||||
prob_given_true: 0.8
|
||||
|
||||
- platform: template
|
||||
value_template: >
|
||||
{{ is_state('binary_sensor.nursery_multisensor_home_security_motion_detection','off') and states('sensor.nursery_last_motion') | int > 300 and states('sensor.nursery_last_motion') | int <= 600 and states('sensor.system_uptime') | int >= 5 }}
|
||||
{{ is_state('binary_sensor.girls_room_multisensor_home_security_motion_detection','off') and states('sensor.girls_room_last_motion') | int > 300 and states('sensor.girls_room_last_motion') | int <= 600 and states('sensor.system_uptime') | int >= 5 }}
|
||||
prob_given_true: 0.6
|
||||
|
||||
- platform: template
|
||||
value_template: >
|
||||
{{ is_state('binary_sensor.nursery_multisensor_home_security_motion_detection','off') and states('sensor.nursery_last_motion') | int > 600 and states('sensor.nursery_last_motion') | int <= 900 and states('sensor.system_uptime') | int >= 10 }}
|
||||
{{ is_state('binary_sensor.girls_room_multisensor_home_security_motion_detection','off') and states('sensor.girls_room_last_motion') | int > 600 and states('sensor.girls_room_last_motion') | int <= 900 and states('sensor.system_uptime') | int >= 10 }}
|
||||
prob_given_true: 0.4
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user