Lua script. Include temperature variable in Email. Need Help

Moderator: leecollings

Post Reply
Knight
Posts: 36
Joined: Thursday 12 February 2015 22:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Lua script. Include temperature variable in Email. Need Help

Post by Knight »

Hi, I'm trying to understand Lua.

I need help with a simple script that will do the following.

* Temp sensor 1
* Variable Temp 0/1
* Variable Temperature (Variable Temperature = Temp Sensor 1)

When Temp sensor 1 is below 20 degrees and Variable Temp = 0 send an email and attach variable Temperature to the message.
Change Variable Temp to 1

__________________________________________

When Temp sensor 1 is over 20 degrees send an email and attach variable Temperature to the message.
Change Variable Temp to 0


The purpose of the script is that I would like to read all temp sensors and attach the value to a summary email
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest