dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
511 stars 57 forks source link

Allow the PTZ to be controlled by keyboard #1315

Closed t0ny-peng closed 2 months ago

t0ny-peng commented 9 months ago

Is your feature request related to a problem? Please describe.

One of my cameras supports PTZ, and can be controlled by a Home assistant button entity. I've been using the custom:frigate-card-ptz element and it worked fine. Just wonder if there's a way to control the camera using keyboard. I'm not a JS developer, but I assume the arrow keys can be definitely captured.

Describe the solution you'd like

The custom:frigate-card-ptz element supports controlling the camera via arrow key.

Describe alternatives you've considered

Write a Python script and run it locally?


Thanks!

dermotduffy commented 2 months ago

Fixed in code, will be in the next release.