Operate device by url?

Moderator: leecollings

Post Reply
jdhx
Posts: 2
Joined: Wednesday 11 December 2019 18:23
Target OS: Windows
Domoticz version: 4.10717
Location: Devon, UK
Contact:

Operate device by url?

Post by jdhx »

Can I operate a device by a simple url?

Something like:

http://mydom.co.uk:8000/device1

Thanks
User avatar
jvdz
Posts: 2210
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Operate device by url?

Post by jvdz »

When you mean to change a domoticz device then yes.
Look at the wiki for the api json: https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
jdhx
Posts: 2
Joined: Wednesday 11 December 2019 18:23
Target OS: Windows
Domoticz version: 4.10717
Location: Devon, UK
Contact:

Re: Operate device by url?

Post by jdhx »

I do mean operate a device, so for example if the device is a light switch then turn it on.
lost
Posts: 643
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Operate device by url?

Post by lost »

That's one of many items in the HTTP/JSON API link hereupper:
https://www.domoticz.com/wiki/Domoticz_ ... h_on.2Foff
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests