You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
b'--myboundary'
b'Content-Type: text/plain'
b'Content-Length:67'
b''
b'Code=KeepLightOn;action=Pulse;index=0;data={'
b' "Status" : "Off"'
b'}'
b''
{}
b''
b'--myboundary'
b'Content-Type: text/plain'
b'Content-Length:37'
b''
{}
b'Code=VideoMotion;action=Start;index=0'
b''
b'--myboundary'
b'Content-Type: text/plain'
b'Content-Length:133'
b''
{}
b'Code=_EncodePartSnap_;action=Pulse;index=0;data={'
b' "Path" : "\\/var\\/tmp\\/partsnap3.jpg",'
b' "PathBig" : "",'
b' "Sequence" : 3051'
b'}'
b''
b''
{}
b'--myboundary'
b'Content-Type: text/plain'
b'Content-Length:226'
b''
b'Code=_DoorFace_;action=Pulse;index=0;data={'
b' "Alive" : 100,'
b' "Door" : 0,'
b' "FeatureId" : 1,'
b' "OpenDoorMethod" : 3,'
b' "Similarity" : 99,'
b' "SnapPath" : "\\/var\\/tmp\\/partsnap3.jpg",'
b' "UserID" : "1",'
b' "readID" : 1'
b'}'
b''
{}
b''
b'--myboundary'
b'Content-Type: text/plain'
b'Content-Length:194'
b''
{}
b'Code=_NewFile_;action=Pulse;index=0;data={'
b' "File" : "\\/mnt\\/appdata1\\/userpic\\/SnapShot\\/2023-08-12\\/14\\/48\\/1_99_100_20230812144816459.jpg",'
b' "Size" : 10957,'
b' "StartTime" : 1691862496'
b'}'
b''
b''
{}
b'--myboundary'
b'Content-Type: text/plain'
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:
2023-08-12 14:12:38.848 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.141 on channel 0: [{'Code': 'VideoMotion', 'action': 'Start', 'index': '0'}]
2023-08-12 14:12:43.723 DEBUG (MainThread) [custom_components.dahua] Events received from 192.168.1.141 on channel 0: [{'Code': 'VideoMotion', 'action': 'Stop', 'index': '0'}]
2023-08-12 14:12:48.420 DEBUG (MainThread) [custom_components.dahua] ClientError fetching information from http://192.168.1.141:80/cgi-bin/configManager.cgi?action=getConfig&name=DisableLinkage
an example of the device response in the device documentation:
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
The text was updated successfully, but these errors were encountered: