I have a piston that subscribes to inactivity events from motion sensor.
Most of the time (let’s say 95%), inactivity event triggers the piston and processing goes as expected.
Sometimes however, something strange happens and I don’t see the event processed at all, despite seeing it logged in the event history of the device. Coincidentally, when this happens, the piston logs the following message: “Piston waited at a semaphore for Xms”
I’ve seen this in several occasion in different code, and not just with motion sensor inactivity events. There are no restrictions filtering anything, just random missing of events.
I believe there’s some sort of bug in the semaphore synchronization logic causing events to be missed.