Page 1 of 1

Getting Fibaro FGMS001 Lux with Lua

Posted: Thursday 14 January 2016 21:06
by Westcott
Hello,

I have two Fibaro FGMS001, each has a device for temperature, and another for Lux, with the same node name.
In Blockly there is a choice of devices: Temperature, and Utility/Actual (for Lux)
In Lua, if I use otherdevices_svalues['node-name'] one of the FGMS001 nodes returns its temperature, the other returns its Lux.

Any ideas how to get both nodes to reliably return Lux in Lua?

Re: Getting Fibaro FGMS001 Lux with Lua

Posted: Thursday 14 January 2016 21:20
by jvdz
You should have different devices for Temp/Lux and motion detection, which you can retrieve the data for when you have given them all a unique name.
Did you given all 3 devices the same name?

Jos

Re: Getting Fibaro FGMS001 Lux with Lua

Posted: Thursday 14 January 2016 21:35
by Westcott
Doh!
I realised that as I was in the shower after posting the stupid question!
Thanks.