Open lleonardos opened 1 year ago
i think is related to #166
i can confirm that doing what was said in #166 allowed me to view full event info. "BTW, you can try this locally.." Edit this file - https://github.com/rroller/dahua/blob/main/custom_components/dahua/client.py#L608
Change codes = ",".join(events) to codes = "All"
event_type: dahua_event_received data: Code: AccessControl action: Pulse index: "0" data: CardName: Lorenzo CardNo: 9B70E0EC CardType: 0 CreateTime: 1692757097 Door: 0 ErrorCode: 0 Method: 1 ReaderID: "1" Status: 1 Type: Entry UTC: 1692757097 UserID: "1" UserType: 0 name: YP4L180xxx DeviceName: YP4L180xxx origin: LOCAL time_fired: "2023-08-23T02:18:17.775297+00:00" context: id: 01H8G2YZ9FV11X5H4YK2WAVR3X parent_id: null user_id: null
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Im trying to Add my FaceRecognition Acess control to homeassistant, is a White label from dahua and uses the same API from what i have seen in the codes. I can add the device using the dahua integration, it recognizes as:
Device info SS 3540 MF FACE EX by Dahua Firmware: 2.000.00IB007.0.R,build:2023-02-23, but i only get the motions events in devicelog, i can turn on the lights , and unlock the door via call service. Serial Number starts with YP4L
Describe the solution you'd like A clear and concise description of what you want to happen.
When i call the API in python using digest Auth i get the folling response of event:
And i would like to pass those attributes to HA,
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
the logs:
an example of the device response in the device documentation:
avaible at https://intelbras-caco-api.intelbras.com.br/obtendo_eventos/eventManager
any help is aprecciated as this would add support for alot of future face recognition acess control devices made by dahua