-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Aqara ZNJLBL01LM - position shows closed when it's actually open #23056
Comments
Things I've done so far, unfortunately without any effect
The last thing I can think of is to swap out the zzh! for a SkyConnect, but that's just a shot in the dark. |
I managed to find something interesting: every time this happens, I can see 'device_announce' in the logs [2024-06-19 16:20:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Bedroom Blinds ","ieee_address":"0x54ef4410009934d8"},"type":"device_announce"}' [2024-06-19 16:20:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"Bedroom Blinds "},"type":"device_announced"}' [2024-06-19 16:20:54] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Blinds ', payload '{"battery":85,"charging_status":false,"device_temperature":22,"linkquality":54,"motor_speed":"medium","motor_state":"stopped","position":100,"power_outage_count":4,"running":false,"state":"OFF","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null}' [2024-06-19 16:20:55] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Bedroom Blinds ","ieee_address":"0x54ef4410009934d8"},"type":"device_announce"}' [2024-06-19 16:20:55] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"announce","meta":{"friendly_name":"Bedroom Blinds "},"type":"device_announced"}' [2024-06-19 16:20:57] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Blinds ', payload '{"battery":85,"charging_status":false,"device_temperature":22,"linkquality":54,"motor_speed":"medium","motor_state":"stopped","position":0,"power_outage_count":4,"running":false,"state":"OFF","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null}' [2024-06-19 16:21:02] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Blinds ', payload '{"battery":85,"charging_status":false,"device_temperature":22,"linkquality":54,"motor_speed":"medium","motor_state":"stopped","position":0,"power_outage_count":5,"running":false,"state":"OFF","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null}'` |
I managed to exchange the device for a new one, but unfortunately this new one has the same issue |
Could you provide the debug log when this happens? See this on how to enable debug logging. |
I'm running into a problem with log rotation. The problem occurs very intermittently, every few hours. This means I can't catch it when it happens and need to look into the logs after the fact. Because the logs fill up quite quickly at the debug log level, the relevant log information is already gone when I go and check. Is there any way to just enable debug information for one device? Or increase the amount of log files? Alternatively, I could set-up a syslog server, but I have no experience doing so. Using the log files would be easier. |
Managed to get syslog working. Here's about twenty seconds of captured debug logging after the devices state changes: https://gist.github.com/woutf/79236018dfc5e4c612bbfee42da35960 For some reason, every time this Aqara device re-announces itself on the network, another device (Dining Table Lamp) does the exact same. They always announce in tandem. |
Probably the device crashes, can you try to disable availability for the cover and see if that fixes the issue? |
Availability isn't enabled for any device, including this one. |
Can you provide me your |
and from devices.yaml
|
Could you check if the issue is fixed with the following external converter:
external_converters:
- ext_converter.js
Also, could you provide the debug log when moving the curtain to e.g. 80%? |
Have it up and running, will check if this fixes things. Setting a position seems to be broken though
|
The device has been stable for the past 9 hours, which is a record. It's also useless at the moment :D Because not only is there no converter available for 'position', the same goes for 'open' and 'close'. |
updated https://gist.github.com/Koenkk/7abcbcf756b31e08402c1a39f8b64b25, can you check again? |
|
Succes! Opening, closing and setting position works now. Now we wait and see if the position changes by itself... |
The curtain has been stable for the past two days, seems fixed. Thanks! |
Can you check if the device returns the correct position when reading it through the z2m frontend -> device -> dev console, read cluster |
Ah it's called |
It returns 0, even though the cover is positioned halfway. Somehow Home Assistant does show the correct position |
Thanks, integrated the fix. Changes will be available in the dev branch in a few hours from now. |
Problem is still there. Zigbee2MQTT version 1.41.0 |
The problem is still there. Zigbee2MQTT version is 1.41.0 |
Try resetting and setting the Min/Max positions using the hardware buttons as in the "Device Rotating Range Setup" part of the user manual. I found that the motor won't report its position if the positions are not set on the hardware first. https://www.aqara.com/en/product/roller-shade-driver-e1/user-manual/ |
I‘m on 1.42, i have a tuya curtain. The status in z2m shows me closed but HA shows me open { |
What happened?
I have found multiple issues around the Aqara E1 Roller Shade Driver mentioned here in GitHub, but not my specific one. Whenever I open the blinds through Home Assistant, the state gets updated to open and the position is set at 100%. Some time later, the position will reset to 0%, even though the blind hasn't moved. Because of this, I can't open the blind (button is greyed out)
If I then press 'Close' in Z2M, the position changes to 100% and starts closing. So to 'reset' the value when the blind is open but shows closed, I have to
-Press close
-Quickly press stop
-Press open again
In this screenshot, you can see the state gets changed to closed, then the device becomes unknown and then it's back at closed again.
To be clear: the device was opened at 08:36 and not touched after that.
What did you expect to happen?
I expect the state to reflect the actual state
How to reproduce it (minimal and precise)
Open the shade
Wait a while
Notice the reported state doesn't correspond to the physical state
Zigbee2MQTT version
1.38.0
Adapter firmware version
20230507
Adapter
zzh!
Setup
Add-on on Home Assistant Blue
Debug log
No response
The text was updated successfully, but these errors were encountered: