1) Give a description of the problem
I wrote a piston to control my family room lights using scene control with a Zooz Zen27 dimmer switch. Switch has relay disabled to push constant power to 6 smart bulbs, so I’m using the scene control functions to control the bulbs.
2) What is the expected behaviour?
Hold button one (push and hold switch up) increases brightness - Hold button two (push and hold switch down) decreases brightness.
It appears as though Webcore is not recognizing the “held” state. The logs below show the push up to turn on lights, then miss two “held” events trying to dim the lights, and then registers the push down to shut the lights back off.
There is a held state command for scene control. It works if I set up the same control configuration using ABC Button Controller. However, I want to use Webcore for ease of modifications, and ease of duplicating the piston for use in other rooms.
3) What is happening/not happening?
These commands do nothing. The other commands in the piston work as expected.
**4) Post a Green Snapshot of the piston![image|45x37]
**5) Attach logs after turning logging level to Full **
12/14/2019, 4:44:04 PM +277ms
+0ms ╔Received event [Fr By Door].button = pushed with a delay of 66ms
+62ms ║RunTime Analysis CS > 15ms > PS > 34ms > PE > 14ms > CE
+65ms ║Runtime (40477 bytes) successfully initialized in 34ms (v0.3.110.20191009) (64ms)
+66ms ║╔Execution stage started
+73ms ║║Comparison (enum) pushed gets (string) pushed = false (0ms)
+74ms ║║Cancelling condition #2’s schedules…
+75ms ║║Condition #2 evaluated false (5ms)
+76ms ║║Cancelling condition #1’s schedules…
+76ms ║║Condition group #1 evaluated false (state changed) (7ms)
+82ms ║║Comparison (enum) pushed gets (string) pushed = true (0ms)
+83ms ║║Cancelling condition #6’s schedules…
+84ms ║║Condition #6 evaluated true (5ms)
+85ms ║║Cancelling condition #5’s schedules…
+86ms ║║Condition group #5 evaluated true (state changed) (7ms)
+87ms ║║Cancelling statement #7’s schedules…
+100ms ║║Executed physical command [Family Room TV Door].off() (8ms)
+101ms ║║Executed [Family Room TV Door].off (10ms)
+111ms ║║Executed physical command [Family Room TV Fireplace].off() (7ms)
+111ms ║║Executed [Family Room TV Fireplace].off (8ms)
+120ms ║║Executed physical command [Family Room TV Middle].off() (6ms)
+121ms ║║Executed [Family Room TV Middle].off (8ms)
+131ms ║║Executed physical command [Family Room Window Door].off() (8ms)
+132ms ║║Executed [Family Room Window Door].off (10ms)
+142ms ║║Executed physical command [Family Room Window Fireplace].off() (7ms)
+142ms ║║Executed [Family Room Window Fireplace].off (9ms)
+151ms ║║Executed physical command [Family Room Window Middle].off() (6ms)
+152ms ║║Executed [Family Room Window Middle].off (8ms)
+158ms ║║Comparison (enum) pushed gets (string) held = false (0ms)
+159ms ║║Condition #10 evaluated false (4ms)
+160ms ║║Condition group #9 evaluated false (state did not change) (6ms)
+165ms ║║Comparison (enum) pushed gets (string) held = false (1ms)
+166ms ║║Condition #14 evaluated false (4ms)
+167ms ║║Condition group #13 evaluated false (state did not change) (5ms)
+172ms ║║Comparison (enum) pushed gets (string) pushed = false (1ms)
+174ms ║║Condition #18 evaluated false (4ms)
+175ms ║║Condition group #17 evaluated false (state did not change) (5ms)
+177ms ║╚Execution stage complete. (111ms)
+178ms ╚Event processed successfully (177ms)
12/14/2019, 4:43:49 PM +138ms
+1ms ╔Received event [Fr By Door].button = pushed with a delay of 103ms
+93ms ║RunTime Analysis CS > 33ms > PS > 47ms > PE > 13ms > CE
+96ms ║Runtime (40478 bytes) successfully initialized in 47ms (v0.3.110.20191009) (93ms)
+97ms ║╔Execution stage started
+104ms ║║Comparison (enum) pushed gets (string) pushed = true (0ms)
+105ms ║║Cancelling condition #2’s schedules…
+106ms ║║Condition #2 evaluated true (5ms)
+107ms ║║Cancelling condition #1’s schedules…
+108ms ║║Condition group #1 evaluated true (state changed) (8ms)
+110ms ║║Cancelling statement #3’s schedules…
+122ms ║║Executed physical command [Family Room TV Door].on() (7ms)
+123ms ║║Executed [Family Room TV Door].on (9ms)
+133ms ║║Executed physical command [Family Room TV Fireplace].on() (6ms)
+133ms ║║Executed [Family Room TV Fireplace].on (8ms)
+144ms ║║Executed physical command [Family Room TV Middle].on() (7ms)
+144ms ║║Executed [Family Room TV Middle].on (9ms)
+153ms ║║Executed physical command [Family Room Window Door].on() (6ms)
+154ms ║║Executed [Family Room Window Door].on (8ms)
+164ms ║║Executed physical command [Family Room Window Fireplace].on() (7ms)
+164ms ║║Executed [Family Room Window Fireplace].on (8ms)
+176ms ║║Executed physical command [Family Room Window Middle].on() (9ms)
+177ms ║║Executed [Family Room Window Middle].on (10ms)
+182ms ║║Comparison (enum) pushed gets (string) pushed = false (1ms)
+184ms ║║Cancelling condition #6’s schedules…
+184ms ║║Condition #6 evaluated false (5ms)
+185ms ║║Cancelling condition #5’s schedules…
+186ms ║║Condition group #5 evaluated false (state changed) (7ms)
+191ms ║║Comparison (enum) pushed gets (string) held = false (1ms)
+192ms ║║Condition #10 evaluated false (4ms)
+193ms ║║Condition group #9 evaluated false (state did not change) (5ms)
+198ms ║║Comparison (enum) pushed gets (string) held = false (0ms)
+200ms ║║Condition #14 evaluated false (3ms)
+200ms ║║Condition group #13 evaluated false (state did not change) (5ms)
+206ms ║║Comparison (enum) pushed gets (string) pushed = false (0ms)
+207ms ║║Condition #18 evaluated false (4ms)
+208ms ║║Condition group #17 evaluated false (state did not change) (6ms)
+210ms ║╚Execution stage complete. (113ms)
+211ms ╚Event processed successfully (211ms)