Yeah, was searching for it too
I now use google assistant to open the door
Yeah, was searching for it too
I now use google assistant to open the door
So i can now reuse the 2 Shelly1 relays iāve installed at the house entrance for something else!!
Getting the button press event on a sensor without using a nodemcu would be also very useful
Yeah, i am now finding out how to capture a doorpress event
You like your doorbell?
Installed last June to replace a very old 2 wires video intercom, and always worked perfectly.
Iām satisfied with that, already integrated with HA using its 1080p rtsp stream, working these days to gain also its doorlocks management
I canāt get any call status detail, maybe my fault, only an authorization issue
{
"requestURL": "/ISAPI/VideoIntercom/callStatus",
"statusCode": 4,
"statusString": "Invalid Operation",
"subStatusCode": "badAuthorization",
"errorCode": 1073741827,
"errorMsg": "The user has not passed the authentication"
}
I was passing the needed credentials, but I was using a Google Chrome browser to get that, it does not parse the full output
This is with CURL
HTTP/1.1 401 Unauthorized
Date: Sun, 07 Feb 2021 22:15:38 GMT
Server: webs
Content-Length: 0
Connection: close
X-Frame-Options: SAMEORIGIN
Pragma: no-cache
Cache-Control: no-cache
WWW-Authenticate: Digest qop="auth", realm="DS-4B9D48FF", nonce="OTU1ZTM1YmE4NzUzNDM3M2JmMjJmYjljZmY1MzYwMWY=", stale="false", opaque="", domain="::"
Content-Type: application/json
HTTP/1.1 200 OK
Date: Sun, 07 Feb 2021 22:15:38 GMT
Server: webs
Content-Length: 42
Connection: close
X-Frame-Options: SAMEORIGIN
Pragma: no-cache
Cache-Control: no-cache
Content-Type: application/json
{
"CallStatus": {
"status": "idle"
}
WTF it works!
After pressing the button
HTTP/1.1 200 OK
Date: Sun, 07 Feb 2021 22:21:16 GMT
Server: webs
Content-Length: 42
Connection: close
X-Frame-Options: SAMEORIGIN
Pragma: no-cache
Cache-Control: no-cache
Content-Type: application/json
{
"CallStatus": {
"status": "ring"
}
After answering
HTTP/1.1 200 OK
Date: Sun, 07 Feb 2021 22:21:43 GMT
Server: webs
Content-Length: 44
Connection: close
X-Frame-Options: SAMEORIGIN
Pragma: no-cache
Cache-Control: no-cache
Content-Type: application/json
{
"CallStatus": {
"status": "onCall"
}
Here is the good syntax for me
curl --digest http://user:[email protected]/ISAPI/VideoIntercom/callStatus?format=json
{
"CallStatus": {
"status": "idle"
}
}
Good to hear
But that command is what I told you to try right? Or did you change something?
Yes , i tried indeed chrome too, so when not using chrome it gave you another output? Ok ā¦ strangeā¦ Gonna try that also tomorrow
The URL is exactly the same you posted, no changes
curl --digest http://user:[email protected]/ISAPI/VideoIntercom/callStatus?format=json
iām configuring the rest sensor in HA to see what happens
Hmm, strange itās always idle for meā¦
How are you testing the curl now? From putty?
Also post your yaml for that rest sensor, can be usefull for other people too
Also, i donāt know how often you can poll it, are you setting up a scan interval?
This can be usefull too, itās an example node script to request isapi calls
Mine ISAPI calls are not there. But should be easy to add them
but not sure if itās using some kind of polling , maybe itās the same as create a rest sensorā¦
I am also trying to find the isapi url to capture when a door went open (relay open/closed) , would be usefull too, that way I can turn off the alarm or turn on lights when you enter your homeā¦
If i can find that one, i can ditch my nodemcu too
Tested in a MobaXterm ssh session on my Rasp PI, rest sensor is not working yet, will continue tomorrow.
Iām not sure about the scan_interval value, default 60 seconds is too much, need further testing.
Ok, yeah 60 is way to much , must be like 1 or 2ā¦
so in chrome you always had idle status? Gonna try tomorrow also in ssh, but I think mine wonāt work, i always had idle ā¦ I also have another intercom model
I changed first post with the working commands