Müller Licht tint remote

Sorry, it has been a while. I do not remember the reason for the value 45875. I guess I found some reference for that.

I have, however, adjusted the blueprint with the post from @janrg. It turns out, I simply had my event codes wrong.

For me, I can now:

  • Select color
  • Adjust color temperature
  • Adjust brightness
  • Select one of the six scenes
blueprint:
  name: Muller Licht Remote
  description: Control lights with a Muller Licht Tint RGB Remote
  domain: automation
  input:
    remote:
      name: Remote
      description: Muller Licht Tint remote to use
      selector:
        device:
          integration: zha
          manufacturer: MLI
          model: ZBT-Remote-ALL-RGBW
    target_light:
      name: Light(s)
      description: The light(s) to control
      selector:
        target:
          entity:
            domain: light
    colour_ref:
      name: Colour Temperature Refence
      description: The light to use as a colour temp reference
      selector:
        entity:
          domain: light
    working_scene:
      name: Working Scene
      description: The scene to be triggered when the Working Light button is pressed
      selector:
        entity:
          domain: scene
    sunset_scene:
      name: Sunset Scene
      description: The scene to be triggered when the Sunset button is pressed
      selector:
        entity:
          domain: scene
    party_scene:
      name: Party Scene
      description: The scene to be triggered when the Party button is pressed
      selector:
        entity:
          domain: scene
    night_scene:
      name: Night Scene
      description: The scene to be triggered when the Night button is pressed
      selector:
        entity:
          domain: scene
    campfire_scene:
      name: Campfire Scene
      description: The scene to be triggered when the Campfire button is pressed
      selector:
        entity:
          domain: scene
    romantic_scene:
      name: Romantic Scene
      description: The scene to be triggered when the Romantic button is pressed
      selector:
        entity:
          domain: scene
    force_brightness:
      name: Force turn on brightness
      description: Force the brightness to the set level below, when the "on" button
        on the remote is pushed and lights turn on.
      default: false
      selector:
        boolean: {}
    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: '%'
  source_url: https://community.home-assistant.io/t/muller-licht-tint-remote/283190
mode: restart
max_exceeded: silent
variables:
  force_brightness: !input 'force_brightness'
  step_value: !input 'step_value'
  colour_ref: !input 'colour_ref'
trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: !input 'remote'
action:
- variables:
    event: '{{ trigger.event.data.cluster_id }}'
- choose:
  - conditions:
    - '{{ event == 6 }}'
    sequence:
    - choose:
      - conditions: '{{ force_brightness }}'
        sequence:
        - service: light.toggle
          target: !input 'target_light'
          data:
            brightness_pct: !input 'brightness'
      default:
      - service: light.toggle
        target: !input 'target_light'
  - conditions:
    - '{{ event == 8 }}'
    - '{{ trigger.event.data.args==[0,43,10] }} '
    sequence:
    - service: light.turn_on
      target: !input 'target_light'
      data:
        brightness_step_pct: '{{ step_value }}'
        transition: 1
  - conditions:
    - '{{ event == 8 }}'
    - '{{ trigger.event.data.args==[1,43,10] }}'
    sequence:
    - service: light.turn_on
      target: !input 'target_light'
      data:
        brightness_step_pct: -{{ step_value }}
        transition: 1
  - conditions:
    - '{{ trigger.event.data.command == ''move_to_color_temp'' }}'
    sequence:
    - service: light.turn_on
      target: !input 'target_light'
      data:
        color_temp: '{{ trigger.event.data.args[0] }}'
  - conditions:
    - '{{ event == 5002 }}'
    sequence:
    - service: light.turn_on
      target: !input 'target_light'
      data:
        color_temp: '{trigger.event.data.args[0] |int}}'
  - conditions:
    - '{{ trigger.event.data.command == ''move_to_color'' }}'
    sequence:
    - service: light.turn_on
      target: !input 'target_light'
      data:
        xy_color: '[{{ trigger.event.data.args[0]|float/45875 }}, {{trigger.event.data.args[1]|float/45875 }}]'
  - conditions:
    - '{{ event == 5}}'
    sequence:
    - choose:
        - conditions:
            - '{{trigger.event.data.args.value == 3}}'
          sequence:
            - service: homeassistant.turn_on
              entity_id: !input 'working_scene'
        - conditions:
            - '{{trigger.event.data.args.value == 1}}'
          sequence:
            - service: homeassistant.turn_on
              entity_id: !input 'sunset_scene'
        - conditions:
            - '{{trigger.event.data.args.value == 2}}'
          sequence:
            - service: homeassistant.turn_on
              entity_id: !input 'party_scene'
        - conditions:
            - '{{trigger.event.data.args.value == 6}}'
          sequence:
            - service: homeassistant.turn_on
              entity_id: !input 'night_scene'
        - conditions:
            - '{{trigger.event.data.args.value == 4}}'
          sequence:
            - service: homeassistant.turn_on
              entity_id: !input 'campfire_scene'
        - conditions:
            - '{{trigger.event.data.args.value == 5}}'
          sequence:
            - service: homeassistant.turn_on
              entity_id: !input 'romantic_scene'

If you can’t select the remote, try removing model: ZBT-Remote-ALL-RGBW

2 Likes

Hi, which zha quirk are you using as basis for this blueprint? Because I don’t see any events fired for the scenes buttons - so the scenes are not activated as well. Thanks!