Control Fan with Lua
Posted: Sunday 20 August 2017 13:42
Hello i'am trying to control my fan with LUA.
I use this Lua script: https://www.domoticz.com/wiki/Humidity_control
Instead of of humidity i will control my fan with air quality, so i changed SENSOR_NAME = 'Co2 living room'
But then i get the error LUA: current is 0 or nil. Skipping this reading.
The C02 value comes from a Netatmo wheaterstation.
Tanks for your help.
Piacco
I use this Lua script: https://www.domoticz.com/wiki/Humidity_control
Instead of of humidity i will control my fan with air quality, so i changed SENSOR_NAME = 'Co2 living room'
But then i get the error LUA: current is 0 or nil. Skipping this reading.
The C02 value comes from a Netatmo wheaterstation.
Tanks for your help.
Piacco