AS
Size: a a a
AS
F
AS
AS
V
- alias: Bath fan autostop # Выключить вентилятор авто (Ванная)
initial_state: 'on'
trigger:
- entity_id: light.light_bath
platform: state
from: 'on'
to: 'off'
for: 00:03:00
- entity_id: sensor.humidity_bath
platform: numeric_state
below: '70'
for: 00:03:00
- entity_id: fan.fan_bath
platform: state
from: 'off'
to: 'on'
for: 00:05:00
condition:
condition: and
conditions:
- condition: state
entity_id: light.light_bath
state: 'off'
- condition: or
conditions:
- condition: template
value_template: '{{ as_timestamp(now()) - as_timestamp(states.fan.fan_bath.last_updated) | int > 600 }}'
- condition: numeric_state
entity_id: sensor.humidity_bath
below: '70'
action:
- data:
entity_id: fan.fan_bath
service: fan.turn_off
F
- alias: Bath fan autostop # Выключить вентилятор авто (Ванная)
initial_state: 'on'
trigger:
- entity_id: light.light_bath
platform: state
from: 'on'
to: 'off'
for: 00:03:00
- entity_id: sensor.humidity_bath
platform: numeric_state
below: '70'
for: 00:03:00
- entity_id: fan.fan_bath
platform: state
from: 'off'
to: 'on'
for: 00:05:00
condition:
condition: and
conditions:
- condition: state
entity_id: light.light_bath
state: 'off'
- condition: or
conditions:
- condition: template
value_template: '{{ as_timestamp(now()) - as_timestamp(states.fan.fan_bath.last_updated) | int > 600 }}'
- condition: numeric_state
entity_id: sensor.humidity_bath
below: '70'
action:
- data:
entity_id: fan.fan_bath
service: fan.turn_off
AS
- alias: Bath fan autostop # Выключить вентилятор авто (Ванная)
initial_state: 'on'
trigger:
- entity_id: light.light_bath
platform: state
from: 'on'
to: 'off'
for: 00:03:00
- entity_id: sensor.humidity_bath
platform: numeric_state
below: '70'
for: 00:03:00
- entity_id: fan.fan_bath
platform: state
from: 'off'
to: 'on'
for: 00:05:00
condition:
condition: and
conditions:
- condition: state
entity_id: light.light_bath
state: 'off'
- condition: or
conditions:
- condition: template
value_template: '{{ as_timestamp(now()) - as_timestamp(states.fan.fan_bath.last_updated) | int > 600 }}'
- condition: numeric_state
entity_id: sensor.humidity_bath
below: '70'
action:
- data:
entity_id: fan.fan_bath
service: fan.turn_off
V
AS
V
F
V
F
V
V
F
V
F
O
F