hahn-th / homematicip-rest-api

A python wrapper for the homematicIP REST API (Access Point Based)
https://hahn-th.github.io/homematicip-rest-api/
GNU General Public License v3.0
211 stars 63 forks source link

Klingelsignalerkennung HmIP-DSD-PCB no events shown #487

Closed saschaabraham closed 1 year ago

saschaabraham commented 1 year ago

Starting the hmip_cli.py with --list-events

There are many informations shown, all door contacts are shown, all heating thermostats, but! nothing from the doorbell contact. While the alexa- connection of homematic announces the door bell event, nothing is visible in the event list.

Also there is nothing except the battery exposed, it should have a window open property.

Used the latest version of the homemmatic-rest-api (1.0,14)

Expected to see something in the event list from the doorbell contact.

hahn-th commented 1 year ago

Can you please execute the command again and append --debug-level 10. You get lots of debug output after that. Try to isolate the part which belongs the the door bell after pressing the bell and post the output here pls.

You can also add LOGGER.debug(f"More Event Data: {json.dumps(event)}") after line 788 in file home.py

saschaabraham commented 1 year ago

Opening the main front door, pushing the door bell button, closing the door. Alexa starts the announcement, the homematicip app shows the notification, but nothing on the rest api:

Without the additional line, nothing of the DSD-PCB shows up: EventType: DEVICE_CHANGED Data: HmIP-SWDM Haustür lowBat(False) unreach(False) rssiDeviceValue(-70) rssiPeerValue(None) configPending(False) dutyCycle(False) windowState(OPEN) EventType: GROUP_CHANGED Data: META Flur EventType: GROUP_CHANGED Data: SECURITY_ZONE EXTERNAL active(False) silent(False) windowState(OPEN) motionDetected(None) sabotage(False) presenceDetected(None) ignorableDevices(#0) EventType: GROUP_CHANGED Data: SECURITY Flur windowState(OPEN) motionDetected(None) presenceDetected(None) sabotage(None) smokeDetectorAlarmType(None) dutyCycle(False) lowBat(False) powerMainsFailure(None) moistureDetected(None) waterlevelDetected(None) 2023-04-07 15:54:57,411 - homematicip.home - DEBUG - DEVICE_CHANGED 2023-04-07 15:54:57,411 - homematicip.home - DEBUG - GROUP_CHANGED 2023-04-07 15:54:57,411 - homematicip.home - DEBUG - GROUP_CHANGED 2023-04-07 15:54:57,415 - homematicip.home - DEBUG - GROUP_CHANGED EventType: DEVICE_CHANGED Data: HmIP-SWDM Haustür lowBat(False) unreach(False) rssiDeviceValue(-68) rssiPeerValue(None) configPending(False) dutyCycle(False) windowState(CLOSED) EventType: GROUP_CHANGED Data: META Flur EventType: GROUP_CHANGED Data: SECURITY_ZONE EXTERNAL active(False) silent(False) windowState(CLOSED) motionDetected(None) sabotage(False) presenceDetected(None) ignorableDevices(#0) EventType: GROUP_CHANGED Data: SECURITY Flur windowState(CLOSED) motionDetected(None) presenceDetected(None) sabotage(None) smokeDetectorAlarmType(None) dutyCycle(False) lowBat(False) powerMainsFailure(None) moistureDetected(None) waterlevelDetected(None) 2023-04-07 15:55:10,071 - websocket - DEBUG - Sending ping 2023-04-07 15:55:30,075 - websocket - DEBUG - Sending ping 2023-04-07 15:55:34,045 - homematicip.home - DEBUG - DEVICE_CHANGED

An with the additional line, something of the DSD-PCB shows up(ID '341B'):

2023-04-07 16:02:23,194 - websocket - DEBUG - Sending ping 2023-04-07 16:02:30,145 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "DEVICE_CHANGED", "device": {"id": "3014F711A000155A499F51EF", "type": "SHUTTER_CONTACT_MAGNETIC", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "lastStatusUpdate": 1680876150477, "label": "Haust\u00fcr", "functionalChannels": {"0": {"label": "", "deviceId": "3014F711A000155A499F51EF", "index": 0, "groupIndex": 0, "functionalChannelType": "DEVICE_BASE", "groups": ["7071f4de-fd08-4eac-a934-da0aee1c80bf", "96117b83-49dc-48cb-a6c3-dec8cb2939b6"], "unreach": false, "lowBat": false, "routerModuleEnabled": false, "multicastRoutingEnabled": false, "routerModuleSupported": false, "rssiDeviceValue": -70, "rssiPeerValue": null, "configPending": false, "dutyCycle": false, "deviceOverloaded": false, "coProUpdateFailure": false, "coProFaulty": false, "coProRestartNeeded": false, "deviceUndervoltage": false, "deviceOverheated": false, "temperatureOutOfRange": false, "devicePowerFailureDetected": false, "supportedOptionalFeatures": {"IFeatureDeviceParticulateMatterSensorCommunicationError": false, "IFeatureDeviceCoProRestart": false, "IFeatureDeviceOverheated": false, "IFeatureDeviceDaliBusError": false, "IOptionalFeatureDutyCycle": true, "IFeatureMulticastRouter": false, "IFeaturePowerShortCircuit": false, "IFeatureDeviceDriveModeError": false, "IFeatureDeviceTemperatureHumiditySensorCommunicationError": false, "IFeatureDeviceDriveError": false, "IFeatureRssiValue": true, "IFeatureBusConfigMismatch": false, "IFeatureDeviceOverloaded": false, "IOptionalFeatureDisplayContrast": false, "IFeatureDeviceIdentify": false, "IOptionalFeatureLowBat": true, "IOptionalFeatureMountingOrientation": false, "IFeatureDeviceTemperatureOutOfRange": false, "IFeatureDeviceTemperatureHumiditySensorError": false, "IOptionalFeatureDeviceErrorLockJammed": false, "IFeatureProfilePeriodLimit": false, "IFeatureDeviceCoProUpdate": false, "IOptionalFeatureDefaultLinkedGroup": false, "IFeatureDevicePowerFailure": false, "IFeatureShortCircuitDataLine": false, "IOptionalFeatureDeviceOperationMode": false, "IFeatureDeviceCommunicationError": false, "IFeatureDeviceUndervoltage": false, "IFeatureDeviceParticulateMatterSensorError": false, "IFeatureDeviceCoProError": false}, "busConfigMismatch": null, "powerShortCircuit": null, "shortCircuitDataLine": null, "profilePeriodLimitReached": null, "mountingOrientation": null, "controlsMountingOrientation": null, "temperatureHumiditySensorError": null, "temperatureHumiditySensorCommunicationError": null, "particulateMatterSensorError": null, "particulateMatterSensorCommunicationError": null, "displayContrast": null, "lockJammed": null, "deviceDriveError": null, "deviceDriveModeError": null, "deviceCommunicationError": null, "daliBusState": null, "deviceOperationMode": null, "defaultLinkedGroup": []}, "1": {"label": "", "deviceId": "3014F711A000155A499F51EF", "index": 1, "groupIndex": 1, "functionalChannelType": "SHUTTER_CONTACT_CHANNEL", "groups": ["96117b83-49dc-48cb-a6c3-dec8cb2939b6", "82034433-1865-40a7-b162-a20c2d116a5f"], "channelRole": "WINDOW_SENSOR", "windowState": "OPEN", "eventDelay": 0}}, "deviceArchetype": "HMIP", "manuallyUpdateForced": false, "serializedGlobalTradeItemNumber": "3014F711A000155A499F51EF", "manufacturerCode": 1, "oem": "eQ-3", "modelType": "HmIP-SWDM", "firmwareVersion": "1.2.12", "permanentlyReachable": false, "connectionType": "HMIP_RF", "updateState": "BACKGROUND_UPDATE_NOT_SUPPORTED", "firmwareVersionInteger": 66060, "modelId": 340, "liveUpdateState": "UP_TO_DATE", "availableFirmwareVersion": "0.0.0"}} 2023-04-07 16:02:30,158 - homematicip.home - DEBUG - DEVICE_CHANGED 2023-04-07 16:02:30,159 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "GROUP_CHANGED", "group": {"id": "7071f4de-fd08-4eac-a934-da0aee1c80bf", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "metaGroupId": null, "label": "Flur", "lastStatusUpdate": 1680876150477, "unreach": false, "lowBat": false, "dutyCycle": false, "type": "META", "channels": [{"deviceId": "3014F711A00026DD8994341B", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F50C7", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 0}], "groups": ["78d86cb3-a145-492e-9879-7b81478af6f5", "82034433-1865-40a7-b162-a20c2d116a5f"], "configPending": false, "sabotage": null, "incorrectPositioned": null, "groupIcon": ""}} 2023-04-07 16:02:30,160 - homematicip.home - DEBUG - GROUP_CHANGED 2023-04-07 16:02:30,161 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "GROUP_CHANGED", "group": {"id": "96117b83-49dc-48cb-a6c3-dec8cb2939b6", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "metaGroupId": null, "label": "EXTERNAL", "lastStatusUpdate": 1680876150477, "unreach": false, "lowBat": false, "dutyCycle": false, "type": "SECURITY_ZONE", "channels": [{"deviceId": "3014F711A00000DBE9A09E05", "channelIndex": 0}, {"deviceId": "3014F711A0001558A9A48E88", "channelIndex": 1}, {"deviceId": "3014F711A0001558A9A48E88", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 1}, {"deviceId": "3014F711A0001558A9A48F06", "channelIndex": 1}, {"deviceId": "3014F711A0001558A9A48F06", "channelIndex": 0}, {"deviceId": "3014F711A00000DBE9A09E05", "channelIndex": 1}], "active": false, "silent": false, "ignorableDeviceChannels": [], "windowState": "OPEN", "motionDetected": null, "presenceDetected": null, "sabotage": false, "zoneAssignmentIndex": "ALARM_MODE_ZONE_2", "configPending": false}} 2023-04-07 16:02:30,163 - homematicip.home - DEBUG - GROUP_CHANGED 2023-04-07 16:02:30,164 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "GROUP_CHANGED", "group": {"id": "82034433-1865-40a7-b162-a20c2d116a5f", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "metaGroupId": "7071f4de-fd08-4eac-a934-da0aee1c80bf", "label": "Flur", "lastStatusUpdate": 1680876150477, "unreach": false, "lowBat": false, "dutyCycle": false, "type": "SECURITY", "channels": [{"deviceId": "3014F711A000155A499F50C7", "channelIndex": 1}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 1}], "windowState": "OPEN", "motionDetected": null, "presenceDetected": null, "sabotage": null, "moistureDetected": null, "waterlevelDetected": null, "powerMainsFailure": null, "smokeDetectorAlarmType": null}} 2023-04-07 16:02:30,165 - homematicip.home - DEBUG - GROUP_CHANGED EventType: DEVICE_CHANGED Data: HmIP-SWDM Haustür lowBat(False) unreach(False) rssiDeviceValue(-70) rssiPeerValue(None) configPending(False) dutyCycle(False) windowState(OPEN) EventType: GROUP_CHANGED Data: META Flur EventType: GROUP_CHANGED Data: SECURITY_ZONE EXTERNAL active(False) silent(False) windowState(OPEN) motionDetected(None) sabotage(False) presenceDetected(None) ignorableDevices(#0) EventType: GROUP_CHANGED Data: SECURITY Flur windowState(OPEN) motionDetected(None) presenceDetected(None) sabotage(None) smokeDetectorAlarmType(None) dutyCycle(False) lowBat(False) powerMainsFailure(None) moistureDetected(None) waterlevelDetected(None) 2023-04-07 16:02:36,039 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "DEVICE_CHANGED", "device": {"id": "3014F711A000155A499F51EF", "type": "SHUTTER_CONTACT_MAGNETIC", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "lastStatusUpdate": 1680876156364, "label": "Haust\u00fcr", "functionalChannels": {"0": {"label": "", "deviceId": "3014F711A000155A499F51EF", "index": 0, "groupIndex": 0, "functionalChannelType": "DEVICE_BASE", "groups": ["7071f4de-fd08-4eac-a934-da0aee1c80bf", "96117b83-49dc-48cb-a6c3-dec8cb2939b6"], "unreach": false, "lowBat": false, "routerModuleEnabled": false, "multicastRoutingEnabled": false, "routerModuleSupported": false, "rssiDeviceValue": -68, "rssiPeerValue": null, "configPending": false, "dutyCycle": false, "deviceOverloaded": false, "coProUpdateFailure": false, "coProFaulty": false, "coProRestartNeeded": false, "deviceUndervoltage": false, "deviceOverheated": false, "temperatureOutOfRange": false, "devicePowerFailureDetected": false, "supportedOptionalFeatures": {"IFeatureDeviceParticulateMatterSensorCommunicationError": false, "IFeatureDeviceCoProRestart": false, "IFeatureDeviceOverheated": false, "IFeatureDeviceDaliBusError": false, "IOptionalFeatureDutyCycle": true, "IFeatureMulticastRouter": false, "IFeaturePowerShortCircuit": false, "IFeatureDeviceDriveModeError": false, "IFeatureDeviceTemperatureHumiditySensorCommunicationError": false, "IFeatureDeviceDriveError": false, "IFeatureRssiValue": true, "IFeatureBusConfigMismatch": false, "IFeatureDeviceOverloaded": false, "IOptionalFeatureDisplayContrast": false, "IFeatureDeviceIdentify": false, "IOptionalFeatureLowBat": true, "IOptionalFeatureMountingOrientation": false, "IFeatureDeviceTemperatureOutOfRange": false, "IFeatureDeviceTemperatureHumiditySensorError": false, "IOptionalFeatureDeviceErrorLockJammed": false, "IFeatureProfilePeriodLimit": false, "IFeatureDeviceCoProUpdate": false, "IOptionalFeatureDefaultLinkedGroup": false, "IFeatureDevicePowerFailure": false, "IFeatureShortCircuitDataLine": false, "IOptionalFeatureDeviceOperationMode": false, "IFeatureDeviceCommunicationError": false, "IFeatureDeviceUndervoltage": false, "IFeatureDeviceParticulateMatterSensorError": false, "IFeatureDeviceCoProError": false}, "busConfigMismatch": null, "powerShortCircuit": null, "shortCircuitDataLine": null, "profilePeriodLimitReached": null, "mountingOrientation": null, "controlsMountingOrientation": null, "temperatureHumiditySensorError": null, "temperatureHumiditySensorCommunicationError": null, "particulateMatterSensorError": null, "particulateMatterSensorCommunicationError": null, "displayContrast": null, "lockJammed": null, "deviceDriveError": null, "deviceDriveModeError": null, "deviceCommunicationError": null, "daliBusState": null, "deviceOperationMode": null, "defaultLinkedGroup": []}, "1": {"label": "", "deviceId": "3014F711A000155A499F51EF", "index": 1, "groupIndex": 1, "functionalChannelType": "SHUTTER_CONTACT_CHANNEL", "groups": ["96117b83-49dc-48cb-a6c3-dec8cb2939b6", "82034433-1865-40a7-b162-a20c2d116a5f"], "channelRole": "WINDOW_SENSOR", "windowState": "CLOSED", "eventDelay": 0}}, "deviceArchetype": "HMIP", "manuallyUpdateForced": false, "serializedGlobalTradeItemNumber": "3014F711A000155A499F51EF", "manufacturerCode": 1, "oem": "eQ-3", "modelType": "HmIP-SWDM", "firmwareVersion": "1.2.12", "permanentlyReachable": false, "connectionType": "HMIP_RF", "updateState": "BACKGROUND_UPDATE_NOT_SUPPORTED", "firmwareVersionInteger": 66060, "modelId": 340, "liveUpdateState": "UP_TO_DATE", "availableFirmwareVersion": "0.0.0"}} 2023-04-07 16:02:36,046 - homematicip.home - DEBUG - DEVICE_CHANGED 2023-04-07 16:02:36,047 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "GROUP_CHANGED", "group": {"id": "7071f4de-fd08-4eac-a934-da0aee1c80bf", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "metaGroupId": null, "label": "Flur", "lastStatusUpdate": 1680876156364, "unreach": false, "lowBat": false, "dutyCycle": false, "type": "META", "channels": [{"deviceId": "3014F711A00026DD8994341B", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F50C7", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 0}], "groups": ["78d86cb3-a145-492e-9879-7b81478af6f5", "82034433-1865-40a7-b162-a20c2d116a5f"], "configPending": false, "sabotage": null, "incorrectPositioned": null, "groupIcon": ""}} 2023-04-07 16:02:36,048 - homematicip.home - DEBUG - GROUP_CHANGED 2023-04-07 16:02:36,049 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "GROUP_CHANGED", "group": {"id": "96117b83-49dc-48cb-a6c3-dec8cb2939b6", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "metaGroupId": null, "label": "EXTERNAL", "lastStatusUpdate": 1680876156364, "unreach": false, "lowBat": false, "dutyCycle": false, "type": "SECURITY_ZONE", "channels": [{"deviceId": "3014F711A00000DBE9A09E05", "channelIndex": 0}, {"deviceId": "3014F711A0001558A9A48E88", "channelIndex": 1}, {"deviceId": "3014F711A0001558A9A48E88", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 0}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 1}, {"deviceId": "3014F711A0001558A9A48F06", "channelIndex": 1}, {"deviceId": "3014F711A0001558A9A48F06", "channelIndex": 0}, {"deviceId": "3014F711A00000DBE9A09E05", "channelIndex": 1}], "active": false, "silent": false, "ignorableDeviceChannels": [], "windowState": "CLOSED", "motionDetected": null, "presenceDetected": null, "sabotage": false, "zoneAssignmentIndex": "ALARM_MODE_ZONE_2", "configPending": false}} 2023-04-07 16:02:36,050 - homematicip.home - DEBUG - GROUP_CHANGED 2023-04-07 16:02:36,051 - homematicip.home - DEBUG - More Event Data: {"pushEventType": "GROUP_CHANGED", "group": {"id": "82034433-1865-40a7-b162-a20c2d116a5f", "homeId": "1be3a1fa-9e25-433e-a593-18792e0b71cd", "metaGroupId": "7071f4de-fd08-4eac-a934-da0aee1c80bf", "label": "Flur", "lastStatusUpdate": 1680876156364, "unreach": false, "lowBat": false, "dutyCycle": false, "type": "SECURITY", "channels": [{"deviceId": "3014F711A000155A499F50C7", "channelIndex": 1}, {"deviceId": "3014F711A000155A499F51EF", "channelIndex": 1}], "windowState": "CLOSED", "motionDetected": null, "presenceDetected": null, "sabotage": null, "moistureDetected": null, "waterlevelDetected": null, "powerMainsFailure": null, "smokeDetectorAlarmType": null}} 2023-04-07 16:02:36,053 - homematicip.home - DEBUG - GROUP_CHANGED EventType: DEVICE_CHANGED Data: HmIP-SWDM Haustür lowBat(False) unreach(False) rssiDeviceValue(-68) rssiPeerValue(None) configPending(False) dutyCycle(False) windowState(CLOSED) EventType: GROUP_CHANGED Data: META Flur EventType: GROUP_CHANGED Data: SECURITY_ZONE EXTERNAL active(False) silent(False) windowState(CLOSED) motionDetected(None) sabotage(False) presenceDetected(None) ignorableDevices(#0) EventType: GROUP_CHANGED Data: SECURITY Flur windowState(CLOSED) motionDetected(None) presenceDetected(None) sabotage(None) smokeDetectorAlarmType(None) dutyCycle(False) lowBat(False) powerMainsFailure(None) moistureDetected(None) waterlevelDetected(None) 2023-04-07 16:02:43,197 - websocket - DEBUG - Sending ping

hahn-th commented 1 year ago

Button Press Events zum Beispiel werden direkt zwsichen den Geräten hin und hergeschickt. Das heißt wir kriegen davon nix mit. Wir bekommen nur die Events, die vom HAP geschickt werden. Das heißt, das wird wohl leider nix.

Der zweite Channel von dem Teil hat ein Property namens "doorBellSensorEventTimestamp". Das könnte darauf hindeuten, dass der Button gedrückt und ein Event geschickt wurde.

Falls du mehr Infos zum Gerät habne möchtest, kannst du es nochmal mit --print-infos versuchen. Ich glaub, in Kombination mit dem device. Falls das nicht klappt. Kann ich das aber noch nachziehen.

saschaabraham commented 1 year ago

Die App wird nur über die Android Benachrichtigung darüber informiert, dass jemand die Türklingel betätigt hat. Es gibt keinerlei Events, es wird ja auch kein Zustand in der App angezeigt. Solange dass so von eq3 gelöst ist, wird man da nicht rankommen.