ptvoinfo / zigbee-configurable-firmware

PTVO firmware for CC2530, CC2531, and CC2652 Zigbee chips
https://ptvo.info/zigbee-configurable-firmware-features/
MIT License
211 stars 22 forks source link

New firmware makes hold functionality act up #221

Closed mortenmoulder closed 1 year ago

mortenmoulder commented 1 year ago

Wrote on Telegram but figured it would be better suited here.

Previous working config works weird on new firmware (2023-08-08) regarding hold functionality. My device gets flashed like this:

image

With my custom Z2M handler, I can switch between Switch and Single, Double, Triple, and Hold/Release (let's call that Multi). Multi purpose switch.

When the device is configured as Multi, hold/release doesn't work consistently. I can get it to work sometimes, but most of the time it just disconnects from the network (resets device like power cycling 4 times). This is what I have experienced:

Hold gets send - Release does not
Device resets instead of sending Hold
Device stays online instead of sending Hold for 2 minutes and then resets

Here are some pictures of the power usage:

38 seconds with single, double, triple, and trying to hold/release: image

2 minutes of device doing nothing after hold/release. Shortly after this screenshot (5-10 seconds) the device went into sleep, but when I pressed a button, it went into pairing mode (after blinking 4-5 times) image

I cannot replicate this with the old firmware. Old works flawlessly. Can someone confirm?

ptvoinfo commented 1 year ago

Confirmed. We'll fix in the next version. Just one note, the firmware will not go to sleep until it detected hold (~2000ms).