Trying to Create On/Off Cycle for Charger - Not Working


#1

1) Give a description of the problem
I am used to the old CoRE, never had a problem. Now it seems I can’t figure this out, or maybe something else is wrong? I can turn the plug on and off manually in the app, but cannot figure out why the piston is not turning it off and on.

2) What is the expected behaviour?
Every XX minutes (currently set at 30 seconds for testing purposes) I want the plug to either turn on, or off - basically to alternate charging times of something plugged in 24/7 to limit battery damage.

3) What is happening/not happening?
The plug is not turning on or off.

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

5) Attach logs after turning logging level to Full
11/5/2020, 12:35:08 PM +125ms
+0ms ╔Received event [Home].time = 1604597709031 with a delay of -907ms
+71ms ║RunTime Analysis CS > 19ms > PS > 39ms > PE > 14ms > CE
+73ms ║Runtime (37764 bytes) successfully initialized in 39ms (v0.3.110.20191009) (72ms)
+74ms ║╔Execution stage started
+93ms ║║Comparison (enum) off is (string) on = false (1ms)
+95ms ║║Condition #3 evaluated false (11ms)
+96ms ║║Condition group #2 evaluated false (state did not change) (12ms)
+106ms ║║Comparison (enum) off is (string) off = true (2ms)
+107ms ║║Condition #7 evaluated true (9ms)
+108ms ║║Condition group #6 evaluated true (state did not change) (10ms)
+111ms ║║Cancelling statement #8’s schedules…
+140ms ║║Executed physical command [Alarm Panel Charger].on() (24ms)
+141ms ║║Executed virtual command [Alarm Panel Charger].setSwitch (27ms)
+145ms ║╚Execution stage complete. (71ms)
+147ms ║Setting up scheduled job for Thu, Nov 5 2020 @ 12:35:39 PM EST (in 30.76s)
+153ms ╚Event processed successfully (153ms)
11/5/2020, 12:34:38 PM +126ms
+0ms ╔Received event [Home].time = 1604597679031 with a delay of -905ms
+58ms ║RunTime Analysis CS > 15ms > PS > 33ms > PE > 10ms > CE
+60ms ║Runtime (37764 bytes) successfully initialized in 33ms (v0.3.110.20191009) (59ms)
+61ms ║╔Execution stage started
+78ms ║║Comparison (enum) off is (string) on = false (2ms)
+79ms ║║Condition #3 evaluated false (10ms)
+80ms ║║Condition group #2 evaluated false (state did not change) (11ms)
+90ms ║║Comparison (enum) off is (string) off = true (2ms)
+91ms ║║Condition #7 evaluated true (8ms)
+92ms ║║Condition group #6 evaluated true (state did not change) (9ms)
+94ms ║║Cancelling statement #8’s schedules…
+105ms ║║Executed physical command [Alarm Panel Charger].on() (7ms)
+106ms ║║Executed virtual command [Alarm Panel Charger].setSwitch (8ms)
+109ms ║╚Execution stage complete. (48ms)
+110ms ║Setting up scheduled job for Thu, Nov 5 2020 @ 12:35:09 PM EST (in 30.795s)
+117ms ╚Event processed successfully (117ms)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

I normally use ‘turn on’ and ‘turn off’ rather than ‘set switch to on’ and ‘set switch to off’. They should both end up doing the same thing though.

It would appear that webCoRE is doing everything right to turn on the ‘Alarm Panel Charger’ but the device handler or the device isn’t doing what it is told.


#3

The “lazy man’s” way of programming this is:

Every XX minutes
Do
    With Switch 1 = Toggle
END EVERY

#4

Must be something with the plug or IDE - I’m not sure. It’s a Kasa TP-Link if that helps. It’s still not working - even with that extremely simple piston (thanks for that btw - didnt even think of it hah)