home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.95k stars 31k forks source link

No fine pan tilt control in ONVIF integration. Movement is erratic. #131492

Open Bifsie opened 19 hours ago

Bifsie commented 19 hours ago

The problem

I am using the ONVIF integration with a cheap wireless Faleemi PTZ camera (FSC776) that I had laying around. I added the code to enable PTZ control found here. I have the distance set to 0.1 and it moves quite far. Anything less than 0.1 (such as 0.05) does not seem to make it any finer than 0.1. Also, the distance it moves varies each time. There seems to be something funny going on here. Moving the camera around with its phone app works as expected. I'm at a loss.

What version of Home Assistant Core has the issue?

core-2024.11.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ONVIF

Link to integration documentation on our website

https://www.home-assistant.io/integrations/onvif/#action-onvifptz

Diagnostics information

home-assistant_onvif_2024-11-24T22-22-28.040Z.log

Example YAML snippet

- entity: camera.studio_inside_ptz_profile1
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        entity_id: camera.studio_inside_ptz_profile1
        pan: LEFT
        speed: 0.5
        distance: 0.1
        move_mode: ContinuousMove
    name: Pan Left
    icon: mdi:arrow-left

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 19 hours ago

Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration (onvif) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `onvif` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign onvif` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


onvif documentation onvif source (message by IssueLinks)