Get notified if temperature changes

Hi, this is my first post here so please be gentle.

I have searched the forum and google for how to get a notification when temperature changes. The only thing i have found is “if temperature goes below/above”. Is it possible to trigger on every temperaturechange?

Hope my english is good enough…

Sent from my Nexus 4 using Tapatalk

Good enough for me!

You can use the PLEG plugin.
Using the Input Device Properties tab and create an Input property … call it something like MyTemp

Then use the Condition tab and create a condition called NotifyTempChange witch is defined simply as:
MyTemp

Then create a Notification or Action for NotifyTempChange to accomplish your notification needs.
If you use something other than Vera’s notification … i.e. you use something like Vera Alerts.
You can have the temperature in the message as follows:
In the advanced tab for Actions, add an action from the Vera Alerts plugin device.
Change the message to something like:
Vera has noticed the temperatature is now {(MyTemp)}

Thank you. Will try it when im home from work. I am using Vera Alerts (and i like it a lot). I even installed pleg, but haven’t figured it out yet.

Sent from my Nexus 4 using Tapatalk

Hi again.
I cannot get this to work. I?m probably missing something obvious… any pointers?

Program Logic Event Generator

Device ID: 1472013-11-12 18:10:07.148 PLC Version: 5.3

Device Properties

Name Device Name Device Variable Last Change Value
MyTemp 1_utetemp CurrentTemperature 2013-11-12 18:09:25.715 9
Conditions

Name Expression Last True State
NotifyTempChange MyTemp 2013-11-12 17:50:59.220 9
Actions

Actions for Condition: NotifyTempChange

Immediate

Device Action Arguments
VeraAlerts SendAlert Message=Vera has noticed the temperature now is {(MyTemp)} Recipients=ddaannnnee

Did you arm the PLEG ?

Yes, it was armed. Disarmed it and armed it again to be sure. I even uninstalled and installed it again. The condition only seems to be true when i create the PLEG and the vera starts…

Sent from my Nexus 4 using Tapatalk

My bad …
Rename the condition to:
_NotifyTempChange

Note: the leading underscore … this tells PLEG to trigger the action … even if the condition is already true.

Thanks for your help. Really appreciate it. Anyway, that made the condition true. But it doesnt trigger any notification… any suggestions? Is there some logfile i can look at?

Sent from my Nexus 4 using Tapatalk

I added a standardnotification and that somehow made it work… I’ve deleted that again and still get the vera alert-notifications so now its perfect :slight_smile: thank you very much! If I want to monitor another temperature, can I do that in the same PLEG? Or is it better to create another one?

Sent from my Nexus 4 using Tapatalk

I would put similar logic in the Same PLEG.

I have one for Lighting … one for Occupancy and Security … one for Water Management …

Hi Richard,

Is it possible with PLEG to use a device property (HMCT) in a scene to send JSON?

local status, result = luup.inet.wget(“http://192.168.1.65:8080/json.htm?type=command&param=udevice&idx=359&nvalue=0&svalue={(HMCT)})”)

I’m trying to update a Dummy temperature sensor in Domoticz.

Based on what you told above, HMCT is storing the data and sending me a Prowl notification but in Domoticz I can see the device updated but not with any value from HMCT.

Hope that makes sense!

This value is only available to the PLEG instance where it is defined.

If you want to share it with some other scene (Where you can run LUA code) … then you will need to write it to a Variable Container in PLEG and have your scene read it from there.

Thanks Richard - I will give it a go.