Rotary dimmer wireless zigbee dimmer Natron 4 in 1 dimmer

Im interested if anyone has a blueprint that could work with a rotary dimmer, I have tried to make a blueprint on my own but it hasn’t worked.

Not sure of compatibility with the device you are trying to use, but this is the one I use for the ikea rotary devices:

I tried it and it didn’t work I have a Namron 4 in 1 wireless light dimmer Zigbee, and I have tried multiple ikea, Philips and Aqara blueprints but no one works.

I have tried to use chat gpt but I either get that no device is compatible when Im gonna chose the dimmer or that the blueprint is unavailable

blueprint:
name: Namron Zigbee 4 in 1 Dimmer
description: Control a Namron Zigbee 4 in 1 Dimmer using Home Assistant and ZHA
domain: automation
input:
dimmer:
name: Dimmer
description: The Namron Zigbee 4 in 1 Dimmer to control
selector:
entity:
domain: light
integration: zha
manufacturer: Namron
model: ‘4512700’
min_brightness:
name: Minimum brightness
description: The minimum brightness level for the dimmer (0-255)
default: 0
selector:
number:
min: 0
max: 255
step: 1
max_brightness:
name: Maximum brightness
description: The maximum brightness level for the dimmer (0-255)
default: 255
selector:
number:
min: 0
max: 255
step: 1
transition:
name: Transition time
description: The time it takes to transition between brightness levels (in seconds)
default: 1
selector:
number:
min: 0
max: 60
step: 1

trigger:

  • platform: event
    event_type: zha_event
    event_data:
    entity_id: !input dimmer
    command: move_to_level_with_onoff

action:

  • choose:
    • conditions:
      • “{{ trigger.event.data.args.level == 0 }}”
        sequence:
      • service: light.turn_off
        data:
        entity_id: !input dimmer
    • default:
      • service: light.turn_on
        data:
        entity_id: !input dimmer
        brightness_pct: “{{ (trigger.event.data.args.level | int * 100 / 255) | int }}”
        transition: “{{ transition }}”

mode: single

Text

First post here…

I did the following to make the dimmer basically work:

  • install the “Event Sensor” integration (HACS)
  • create a custom sensor. Example config:
    Name: Rotary dimmer
    Event name: zha_event
    Event field: params.level
    Optional filter: unique_id: (of the dimmer device)
    I had difficulties finding the unique_id, so here is what I did: open developer tools, events, start
    listening to zha_event, turn dimmer knob.
  • Create automation for dimming:
alias: dim lights via rotary dimmer
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.<your custom sensor here>
condition: []
action:
  - variables:
      new_brightness: "{{ states('sensor.<your custom sensor here>') }}"
  - service: light.turn_on
    data:
      brightness: "{{new_brightness}}"
      transition: 0.2
    target:
      device_id: <your light device>
mode: single

I’ll make a blueprint from when I have time or when I need to configure another dimmer :slight_smile:

Hope this helps.
D

Used zha-event, its ok, some delay
alias: TEST1
description:
trigger:

  • platform: event
    event_type: zha_event
    event_data:
    device_ieee: your.ieee
    unique_id: your.id
    command: move_to_level_with_on_off
    action:
  • delay: “00:00:01”
  • service: light.turn_on
    target:
    entity_id: light.your.light
    data:
    brightness: “{{ trigger.event.data.args[0] }}”
    transition: “{{ trigger.event.data.args[1]|default(0) }}”
    mode: single

made 2 automations.
1 for turn on and off.
1 for dimming

alias: “Fast Light Adjustment”
description: “Adjusts light brightness with minimal delay upon receiving a zha_event.”
trigger:

  • platform: event
    event_type: zha_event
    event_data:
    device_ieee: “04:cd:15:ff:fe:8e:0d:75”
    unique_id: “04:cd:15:ff:fe:8e:0d:75:1:0x0008”
    command: “move_to_level_with_on_off”
    action:
  • service: light.turn_on
    target:
    entity_id: light.kontoret
    data:
    brightness: “{{ trigger.event.data.args[0] }}”
    transition: 0 # Ensures the transition is as fast as possible
    mode: single

now its fastter :slight_smile: