Page 1 of 1

How to get idx for z-wave (RGBW) controller

Posted: Friday 08 April 2016 19:49
by Shaggie_NB
I wanted to try the following command for my Fibaro RGBW device:
To use the animation program Storm on this device.

But I don't know which number to use for the idx?
Is it derivable from the node number? In my case: 004 (0x04) or is it something else?
Can anybody help me? :oops:

Re: How to get idx for z-wave (RGBW) controller

Posted: Friday 08 April 2016 21:20
by sijones
Go to devices and look for it in the list, the idx is on the left.

Re: How to get idx for z-wave (RGBW) controller

Posted: Friday 08 April 2016 21:23
by sijones
I've moved this as it's not a bug or problem just a use case question. Please make sure you look for the correct place to create a thread.

Re: How to get idx for z-wave (RGBW) controller

Posted: Friday 08 April 2016 21:55
by Shaggie_NB
sijones wrote:Go to devices and look for it in the list, the idx is on the left.
I'm working a lot with domoticz and I know how to work with JSON en idx......
But the RGBW controller isn't a device in the devicelist, because it's a zwave node.

So again my question: wich idx to use for changing the parameters of the node?

(because this isn't so simple and it's not in the wiki or anything, for me it's a bug or at least a problem!)

Re: How to get idx for z-wave (RGBW) controller

Posted: Saturday 09 April 2016 9:03
by gizmocuz
It is also a device in the devices table

Re: How to get idx for z-wave (RGBW) controller

Posted: Saturday 09 April 2016 13:57
by Shaggie_NB
Thnx gizmocuz!! it's working!!

I looked in the table ZWaveNodes and saw the following data for the Fibaro RGBW:
ID=1, HardwareID=14, HomeID=25487939, NodeID=4

If you want to see the configpage of the device you must use the HardwareID:
http://[ipadres]:[portnumber]/json.htm?type=openzwavenodes&idx=14 (at the end you see the idx)

If you want to change the animation setting to Storm you must use the ID:
http://[ipadres]:[portnumber]/json.htm?type=command&param=applyzwavenodeconfig&idx=1&valuelist=72_Nw%3D%3D

@gizmocus: Is it possible to show these values on the device-page? It would be a lot easier to find... :oops:

Re: How to get idx for z-wave (RGBW) controller

Posted: Saturday 09 April 2016 14:04
by Egregius
If you click the device you should see it's settings below the table.

Re: How to get idx for z-wave (RGBW) controller

Posted: Saturday 09 April 2016 14:12
by Shaggie_NB
Egregius wrote:If you click the device you should see it's settings below the table.
But do you also see the different idx's to use for the JSON commands.... I don't :shock:
And in the devicetable you don't see the RGBW controller itself (with idx=14 in my case)

Re: How to get idx for z-wave (RGBW) controller

Posted: Saturday 09 April 2016 14:22
by Egregius
No, but you do when you enable developer mode in your browser.
That way you also see the complete command that is sent. Lot's more than just one value.

example:

Code: Select all

http://192.168.0.10:8084/json.htm?type=command&param=applyzwavenodeconfig&idx=31&valuelist=1_MTA=__2_MTU=__6_MzA=__9_MjAw__14_MjU1__16_MA==__20_MTU=__22_MzA=__26_MA==__40_MA==__42_MA==__60_MA==__62_MA==__64_MA==__66_MA==__81_NTA=__82_MTAw__83_MTAwMA==__86_MTk=__87_Mjg=__2000_NzIwMA==__3_MiBwdWxzZXM=__4_MTIgc2Vjb25kcw==__8_UElSIHNlbnNvciBhbHdheXMgYWN0aXZl__12_QkFTSUMgT04gYW5kIEJBU0lDIE9GRiBjb21tYW5kIGZyYW1lcyBzZW50IGluIEJhc2ljIENvbW1hbmQgQ2xhc3Mu__24_VGFtcGVy__80_TG9uZyBibGluaywgdGhlbiBzaG9ydCBibGluaywgTEVEIGNvbG91ciBkZXBlbmRzIG9uIHRoZSB0ZW1wZXJhdHVyZS4gU2V0IGJ5IHBhcmFtZXRlcnMgODYgYW5kIDg3Lg==__89_TEVEIGluZGljYXRlcyB0YW1wZXIgYWxhcm0u__

Re: How to get idx for z-wave (RGBW) controller

Posted: Saturday 09 April 2016 15:04
by Shaggie_NB
Egregius wrote:No, but you do when you enable developer mode in your browser.
That way you also see the complete command that is sent. Lot's more than just one value.
Oooh Thnx!!!

I didn't know that. But it is really very handy!!
I'm not so familiar with all this web-stuff..