Want Alerts for Hub’s Power Status


#1

1) Give a description of the problem
I’m not sure if it’s even working or not because I seem to get notifications even when the power “seems” to be fine.

2) What is the expected behavior?
Push and text notifications every time the hub loses power

3) What is happening/not happening?
Nothing

**4) Post a Green Snapshot of the piston!

5) Attach any logs (From ST IDE and by turning logging level to Full)
77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: info ╔ Event processed successfully (183ms) 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: trace ║╔ Execution stage complete. (21ms) 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: debug ║║ Condition group #1 evaluated false (state did not change) (9ms) 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: debug ║║ Condition #4 evaluated false (6ms) 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: debug ║║ Comparison (enum) mains changes = false (4ms) 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: trace ║╚ Execution stage started 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: trace ║ Runtime (35904 bytes) successfully initialized in 95ms (v0.2.0e8.20170918) (149ms) 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: debug ║ RunTime Analysis CS > 17ms > PS > 95ms > PE > 27ms > CE 77945fb0-e44c-4c95-b2b4-967c9583f704 11:10:41 PM: info ╚ Received event [Tall Pines].test = 1505877041114 with a delay of 5ms


#2

Did you try using ‘battery’?

For notifications, select push notifications from the drop-down menu, as well as SMS.


#3

What do you mean by try using battery?


#4

31 PM


#5

Changed it to this… Don’t mind be other stuff I’ve added in there - playing around trying to learn how to do this better.

[Removed IMAGE - please use the green photo share button instead of a screenshot. The green photo will remove personal info like your address]


#6

Just wanted to mention that my presence sensor says\ that it’s about 4,500 miles away. Just an FYI.


#7

I have the same problem. My piston is pretty simple, just subscribing to different power source change types, the power change event is never fired. IDE reflects the power source changes, but webCore never sees it.


#8

No word as to why these events are lost?


#9

I’m not sure because I’ve literally unplugged my hub and never got any notifications, but yet sometimes get notifications when the power seems fine.


#10

(Removed your image as the green photo share button is revealing your email address)


#11

@GRClark please take a new snapshot of that piston. The dashboard has been updated to anonymize email addresses and anyone who restores your piston will be prompted to enter their own email address. This only affects emails typed in as values for the Send email routine; future updates are planned to allow more control over what is anonymized.


#12

Oh my bad, totally forgot about my email address showing…


#13

Looks like the anonymization worked :slight_smile:


#14

Looks like the original question has not been answered yet? I have the same issue as @omayhemo. Simple piston to send an SMS when Hub ‘changes to’ battery power. I unplug the Hub and confirm in the IDE it shows battery power but Piston does not fire.

Any ideas on why the Piston does not work? I have a second home in the Mountains that loses power fairly often and I need a way for a Piston to run that tells me so.

Thanks in adavance!


#15

This is what I ended up with for a piston and the only time I get alerts is when they rollout new firmware and reboot my hub. However if I go into IDE and reboot my hub I won’t get an alert. Furthermore I can pull the plug on the back of my hub and still nothing. What’s more frustrating is I tried adding power status to piston state and will only show battery. Am I misunderstanding how this command works in webCoRE? I’ve see the home status and hub power tiles piston elsewhere in the community but I’d just like a simple piston with no tiles.


#16

Anyone figure this out yet? I have the same issue…