email thermostat value problem

Moderator: leecollings

Post Reply
Nomader
Posts: 19
Joined: Wednesday 24 February 2016 8:22
Target OS: Windows
Domoticz version:
Contact:

email thermostat value problem

Post by Nomader »

i am trying to send an email whenever the thermostat changes state, i use the following:

Code: Select all

commandArray[1]={['SendEmail']='Thermostat_value_has_changed# My new setpoint is {{utilitydevice[245]}} degrees #[email protected]'}
the email is sent ok but all i get is:


My new setpoint is {{utilitydevice[245]}} degrees

and not the actual value.. the idx is correct
i also tried

Code: Select all

{{temperaturedevice[245]}}
but no luck either
SweetPants

Re: email thermostat value problem

Post by SweetPants »

You need to construct the message the LUA way. Google is your friend.
Hint, you have to concatenate strings/values like <string> .. <value as string> .. <string>.\
What happens if you print {{utilitydevice[245]}}, what do you see in the log?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests