home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.76k stars 7.19k forks source link

ONVIF Integration: Push or Polling? #34238

Open fdcastel opened 1 month ago

fdcastel commented 1 month ago

Feedback

According to the docs this integration is "Local Push":

Its IoT class is Local Push.

If this is true, why is my Home Assistant bombarding the camera with requests each second? (a polling behavior)

# Cameras are on VLAN Id = 20
tcpdump -i br20 dst <CAMERA-IP-ADDRESS>
listening on br20, link-type EN10MB (Ethernet), snapshot length 262144 bytes
16:23:09.780464 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 3609614560, win 32120, options [mss 1460,sackOK,TS val 2830077882 ecr 0,nop,wscale 7], length 0
16:23:09.781108 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 55023461, win 251, options [nop,nop,TS val 2830077883 ecr 3268089879], length 0
16:23:09.782470 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830077884 ecr 3268089879], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:09.782640 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830077884 ecr 3268089879], length 1347: HTTP
16:23:09.826477 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3568, win 249, options [nop,nop,TS val 2830077929 ecr 3268089924], length 0
16:23:09.827097 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3568, win 249, options [nop,nop,TS val 2830077929 ecr 3268089924], length 0
16:23:09.887551 IP ha.MY-LOCAL-DOMAIN.COM.45202 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3569, win 249, options [nop,nop,TS val 2830077990 ecr 3268089985], length 0

16:23:10.580227 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 2002539827, win 32120, options [mss 1460,sackOK,TS val 2830078682 ecr 0,nop,wscale 7], length 0
16:23:10.580811 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 2269951635, win 251, options [nop,nop,TS val 2830078683 ecr 3268090679], length 0
16:23:10.582263 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830078684 ecr 3268090679], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:10.582435 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830078684 ecr 3268090679], length 1347: HTTP
16:23:10.627280 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3568, win 249, options [nop,nop,TS val 2830078729 ecr 3268090724], length 0
16:23:10.628016 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3568, win 249, options [nop,nop,TS val 2830078730 ecr 3268090724], length 0
16:23:10.690450 IP ha.MY-LOCAL-DOMAIN.COM.45218 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3569, win 249, options [nop,nop,TS val 2830078793 ecr 3268090788], length 0

16:23:11.380570 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 2156502685, win 32120, options [mss 1460,sackOK,TS val 2830079483 ecr 0,nop,wscale 7], length 0
16:23:11.381120 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 413811775, win 251, options [nop,nop,TS val 2830079483 ecr 3268091479], length 0
16:23:11.382486 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830079484 ecr 3268091479], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:11.382658 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830079484 ecr 3268091479], length 1347: HTTP
16:23:11.427560 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3568, win 249, options [nop,nop,TS val 2830079530 ecr 3268091524], length 0
16:23:11.428172 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3568, win 249, options [nop,nop,TS val 2830079530 ecr 3268091524], length 0
16:23:11.488177 IP ha.MY-LOCAL-DOMAIN.COM.45222 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3569, win 249, options [nop,nop,TS val 2830079590 ecr 3268091586], length 0

16:23:12.181533 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 2334137178, win 32120, options [mss 1460,sackOK,TS val 2830080284 ecr 0,nop,wscale 7], length 0
16:23:12.182097 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3135479585, win 251, options [nop,nop,TS val 2830080284 ecr 3268092280], length 0
16:23:12.183527 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830080285 ecr 3268092280], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:12.183704 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830080285 ecr 3268092280], length 1347: HTTP
16:23:12.187579 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830080290 ecr 3268092280], length 1347: HTTP
16:23:12.227398 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 1449, win 249, options [nop,nop,TS val 2830080329 ecr 3268092325], length 0
16:23:12.227421 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 1449, win 249, options [nop,nop,TS val 2830080330 ecr 3268092325,nop,nop,sack 1 {2897:2941}], length 0
16:23:12.227438 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 2941, win 249, options [nop,nop,TS val 2830080330 ecr 3268092325], length 0
16:23:12.228003 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 2941, win 249, options [nop,nop,TS val 2830080330 ecr 3268092325], length 0
16:23:12.287937 IP ha.MY-LOCAL-DOMAIN.COM.45228 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 2942, win 249, options [nop,nop,TS val 2830080390 ecr 3268092386], length 0
16:23:12.980507 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 1758954674, win 32120, options [mss 1460,sackOK,TS val 2830081083 ecr 0,nop,wscale 7], length 0
16:23:12.981618 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 173598955, win 251, options [nop,nop,TS val 2830081084 ecr 3268093079], length 0
16:23:12.983036 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830081084 ecr 3268093079], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:12.983210 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830081084 ecr 3268093079], length 1347: HTTP
16:23:12.987714 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830081090 ecr 3268093079], length 1347: HTTP

16:23:13.027496 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3128, win 249, options [nop,nop,TS val 2830081130 ecr 3268093125], length 0
16:23:13.028102 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3128, win 249, options [nop,nop,TS val 2830081130 ecr 3268093125], length 0
16:23:13.088346 IP ha.MY-LOCAL-DOMAIN.COM.45242 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3129, win 249, options [nop,nop,TS val 2830081190 ecr 3268093186], length 0
16:23:13.780349 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 1799691109, win 32120, options [mss 1460,sackOK,TS val 2830081882 ecr 0,nop,wscale 7], length 0
16:23:13.780804 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 390505904, win 251, options [nop,nop,TS val 2830081883 ecr 3268093879], length 0
16:23:13.781957 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830081883 ecr 3268093879], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:13.782127 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830081883 ecr 3268093879], length 1347: HTTP
16:23:13.784539 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830081887 ecr 3268093879], length 1347: HTTP
16:23:13.826387 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 1449, win 249, options [nop,nop,TS val 2830081928 ecr 3268093924], length 0
16:23:13.826489 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3568, win 249, options [nop,nop,TS val 2830081929 ecr 3268093924], length 0
16:23:13.827055 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3568, win 249, options [nop,nop,TS val 2830081929 ecr 3268093924], length 0
16:23:13.886656 IP ha.MY-LOCAL-DOMAIN.COM.45246 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3569, win 249, options [nop,nop,TS val 2830081989 ecr 3268093984], length 0

16:23:14.581090 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 1181992428, win 32120, options [mss 1460,sackOK,TS val 2830082683 ecr 0,nop,wscale 7], length 0
16:23:14.584742 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 1242902470, win 251, options [nop,nop,TS val 2830082687 ecr 3268094682], length 0
16:23:14.586156 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830082687 ecr 3268094682], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:14.586330 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830082688 ecr 3268094682], length 1347: HTTP
16:23:14.624337 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3568, win 249, options [nop,nop,TS val 2830082726 ecr 3268094722], length 0
16:23:14.624987 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3568, win 249, options [nop,nop,TS val 2830082727 ecr 3268094722], length 0
16:23:14.686310 IP ha.MY-LOCAL-DOMAIN.COM.45252 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3569, win 249, options [nop,nop,TS val 2830082788 ecr 3268094784], length 0

16:23:15.377886 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [S], seq 1120585211, win 32120, options [mss 1460,sackOK,TS val 2830083480 ecr 0,nop,wscale 7], length 0
16:23:15.379221 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 1414845278, win 251, options [nop,nop,TS val 2830083481 ecr 3268095477], length 0
16:23:15.380415 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 0:465, ack 1, win 251, options [nop,nop,TS val 2830083482 ecr 3268095477], length 465: HTTP: POST /onvif/Events/PullSubManager_20240810T191934Z_0 HTTP/1.1
16:23:15.380590 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830083482 ecr 3268095477], length 1347: HTTP
16:23:15.385588 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [P.], seq 465:1812, ack 1, win 251, options [nop,nop,TS val 2830083488 ecr 3268095477], length 1347: HTTP
16:23:15.424173 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 1449, win 249, options [nop,nop,TS val 2830083526 ecr 3268095521], length 0
16:23:15.424234 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3568, win 249, options [nop,nop,TS val 2830083526 ecr 3268095521], length 0
16:23:15.424811 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [F.], seq 1812, ack 3568, win 249, options [nop,nop,TS val 2830083527 ecr 3268095521], length 0
16:23:15.485342 IP ha.MY-LOCAL-DOMAIN.COM.45260 > c3.iot.MY-LOCAL-DOMAIN.COM.http: Flags [.], ack 3569, win 249, options [nop,nop,TS val 2830083587 ecr 3268095583], length 0

What are those requests? Is there some way of disabling them?

URL

https://www.home-assistant.io/integrations/onvif/

Version

2024.8.1

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @hunterjm, mind taking a look at this feedback 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 feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign onvif` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.