Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Badge/code control #130

Open
1 task done
pergolafabio opened this issue Aug 7, 2023 · 17 comments
Open
1 task done

Feature: Badge/code control #130

pergolafabio opened this issue Aug 7, 2023 · 17 comments
Labels
enhancement New feature or request

Comments

@pergolafabio
Copy link
Owner

Is there an existing feature request for this?

  • I have searched the existing issues

Add-on

Doorbell

Your feature request

Found usefull commands todo badge/code control:

curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/AccessControl/UserInfo/capabilities?format=json
curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/AccessControl/UserInfo/Count?format=json

curl -i --digest -u admin:xxx -X POST -H "Content-Type: application/json" -d '{"UserInfoSearchCond":{"searchID":"1","searchResultPosition": 0,"maxResults": 10,"EmployeeNoList":[{"employeeNo":"6"}]}}' http://192.168.0.70/ISAPI/AccessControl/UserInfo/Search?format=json
curl -i --digest -u admin:xxx -X POST -H "Content-Type: application/json" -d '{"UserInfoSearchCond":{"searchID":"1","searchResultPosition": 0,"maxResults": 10}}' http://192.168.0.70/ISAPI/AccessControl/UserInfo/Search?format=json


curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/AccessControl/CardInfo/capabilities?format=json
curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/AccessControl/CardInfo/Count?format=json
curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/AccessControl/CardInfo/Count?format=json&employeeNo=6

curl -i --digest -u admin:xxx -X POST -H "Content-Type: application/json" -d '{"CardInfoSearchCond": {"searchID": "1","maxResults": 10,"searchResultPosition": 0,"EmployeeNoList": [{ "employeeNo": "6" }]}}' http://192.168.0.70/ISAPI/AccessControl/CardInfo/Search?format=json
curl -i --digest -u admin:xxx -X POST -H "Content-Type: application/json" -d '{"CardInfoSearchCond": {"searchID": "1","maxResults": 10,"searchResultPosition": 0}}' http://192.168.0.70/ISAPI/AccessControl/CardInfo/Search?format=json



curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/VideoIntercom/PrivilegePasswordStatus
curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/VideoIntercom/PrivilegePasswordCfg/capabilities?format=json

PUT  /ISAPI/VideoIntercom/PrivilegePasswordCfg?format=json&security=<security>&iv=<iv>
POST /ISAPI/VideoIntercom/DeletePrivilegePasswordList?format=json


curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/SecurityCP/AlarmControlByPhone
curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/SecurityCP/AlarmControlByPhone/capabilities?format=json
curl -i --digest -u admin:xxx -X PUT -d '<AlarmControlByPhoneCfg><commandType>closeAlarm</commandType></AlarmControlByPhoneCfg>' http://192.168.0.70/ISAPI/SecurityCP/AlarmControlByPhone
@pergolafabio pergolafabio added the enhancement New feature or request label Aug 7, 2023
@xtc0r
Copy link

xtc0r commented Aug 16, 2023

What cards / protocol does the card reader of the HikVision door bells support? Could we use our smartphones (NFC) to unlock the door?

@pergolafabio
Copy link
Owner Author

hmm, dont think so by default , cause everytime you use the NFC of your android, its generates a random number, or you need to get some development kit from hikvision itself so it can get recognized...

what you can do , is to place an NFC sticker at the back of your phone, so that will be your "badge"

@xtc0r
Copy link

xtc0r commented Aug 16, 2023

After reading some posts at stackoverflow it is indeed not possible to use the phone.
I didn't expect this. So then we use a NFC tag. Still nice.

@pergolafabio
Copy link
Owner Author

Yeah I asked hikvsion to maybe get some dev kit, should be possible

@pergolafabio
Copy link
Owner Author

Hmm this one looks interesting, by using the wallet on our phones.. cause the debit cards send an unique uuid everytime... (not tested yet)

https://passninja.com/

@pergolafabio
Copy link
Owner Author

@pergolafabio
Copy link
Owner Author

Seems there are also card emulator apps, that send unique data... But I prefer the wallet / card method, cause I can open door with my smartwatch also :-)

Gonna try this later

@xtc0r
Copy link

xtc0r commented Aug 17, 2023

We would need special terminals and could not reuse the HikVision intercom readers.

Why can't I read a pass with my NFC reader or NFC app? 
Both Apple VAS (Value Added Services) and Google SmartTap use proprietary protocols to communicate data between the phone and the terminal.  A regular NFC tag reader or NFC tag reading application cannot read an NFC pass

@pergolafabio
Copy link
Owner Author

well, i just tested thet NFC Card by adding to wallet, it sends a fixed uuid, and i can open the door now with my android

@warrior12051985
Copy link

Hi, with this function will you make the number of the last NFC read available?

@pergolafabio
Copy link
Owner Author

To see who opened the door ? That's already visible as an attributes of the door switch, it's called the control_source

@pcaro
Copy link

pcaro commented Mar 6, 2024

well, i just tested thet NFC Card by adding to wallet, it sends a fixed uuid, and i can open the door now with my android

Hi, Which android phone model? Brand? App?

I can not do it with a Pixel 8 and Google Wallet.

@pergolafabio
Copy link
Owner Author

yeah, it doesnt work anymore, seems it was not fixed after all :-(
In theory it should be possible to create a static card in google wallet, but havent find a way :-(

@felipecrs
Copy link

felipecrs commented Jun 20, 2024

@pergolafabio is this issue about exposing sensors for when someone approaches an NFC card to the doorbell to trigger some automation on Home Assistant? Because this is exactly what I am looking for. :D

@pergolafabio
Copy link
Owner Author

No, this was more an idea to make persons/badges on the outdoor station, so no ivms is needed....

To see who badged or entered the key, that's already availble in the addon, on the door relay switch, you see an attribute called "source_control"

@felipecrs
Copy link

Very cool. Thank you!

@fatmacheto
Copy link

On some new devices like the 502 or the 1109 reader it is possible to use Bluetooth and NFC as a mobile credential but they need to be added to the their cloud platform in Hik-Connect teams mode and from there a mobile credential can be generated to the Hik-Connect mobile app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants