I have setup a new anemometer (wind speed meter) in my Domoticz setup. Now, I want to use a LUA script to turn a virtual switch on/off when the wind is above a particular value.
But, for some reason.. the LUA variable is always reading 0.00 as windspeed. I have looked at the Wiki, but I don't know exactly what is incorrect?
When I simply read the Windmeter value:
Code: Select all
sWindvalue =(otherdevices_svalues['WindMeter']) print ("sWindvalue: "..sWindvalue)
LUA: sWindvalue: 0.00;N;6;6;0.0;0.0
So it reads something, but everything is looking pretty much 0 On my Domoticz dashboard I do see a good value. What am I doing wrong here?
Any help is appreciated