Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Lys_Røgalarm - rødt lys
- description: >-
- Ved røgalarm tages et snapshot af alt lys og lyset skifter til RØDT. Når røgen
- er væk skiftes tilbage til udgangspunktet.
- trigger:
- - type: smoke
- platform: device
- device_id: fe850c47018711eb9681fd6ea75d7d6d
- entity_id: binary_sensor.nest_protect_kokkenet_smoke_status
- domain: binary_sensor
- id: Røg i køkkenet
- - type: no_smoke
- platform: device
- device_id: fe850c47018711eb9681fd6ea75d7d6d
- entity_id: binary_sensor.nest_protect_kokkenet_smoke_status
- domain: binary_sensor
- id: Ingen røg Køkken
- - type: smoke
- platform: device
- device_id: fe81ba15018711ebaecf79f127b175be
- entity_id: binary_sensor.nest_protect_bryggerset_smoke_status
- domain: binary_sensor
- id: Røg i bryggerset
- - type: no_smoke
- platform: device
- device_id: fe81ba15018711ebaecf79f127b175be
- entity_id: binary_sensor.nest_protect_bryggerset_smoke_status
- domain: binary_sensor
- id: Ingen røg bryggerset
- condition: []
- action:
- - choose:
- - conditions:
- - condition: trigger
- id: Røg i køkkenet
- sequence:
- - service: scene.create
- data:
- scene_id: snapshot_af_alt_lys
- snapshot_entities:
- - light..fjer
- - light.gangen
- - light.hyldelys
- - light.loft_laura
- - light.loft_frederik
- - light.lyskaeden
- - light.extended_color_light_1
- - light.pantella
- - light.planterne
- - light.skaenk_spisestue
- - light.skaenk_tvstue
- - light.tvlampe
- - delay:
- hours: 0
- minutes: 0
- seconds: 5
- milliseconds: 0
- - service: scene.turn_on
- target:
- entity_id: scene.alt_rodt_ved_rog
- metadata: {}
- - conditions:
- - condition: trigger
- id: Røg i bryggerset
- sequence:
- - service: scene.create
- data:
- scene_id: snapshot_af_alt_lys
- snapshot_entities:
- - light..fjer
- - light.gangen
- - light.hyldelys
- - light.loft_laura
- - light.loft_frederik
- - light.lyskaeden
- - light.extended_color_light_1
- - light.pantella
- - light.planterne
- - light.skaenk_spisestue
- - light.skaenk_tvstue
- - light.tvlampe
- - delay:
- hours: 0
- minutes: 0
- seconds: 5
- milliseconds: 0
- - service: scene.turn_on
- target:
- entity_id: scene.alt_rodt_ved_rog
- metadata: {}
- default:
- - service: scene.turn_on
- target:
- entity_id: scene.snapshot_af_alt_lys
- metadata: {}
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement