How to make a simple http request with rest?


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
    url: 'http://admin:[email protected]/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0'

    url: ''
    username: admin
    password: password

Service is OK :

But I get this error, why the credentials disappeared from the URL ?

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

hey thank you ! You are better at search than me :sweat_smile: