dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
470 stars 52 forks source link

How to add a duration to frigate.ptz service #1420

Closed mhoogenbosch closed 1 month ago

mhoogenbosch commented 1 month ago

Not really an issue, but can't find the answer anywhere.

I got my card configured, previously with the IMOU service. But since IMOU is going to charge for cloud api calls (or in fact; already is). I'm moving to PTZ from native Frigate. The controls work within frigate. So connection is great. But calling the service doesn't stop moving.

My config:

    elements:
      - type: custom:frigate-card-ptz
        orientation: horizontal
        style:
          right: 85%
          top: 75%
          transform: scale(3, 3)
        actions_left:
          action: call-service
          service: frigate.ptz
          data:
            action: move
            argument: left
          target:
            entity_id: camera.fynncam
        actions_right:
          action: call-service
          service: frigate.ptz
          data:
            action: move
            argument: right
          target:
            entity_id: camera.fynncam

I tried adding duration, also looked into some other configs and tried adding ptztimeout, but none seem to make the camera stop moving.

robby-d commented 1 month ago

looks like the next version (currently in dev) will have built-in PTZ control, I would assume via leveraging frigate's PTZ service. see https://github.com/dermotduffy/frigate-hass-card/commit/e12912fa85a082c45f131829e812e6120844e1bc

@dermotduffy - any idea when you will be tagging and releasing this next version?

mhoogenbosch commented 1 month ago

looks like the next version (currently in dev) will have built-in PTZ control, I would assume via leveraging frigate's PTZ service. see e12912f

@dermotduffy - any idea when you will be tagging and releasing this next version?

Couldn't find an open issue for this, thanks! Would be really nice if we for example could test this with a beta release.

dermotduffy commented 1 month ago

looks like the next version (currently in dev) will have built-in PTZ control, I would assume via leveraging frigate's PTZ service. see https://github.com/dermotduffy/frigate-hass-card/commit/e12912fa85a082c45f131829e812e6120844e1bc

That's right. PTZ should just work out of the box (zero extra config) for Frigate cameras, from the next release.

@dermotduffy - any idea when you will be tagging and releasing this next version?

No particular time in mind, whenever this milestone has all the issues finished.

Would be really nice if we for example could test this with a beta release.

Whilst there's no beta released yet, you can certainly build your own and test it out, or use the build artifacts from a Github workflow. Check out this page/video in the dev docs, but you'll be on your own to get it working!

mhoogenbosch commented 1 month ago

I've added the dev js file and the controls work! Thanks! I'll close this issue.