I could find a workaround to do what I wanted to do, which it was basically to be able to enable/disable PUSH alerts with buttons or even with an automation (for example, enabling them when leaving home and disabling them upon returning.
I must say that Reolink Support team was very helpful, as they shared with me a couple of documents where some CGI and URL commands where listed. They replied with the documents in just a few hours! It is not the first time that I ask them for support, so it is worth mentioning that they are always quick and efficient. It was not just a straight forward copy and paste though, but it helped a lot.
Just in case someone is interested, basically, I created the following rest_command
entries in configuration.yaml
. Do note that the payload has the right string that must be posted to the NVR URL for enabling/disabling PUSH state:
rest_command:
reolink_push_on:
url: !secret ReolinkURL
payload: '[{"cmd":"SetPushV20","param":{"Push":{"enable":1}}}]'
reolink_push_off:
url: !secret ReolinkURL
payload: '[{"cmd":"SetPushV20","param":{"Push":{"enable":0}}}]'
Then, I included the following in secrets.yaml
in order to stay on the safe side, as the URL contains NVR user/password:
ReolinkURL: http://[HOST_OR_IP]:[PORT]/api.cgi?cmd=SetPushV20&user=admin&password=[NVR_PASSWORD]
Once done, the following services can be found in the Home Assistant environment:
rest_command.reolink_push_on
rest_command.reolink_push_off
With them, you can just create a couple of buttons that call such services and customize them with icons. Of course, you can also use them as actions for an automation.
My next challenge is to be able to refresh the current PUSH ON/OFF state so I can update some sort of icon or something according to current Reolink NVR state. But, with what I have already achieved, I am more than happy.
Hope this helps someone!