Page 1 of 1

Domoticz API: List hidden Rooms and Floorplans

Posted: Tuesday 23 August 2016 17:35
by SchattenMann
The JSON API seems a bit incomplete when it comes to Room and Floor Plans

Unable to list *all* (including hidden) rooms

Would have expected /json.htm?type=plans&order=name or /json.htm?type=plans&order=name&used=false to retrieve them but it doesn’t

Unable to list Floor Plans (Plans -> Floorplan)

I need to list all floorplans and all rooms within a floorplan but there doesn’t seem to be that option.
In insight I’d say the naming being used at the moment is quite strange as I would have expected:

/json.htm?type=plans -> list Floorplan
/json.htm?type=rooms -> list Rooms

Re: Domoticz API: List hidden Rooms and Floorplans

Posted: Thursday 25 August 2016 17:20
by SchattenMann
nvm, I've figured it out - guess Wiki needs updating!

Code: Select all

http://192.168.1.2:8080/json.htm?type=floorplans
http://192.168.1.2:8080/json.htm?type=plans&displayhidden=1
http://192.168.1.2:8080/json.htm?type=command&param=getfloorplanplans&idx=1

Re: Domoticz API: List hidden Rooms and Floorplans

Posted: Friday 26 August 2016 15:55
by Toulon7559
@SchattenMann

What do you want to tell with that list of IP-adresses in the local range of 192.168.* ?
We (= other forum-members) cannot see what you intend to show by clicking those URLs

Re: Domoticz API: List hidden Rooms and Floorplans

Posted: Friday 26 August 2016 15:57
by SchattenMann
can't see how that's a problem, just replace 192.168.1.2 with your Domoticz IP