Closed Maxcodesthings closed 1 year ago
onvif documentation onvif source (message by IssueLinks)
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!
(message by CodeOwnersMention)
I have the same problem. This is my automation, and it fails on the last service call, where the camera is set to preset '2'. So in this case, when somebody rings the doorbell, the camera is set to position 1 (works), the notification image is sent (works), wait 1 minute (works) and then set the camera back to position 2 (does not work)
When I later call the exact same service to set it to position 2, it works
alias: "Doorbell Notifications"
trigger:
platform: state
entity_id: binary_sensor.deurbel
to: 'on'
condition:
- condition: template
value_template: >
{{ (as_timestamp(now()) - as_timestamp(trigger.from_state.last_changed)) > 10 }}
action:
- service: onvif.ptz
target:
device_id: a8774c441091d271c266d7e511ad9928
data:
preset: '1'
move_mode: GotoPreset
- service: camera.snapshot
data:
entity_id: camera.dahua_mediaprofile_channel1_substream1
filename: '/tmp/snapshot_camera_voordeur.jpg'
- service: notify.pushover
data:
message: "Ding dong! Er drukt iemand op de deurbel"
title: "Deurbel"
data:
attachment: '/tmp/snapshot_camera_voordeur.jpg'
- delay: 00:01:00
- service: onvif.ptz
target:
device_id: a8774c441091d271c266d7e511ad9928
data:
preset: '2'
move_mode: GotoPreset
I also noticed that movement commands with pre-set does not work anymore.
Logger: homeassistant.components.onvif Source: components/onvif/event.py:134 Integration: ONVIF (documentation, issues) First occurred: 19:39:42 (1 occurrences) Last logged: 19:39:42
Failed to restart ONVIF PullPoint subscription for '24:28:fd:d3:91:8e'. Retrying
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Using a GoToPreset on
onvif.ptz
service returns an unknown exception:All other PTZ actions work, just not GoToPreset.
What version of Home Assistant Core has the issue?
2022.6.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
onvif
Link to integration documentation on our website
https://www.home-assistant.io/integrations/onvif/
Diagnostics information
config_entry-onvif-a8bab2046ab4fa87c69dc39ca04c0383.json.txt
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response