Darn, I should have dug into the BTHome specs a bit more first. I did not expect the protocol itself actually lacking such an event.
Thank you for the alternative suggestions, much appreciated.
It does make things all a bit more uncertain. The idea is to use a Shelly Plus 2PM as a Bluetooth gateway. This should pick up the Puck button press/release and pass it to Home Assistant. Though Shelly docs on this functionality is limited to non-existent. I'd have to inquire about it to make sure that they don't impose some limitation on what kind of messages/events can be passed along.
Your BTHome docs make it look promising though.
I was going to say that by looking at your BTHome implementation, it will be throwing an exception when I just introduce an unknown type/property like "locked". But you were referring to 'cheating' with the BTHome "lock" sensor property, which you actually renamed to "locked". I suppose that'll do just fine indeed.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Darn, I should have dug into the BTHome specs a bit more first. I did not expect the protocol itself actually lacking such an event.
Thank you for the alternative suggestions, much appreciated.
It does make things all a bit more uncertain. The idea is to use a Shelly Plus 2PM as a Bluetooth gateway. This should pick up the Puck button press/release and pass it to Home Assistant. Though Shelly docs on this functionality is limited to non-existent. I'd have to inquire about it to make sure that they don't impose some limitation on what kind of messages/events can be passed along.
Your BTHome docs make it look promising though.
I was going to say that by looking at your BTHome implementation, it will be throwing an exception when I just introduce an unknown type/property like "locked". But you were referring to 'cheating' with the BTHome "lock" sensor property, which you actually renamed to "locked". I suppose that'll do just fine indeed.