Getting Fibaro FGMS001 Lux with Lua

Moderator: leecollings

Post Reply
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Getting Fibaro FGMS001 Lux with Lua

Post 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?
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Getting Fibaro FGMS001 Lux with Lua

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Getting Fibaro FGMS001 Lux with Lua

Post by Westcott »

Doh!
I realised that as I was in the shower after posting the stupid question!
Thanks.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest