V
Size: a a a
V
ДЦ
ДЦ
ДЦ
V
ДЦ
V
ДЦ
ДЦ
ДЦ
V
Аf
ДЦ
ДЦ
НВ
- alias: Turn on light in kitchen by motion
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_kitchen
from: 'off'
to: 'on'
condition:
condition: state
entity_id: light.kitchen_light
state: 'off'
action:
- service: light.turn_on
entity_id: light.kitchen_light
- alias: Turn off light in kitchen if no motion
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_kitchen
from: 'on'
to: 'off'
for:
minutes: 2
condition:
condition: state
entity_id: light.kitchen_light
state: 'on'
action:
- service: light.turn_off
entity_id: light.kitchen_light
ДЦ
- alias: Turn on light in kitchen by motion
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_kitchen
from: 'off'
to: 'on'
condition:
condition: state
entity_id: light.kitchen_light
state: 'off'
action:
- service: light.turn_on
entity_id: light.kitchen_light
- alias: Turn off light in kitchen if no motion
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_kitchen
from: 'on'
to: 'off'
for:
minutes: 2
condition:
condition: state
entity_id: light.kitchen_light
state: 'on'
action:
- service: light.turn_off
entity_id: light.kitchen_light
Аf
- alias: Turn on light in kitchen by motion
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_kitchen
from: 'off'
to: 'on'
condition:
condition: state
entity_id: light.kitchen_light
state: 'off'
action:
- service: light.turn_on
entity_id: light.kitchen_light
- alias: Turn off light in kitchen if no motion
hide_entity: true
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.motion_kitchen
from: 'on'
to: 'off'
for:
minutes: 2
condition:
condition: state
entity_id: light.kitchen_light
state: 'on'
action:
- service: light.turn_off
entity_id: light.kitchen_light
НВ
Аf
ДЦ