Search found 3 matches

by Dekereluitherel
Wednesday 13 November 2019 21:17
Forum: LUA
Topic: Lua script for controlling humidity in the bathroom
Replies: 144
Views: 54982

Re: Lua script for controlling humidity in the bathroom

Waaren, thanx for your time. but see edit in my previous post.
i fixed the problem bij re-adding the variable in domoticz. (and making it a string)
the scrips works like a charm again!
waaren wrote: Tuesday 12 November 2019 0:18 tonumber('12.0') in Lua <= 5.2 returns 12
tonumber('12.0') in Lua >= 5.3 returns 12.0
by Dekereluitherel
Monday 11 November 2019 20:39
Forum: LUA
Topic: Lua script for controlling humidity in the bathroom
Replies: 144
Views: 54982

Re: Lua script for controlling humidity in the bathroom

Hi waaren, This is my script. --[[ This script controls the humidity in a typical bathroom setting by detecting relative rises in humidity in a short period. Of course it requires a humidity sensor and a binary switch controlling a fan/ventilator. (there is no provision for variable speed ...
by Dekereluitherel
Sunday 10 November 2019 19:44
Forum: LUA
Topic: Lua script for controlling humidity in the bathroom
Replies: 144
Views: 54982

Re: Lua script for controlling humidity in the bathroom

Hi Guys, frequent reader of the forum, but first post. I'm having the same problems as BarryT since updating to latest beta: the script does not work anymore because of the decimal in data from the humidity sensor (xiaomi sensor) changing the integer to string does not work with me because the ...