Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: 'Movement in kitchen and is dark turn on gateway lamp'
- trigger:
- - platform: state
- entity_id: binary_sensor.konyha_mozgas
- from: 'off'
- to: 'on'
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: light.gateway_light_04cfxxxxxxxx
- state: "off"
- - condition: numeric_state
- entity_id: sensor.konyha_feny
- below: 1
- action:
- - service: light.turn_on
- entity_id: light.gateway_light_04cfxxxxxxxx
- data:
- rgb_color: [255, 0, 0]
- brightness: 100
- - condition:
- condition: and
- conditions:
- - condition: state
- entity_id: light.gateway_light_04cfxxxxxxxx
- state: 'on'
- - condition: state
- entity_id: binary_sensor.konyha_mozgas
- state: 'off'
- for:
- seconds: 60
- - service: light.turn_off
- entity_id: light.gateway_light_04cfxxxxxxxx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement