Advertisement
KirboWnz

sauna lämmin script

Mar 18th, 2023 (edited)
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.49 KB | None | 0 0
  1. alias: Sauna lämmin
  2. mode: single
  3. sequence:
  4.   - service: cover.set_cover_position
  5.     data:
  6.       position: 0
  7.     target:
  8.       entity_id:
  9.        - cover.keittio
  10.         - cover.olohuone
  11.         - cover.makuuhuone
  12.   - service: adaptive_lighting.set_manual_control
  13.     data:
  14.       entity_id: switch.adaptive_lighting_keittion_valot
  15.       lights: light.keittio_kattolamput
  16.       manual_control: true
  17.   - delay:
  18.       hours: 0
  19.       minutes: 0
  20.       seconds: 2
  21.       milliseconds: 0
  22.   - service: light.turn_on
  23.     data:
  24.       transition: 2
  25.       rgb_color:
  26.        - 180
  27.         - 255
  28.         - 0
  29.       brightness_pct: 100
  30.     target:
  31.       entity_id:
  32.        - light.naytto_valot
  33.         - light.sangynpaaty
  34.         - light.tv_taso
  35.         - light.keittionvalo
  36.         - light.trophyvalo
  37.   - service: light.turn_on
  38.     data:
  39.       transition: 2
  40.       rgb_color:
  41.        - 0
  42.         - 205
  43.         - 255
  44.       brightness_pct: 100
  45.     target:
  46.       entity_id: light.sauna_valo
  47.   - service: notify.kirbo
  48.     data:
  49.       title: Sauna
  50.       message: Saunassa on (+{{ states('sensor.ruuvitag_sauna_temperature') }}°C) !
  51.   - service: script.symfonisk_tts
  52.     data:
  53.       Message: >-
  54.         Saunassa on {{ states('sensor.ruuvitag_sauna_temperature')|round }} astetta
  55.       Entities:
  56.         entity_id:
  57.          - media_player.makuuhuone_symfonisk
  58.           - media_player.olohuone_symfonisk
  59.       Volume: 50
  60.       Language: fi-FI
  61.       Gender: female
  62.       Cache: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement