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
72.72k stars 30.45k forks source link

No registered handler for event #47636

Closed leranp closed 3 years ago

leranp commented 3 years ago

The problem

The Onvif camera doesn't add the sensors to HA, my old camera have motion sensor that was added to HA , but now I have a new camera and the sensor doesn't added to HA , maybe the protocol is different I have tried to force him to "pullpoint=true" in the device.py but it didn't help

I uploaded 2 pictures , one when the motion is clean , and the seconed is after there is a movement and the motion alert and motion sensor change to value "false"

What is version of Home Assistant Core has the issue?

2021.3.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

ONVIF

Link to integration documentation on our website

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

Example YAML snippet

# Put your YAML below this line
logger:
  default: warning
  logs:
    zeep.transport: debug
    homeassistant.components.onvif: debug

Anything in the logs that might be useful for us?

# Put your logs below this line
2021-03-08 20:46:54 DEBUG (MainThread) [homeassistant.components.onvif] Setting up the ONVIF device management service
2021-03-08 20:46:54 DEBUG (MainThread) [homeassistant.components.onvif] Retrieving current device date/time
2021-03-08 20:46:54 DEBUG (MainThread) [homeassistant.components.onvif] Setting up the ONVIF device management service
2021-03-08 20:46:54 DEBUG (MainThread) [homeassistant.components.onvif] Retrieving current device date/time
2021-03-08 20:46:55 DEBUG (MainThread) [homeassistant.components.onvif] Device date/time: 2021-03-08 18:46:55+00:00 | System date/time: 2021-03-08 18:46:54.888914+00:00
2021-03-08 20:46:55 DEBUG (MainThread) [homeassistant.components.onvif] Device date/time: 2021-03-08 18:46:59+00:00 | System date/time: 2021-03-08 18:46:54.848940+00:00

Camera GetCapabilities
True: {'Extension': (CapabilitiesExtension){
   DeviceIO[] =
      (DeviceIO){
         XAddr[] =
            "http://192.168.31.27:8899/onvif/deviceIO_service",
         VideoSources[] =
            "1",
         VideoOutputs[] =
            "0",
         AudioSources[] =
            "1",
         AudioOutputs[] =
            "0",
         RelayOutputs[] =
            "0",
      },
 }, 'Media': (MediaCapabilities){
   XAddr = "http://192.168.31.27:8899/onvif/media_service"
   StreamingCapabilities =
      (RealTimeStreamingCapabilities){
         RTPMulticast = False
         RTP_TCP = True
         RTP_RTSP_TCP = True
      }
   Extension[] =
      (Extension){
         ProfileCapabilities[] =
            (ProfileCapabilities){
               MaximumNumberOfProfiles[] =
                  "3",
            },
      },
 }, 'Analytics': (AnalyticsCapabilities){
   XAddr = "http://192.168.31.27:8899/onvif/analytics_service"
   RuleSupport = True
   AnalyticsModuleSupport = True
 }, 'PTZ': (PTZCapabilities){
   XAddr = "http://192.168.31.27:8899/onvif/ptz_service"
 }, 'Device': (DeviceCapabilities){
   XAddr = "http://192.168.31.27:8899/onvif/device_service"
   Network =
      (NetworkCapabilities){
         IPFilter = False
         ZeroConfiguration = True
         IPVersion6 = False
         DynDNS = True
         Extension =
            (NetworkCapabilitiesExtension){
               Dot11Configuration[] =
                  "false",
            }
      }
   System =
      (SystemCapabilities){
         DiscoveryResolve = False
         DiscoveryBye = True
         RemoteDiscovery = False
         SystemBackup = False
         SystemLogging = True
         FirmwareUpgrade = False
         SupportedVersions[] =
            (OnvifVersion){
               Major = 17
               Minor = 12
            },
            (OnvifVersion){
               Major = 16
               Minor = 12
            },
            (OnvifVersion){
               Major = 2
               Minor = 60
            },
            (OnvifVersion){
               Major = 2
               Minor = 40
            },
            (OnvifVersion){
               Major = 2
               Minor = 20
            },
            (OnvifVersion){
               Major = 2
               Minor = 10
            },
            (OnvifVersion){
               Major = 2
               Minor = 0
            },
         Extension =
            (SystemCapabilitiesExtension){
               HttpFirmwareUpgrade[] =
                  "false",
               HttpSystemBackup[] =
                  "false",
               HttpSystemLogging[] =
                  "false",
               HttpSupportInformation[] =
                  "false",
            }
      }
   IO =
      (IOCapabilities){
         InputConnectors = 0
         RelayOutputs = 1
         Extension =
            (IOCapabilitiesExtension){
               Auxiliary[] =
                  "false",
               Extension[] =
                  "",
            }
      }
   Security =
      (SecurityCapabilities){
         TLS1.1 = False
         TLS1.2 = False
         OnboardKeyGeneration = False
         AccessPolicyConfig = True
         X.509Token = False
         SAMLToken = False
         KerberosToken = False
         RELToken = False
         Extension[] =
            (Extension){
               TLS1.0[] =
                  "false",
               Extension[] =
                  (Extension){
                     Dot1X[] =
                        "true",
                     SupportedEAPMethod[] =
                        "0",
                     RemoteUserHandling[] =
                        "false",
                  },
            },
      }
 }, 'Events': (EventCapabilities){
   XAddr = "http://192.168.31.27:8899/onvif/event_service"
   WSSubscriptionPolicySupport = True
   WSPullPointSupport = True
   WSPausableSubscriptionManagerInterfaceSupport = False
 }, 'Imaging': (ImagingCapabilities){
   XAddr = "http://192.168.31.27:8899/onvif/image_service"
 }}

2 3

probot-home-assistant[bot] commented 3 years ago

Hey there @hunterjm, mind taking a look at this issue as its been labeled with an integration (onvif) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)