Button contolling outlet with timer


#1

trying to make a piston the either of my 2 Xiaomi Zigbee Aqara Button will turn on a GE outdoor outlet for 1 minute and turn off

using the psychical button it will not trigger the piston, but with the push button option in Samrtthings classic will trigger the piiston fine

the logs are when I press the button on the smartthings app

( 6/10/2019, 2:19:37 PM +394ms
+2ms ╔Received event [Home].time = 1560190777227 with a delay of 165ms
+1567ms ║RunTime Analysis CS > 1467ms > PS > 69ms > PE > 32ms > CE
+1570ms ║Runtime (36967 bytes) successfully initialized in 69ms (v0.3.104.20180323) (1563ms)
+1571ms ║╔Execution stage started
+1648ms ║║Executed physical command [Pump GE Plug-in Outdoor Switch].off() (12ms)
+1650ms ║║Executed [Pump GE Plug-in Outdoor Switch].off (16ms)
+1671ms ║╚Execution stage complete. (101ms)
+1676ms ╚Event processed successfully (1675ms)
6/10/2019, 2:18:37 PM +10ms
+1ms ╔Received event [Xiaomi Zigbee Aqara Button AQ2 #1].button = pushed with a delay of 48ms
+63ms ║RunTime Analysis CS > 18ms > PS > 36ms > PE > 10ms > CE
+66ms ║Runtime (36986 bytes) successfully initialized in 36ms (v0.3.104.20180323) (64ms)
+67ms ║╔Execution stage started
+94ms ║║Comparison (enum) pushed gets (string) pushed = true (11ms)
+96ms ║║Condition #2 evaluated true (22ms)
+98ms ║║Condition group #1 evaluated true (state did not change) (24ms)
+102ms ║║Cancelling statement #3’s schedules…
+207ms ║║Executed physical command [Pump GE Plug-in Outdoor Switch].on() (99ms)
+209ms ║║Executed [Pump GE Plug-in Outdoor Switch].on (103ms)
+214ms ║║Executed virtual command [Pump GE Plug-in Outdoor Switch].wait (1ms)
+216ms ║║Requesting a wake up for Mon, Jun 10 2019 @ 2:19:37 PM EDT (in 60.0s)
+222ms ║╚Execution stage complete. (155ms)
+225ms ║Setting up scheduled job for Mon, Jun 10 2019 @ 2:19:37 PM EDT (in 59.993s)
+237ms ╚Event processed successfully (236ms)


#2

Does the ST DTH reflect that you are pushing the button?


#3

maybe the button is disconnected…
Try testing the button…


#4

@logeox @ike2018
yes in Graph.api.sma… the button is connected and showing the time i press it


#5

I can just recommend a test…
1 - I’d try - just to test it - changing ONLY WHILEs maybe someting is happening with the MODEs
2 - REMOVE the button from everywhere and add it back (worked many times for other devices in my house LOL)