fredrik_persson_

Haloween 01

Oct 13th, 2024 (edited)
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.16 KB | None | 0 0
  1. alias: Halloween
  2. description: ""
  3. triggers:
  4.   - trigger: state
  5.     entity_id:
  6.      - input_boolean.dummy_light1
  7.     to: "on"
  8.     enabled: false
  9.   - trigger: state
  10.     entity_id:
  11.      - input_button.halloween_trigger_01
  12. conditions: []
  13. actions:
  14.   - sequence:
  15.       - action: media_player.volume_mute
  16.         metadata: {}
  17.         data:
  18.           is_volume_muted: true
  19.         target:
  20.           entity_id: media_player.jbl_link_portable
  21.       - action: media_player.turn_on
  22.         metadata: {}
  23.         data: {}
  24.         target:
  25.           entity_id: media_player.jbl_link_portable
  26.       - action: light.turn_off
  27.         metadata: {}
  28.         data: {}
  29.         target:
  30.           area_id: tradgard
  31.       - delay:
  32.           hours: 0
  33.           minutes: 0
  34.           seconds: 4
  35.           milliseconds: 0
  36.       - action: media_player.volume_mute
  37.         metadata: {}
  38.         data:
  39.           is_volume_muted: false
  40.         target:
  41.           entity_id: media_player.jbl_link_portable
  42.       - parallel:
  43.           - action: light.turn_on
  44.             metadata: {}
  45.             data:
  46.               rgb_color:
  47.                - 255
  48.                 - 255
  49.                 - 255
  50.               brightness_pct: 100
  51.             target:
  52.               entity_id:
  53.                - light.fredrik_bulb_desk
  54.           - action: media_player.play_media
  55.             data:
  56.               media_content_type: music
  57.               media_content_id: >-
  58.                 "url to music"
  59.             target:
  60.               entity_id: media_player.jbl_link_portable
  61.       - delay:
  62.           hours: 0
  63.           minutes: 0
  64.           seconds: 0
  65.           milliseconds: 500
  66.       - action: light.turn_off
  67.         metadata: {}
  68.         data: {}
  69.         target:
  70.           entity_id: light.fredrik_bulb_desk
  71.       - delay:
  72.           hours: 0
  73.           minutes: 0
  74.           seconds: 12
  75.           milliseconds: 0
  76.       - parallel:
  77.           - action: light.turn_on
  78.             metadata: {}
  79.             data:
  80.               rgb_color:
  81.                - 255
  82.                 - 0
  83.                 - 0
  84.               brightness_pct: 100
  85.             target:
  86.               entity_id:
  87.                - light.fredrik_bulb_desk
  88.           - action: media_player.play_media
  89.             target:
  90.               entity_id:
  91.                - media_player.jbl_link_portable
  92.             data:
  93.               media_content_type: music
  94.               media_content_id: >-
  95.                 "url to music"
  96.       - delay:
  97.           hours: 0
  98.           minutes: 0
  99.           seconds: 24
  100.           milliseconds: 0
  101.       - action: light.turn_off
  102.         metadata: {}
  103.         data: {}
  104.         target:
  105.           entity_id: light.fredrik_bulb_desk
  106.       - delay:
  107.           hours: 0
  108.           minutes: 0
  109.           seconds: 4
  110.           milliseconds: 0
  111.       - action: light.turn_on
  112.         metadata: {}
  113.         data:
  114.           rgb_color:
  115.            - 255
  116.             - 0
  117.             - 0
  118.         target:
  119.           area_id: tradgard
  120.         enabled: false
  121.       - action: scene.turn_on
  122.         metadata: {}
  123.         service: scene.turn_on
  124.         target:
  125.           entity_id: scene.outdoor_lights
  126. mode: single
  127.  
Advertisement
Add Comment
Please, Sign In to add comment