Average Temp from multiple sensors

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Average Temp from multiple sensors

Post by dannybloe »

Can't you use the constants like domoticz.HUM_COMFORTABLE (see docs) to do the comparisons and for updating?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Wob76
Posts: 110
Joined: Wednesday 19 April 2017 6:31
Target OS: Linux
Domoticz version:
Contact:

Re: Average Temp from multiple sensors

Post by Wob76 »

Ahhh, I didn't realise I could build a local variable array like that, thanks, I'll have a tinker.

When I use sensor1.humidityStatus I receive the humidity as a strong, not a constant, is there a different command to get the output as a string? It's not a big deal, my if statement converts the string back the the constant, but just thought I must be missing something, with the outputs and inputs being different.

Thanks,
Wob
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Average Temp from multiple sensors

Post by dannybloe »

I see, I'll added that to the todo list to have a value representation for the humidity.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest