Writing sensor temperature to Notification/Log


#1

1) Give a description of the problem
I am trying to write the temperature value from a sensor to the Log/Push Notification and failing. The device name is BedroomTemp, the value is “temperature”. I have tried different combinations of trying to put the value in {} brackets in the GUI but it keeps saying variable doesn’t exist. I have looked on Google and Wiki for an answer to no avail, or I am using crap search terms.

2) What is the expected behavior?
I’d like to see a message in the log (using Log info) or a PUSH NOTIFICATION that says “The bedroom temperature is temperature”. Where temperature is the value from the sensor.

Any pointers greatly appreciated.


#2

Using Expression from the drop-down menu, put your plain text, including necessary spaces, between " " marks and write [BedroomTemp : temperature] where you want the temperature to show up. Don’t enclose that in the " " marks though or you’ll just get the characters as written.

Here’s a quick sample using my garage door sensor:


#3

Fantastic!!! That works, I am new to creating pistons and wasn’t aware that using Expression would achieve this goal. Thanks very much for your rapid response.