1) Give a description of the problem
I would like to get the current presence state of my presence sensors
2) What is the expected behavior?
See above
3) What is happening/not happening?
Not sure of the variable
**4) Post a Green Snapshot of the
1) Give a description of the problem
I would like to get the current presence state of my presence sensors
2) What is the expected behavior?
See above
3) What is happening/not happening?
Not sure of the variable
**4) Post a Green Snapshot of the
Define a string variable as something like presenceOne.
For the initial value, select Physical Device(s), select your presence 1 sensor, and “presence” as the information you want reported back…
(Or, if you want to skip all that you can also try this…)
When you’re setting up the SMS notification, go to Expression in the message drop down menu and type
'The current state of Pines Home is:' {{$locationMode}' '{$shmStatus}}' '{$time}' '{$location}' '{$weather}' '[Presence Sensor 1: presence]' '[Presence Sensor 1: presence]
Where can I find the syntax for what you described? I figured there was a way to show a device state our anything else with a call, but couldn’t find anything. What I mean where you have “[Presence Sensor 1: presence]” is there a list of the working features like this?
I’m not if there’s a lot of documentation on that but a good start is at https://wiki.webcore.co/Expressions
And, to follow-up @eibyer, when you type out your expression of [name:attribute] or [variable:attribute], webCoRE will autopopulate the attributes for the name/variable.
I used the following
{playhousereport}," “,{$locationMode},” “,{$shmStatus},” “,[presenceFamily: presence],” “,{$time},” ",{$weather}
I get The current state of Pines Home is: Home Disarmed present and present 2:33 P.M. null.
Why is weather null and can i get present and present to say the names + present or not present?
Try this. There are two ways to use variables in messages - through expressions or values.
For more info on the {$weather} variable, see this link.
I know it gives you double notifications. I was simply trying to show you different ways to use your variables. You can tweak that piston to give you only one.