Guest User

Untitled

a guest
Dec 18th, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.07 KB | None | 0 0
  1. alias: Styrbar Test
  2. description: ""
  3. mode: restart
  4. triggers:
  5.   - entity_id:
  6.      - sensor.styrbar_action
  7.     to: "on"
  8.     id: "on"
  9.     trigger: state
  10.   - entity_id:
  11.      - sensor.styrbar_action
  12.     to: "off"
  13.     id: "off"
  14.     trigger: state
  15.   - entity_id:
  16.      - sensor.styrbar_action
  17.     to: arrow_left_click
  18.     id: left
  19.     trigger: state
  20.   - entity_id:
  21.      - sensor.styrbar_action
  22.     to: arrow_right_click
  23.     id: right
  24.     trigger: state
  25.   - entity_id:
  26.      - sensor.styrbar_action
  27.     to: brightness_move_up
  28.     id: brightness_up
  29.     trigger: state
  30.   - entity_id:
  31.      - sensor.styrbar_action
  32.     to: brightness_move_down
  33.     id: brightness_down
  34.     trigger: state
  35.   - entity_id:
  36.      - sensor.styrbar_action
  37.     to: arrow_right_hold
  38.     id: arrow_right_hold
  39.     trigger: state
  40.   - entity_id:
  41.      - sensor.styrbar_action
  42.     to: arrow_left_hold
  43.     id: arrow_left_hold
  44.     trigger: state
  45.   - entity_id:
  46.      - sensor.styrbar_action
  47.     to: brightness_stop
  48.     id: brightness_stop
  49.     trigger: state
  50. conditions: []
  51. actions:
  52.   - choose:
  53.       - conditions:
  54.           - condition: trigger
  55.             id:
  56.              - "on"
  57.         sequence:
  58.           - metadata: {}
  59.             data: {}
  60.             target:
  61.               entity_id: "{{states('input_select.testdropdown')}}"
  62.             action: light.turn_on
  63.       - conditions:
  64.           - condition: trigger
  65.             id:
  66.              - "off"
  67.         sequence:
  68.           - metadata: {}
  69.             data: {}
  70.             target:
  71.               entity_id: "{{states('input_select.testdropdown')}}"
  72.             action: light.turn_off
  73.       - conditions:
  74.           - condition: trigger
  75.             id:
  76.              - left
  77.         sequence:
  78.           - metadata: {}
  79.             data:
  80.               cycle: true
  81.             target:
  82.               entity_id: input_select.testdropdown
  83.             action: input_select.select_previous
  84.       - conditions:
  85.           - condition: trigger
  86.             id:
  87.              - right
  88.         sequence:
  89.           - target:
  90.               entity_id:
  91.                - input_select.testdropdown
  92.             data:
  93.               cycle: true
  94.             action: input_select.select_next
  95.       - conditions:
  96.           - condition: trigger
  97.             id:
  98.              - brightness_up
  99.         sequence:
  100.           - repeat:
  101.               sequence:
  102.                 - metadata: {}
  103.                   data:
  104.                     brightness: >-
  105.                       {{
  106.                       state_attr(states('input_select.testdropdown'),'brightness')
  107.                       +5 }}
  108.                   target:
  109.                     entity_id: "{{ states('input_select.testdropdown') }}"
  110.                   action: light.turn_on
  111.                 - delay:
  112.                     hours: 0
  113.                     minutes: 0
  114.                     seconds: 0
  115.                     milliseconds: 100
  116.               while: []
  117.       - conditions:
  118.           - condition: trigger
  119.             id:
  120.              - brightness_down
  121.         sequence:
  122.           - repeat:
  123.               sequence:
  124.                 - metadata: {}
  125.                   data:
  126.                     brightness: >-
  127.                       {{
  128.                       state_attr(states('input_select.testdropdown'),'brightness')
  129.                       -5 }}
  130.                   target:
  131.                     entity_id: "{{ states('input_select.testdropdown') }}"
  132.                   action: light.turn_on
  133.                 - delay:
  134.                     hours: 0
  135.                     minutes: 0
  136.                     seconds: 0
  137.                     milliseconds: 100
  138.               while: []
  139.       - conditions:
  140.           - condition: trigger
  141.             id:
  142.              - arrow_right_hold
  143.               - arrow_left_hold
  144.         sequence:
  145.           - metadata: {}
  146.             target:
  147.               entity_id: scene.meeting
  148.             action: scene.turn_on
  149.             data: {}
  150.       - conditions:
  151.           - condition: trigger
  152.             id:
  153.              - brightness_stop
  154.         sequence:
  155.           - stop: ""
  156.  
Advertisement
Add Comment
Please, Sign In to add comment