adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
461 stars 66 forks source link

New Gesture: Long-Press #114

Closed Newlance closed 2 years ago

Newlance commented 2 years ago

Is your feature request related to a problem? Please describe. I am limited to having to chose between turning on/off a light, or accessing its more-info page to change the color.

Describe the solution you'd like I would love to see the ability to short press or long press to trigger 2 different actions such as a short press toggles the light, and a long press opens the more-info panel.

Describe alternatives you've considered As an alternate solution, if long-press actions are not possible, a single click to trigger one action, and a double click to trigger another. This seems less intuitive though, and potentially harder to implement, as you would need to set a slight delay after the first click to wait for a second click.

Newlance commented 2 years ago

Another possible use case: ceiling fans. tap to toggle lights, long press to toggle fan

Newlance commented 2 years ago

I just discovered this kind of - almost - works (???) No long press, but I accidentally set it up so one light is single click (using gestures) and another light is double click (using light action) I didnt realize the double click was already implemented. So far I cant see a way to have both actions on the same light though -- the single click will always trigger before I get a chance to double click.

Newlance commented 2 years ago

Closing this and replacing it with a broader yet more specific request