Why does the Hub Power Source state never change?


#1

1) Give a description of the problem
Always returns “Mains” but WebCore Dashboard properly shows the state in its Home Page

2) What is the expected behavior?
Should indicate if on Mains or Battery accordingly

3) What is happening/not happening?
State never changes

**4) Post a Green Snapshot of the piston

Note Simple test statement on line 25:

Log info “Hub power source”

5) Attach any logs (From ST IDE and by turning logging level to Full)
12/26/2017, 2:52:43 PM +909ms
+1ms ╔Received event [Home].test = 1514325163908 with a delay of 0ms
+94ms ║mains
+116ms ╚Event processed successfully (117ms)
12/26/2017, 2:51:40 PM +117ms
+1ms ╔Received event [Home].test = 1514325100116 with a delay of 0ms
+90ms ║mains
+117ms ╚Event processed successfully (118ms)


#2

Piston snapshot please


#3

Use the green camera to take a snapshot, the Red one has your phone # on it


#4

I’ve been wondering this myself for a while now. I’ve got a piston I’d setup 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.