I have you component running, and i am pretty happy with the xiaomi system i have at the moment.
I am currently playing with different click types, namely “Hold”. I remember the old MQTT script would have two events for a hold
Long Press (Immediately when it detected it was a long press)
Button Release (Immediately after the button was released)
Now i think this opens up a whole bunch of different uses (setting volume, moving roller blinds up/down, then stopping when the button is released). Is this going to be implemented? or is it already?
I have our evening 5-min warning, which is when lieing in bed reading or using our phones, one says “5 minutes”, which means lights out in 5. typically we both get distracted and another 10, 20 or 30 mins goes past, before saying “that was a long 5 minutes…”
so our bedroom lamp turns on/off with a button, now i have a script which turns off after 5 mins, but there was no feedback when it worked, and it used the “hold” event (which i dont think should have been renamed from long_click_release). there were a few times the long press didnt register, and 10 minutes later we were saying “that was a long 5 minutes…”
now i have it so that as soon as the long_click is registered, the lamp turns off for 1s, then back on, indicating that our 5 mins has started, and we can go to bed on time!