-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While-pressed and/or On-release trigger for the custom buttons. #234
Comments
The standard approach to handling mouse/touch interaction in Home Assistant does not support actions on down/release (i.e. you couldn't do this in a stock picture elements card). I can play around and see if I can trick it into complying though ;-) What would you like it to call? i.e. is there a HA service or equivalent you'd configure it to call? |
I'll add that I'm not sure this is a good idea? There could be quite a bit of latency if you're away from home, and I could imagine the UX being poor: "Forward a bit, no, too much, back a bit, no! Too much, back the other way! Arg!". Maybe a "Move 3% left" button would be better that could be just repeatedly tapped? At least that's controllable/predictable. |
|
@maxi1134 Investigated this a bit more. I have working code that adds So it will work in these cases:
But it cannot work in these cases:
=> With that limitation, is it still useful? |
Hey @dermotduffy, Just to be sure that I understood, when you say "Frigate card Menu icons". If so, I think it would still be usefull! I would not be able to place them in a cross pattern, but having them side by side work as well! |
Well, you can put the menu anywhere you want, but yeah the menu bar along the side! Just not the elements rendered 'onto' the card.
Yup. OK! In general I'm not a huge fan of these kind of random (to a user) limitations, but lets see how this goes. I'll make it clear in the documentation that this is only partial support. |
Is your feature request related to a problem? Please describe.
I am looking for a way to control my PTZ camera from within the stream.
Describe the solution you'd like
To do so, I need a way of sending a start movement signal ( On-press trigger on the button ) and a stop motion signal ( On-release trigger), This way you get to have it move until you stop pressing ( When then sends the signal to stop motion)
Describe alternatives you've considered
I currently use pre-defined points with a single rest call:
(Top right corner )
The text was updated successfully, but these errors were encountered: