Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Styrbar Test
- description: ""
- mode: restart
- triggers:
- - entity_id:
- - sensor.styrbar_action
- to: "on"
- id: "on"
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: "off"
- id: "off"
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: arrow_left_click
- id: left
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: arrow_right_click
- id: right
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: brightness_move_up
- id: brightness_up
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: brightness_move_down
- id: brightness_down
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: arrow_right_hold
- id: arrow_right_hold
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: arrow_left_hold
- id: arrow_left_hold
- trigger: state
- - entity_id:
- - sensor.styrbar_action
- to: brightness_stop
- id: brightness_stop
- trigger: state
- conditions: []
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - "on"
- sequence:
- - metadata: {}
- data: {}
- target:
- entity_id: "{{states('input_select.testdropdown')}}"
- action: light.turn_on
- - conditions:
- - condition: trigger
- id:
- - "off"
- sequence:
- - metadata: {}
- data: {}
- target:
- entity_id: "{{states('input_select.testdropdown')}}"
- action: light.turn_off
- - conditions:
- - condition: trigger
- id:
- - left
- sequence:
- - metadata: {}
- data:
- cycle: true
- target:
- entity_id: input_select.testdropdown
- action: input_select.select_previous
- - conditions:
- - condition: trigger
- id:
- - right
- sequence:
- - target:
- entity_id:
- - input_select.testdropdown
- data:
- cycle: true
- action: input_select.select_next
- - conditions:
- - condition: trigger
- id:
- - brightness_up
- sequence:
- - repeat:
- sequence:
- - metadata: {}
- data:
- brightness: >-
- {{
- state_attr(states('input_select.testdropdown'),'brightness')
- +5 }}
- target:
- entity_id: "{{ states('input_select.testdropdown') }}"
- action: light.turn_on
- - delay:
- hours: 0
- minutes: 0
- seconds: 0
- milliseconds: 100
- while: []
- - conditions:
- - condition: trigger
- id:
- - brightness_down
- sequence:
- - repeat:
- sequence:
- - metadata: {}
- data:
- brightness: >-
- {{
- state_attr(states('input_select.testdropdown'),'brightness')
- -5 }}
- target:
- entity_id: "{{ states('input_select.testdropdown') }}"
- action: light.turn_on
- - delay:
- hours: 0
- minutes: 0
- seconds: 0
- milliseconds: 100
- while: []
- - conditions:
- - condition: trigger
- id:
- - arrow_right_hold
- - arrow_left_hold
- sequence:
- - metadata: {}
- target:
- entity_id: scene.meeting
- action: scene.turn_on
- data: {}
- - conditions:
- - condition: trigger
- id:
- - brightness_stop
- sequence:
- - stop: ""
Advertisement
Add Comment
Please, Sign In to add comment