1) Give a description of the problem
Turn off the light bulb and it comes right back on
2) What is the expected behavior?
The thing to stay off
3) What is happening/not happening?
Goes off then comes right back on. Piston is behaving like an event handler.
**4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:51 AM: info β Piston successfully stopped (167ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:51 AM: info β Stopping piston...
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: info β Event processed successfully (108ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: trace ββ Execution stage complete. (21ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Condition group #30 evaluated false (state changed) (11ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Cancelling condition #30's schedules...
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Condition #31 evaluated false (9ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Cancelling condition #31's schedules...
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Comparison (enum) on is (string) off = false (1ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: trace ββ Execution stage started
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: trace β Runtime (48703 bytes) successfully initialized in 19ms (v0.3.10a.20190223) (82ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug β RunTime Analysis CS > 18ms > PS > 19ms > PE > 45ms > CE
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: info β Received event [Notification Light].switch = on with a delay of 524ms
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: info β Event processed successfully (122ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: trace ββ Executed [Notification Light].on (10ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: trace ββ Execution stage complete. (39ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Executed physical command [Notification Light].on() (8ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Cancelling statement #32's schedules...
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Condition group #30 evaluated true (state changed) (11ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Condition #31 evaluated true (9ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:48 AM: debug ββ Comparison (enum) off is (string) off = true (1ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:38 AM: info β Piston successfully started (983ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:38 AM: debug β Comparison (enum) on is (string) off = false (3ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:38 AM: trace ββ Finished subscribing (257ms)
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:38 AM: info ββ Subscribing to Notification Light.switch...
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:38 AM: trace ββ Subscribing to devices...
d5ec8974-b59c-47db-80ce-6114c2f9748c 1:13:37 AM: info β Starting piston... (v0.3.10a.20190223)
For some reason the piston is acting like an event handler. Every time I turn off the light it goes off long enough for the piston to activate and turn it back on.
I found another topic that resembles this on and the resolution was to set the task cancellation policy to never. That did not work in this case.
Hints, tips, and suggestions would be apreciated at this point.