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.61k stars 30.37k forks source link

Event from Doorbird Integration Not Triggered in Home Assistant #124820

Open AndiP1234 opened 1 month ago

AndiP1234 commented 1 month ago

The problem

reopen https://github.com/home-assistant/core/issues/114545

I am using the Doorbird integration in Home Assistant to respond to events from my Doorbird camera. In the Doorbird admin interface, the event is correctly configured, and I can see that the event also appears in the Home Assistant developer tools under "Events". This confirms that the Doorbird camera and Home Assistant are communicating correctly.

The issue arises when I attempt to trigger the event created by the integration via its URL. When I access the URL directly from a web browser or using Postman, I receive an "OK" response, indicating the call was successful. However, the corresponding event in Home Assistant is not triggered, meaning the expected actions (such as turning on a light or sending a notification) that should be linked to this event are not executed.

Steps to Reproduce:

Configure the event in the Doorbird admin interface. Verify the event in Home Assistant's developer tools under "Events". Execute the event URL from a web browser or Postman. Observe that despite the "OK" response, the event in Home Assistant does not trigger any of the expected actions. Expected Behavior: After calling the URL, the corresponding event in Home Assistant should be triggered, and all associated actions should be executed as configured.

Actual Behavior: The event appears not to be triggered in Home Assistant, as none of the expected actions occur after calling the URL, despite the "OK" response.

What version of Home Assistant Core has the issue?

2024.8.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

doorbird

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

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

Code owner commands Code owners of `doorbird` 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 doorbird` 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)


doorbird documentation doorbird source (message by IssueLinks)

AndiP1234 commented 1 month ago

I deleted the device and added again with another name. only the default doorbell and motion events are working.

AndiP1234 commented 1 week ago

I tested it now, logfile looks great and at the event listener I can listens to the custom events (triggered with browser). furthermore I can create a working automation with the test event. --> events are working

BUT at the integration logbook I only see the doorbell events and there are no entities for the custom events.

image

2024-10-07 21:18:10.324 DEBUG (MainThread) [homeassistant.components.doorbird.device] Registering URL http://192.168.0.100:8123/api/doorbird/doorbird_test?token=xxxxxxxxxxxxxxx for event doorbird_test
2024-10-07 21:18:10.324 DEBUG (MainThread) [homeassistant.components.doorbird.device] URL already registered for doorbird_test
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] Registering URL http://192.168.0.100:8123/api/doorbird/doorbird_doorbell?token=xxxxxxxxxxxxxxx for event doorbird_doorbell
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] URL already registered for doorbird_doorbell
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] Registering URL http://192.168.0.100:8123/api/doorbird/doorbird_motion?token=xxxxxxxxxxxxxxx for event doorbird_motion
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] URL already registered for doorbird_motion
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] Registering URL http://192.168.0.100:8123/api/doorbird/doorbird_tuer?token=xxxxxxxxxxxxxxx for event doorbird_tuer
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] URL already registered for doorbird_tuer
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] Registering URL http://192.168.0.100:8123/api/doorbird/doorbird_andi?token=xxxxxxxxxxxxxxx for event doorbird_andi
2024-10-07 21:18:10.325 DEBUG (MainThread) [homeassistant.components.doorbird.device] URL already registered for doorbird_andi
2024-10-07 21:18:10.349 DEBUG (MainThread) [homeassistant.components.doorbird.device] DoorBird: Event config: DoorbirdEventConfig(events=[DoorbirdEvent(event='doorbird_doorbell', event_type='doorbell'), DoorbirdEvent(event='doorbird_tuer', event_type='fingerprint')], schedule=[<DoorBirdScheduleEntry {'input': 'doorbell', 'param': '1', 'output': [{'enabled': '1', 'event': 'relay', 'param': 'ghphoi:3', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}, {'enabled': '1', 'event': 'notify', 'param': '', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}, {'enabled': '1', 'event': 'http', 'param': '3', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}, {'enabled': '0', 'event': 'sip', 'param': '0', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}, {'enabled': '0', 'event': 'http', 'param': '5', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:2', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:2', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:2', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:2', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:3', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}, {'enabled': '0', 'event': 'http', 'param': '5', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>, <DoorBirdScheduleEntry {'input': 'fingerprint', 'param': 'FP-xxxxxxxx', 'output': [{'enabled': '0', 'event': 'relay', 'param': 'ghphoi:1', 'schedule': {'weekdays': [{'from': '79200', 'to': '79199'}]}}]}>], unconfigured_favorites=defaultdict(<class 'list'>, {'motion': ['4']}))