Create Custom Sensor with Axis Label in JSON call
Posted: Wednesday 04 September 2019 20:29
Hello,
I'm looking to create (and why not delete), one (and of course more) custom sensor with specific axis, by one call in JSON
The target is create it in one script.
I did a lot of research, on this forum and of course with our friend Google but I didn't find the good call in JSON.
The excellent WIKI page Domoticz API/JSON URL's speak about createvirtualsensor ( Create a virtual sensor ) with one Dummy Hardware, but I can't find how call to have one new Custom Sensor without ERROR
I think, is look like something like that :
But all my tests failed
So, if somebody have the good call ( in JSON or other ) to create ( and delete ) one customsensor, you are welcome
I'm looking to create (and why not delete), one (and of course more) custom sensor with specific axis, by one call in JSON
The target is create it in one script.
I did a lot of research, on this forum and of course with our friend Google but I didn't find the good call in JSON.
The excellent WIKI page Domoticz API/JSON URL's speak about createvirtualsensor ( Create a virtual sensor ) with one Dummy Hardware, but I can't find how call to have one new Custom Sensor without ERROR
I think, is look like something like that :
Code: Select all
http://IPADRESS:8080/json.htm?type=createvirtualsensor&idx=DUMMY_HARDWARE_ID&sensorname=NAME&sensortype=CustomSensor&axislabel=NAMELABEL
So, if somebody have the good call ( in JSON or other ) to create ( and delete ) one customsensor, you are welcome