My piston will not turn on Tp-Link switch


#1

1) Give a description of the problem
I have a piston that checks the bathroom relative humidity and should turn on the bathroom fan whcih is controlled by a TP-Link WiFi wall switch. I have tried different combinations to make it work, but it would not turn on the fan even if RH rises well above my set limits. I now added a timer to make sure that the piston will execute a RH check, but still it will not turn the fan on.

2) What is the expected behaviour?
Turn on the bathroom fan when relative humidity rises above 60% and check Rh every 30 mins.

3) What is happening/not happening?
The piston seems to work programmatically speaking, but it will not turn on the fan in the real world.

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
7/10/2020, 11:22:48 AM +103ms
+0ms â•”Received event [MyHome].test = 1594394568100 with a delay of 2ms
+179ms â•‘RunTime Analysis CS > 24ms > PS > 55ms > PE > 101ms > CE
+182ms â•‘Runtime (39718 bytes) successfully initialized in 55ms (v0.3.10f.20190822) (180ms)
+183ms â•‘â•”Execution stage started
+238ms â•‘â•šExecution stage complete. (55ms)
+245ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 939.239s)
+256ms â•šEvent processed successfully (257ms)
7/10/2020, 11:22:43 AM +229ms
+0ms â•”Received event [MyHome].test = 1594394563229 with a delay of 0ms
+101ms â•‘RunTime Analysis CS > 20ms > PS > 47ms > PE > 34ms > CE
+104ms â•‘Runtime (39717 bytes) successfully initialized in 47ms (v0.3.10f.20190822) (103ms)
+106ms â•‘â•”Execution stage started
+112ms â•‘â•šExecution stage complete. (7ms)
+114ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 944.245s)
+124ms â•šEvent processed successfully (124ms)
7/10/2020, 11:22:41 AM +394ms
+0ms â•”Received event [MyHome].test = 1594394561394 with a delay of 0ms
+95ms â•‘RunTime Analysis CS > 19ms > PS > 43ms > PE > 33ms > CE
+98ms â•‘Runtime (39716 bytes) successfully initialized in 43ms (v0.3.10f.20190822) (97ms)
+100ms â•‘â•”Execution stage started
+107ms â•‘â•šExecution stage complete. (6ms)
+108ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 946.085s)
+118ms â•šEvent processed successfully (118ms)
7/10/2020, 11:11:50 AM +180ms
+0ms â•”Received event [MyHome].test = 1594393910177 with a delay of 2ms
+116ms â•‘RunTime Analysis CS > 21ms > PS > 51ms > PE > 45ms > CE
+119ms â•‘Runtime (39717 bytes) successfully initialized in 51ms (v0.3.10f.20190822) (116ms)
+121ms â•‘â•”Execution stage started
+197ms â•‘â•šExecution stage complete. (77ms)
+207ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 1597.201s)
+219ms â•šEvent processed successfully (219ms)
7/10/2020, 11:09:26 AM +863ms
+0ms â•”Received event [MyHome].test = 1594393766860 with a delay of 2ms
+144ms â•‘RunTime Analysis CS > 46ms > PS > 59ms > PE > 39ms > CE
+147ms â•‘Runtime (39719 bytes) successfully initialized in 59ms (v0.3.10f.20190822) (144ms)
+148ms â•‘â•”Execution stage started
+227ms â•‘â•šExecution stage complete. (79ms)
+237ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 1740.488s)
+257ms â•šEvent processed successfully (257ms)
7/10/2020, 11:08:49 AM +191ms
+1ms â•”Received event [MyHome].test = 1594393729188 with a delay of 3ms
+136ms â•‘RunTime Analysis CS > 40ms > PS > 51ms > PE > 45ms > CE
+139ms â•‘Runtime (39719 bytes) successfully initialized in 51ms (v0.3.10f.20190822) (137ms)
+141ms â•‘â•”Execution stage started
+209ms â•‘â•šExecution stage complete. (69ms)
+218ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 1778.179s)
+228ms â•šEvent processed successfully (228ms)
7/10/2020, 11:08:27 AM +190ms
+0ms ╔Starting piston… (v0.3.10f.20190822)
+295ms ║╔Subscribing to devices…
+376ms ║║Subscribing to MyBathroom fan…
+377ms â•‘â•šFinished subscribing (92ms)
+411ms â•‘Comparison (integer) 63 is_greater_than_or_equal_to (integer) 60 = true (2ms)
+421ms â•‘Comparison (integer) 63 is_less_than (integer) 60 = false (1ms)
+427ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:38:27 AM EDT (in 1799.97s)
+444ms â•šPiston successfully started (443ms)
7/10/2020, 11:07:02 AM +393ms
+0ms â•”Received event [MyHome].test = 1594393622389 with a delay of 2ms
+117ms â•‘RunTime Analysis CS > 24ms > PS > 49ms > PE > 46ms > CE
+120ms â•‘Runtime (39968 bytes) successfully initialized in 49ms (v0.3.10f.20190822) (117ms)
+122ms â•‘â•”Execution stage started
+190ms â•‘â•šExecution stage complete. (68ms)
+198ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:35:12 AM EDT (in 1690.124s)
+209ms â•šEvent processed successfully (210ms)
7/10/2020, 11:06:40 AM +548ms
+0ms â•”Received event [MyHome].test = 1594393600545 with a delay of 2ms
+109ms â•‘RunTime Analysis CS > 23ms > PS > 49ms > PE > 38ms > CE
+112ms â•‘Runtime (39968 bytes) successfully initialized in 49ms (v0.3.10f.20190822) (109ms)
+113ms â•‘â•”Execution stage started
+175ms â•‘â•šExecution stage complete. (61ms)
+184ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:35:12 AM EDT (in 1711.983s)
+195ms â•šEvent processed successfully (195ms)
7/10/2020, 11:05:59 AM +989ms
+1ms â•”Received event [MyHome].test = 1594393559987 with a delay of 2ms
+112ms â•‘RunTime Analysis CS > 17ms > PS > 52ms > PE > 43ms > CE
+115ms â•‘Runtime (39968 bytes) successfully initialized in 52ms (v0.3.10f.20190822) (112ms)
+116ms â•‘â•”Execution stage started
+153ms â•‘â•šExecution stage complete. (38ms)
+155ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:35:12 AM EDT (in 1752.571s)
+165ms â•šEvent processed successfully (165ms)
7/10/2020, 11:05:16 AM +355ms
+0ms â•”Received event [MyHome].test = 1594393516352 with a delay of 2ms
+243ms â•‘RunTime Analysis CS > 20ms > PS > 183ms > PE > 40ms > CE
+245ms â•‘Runtime (39970 bytes) successfully initialized in 183ms (v0.3.10f.20190822) (244ms)
+246ms â•‘â•”Execution stage started
+307ms â•‘â•šExecution stage complete. (61ms)
+315ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:35:12 AM EDT (in 1796.045s)
+326ms â•šEvent processed successfully (326ms)
7/10/2020, 11:05:12 AM +115ms
+0ms ╔Starting piston… (v0.3.10f.20190822)
+365ms ║╔Subscribing to devices…
+569ms ║║Subscribing to MyBathroom fan…
+571ms â•‘â•šFinished subscribing (215ms)
+634ms â•‘Comparison (integer) 63 is_greater_than_or_equal_to (integer) 60 = true (2ms)
+657ms â•‘Comparison (integer) 63 is_less_than (integer) 60 = false (1ms)
+664ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:35:12 AM EDT (in 1799.936s)
+679ms â•šPiston successfully started (678ms)
7/10/2020, 11:03:08 AM +492ms
+0ms â•”Received event [MyHome].test = 1594393388489 with a delay of 2ms
+122ms â•‘RunTime Analysis CS > 26ms > PS > 54ms > PE > 43ms > CE
+125ms â•‘Runtime (40700 bytes) successfully initialized in 54ms (v0.3.10f.20190822) (122ms)
+126ms â•‘â•”Execution stage started
+194ms â•‘â•šExecution stage complete. (67ms)
+202ms â•‘Setting up scheduled job for Fri, Jul 10 2020 @ 11:31:33 AM EDT (in 1704.646s)
+213ms â•šEvent processed successfully (213ms)

REMOVE BELOW AFTER READING


#2

The logs just show the piston being restarted a couple of times and you hitting the Test button rather a lot. They don’t show what happens when the piston is run by the timer after 30 minutes.

Hitting the Test button would be useful if the timer wasn’t there.

I take it that you’ve established that webCoRE is capable of turning the fan on?


#3

If your Tp-Link switch is a new device, I would create a single command test piston to let you focus on that device.

pic

In this case, pressing the Test button will send out that command.

(If memory serves me right, Tp-Link switches do not act like normal Smart switches)


#4

OK. Thanks. Apparently, the piston started working in the first run after being created. Yes WCmore, I had tested it, but it did not work then. Thank you though.