Open ThirteenTX opened 5 years ago
That or if door locks showed the lock/unlock button. That would be fine too.
It's typescript, but this is what you could implement long-press as used here in the button-card
Also supports double tap and repeat on long hold
Proper support for the lock domain with lock/unlock button would be great, I'll gladly get that in. I don't have a lock device myself so would be great if someone could contribute this feature ready-tested.
I'm opinionated about long-press and double tap being anti-patterns blocking good UX and thus will not add support for that.
Proper support for the lock domain with lock/unlock button would be great, I'll gladly get that in. I don't have a lock device myself so would be great if someone could contribute this feature ready-tested.
I'm opinionated about long-press and double tap being anti-patterns blocking good UX and thus will not add support for that.
@nervetattoo Any update on this lock support? Ideally I'd like to setup tapping on my lock entity to toggle the lock depending on status (ie: lock when unlocked, unlock when locked). Lock doesn't support a toggle service today so different actions depending on state is probably what makes sense with the current services offered for lock devices. I could see this being beneficial for other use cases as well.
I do have a lock device and can collaborate and test this but not to the level of being able to develop the solution.
I'd love to be able to specify tap and hold actions. This is what I have currently but clicking or holding the icon just shows history pop-up.
Not sure if that is something that is possible. Thanks for the add-on and your time on this already!