Fire alarm offline warning


#1

1) Give a description of the problem
So I am trying to make my first piston here, and are kind of stuck already.
I am planning to set up a bunch of fire alarms in my house, and also a couple of rental houses, it´s really important that I get a notification if some of them goes offline for more than 8 hours (it¨s set up to report battery status every 4 hours, and it seems like it goes offline between these status updates)

2) What is the expected behavior?

3) What is happening/not happening?
I am not getting a notification, tried to set it up to report if it´s online and offline, but it does not work.
4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
( Logs
9.4.2018, 21:42:55 +552ms
+1ms ╔Received event [Snippen].test = 1523302975552 with a delay of 0ms
+74ms ║RunTime Analysis CS > 12ms > PS > 49ms > PE > 13ms > CE
+77ms ║Runtime (38058 bytes) successfully initialized in 49ms (v0.3.104.20180323) (75ms)
+77ms ║╔Execution stage started
+93ms ║║Comparison (string) stays (string) offline = false (4ms)
+95ms ║║Cancelling any timed trigger schedules for condition 4
+96ms ║║Cancelling statement #4’s schedules…
+97ms ║║Condition #4 evaluated false (14ms)
+98ms ║║Cancelling statement #1’s schedules…
+99ms ║║Condition group #1 evaluated false (state did not change) (16ms)
+101ms ║╚Execution stage complete. (24ms)
+102ms ╚Event processed successfully (102ms)
)

For info, these are the fire alarm´s I have bought: Heiman Z wave smoke alarm


#2

Review the values in IDE. They are case sensitive when evaluated in webcore. OFFLINE and offline matters.

Edit: I have a piston that checks for OFFLINE status and the variable I use is $status


#3

thnx!
This was the values I found in IDE:

“originalStatus”: “offline”

I tried to change to this:

but with no luck. I will give it a shot again tomorrow. It´s getting late here.

here´s the log:
|+0ms|╔Received event [Snippen].test = 1523309360103 with a delay of 0ms|
|—|---|
|+86ms|║RunTime Analysis CS > 14ms > PS > 49ms > PE > 24ms > CE|
|+89ms|║Runtime (37312 bytes) successfully initialized in 49ms (v0.3.104.20180323) (88ms)|
|+90ms|║╔Execution stage started|
|+102ms|║║Comparison (string) OFFLINE stays (string) offline = false (2ms)|
|+105ms|║║Cancelling any timed trigger schedules for condition 5|
|+105ms|║║Cancelling statement #5’s schedules…|
|+106ms|║║Condition #5 evaluated false (10ms)|
|+107ms|║║Condition group #1 evaluated false (state did not change) (11ms)|
|+110ms|║╚Execution stage complete. (20ms)|
|+112ms|╚Event processed successfully (112ms)|