Todays easy question (Solved)

Moderator: leecollings

Post Reply
Xroads
Posts: 30
Joined: Thursday 25 February 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Todays easy question (Solved)

Post by Xroads »

I'm trying to get the lux value from some pirs, so i can use it as trigger.
Using this string

Code: Select all

lux = tonumber(otherdevices_svalues[c],'Lux')
Where c is the name of the pir, and the sensor is named "GangLux", but never getting any data.
I'm 100% sure theres something wrong with the formatting of this string, but as a total newb I just can't see it :oops:
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
Xroads
Posts: 30
Joined: Thursday 25 February 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Todays easy question (Solved)

Post by Xroads »

This is the correct formatting.

Code: Select all

lux = tonumber(otherdevices_svalues[c..'Lux'])
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest