Skip to content

Instantly share code, notes, and snippets.

@ZerNico
Last active April 29, 2021 15:37
Show Gist options
  • Select an option

  • Save ZerNico/1702506a60b6d85be06c6d3722829bf3 to your computer and use it in GitHub Desktop.

Select an option

Save ZerNico/1702506a60b6d85be06c6d3722829bf3 to your computer and use it in GitHub Desktop.
Control lights with a Mueller Licht Tint RGB Remote
blueprint:
name: Müller Licht Tint Remote
description: |
Müller Light Tint Remote.
domain: automation
input:
remote:
name: Remote
description: Müller Licht Tint remote to use
selector:
entity:
integration: mqtt
domain: sensor
target_light:
name: Light(s)
description: The light(s) to control
selector:
target:
entity:
domain: light
brightness:
name: Brightness
description: Brightness of the light(s) when turning on
default: 50
selector:
number:
min: 0.0
max: 100.0
mode: slider
step: 1.0
unit_of_measurement: "%"
step_value:
name: Brightness increment/decrement percent
description: Set the step percent value for brightness and color warmth
default: 10
selector:
number:
min: 1.0
max: 20.0
mode: slider
step: 1.0
unit_of_measurement: "%"
mode: restart
max_exceeded: silent
trigger:
platform: state
entity_id: !input 'remote'
attribute: action
action:
- variables:
command: '{{ trigger.to_state.state }}'
- choose:
- conditions: '{{ command == ''on''}}'
sequence:
- service: light.toggle
target: !input target_light
- conditions: '{{ command == ''brightness_up_click''}}'
sequence:
- service: light.toggle
target: !input target_light
data:
brightness_step_pct: "{{ step_value }}"
transition: 1
- conditions: '{{ command == ''brightness_down_click''}}'
sequence:
- service: light.toggle
target: !input target_light
data:
brightness_step_pct: "-{{ step_value }}"
transition: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment