Advertisement
Hoekeren75

Nest protect - røgalarm - rødt lys - derefter restore af lyssætning

Mar 21st, 2022
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.02 KB | None | 0 0
  1. alias: Lys_Røgalarm - rødt lys
  2. description: >-
  3.   Ved røgalarm tages et snapshot af alt lys og lyset skifter til RØDT. Når røgen
  4.   er væk skiftes tilbage til udgangspunktet.
  5. trigger:
  6.   - type: smoke
  7.     platform: device
  8.     device_id: fe850c47018711eb9681fd6ea75d7d6d
  9.     entity_id: binary_sensor.nest_protect_kokkenet_smoke_status
  10.     domain: binary_sensor
  11.     id: Røg i køkkenet
  12.   - type: no_smoke
  13.     platform: device
  14.     device_id: fe850c47018711eb9681fd6ea75d7d6d
  15.     entity_id: binary_sensor.nest_protect_kokkenet_smoke_status
  16.     domain: binary_sensor
  17.     id: Ingen røg Køkken
  18.   - type: smoke
  19.     platform: device
  20.     device_id: fe81ba15018711ebaecf79f127b175be
  21.     entity_id: binary_sensor.nest_protect_bryggerset_smoke_status
  22.     domain: binary_sensor
  23.     id: Røg i bryggerset
  24.   - type: no_smoke
  25.     platform: device
  26.     device_id: fe81ba15018711ebaecf79f127b175be
  27.     entity_id: binary_sensor.nest_protect_bryggerset_smoke_status
  28.     domain: binary_sensor
  29.     id: Ingen røg bryggerset
  30. condition: []
  31. action:
  32.   - choose:
  33.       - conditions:
  34.           - condition: trigger
  35.             id: Røg i køkkenet
  36.         sequence:
  37.           - service: scene.create
  38.             data:
  39.               scene_id: snapshot_af_alt_lys
  40.               snapshot_entities:
  41.                - light..fjer
  42.                 - light.gangen
  43.                 - light.hyldelys
  44.                 - light.loft_laura
  45.                 - light.loft_frederik
  46.                 - light.lyskaeden
  47.                 - light.extended_color_light_1
  48.                 - light.pantella
  49.                 - light.planterne
  50.                 - light.skaenk_spisestue
  51.                 - light.skaenk_tvstue
  52.                 - light.tvlampe
  53.           - delay:
  54.               hours: 0
  55.               minutes: 0
  56.               seconds: 5
  57.               milliseconds: 0
  58.           - service: scene.turn_on
  59.             target:
  60.               entity_id: scene.alt_rodt_ved_rog
  61.             metadata: {}
  62.       - conditions:
  63.           - condition: trigger
  64.             id: Røg i bryggerset
  65.         sequence:
  66.           - service: scene.create
  67.             data:
  68.               scene_id: snapshot_af_alt_lys
  69.               snapshot_entities:
  70.                - light..fjer
  71.                 - light.gangen
  72.                 - light.hyldelys
  73.                 - light.loft_laura
  74.                 - light.loft_frederik
  75.                 - light.lyskaeden
  76.                 - light.extended_color_light_1
  77.                 - light.pantella
  78.                 - light.planterne
  79.                 - light.skaenk_spisestue
  80.                 - light.skaenk_tvstue
  81.                 - light.tvlampe
  82.           - delay:
  83.               hours: 0
  84.               minutes: 0
  85.               seconds: 5
  86.               milliseconds: 0
  87.           - service: scene.turn_on
  88.             target:
  89.               entity_id: scene.alt_rodt_ved_rog
  90.             metadata: {}
  91.     default:
  92.       - service: scene.turn_on
  93.         target:
  94.           entity_id: scene.snapshot_af_alt_lys
  95.         metadata: {}
  96. mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement