dove trovo l’id del dispositivo?
Dove trovo il device_id?
Developer Tools > Events tab > Listen to Events > enter “zha_events” > Start Listening
Immediately, after you start listening, single press the button, then double tap, then press and hold for like five seconds. You can repeat that a couple times if you’d like, but don’t wait long or drastically increases the amount of data captured, which could be very busy.
Press Stop Listening. Review the events captured and locate the device_id for the single, double, hold, and release commands. They should all be the same device.
Hope this helps!
I am experiencing the same problem. Under devices it shows
lumi.remote.b1acn01
by unk_manufacturer
I tried listening to the zha_event and get nothing when I press the button.
I think I stopped the add process too soon. I removed it using zha.remove
service call from Developer tools and then re-added it. I had to keep pressing the reset button every 2-3 second during the setup to keep the button awake until it was successfully added (found that trick here ZHA can not remove device - #6 by mrakar)
Does anyone have a suggestion on how to configure “press - longpress” action? I’d like to use the mini switch to:
- single press: toggle the lights on/off
- double press: (not configured yet)
- long press: increase light level by 2% every 100ms (slow fade on)
- press immediately followed by a long press: decrease light level by 2% every 100ms (slow fade off)
- release long press: stop fading
Alternatively, how do you use the mini switch to control dimmable lights? Thanks!
I have ZHA installed but getting this error when I try to save the automation Message malformed: Integration ‘’ not found
Any ideas?
My issue seemed to be because was trying to use a Shelly device as one of the actions, once I deleted that one it saved.
Now to see why that didn’t work.
i have 3 lumi.remote.b1acn01. I config them via bluepink. Bluepink detected 3 button but its ok for first button. second button and thirth button can not config.
I created bluepink on button number 1 and it ran very well. But when creating bluepink for button number 2, they don’t run. Press button button number 1, they run both automations
I just got my Aqara Wireless Mini Switch T1, and it is model lumi.remote.b1acn02
, not lumi.remote.b1acn01
. I tried editing the blueprint, replacing the model with lumi.remote.b1acn02
, but it does not work. It won’t register button clicks. Any advice?
I created this separate thread with more details: Issue with Aqara Wireless Mini Switch T1
Apparently these have a model # somewhere. Check out this thread to see if it applies to the one that you have.
wxkg11lm
Does anyone have an experience with using WXKG12LM model? It shows up as “sensor_switch.aq3” and is exposing only battery & switch in sensors. Would appreciate if anyone could guide on how to get single press, double press, and so on other entities available for this specific model of Aqara Wireless Mini Switch.
Have also tried following blue print but it doesn’t help either.
blueprint:
name: ZHA - Aqara Wireless Mini Switch
description: Automate your Xiaomi Aqara Wireless Mini Switch using ZHA events.
domain: automation
input:
aqara_mini_switch:
name: Aqara Wireless Mini Switch
description: Aqara Wireless Mini Switch to use
selector:
device:
integration: zha
manufacturer: LUMI
model: lumi.sensor_switch.aq3
multiple: false
button_single_press:
name: Single Press
description: Action to run on single press
default: []
selector:
action: {}
button_double_press:
name: Double Press
description: Action to run on double press
default: []
selector:
action: {}
button_long_press:
name: Long Press
description: Action to run when button is long pressed (held down)
default: []
selector:
action: {}
button_released:
name: Released
description: Action to run when button is released after a long press
default: []
selector:
action: {}
button_shaken:
name: Shake
description: Action to run when shaken
default: []
selector:
action: {}
source_url: https://gist.github.com/wwohl/becda6f749423bc3f06b4fcdc0ad6556
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input aqara_mini_switch
action:
- variables:
command: '{{ trigger.event.data.command }}'
- choose:
- conditions:
- '{{ command == ''single'' }}'
sequence: !input button_single_press
- conditions:
- '{{ command == ''double'' }}'
sequence: !input button_double_press
- conditions:
- '{{ command == ''hold'' }}'
sequence: !input button_long_press
- conditions:
- '{{ command == ''release'' }}'
sequence: !input button_released
- conditions:
- '{{ command == ''shake'' }}'
sequence: !input button_shaken
Did anybody get the ~2 model working?
Not sure if that’s the right place to ask, but my b1acn01 on ZHA is really unreliable. It keeps going offline every single day after I reset and reconnect it. My other Zigbee devices which are farther and also battery powered (curtain thingies from Aqara too) are perfectly fine. Just this damned switch (I got 5 of them to see if it was an issue with only 1) is consistently unreliable.
Is there something obvious I’m not thinking of? Are there better alternatives people usually go to that I haven’t seen? (never had issues with my hue switch but I want something simpler with just 1 button)
Hello. I’m new to HA and I’m trying to add an Automation when I press my Aqara Wireless Mini Switch T1 once or twice, but when I use the Blueprint it does not find my device from the list, my device comes up as lumi.remote.b1acn02 in Device Info. Any tips on how to get this resolved?
You may have a currently incompatible version of the switch. Look at this issue reported on GitHub and if that is the same situation, make sure to report it there that it’s still not working. Of course, make sure to be on the latest version of Home Assistant.
https://github.com/home-assistant/core/issues/103265
Hmm, I would like to use it this way too.
Did you find a solution for this?
Thank you for the blueprint, got my switch working perfectly. One doubt only, is there a way to extract the battery level from the switch?