Zigbee2Mqtt - Muller Licht Tint Remote (MLI-404011)

A simple automation based on events that allows full use of the Muller Licht Remote via the Zigbee2Mqtt integration.

Features:

  • Individual control by group selection. (If you don’t need this set all to same.)
  • Colour control
  • Temperature control
  • Brightness control
  • Scene selection

Tested in our place with this model: MLI-404011

Enjoy,

Bool2

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Muller Licht Remote (Zigbee2MQTT)
  domain: automation
  input:
    remote:
      name: Remote
      description: Remote control entity
      selector:
        entity:
          integration: mqtt
          domain: sensor
    target_light_1:
      name: Light 1
      description: Lights to control for 1 (*--)
      selector:
        target:
          entity:
            domain: light
    target_light_2:
      name: Light 2
      description: Lights to control for 2 (-*-)
      selector:
        target:
          entity:
            domain: light
    target_light_3:
      name: Light 3
      description: Lights to control for 3 (--*)
      selector:
        target:
          entity:
            domain: light
    scene_3:
      name: Reading scene
      selector:
        target:
    scene_1:
      name: Sunset scene
      selector:
        target:
    scene_2:
      name: Party scene
      selector:
        target:
    scene_6:
      name: Night scene
      selector:
        target:
    scene_4:
      name: Fire scene
      selector:
        target:
    scene_5:
      name: Romantic scene
      selector:
        target:
trigger:
  - platform: event
    event_type: state_changed
    event_data:
      entity_id: !input 'remote'
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: '{{ action_name=="on" or action_name=="off" }}'
        sequence:
          - service: light.toggle
            target: "{{ target_device }}"
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="scene_1") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_1'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="scene_2") 
              }}        
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_2'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="scene_3") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_3'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="scene_4") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_4'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="scene_5") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_5'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="scene_6") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_6'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="color_temp") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data:
              color_temp: "{{ action_color_temp }}"
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="brightness_down_click") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data:
              brightness_step: -20
              transition: 1
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="brightness_up_click") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data:
              brightness_step: 20
              transition: 1
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (trigger.event.data.new_state.attributes.action=="color_wheel") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data:
              xy_color:
                - "{{ action_color.x }}"
                - "{{ action_color.y }}"
    default:
      - service: logbook.log
        data:
          name: Oops
          message: Unhandled remote action
mode: single
variables:
  action_color_temp: '{{ trigger.event.data.new_state.attributes.action_color_temperature }}'
  action_color: '{{ trigger.event.data.new_state.attributes.action_color }}'
  action_name: '{{ trigger.event.data.new_state.attributes.action }}'
  target_light_1: !input 'target_light_1'
  target_light_2: !input 'target_light_2'
  target_light_3: !input 'target_light_3'
  target_device: |-
    {%- if trigger.event.data.new_state.attributes.action_group==16388 -%} 
    {{ target_light_1 }}
    {%- elif trigger.event.data.new_state.attributes.action_group==16389 -%}
    {{ target_light_2 }}
    {%- elif trigger.event.data.new_state.attributes.action_group==16390 -%} 
    {{ target_light_3 }}
    {%- else -%} 
    unknown
    {%- endif -%}
2 Likes

Thanks. Was just looking for a remote to control the lights and this is perfect!

hey @bool2

I’m trying to make it work but It doesn’t work for me. I saw in your code that you use a variable to detect with light (of the 3 positions on the remote) is being used.

  target_device: |-
    {%- if trigger.event.data.new_state.attributes.action_group==16388 -%} 
    {{ target_light_1 }}
    {%- elif trigger.event.data.new_state.attributes.action_group==16389 -%}
    {{ target_light_2 }}
    {%- elif trigger.event.data.new_state.attributes.action_group==16390 -%} 
    {{ target_light_3 }}
    {%- else -%} 
    unknown
    {%- endif -%}

I’ve captured the event from he remote but attribute action group is not on the events I capture.

Event 0 fired 4:37 PM:

{
    "event_type": "state_changed",
    "data": {
        "entity_id": "sensor.remote_action",
        "old_state": {
            "entity_id": "sensor.remote_action",
            "state": "",
            "attributes": {
                "icon": "mdi:gesture-double-tap",
                "friendly_name": "remote action"
            },
            "last_changed": "2022-01-19T15:36:16.884185+00:00",
            "last_updated": "2022-01-19T15:36:16.884185+00:00",
            "context": {
                "id": "4092765a3fd6e52fac2bfc6",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "sensor.remote_action",
            "state": "on",
            "attributes": {
                "icon": "mdi:gesture-double-tap",
                "friendly_name": "remote action"
            },
            "last_changed": "2022-01-19T15:37:17.986229+00:00",
            "last_updated": "2022-01-19T15:37:17.986229+00:00",
            "context": {
                "id": "48194663b581f508a6170969",
                "parent_id": null,
                "user_id": null
            }
        }
    },

any ideas?

I have the same problem as revin.
Any help?

Hi @kuenkin

I made a new blueprint from scratch as I couldn’t find what was the original problem

Here you have:

blueprint:
  name: Remote - Müller Lint Tint - Z2M MQTT v1
  description: Control lights with a Müller-Lint Tint Switch.
  domain: automation
  input:
    remote:
      name: Remote mqtt topic
      description: This must be the TOPIC from zigbee2mqtt. For example z2m/remote_1
      selector:
        text:
    light:
      name: Target light
      selector:
        entity:
          domain: light
    step:
      name: Dimming step in percent
      default: 10
      selector:
        number:
          min: 0.0
          max: 50.0
          mode: slider
          step: 1.0
          unit_of_measurement: "%"
    transition:
      name: transition duration
      default: 1
      selector:
        number:
          min: 0.0
          max: 5.0
          mode: slider
          step: 0.5
          unit_of_measurement: "s"
    scene_1:
      name: Sunset Scene
      default: {}
      selector:
        entity:
          domain: scene
    scene_2:
      name: Reading Scene
      default: {}
      selector:
        entity:
          domain: scene
    scene_3:
      name: Party Scene
      default: {}
      selector:
        entity:
          domain: scene
    scene_4:
      name: Relax Scene
      default: {}
      selector:
        entity:
          domain: scene
    scene_5:
      name: Night Scene
      default: {}
      selector:
        entity:
          domain: scene
    scene_6:
      name: Love Scene
      default: {}
      selector:
        entity:
          domain: scene

trigger:
  - platform: mqtt
    topic: !input "remote"
action:
  - variables:
      command: "{{trigger.payload_json.action}}"
      step: !input "step"
      negative_step: "{{ -1 * (step | int) }}"
  - choose:
      - conditions: "{{ command == 'on' or command == 'off' }}"
        sequence:
          - service: light.toggle
            data_template:
              entity_id: !input "light"
              transition: !input "transition"
      - conditions: "{{ command == 'brightness_step_down' }}"
        sequence:
          - service: light.turn_on
            data_template:
              entity_id: !input "light"
              brightness_step_pct: "{{ negative_step }}"
              transition: !input "transition"
      - conditions: "{{ command == 'brightness_step_up' }}"
        sequence:
          - service: light.turn_on
            data_template:
              entity_id: !input "light"
              brightness_step_pct: "{{ step }}"
              transition: !input "transition"

      - conditions: "{{ command == 'color_temperature_move' }}"
        sequence:
          - service: light.turn_on
            data_template:
              entity_id: !input "light"
              color_temp: "{{trigger.payload_json.action_color_temperature}}"
              transition: !input "transition"

      - conditions: "{{ command == 'color_move' }}"
        sequence:
          - service: light.turn_on
            data_template:
              entity_id: !input "light"
              xy_color:
                - "{{trigger.payload_json.action_color.x}}"
                - "{{trigger.payload_json.action_color.y}}"
              transition: !input "transition"

      - conditions: "{{ command == 'scene_1' }}"
        sequence:
          - service: scene.turn_on
            target:
              entity_id: !input "scene_1"

      - conditions: "{{ command == 'scene_2' }}"
        sequence:
          - service: scene.turn_on
            target:
              entity_id: !input "scene_2"

      - conditions: "{{ command == 'scene_3' }}"
        sequence:
          - service: scene.turn_on
            target:
              entity_id: !input "scene_3"

      - conditions: "{{ command == 'scene_4' }}"
        sequence:
          - service: scene.turn_on
            target:
              entity_id: !input "scene_4"

      - conditions: "{{ command == 'scene_5' }}"
        sequence:
          - service: scene.turn_on
            target:
              entity_id: !input "scene_5"

      - conditions: "{{ command == 'scene_6' }}"
        sequence:
          - service: scene.turn_on
            target:
              entity_id: !input "scene_6"

It’s a first approach where on/off, color and intensity buttons works. Also, I’ve declared the possibility to use the scenes buttons but I didn’t tested yet.

Also, I haven’t developed the possibility to use the “bulb” button where you can control put to three different lights as I only need 1.

2 Likes

Thanks @revin, I will try and give feedback

It works perfectly, and the scenes also are working.
Thanks very much!!!

1 Like

Happy to hear it.

I find some free time in following weeks, I’ll work on adding support for the bottom button and be able to control 3 different lights with same remote

1 Like

Hello everyone,

thanks you for sharing

I’m trying to vary the color temperature of the bulbs but it doesn’t work.
In my code example, the goal is to add or remove with a 40 step, by the bulb color (for the bulb HUE = color_temp).

- conditions:
          - condition: template
            value_template: |-
              {{
                 (trigger.event.data.new_state.attributes.action_color_temperature_direction=="up")
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data:
              color_temp: "{{ state_attr(target_device, 'color_temp') | int + 40}}"
      - conditions:
          - condition: template
            value_template: |-
              {{
                 (trigger.event.data.new_state.attributes.action_color_temperature_direction=="down")
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data:
              color_temp: "{{ state_attr('light.kitchen', 'color_temp') | int - 40}}"

It seems that the variable ‘target_device’ does not correspond to anything.

color_temp: "{{ state_attr(target_device, 'color_temp') | int + 40}}"

However, I tried to replace the variable directly by the device id (light.kitchen), it works like a charm.

color_temp: "{{ state_attr('light.kitchen', 'color_temp') | int - 40}}"

Any ideas what I might have done wrong ?
Thanks :slightly_smiling_face:

Hey @revin i am missing the action_groups in my payload too and your script is working for just one lamp… did you manage to get more than one lamp to be controlled by the remote ?

Thank you guys, for both of your solutions. However, the one from OP did not work for me at first, and the answer from @revin was not enough for me, as I needed to control and use all features of the remote. I managed to get it to work, by mixing both blueprints. Check this out. I am sure, it can be improved but for now it is okay. Maybe I will update it later. What you need it, the TOPIC of your remote from zigbee2mqtt. For me it was zigbee2mqtt/“Friendly name of your remote”. The second thing you need, is the group id. Just press few buttons with one of the groups selected and look inside the log of zigbee2mqtt add-on. For me it was 1, 2 and 3, but this may be different.

blueprint:
  name: Muller Licht Remote (Zigbee2MQTT)
  domain: automation
  input:
    remote:
      name: Remote mqtt topic
      description: This must be the TOPIC from zigbee2mqtt. For example z2m/remote_1
      selector:
        text:
    target_light_1:
      name: Light 1
      description: Lights to control for 1 (*--)
      selector:
        target:
          entity:
            domain: light
    target_light_2:
      name: Light 2
      description: Lights to control for 2 (-*-)
      selector:
        target:
          entity:
            domain: light
    target_light_3:
      name: Light 3
      description: Lights to control for 3 (--*)
      selector:
        target:
          entity:
            domain: light
    step:
      name: Dimming step in percent
      default: 10
      selector:
        number:
          min: 0.0
          max: 50.0
          mode: slider
          step: 1.0
          unit_of_measurement: "%"
    scene_3:
      name: Reading scene
      selector:
        target:
    scene_1:
      name: Sunset scene
      selector:
        target:
    scene_2:
      name: Party scene
      selector:
        target:
    scene_6:
      name: Night scene
      selector:
        target:
    scene_4:
      name: Fire scene
      selector:
        target:
    scene_5:
      name: Romantic scene
      selector:
        target:
trigger:
  - platform: mqtt
    topic: !input "remote"

condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: '{{ action_name=="on" }}'
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
      - conditions:
          - condition: template
            value_template: '{{ action_name=="off" }}'
        sequence:
          - service: light.turn_off
            target: "{{ target_device }}"
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="scene_1") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_1'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="scene_2") 
              }}        
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_2'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="scene_3") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_3'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="scene_4") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_4'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="scene_5") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_5'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="scene_6") 
              }}
        sequence:
          - service: homeassistant.turn_on
            target: !input 'scene_6'
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="color_temperature_move") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data_template:
              color_temp: "{{ action_color_temp }}"
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="brightness_step_down") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data_template:
              brightness_step_pct: "{{ negative_step }}"
              transition: 1
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="brightness_step_up") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data_template:
              brightness_step_pct: "{{ step }}"
              transition: 1
      - conditions:
          - condition: template
            value_template: |-
              {{ 
                 (action_name=="color_move") 
              }}
        sequence:
          - service: light.turn_on
            target: "{{ target_device }}"
            data_template:
              xy_color:
                - "{{trigger.payload_json.action_color.x}}"
                - "{{trigger.payload_json.action_color.y}}"
    default:
      - service: logbook.log
        data:
          name: Oops
          message: Unhandled remote action "{{ action_name }}" --- "{{ action_color_temp }}" --- "{{ action_color }}"
mode: single
variables:
  step: !input "step"
  negative_step: "{{ -1 * (step | int) }}"
  action_color_temp: '{{ trigger.payload_json.action_color_temperature }}'
  action_color: '{{ trigger.payload_json.action_color }}'
  action_name: '{{ trigger.payload_json.action }}'
  target_light_1: !input 'target_light_1'
  target_light_2: !input 'target_light_2'
  target_light_3: !input 'target_light_3'
  target_device: |-
    {%- if trigger.payload_json.action_group==16388 -%} 
    {{ target_light_1 }}
    {%- elif trigger.payload_json.action_group==16389 -%}
    {{ target_light_2 }}
    {%- elif trigger.payload_json.action_group==16390 -%} 
    {{ target_light_3 }}
    {%- else -%} 
    unknown
    {%- endif -%}

This version supports multiple lights, scenes, color changes and 3 groups.

Updated:: fixed Temperatur and brightness setting, changed group to default, fixed buttons, improved steps.

Hello,

Unfortunately I don’t get the remote control selected when importing the blueprint.
I am using Deconz ConBee2 and need urgent help.
What can I do?

Greetings Udo

@wladislaw what does it take to get the scene-buttons to be aware of the selected group? Selecting a different group will give another set of 6 scenes to call. That would be quite handy an neat indeed.

I am posting my modified version here. Group-button is working, scenes per group are working. I had to modify it to work with mqtt-input, my remote-entity provided by zb2mqtt did not contain the payloads needed to make use of the state machine. Thus I am using mqtt instead.

alias: Tint-Remote total
description: ""
triggers:
  - trigger: mqtt
    topic: zigbee2mqtt/Tint-Remote
    alias: Sobald MQTT-Topic von gewünschter Tint-Remote empfangen wurde
conditions:
  - alias: Aber nur, wenn Trigger einen der angegbenen Werte enthält
    condition: template
    value_template: >-
      {{ trigger.payload_json.action in ('off', 'on', 'color_move',
      'color_temperature_move', 'brightness_step_down', 'brightness_step_up',
      'brightness_down_hold', 'brightness_down_release', 'brightness_up_hold',
      'brightness_up_release', 'scene_3', 'scene_1', 'scene_2', 'scene_6',
      'scene_4', 'scene_5') }}
    enabled: true
actions:
  - variables:
      group_id_0: 16387
      group_id_1: 16388
      group_id_2: 16389
      group_id_3: 16390
      stepsize: trigger.payload_json.action_step_size |int
      light_id_0: light.deckenleuchte_kinderzimmer
      light_id_1: null
      light_id_2: 07b5e005cdd9adabf8602df39e061a24
      light_id_3: light.deckenlampe_annabell
      input_working_scene_0: []
      input_sunset_scene_0: []
      input_party_scene_0: []
      input_night_scene_0: []
      input_campfire_scene_0: []
      input_romantic_scene_0: []
      input_working_scene_1: []
      input_sunset_scene_1: []
      input_party_scene_1: []
      input_night_scene_1: []
      input_campfire_scene_1: []
      input_romantic_scene_1: []
      working_scene_2: scene.stehlampe_reading_scene
      sunset_scene_2: scene.stehlampe_sunset_scene
      party_scene_2: scene.stehlampe_party_scene
      night_scene_2: scene.stehlampe_night_scene
      campfire_scene_2: scene.stehlampe_fire_scene
      romantic_scene_2: scene.stehlampe_romantic_scene
      working_scene_3: scene.deckenlampe_annabell_reading_scene
      sunset_scene_3: scene.deckenlampe_annabell_sunset_scene
      party_scene_3: scene.deckenlampe_annabell_party_scene
      night_scene_3: scene.deckenlampe_annabell_night_scene
      campfire_scene_3: scene.deckenlampe_annabell_fire_scene
      romantic_scene_3: scene.deckenlampe_annabell_romantic_scene
    enabled: true
    alias: Variablen definieren, die benötigt werden
  - data:
      level: info
      message: >-
        Tint Button pressed: {{ trigger.payload_json.action }} Group: {{
        trigger.payload_json.action_group }} Length {{ input_working_scene_1 |
        length }}
    action: system_log.write
    enabled: false
  - choose:
      - conditions:
          - alias: Testen, ob Gruppen-ID gleich 'group_id_0'
            condition: template
            value_template: "{{ trigger.payload_json.action_group == group_id_0 }}"
            enabled: true
        sequence:
          - choose:
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"on\", \"off\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'on' oder 'off'
                sequence:
                  - data: {}
                    target:
                      entity_id: "{{ light_id_0 }}"
                    action: light.turn_{{ trigger.payload_json.action }}
                alias: ON / OFF
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"color_move\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'color_move'
                sequence:
                  - data:
                      xy_color:
                        - "{{ trigger.payload_json.action_color.x | float }}"
                        - "{{ trigger.payload_json.action_color.y | float }}"
                    target:
                      entity_id: "{{ light_id_0 }}"
                    action: light.turn_on
                alias: COLOR_MOVE
              - conditions:
                  - condition: template
                    value_template: >-
                      {{ trigger.payload_json.action in (
                      "color_temperature_move" ) }}
                    alias: Testen, ob Trigger-Action gleich 'color_temperatur_move'
                sequence:
                  - data:
                      color_temp: >-
                        {{ trigger.payload_json.action_color_temperature | float
                        }}
                    target:
                      entity_id: "{{ light_id_0 }}"
                    action: light.turn_on
                alias: COLOR_TEMPERATURE_MOVE
              - conditions:
                  - alias: >-
                      Testen, ob Trigger-Action gleich 'brightness_step_down'
                      oder 'brightness_step_up'
                    condition: template
                    value_template: >-
                      {{ trigger.payload_json.action in (
                      "brightness_step_down", "brightness_step_up") }}
                sequence:
                  - variables:
                      factor: >-
                        {% if trigger.payload_json.action in (
                        "brightness_step_down") %} -12 {% else %} 12 {% endif %}
                  - data_template:
                      brightness_step_pct: "{{ factor | int }}"
                    target:
                      entity_id: "{{ light_id_0 }}"
                    action: light.turn_on
                alias: BRIGHTNESS_STEP_DOWN / BRIGHTNESS_STEP_UP
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_1\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'scene_1'
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ sunset_scene_0 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ sunset_scene_0 }}"
                    default: []
                alias: SCENE_1
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_2'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_2\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ party_scene_0 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ party_scene_0 }}"
                    default: []
                alias: SCENE_2
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_3'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_3\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ working_scene_0 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ working_scene_0 }}"
                    default: []
                alias: SCENE_3
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_4'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_4\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ campfire_scene_0 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ campfire_scene_0 }}"
                    default: []
                alias: SCENE_4
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_5'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_5\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ romantic_scene_0 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ romantic_scene_0 }}"
                    default: []
                alias: SCENE_5
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_6\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ night_scene_0 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ night_scene_0 }}"
                    default: []
                alias: SCENE_6
            default: []
      - conditions:
          - condition: template
            value_template: "{{ trigger.payload_json.action_group == group_id_2 }}"
            enabled: true
            alias: Testen, ob Gruppen-ID gleich 'group_id_2'
        sequence:
          - choose:
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"on\", \"off\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'on' oder 'off'
                sequence:
                  - data: {}
                    target:
                      device_id: "{{ light_id_2 }}"
                    action: light.turn_{{ trigger.payload_json.action }}
                alias: ON / OFF
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"color_move\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'color_move'
                sequence:
                  - data:
                      xy_color:
                        - "{{ trigger.payload_json.action_color.x | float }}"
                        - "{{ trigger.payload_json.action_color.y | float }}"
                    target:
                      device_id: "{{ light_id_2 }}"
                    action: light.turn_on
                alias: COLOR_MOVE
              - conditions:
                  - condition: template
                    value_template: >-
                      {{ trigger.payload_json.action in (
                      "color_temperature_move" ) }}
                    alias: Testen, ob Trigger-Action gleich 'color_temperatur_move'
                sequence:
                  - data:
                      color_temp: >-
                        {{ trigger.payload_json.action_color_temperature | float
                        }}
                    target:
                      device_id: "{{ light_id_2 }}"
                    action: light.turn_on
                alias: COLOR_TEMPERATURE_MOVE
              - conditions:
                  - alias: >-
                      Testen, ob Trigger-Action gleich 'brightness_step_down'
                      oder 'brightness_step_up'
                    condition: template
                    value_template: >-
                      {{ trigger.payload_json.action in (
                      "brightness_step_down", "brightness_step_up") }}
                sequence:
                  - variables:
                      factor: >-
                        {% if trigger.payload_json.action in (
                        "brightness_step_down") %} -12 {% else %} 12 {% endif %}
                  - data_template:
                      brightness_step_pct: "{{ factor | int }}"
                    target:
                      device_id: "{{ light_id_2 }}"
                    action: light.turn_on
                alias: BRIGHTNESS_STEP_DOWN / BRIGHTNESS_STEP_UP
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_1\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'scene_1'
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ sunset_scene_2 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ sunset_scene_2 }}"
                    default: []
                alias: SCENE_1
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_2'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_2\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ party_scene_2 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ party_scene_2 }}"
                    default: []
                alias: SCENE_2
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_3'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_3\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ working_scene_2 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ working_scene_2 }}"
                    default: []
                alias: SCENE_3
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_4'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_4\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ campfire_scene_2 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ campfire_scene_2 }}"
                    default: []
                alias: SCENE_4
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_5'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_5\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ romantic_scene_2 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ romantic_scene_2 }}"
                    default: []
                alias: SCENE_5
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_6\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ night_scene_2 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ night_scene_2 }}"
                    default: []
                alias: SCENE_6
            default: []
      - conditions:
          - condition: template
            value_template: "{{ trigger.payload_json.action_group == group_id_3 }}"
            enabled: true
            alias: Testen, ob Gruppen-ID gleich 'group_id_3'
        sequence:
          - choose:
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"on\", \"off\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'on' oder 'off'
                sequence:
                  - data: {}
                    target:
                      entity_id: "{{ light_id_3 }}"
                    action: light.turn_{{ trigger.payload_json.action }}
                alias: ON / OFF
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"color_move\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'color_move'
                sequence:
                  - data:
                      xy_color:
                        - "{{ trigger.payload_json.action_color.x | float }}"
                        - "{{ trigger.payload_json.action_color.y | float }}"
                    target:
                      entity_id: "{{ light_id_3 }}"
                    action: light.turn_on
                alias: COLOR_MOVE
              - conditions:
                  - condition: template
                    value_template: >-
                      {{ trigger.payload_json.action in (
                      "color_temperature_move" ) }}
                    alias: Testen, ob Trigger-Action gleich 'color_temperatur_move'
                sequence:
                  - data:
                      color_temp: >-
                        {{ trigger.payload_json.action_color_temperature | float
                        }}
                    target:
                      entity_id: "{{ light_id_3 }}"
                    action: light.turn_on
                alias: COLOR_TEMPERATURE_MOVE
              - conditions:
                  - alias: >-
                      Testen, ob Trigger-Action gleich 'brightness_step_down'
                      oder 'brightness_step_up'
                    condition: template
                    value_template: >-
                      {{ trigger.payload_json.action in (
                      "brightness_step_down", "brightness_step_up") }}
                sequence:
                  - variables:
                      factor: >-
                        {% if trigger.payload_json.action in (
                        "brightness_step_down") %} -12 {% else %} 12 {% endif %}
                  - data_template:
                      brightness_step_pct: "{{ factor | int }}"
                    target:
                      entity_id: "{{ light_id_3 }}"
                    action: light.turn_on
                alias: BRIGHTNESS_STEP_DOWN / BRIGHTNESS_STEP_UP
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_1\" ) }}"
                    alias: Testen, ob Trigger-Action gleich 'scene_1'
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ sunset_scene_3 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ sunset_scene_3 }}"
                    default: []
                alias: SCENE_1
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_2'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_2\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ party_scene_3 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ party_scene_3 }}"
                    default: []
                alias: SCENE_2
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_3'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_3\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ working_scene_3 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ working_scene_3 }}"
                    default: []
                alias: SCENE_3
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_4'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_4\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ campfire_scene_3 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ campfire_scene_3 }}"
                    default: []
                alias: SCENE_4
              - conditions:
                  - alias: Testen, ob Trigger-Action gleich 'scene_5'
                    condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_5\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ romantic_scene_3 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ romantic_scene_3 }}"
                    default: []
                alias: SCENE_5
              - conditions:
                  - condition: template
                    value_template: "{{ trigger.payload_json.action in ( \"scene_6\" ) }}"
                sequence:
                  - choose:
                      - conditions:
                          - condition: template
                            value_template: "{{ night_scene_3 | length > 0 }}"
                        sequence:
                          - action: scene.turn_on
                            metadata: {}
                            target:
                              entity_id: "{{ night_scene_3 }}"
                    default: []
                alias: SCENE_6
            default: []
    default: []
    enabled: true
mode: queued
max: 5
max_exceeded: silent