Matt5918
(Matthieu)
1
Hello,
I have an ip camera perfectly streaming in lovelace.
But I need to use more PTZ commands
I tried to modify my config file to add a rest command and both methods (with credentials included or not in the URL don’t work
What did I do wrong ?
#HTTP request
rest_command:
cam_hide:
url: 'http://admin:[email protected]/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0'
cam_main:
url: 'http://192.168.1.70/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0'
username: admin
password: password
Service is OK :
But I get this error, why the credentials disappeared from the URL ?
Matt5918
(Matthieu)
2
Of course if there is another way to do that (whatever the method), please tell me your method.
I just need to change the camera preset depending of my presence at home.
This post seems to have similar urls to yours, maybe have a look there ?
1 Like
Matt5918
(Matthieu)
4
hey thank you ! You are better at search than me