Since 4 January, I don’t know why but the following cURL command is no longer working from Home Assistant, although it used to work with no issues until then. The command purpose is to open a gate/relay embedded in a HikVision DS-KV6113-WPE1(B) doorbell:
curl -i --digest -u admin:password -X PUT -d '<RemoteControlDoor><cmd>open</cmd></RemoteControlDoor>' http://192.168.0.72/ISAPI/AccessControl/RemoteControl/door/1
The command works fine from other computers in the same LAN and the door opens (see the HTTP/1.1 200 OK response in the second text block):
This has been working for months with no issues, so I am wondering whether any of the latest HA updates has changed the way that cURL commands are being handled from Home Assistant. Any advice, please?
I finally fixed the problem by checking doorbell communication with a browser. After some tests, I managed to get the following command which works with no issues. I cleaned it up a bit removing some headers which do not change command behaviour. Do feel free to try removing some other headers which probable don’t modify command results either. I am just too lazy to do it at the moment:
On top of this, while I was doing some tests from the Live View page within the doorbell backend, I realized that there are two additional commands that can be useful for certain situations. I haven’t ever seen such commands in any forum, website nor the ISAPI protocol documentation:
COMMAND FOR OPENING THE GATE RELAY AND KEEP IT OPEN
I was wrong. Problem was not fixed. Commands are fine, because they work if I issue them from another computer. They worked for a few days from within HA, but now they do not work from if I issue such commands from the HA Terminal (they still work from another computer). I am starting to think that there is some sort of IP banning at some point that is causing this problem. Any advice?
Thank you! Good to know that I am not the only one experiencing this problem. Eventually, I removed all manual commands from the config, and I installed the HikVision Add-On, which it is working fine for the moment. Anyway, I would like to know the reason for the manual commands not to be working when they are executed from the HA system.