mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Increase timeout for basement bathroom fan to 5min
Add 3sec off delay to basement bathroom motion trigger
This commit is contained in:
parent
bcc3a5a15a
commit
20c789b3cd
@ -69,6 +69,22 @@ binary_sensor:
|
|||||||
filters:
|
filters:
|
||||||
- delayed_off: 30s
|
- delayed_off: 30s
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
id: motion_delay_5m
|
||||||
|
lambda: return id(motion).state;
|
||||||
|
filters:
|
||||||
|
- delayed_off: 5min
|
||||||
|
on_release:
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
binary_sensor.is_off: trigger_humidity
|
||||||
|
then:
|
||||||
|
- homeassistant.service:
|
||||||
|
service: homeassistant.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: fan.basement_bathroom_fan
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
id: motion_delay_20m
|
id: motion_delay_20m
|
||||||
lambda: return id(motion).state;
|
lambda: return id(motion).state;
|
||||||
@ -84,6 +100,8 @@ binary_sensor:
|
|||||||
else {
|
else {
|
||||||
return id(motion_delay_20m).state;
|
return id(motion_delay_20m).state;
|
||||||
}
|
}
|
||||||
|
filters:
|
||||||
|
- delayed_off: 3s
|
||||||
on_release:
|
on_release:
|
||||||
then:
|
then:
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
@ -98,14 +116,6 @@ binary_sensor:
|
|||||||
service: homeassistant.turn_off
|
service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: switch.basement_bathroom_heater
|
entity_id: switch.basement_bathroom_heater
|
||||||
- if:
|
|
||||||
condition:
|
|
||||||
binary_sensor.is_off: trigger_humidity
|
|
||||||
then:
|
|
||||||
- homeassistant.service:
|
|
||||||
service: homeassistant.turn_off
|
|
||||||
data:
|
|
||||||
entity_id: fan.basement_bathroom_fan
|
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
id: trigger_humidity
|
id: trigger_humidity
|
||||||
|
Loading…
Reference in New Issue
Block a user