-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW DEVICE] ZNXNKG02LM #430
Comments
…for ZNXNKG02LM (Aqara) related to #430
Hi all, I released ControllerX v4.19.0b1 with this new controller added. If not problems are raised, I will release v4.19.0. Regards, |
@snalty , where did you buy this device? I'm very interested in this remote, but can't find a webshop where it's available... |
I bought it from AliExpress but it seems it was either discontinued or is very hard to find. Also, brightness control isn't working with this latest beta but I've not yet had chance to look into it. Will post my findings on the release. |
Hi @snalty , You can share in here your findings. Either point me on what is not working, or share the logs with me to check them out. Regards, |
Hi @xaviml 022-04-21 19:29:19.546036 INFO bedroom_light: 🎮 Button event triggered: 2022-04-21 19:29:19.548261 INFO bedroom_light: 🏃 Running I imagine the line saying there was no event data is of interest. Will provide more info later |
Hi @snalty , Sorry, I did not mention it to you, but I placed it in the documentation. You need to use "listen_to: mqtt" for the zigbee2mqtt integration. Otherwise the brightness change will not work since the action name does not indicate if rotation is left or right, this is only available on the MQTT payload. Please, read here (zigbee2mqtt and mqtt sections) on how to configure the mqtt listener: https://xaviml.github.io/controllerx/others/integrations Regards, |
Does the 1 and 2 clicks work as expected (toggle and full brightness respectively)? |
Yeah that works fine, just the brightness stuff |
Brightness control is mostly working great now I have configured mqtt access in appdaemon.yaml. Just a few things I need to look into before I feedback:
|
Okay so here is an example. I've put print statements underneath line 578 in light_controller.py such that the method
You can see now in the logs below even though the angle is -24 and the direction is down the brightness is increasing. Weird bug!
Do you have one of these devices in hand @xaviml ? |
Hi @snalty,
That is, indeed, a weird bug, and I see that Could you also try this on the latest beta release? v4.19.0b4. I do not think it will fix it, but just in case. Regards, |
The color of the light changes when the knob is held. This is the default mapping I added to the controller:
|
I have seen that the hold action changes the color however this was occuring during a rotation, I think it might have been because I accidentally set it to homekit adaptive lighting though 😳. Here is my apps.yaml I've been using for testing:
Thank you for the work on this project to support this device! It really is an appealing little controller it's just a shame it doesn't seem like it's available for sale right now. |
Thanks, I will keep you updated once I try it out. |
@bartplessers I've found a listing here: https://a.aliexpress.com/_vZo48A |
These are my logs with ControllerX v4.19.0b4 when topic is
These are the logs when topic is
I confirm I experience the same as you @snalty. I will investigate why is this. Regards, |
Also, you can add bedroom_light:
log_level: DEBUG
module: controllerx
class: ZNXNKG02LMLightController
integration:
name: z2m
listen_to: mqtt
action_key: action
controller: smart_knob
light: light.bedroom_light |
Hi @snalty, I pushed new code that should have fixed the problem. I added tests for this specific use case and confirmed is working, but I would appreciate it if you can try it out. I just released ControllerX v4.19.0b5 version, which you can download from HACS. Regards, |
This device has been added in ControllerX v4.19.0. |
New Device Support
Device Information
Integrations
Integration: z2m
Actions
single
: Sent when the knob is presseddouble
: Sent when the knob is pressed twicehold
: Sent when the knob is held.release
: Sent when the hold is released.start_rotating
: Sent when rotation starts.stop_rotating
: Sent when rotation endsNotes
The rotation events from z2m don't have the rotation direction in the action, here are the mqtt events from a slow quarter turn:
and the events from a quick half turn:
The text was updated successfully, but these errors were encountered: