I'v tried to create e device with JSON. Type is 244 (light/switch) and subtype is 62 (selector). I have the last release 2023.2.
/json.htm?type=command¶m=createdevice&idx=HWIDX&name=TEST&sensormappedtype=244
{
"status" : "ERR"
}
Also the older command doesn't'work.
Hopefully someone can help me.
Create device JSON failed
Moderator: leecollings
-
- Posts: 75
- Joined: Friday 08 January 2016 10:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
- jvdz
- Posts: 2208
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Create device JSON failed
Have you checked the log as I assume it tells you that this format API format has changed!
https://www.domoticz.com/wiki/Domoticz_ ... d_newer.29
https://www.domoticz.com/wiki/Domoticz_ ... d_newer.29
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 75
- Joined: Friday 08 January 2016 10:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: Create device JSON failed
Thanks for your answer.
As you can see in my post I use the NEW command. It's not working with this new command.
As you can see in my post I use the NEW command. It's not working with this new command.
- jvdz
- Posts: 2208
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Create device JSON failed
Ah ... you're (of course) right.
Maybe a security issue as that change substantially too?
Shouldn't your url also include the subtype?
/json.htm?type=command¶m=createdevice&idx=HWIDX&name=TEST&sensormappedtype=244&devicesubtype=62
Maybe a security issue as that change substantially too?
Shouldn't your url also include the subtype?
/json.htm?type=command¶m=createdevice&idx=HWIDX&name=TEST&sensormappedtype=244&devicesubtype=62
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 75
- Joined: Friday 08 January 2016 10:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Nederland
- Contact:
Re: Create device JSON failed
Unfortunately same issue.
http://192.168.1.114:8080/json.htm?type ... subtype=62
Creating of new hardware/sensors is already enabled,. So, also that cannot be the problem.
http://192.168.1.114:8080/json.htm?type ... subtype=62
Creating of new hardware/sensors is already enabled,. So, also that cannot be the problem.
- kiddigital
- Posts: 437
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Create device JSON failed
What HTTP response code do you get? 200 or something else?
Try running domoticz with some debug flags enabled by setting ‘-debuglevel normal,hardware,auth’ for example.
Try running domoticz with some debug flags enabled by setting ‘-debuglevel normal,hardware,auth’ for example.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
- waltervl
- Posts: 5396
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Create device JSON failed
Just to be sure..
You have to change HWIDX to an enabled dummy hardware gateway idx number or other hardware gateway that is controlling the device.
You have to change HWIDX to an enabled dummy hardware gateway idx number or other hardware gateway that is controlling the device.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest