It works! #4
Replies: 7 comments 4 replies
-
That's great to hear! I do have a small fix incoming for the reliability issues I've been seeing myself. With that, I'm fairly confident the most obvious use case (toggling a remote bulb/device) should work each and every time. Going forward, I might look into achieving feature parity with the original firmware. It would also be neat to make the Zigbee command sent configurable - the Toggle I'm currently sending doesn't switch on/off my Hue bulb instantly but applies a (very short) fade. With Move to Level it can be toggled instantly. |
Beta Was this translation helpful? Give feedback.
-
Observations
Feedback on documentation
|
Beta Was this translation helpful? Give feedback.
-
Thank you. I'll test the new version tomorrow. Noticed a typo in getting started guide:
It should say 5 times. You've mentioned a possible configuration option for command to send. To make this option appear in Z2M a custom converter would be needed. I wonder if you can change model id in the firmware for Z2M to distinguish between official zbminir2 and your mod. Do you plan to do this at some point later? Right now it's even good that no changes to Z2M are needed actually, makes it easier to start using the firmware. |
Beta Was this translation helpful? Give feedback.
-
Fixed.
I think Z2M is fairly flexible - I'll look into it once I get around to making the Zigbee command emitted configurable. In other news, I've documented how to update over the air, check out OTA Updates. It might be a little rough around the edges - just wanted to get it published, let me know if you encounter any issues. Note that the firmware version is currently configured as |
Beta Was this translation helpful? Give feedback.
-
Thank you. Got OTA working.
|
Beta Was this translation helpful? Give feedback.
-
I've discovered a strange behaviour of my unit and wonder if you can reproduce this with yours. I've tried to reproduce this with a regular mini. I was monitoring z2m log looking for toggle message. There are no message on power loss. What I'd like to know: is the problem specific to my unit and it would also happen with regular firmware on this unit or is Sonoff doing something in their firmware to prevent sending of commands during power shutdown? I cannot of course flash the original firmware to make a test but I can flash the second unit which I tested with regular firmware and check if I can reproduce the issue there. |
Beta Was this translation helpful? Give feedback.
-
That fixed the issue. Great! We want the latency as small as possible. Therefore I've tried different delays. 20ms works for me (10ms doesn't). I wonder if the minimum working delay is different for different units. Have you tried 20ms with yours? Tested on main power (240v) and powered by J-Link. Works consistently correct now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Flashed the firmware and it worked straight away!
Posting a few photos as a proof 😉
The immediate response on toggling of switch is remarkable.
Tested with another zbminir2 as a receiver. That's what I needed for my project (one mini in wall box behind switch should control another mini connected to lights).
Thank you for sharing this firmware.
I'll do more tests on weekend.
P.S. consider enabling discussions on this repository for posts like this, which are strictly speaking not issues.
Beta Was this translation helpful? Give feedback.
All reactions