Piston to turn on smart bulb with switch


#1

1) Give a description of the problem
Trying to create a simple piston that turn on a zigbee smart bulb when a Zwave light switch is turned on.

2) What is the expected behaviour?
Smat bulb turns on and off with physical switch

3) What is happening/not happening?
Bulb isnt responding

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

5) Attach logs after turning logging level to Full
|+1ms|╔Received event [Mark’s Bathroom].switch = on with a delay of 184ms|
| — | — |
|+62ms|║RunTime Analysis CS > 18ms > PS > 32ms > PE > 12ms > CE|
|+64ms|║Runtime (37382 bytes) successfully initialized in 32ms (v0.3.110.20191009) (62ms)|
|+65ms|║╔Execution stage started|
|+72ms|║║Comparison (enum) on changes_to (string) off = false (0ms)|
|+73ms|║║Cancelling condition #2’s schedules…|
|+74ms|║║Condition #2 evaluated false (5ms)|
|+75ms|║║Cancelling condition #1’s schedules…|
|+76ms|║║Condition group #1 evaluated false (state changed) (6ms)|
|+80ms|║║Comparison (enum) on changes_to (string) off = false (0ms)|
|+82ms|║║Cancelling condition #7’s schedules…|
|+82ms|║║Condition #7 evaluated false (4ms)|
|+83ms|║║Cancelling condition #6’s schedules…|
|+84ms|║║Condition group #6 evaluated false (state changed) (7ms)|
|+86ms|║╚Execution stage complete. (21ms)|
|+87ms|╚Event processed successfully (87ms)|
|4/4/2020, 9:39:24 PM +267ms|
|+1ms|╔Received event [Mark’s Bathroom].switch = off with a delay of 102ms|
|+64ms|║RunTime Analysis CS > 19ms > PS > 34ms > PE > 11ms > CE|
|+66ms|║Runtime (37389 bytes) successfully initialized in 34ms (v0.3.110.20191009) (63ms)|
|+66ms|║╔Execution stage started|
|+73ms|║║Comparison (enum) off changes_to (string) off = true (1ms)|
|+74ms|║║Cancelling condition #2’s schedules…|
|+75ms|║║Condition #2 evaluated true (5ms)|
|+76ms|║║Cancelling condition #1’s schedules…|
|+77ms|║║Condition group #1 evaluated true (state changed) (6ms)|
|+78ms|║║Cancelling statement #3’s schedules…|
|+92ms|║║Executed physical command [Mark’s Closet].on() (10ms)|
|+93ms|║║Executed [Mark’s Closet].on (11ms)|
|+102ms|║║Executed physical command [Mark’s Closet].setLevel([90]) (7ms)|
|+103ms|║║Executed [Mark’s Closet].setLevel (8ms)|
|+108ms|║║Comparison (enum) off changes_to (string) off = true (1ms)|
|+109ms|║║Cancelling condition #7’s schedules…|
|+110ms|║║Condition #7 evaluated true (5ms)|
|+111ms|║║Cancelling condition #6’s schedules…|
|+112ms|║║Condition group #6 evaluated true (state changed) (7ms)|
|+114ms|║║Cancelling statement #8’s schedules…|
|+117ms|║║Skipped execution of physical command [Mark’s Closet].off([]) because it would make no change to the device. (1ms)|
|+118ms|║║Executed [Mark’s Closet].off (3ms)|
|+120ms|║╚Execution stage complete. (54ms)|
|+121ms|╚Event processed successfully (121ms)|
|4/4/2020, 9:37:26 PM +514ms|
|+2ms|╔Received event [Mark’s Bathroom].switch = on with a delay of 149ms|
|+84ms|║RunTime Analysis CS > 20ms > PS > 51ms > PE > 12ms > CE|
|+86ms|║Runtime (37389 bytes) successfully initialized in 51ms (v0.3.110.20191009) (83ms)|
|+86ms|║╔Execution stage started|
|+93ms|║║Comparison (enum) on changes_to (string) off = false (0ms)|
|+95ms|║║Condition #2 evaluated false (4ms)|
|+95ms|║║Condition group #1 evaluated false (state did not change) (5ms)|
|+101ms|║║Comparison (enum) on changes_to (string) off = false (0ms)|
|+102ms|║║Condition #7 evaluated false (4ms)|
|+103ms|║║Condition group #6 evaluated false (state did not change) (5ms)|
|+104ms|║╚Execution stage complete. (18ms)|
|+105ms|╚Event processed successfully (105ms)|
|4/4/2020, 9:37:04 PM +893ms|
|+0ms|╔Received event [Home].test = 1586054224892 with a delay of 0ms|
|+58ms|║RunTime Analysis CS > 19ms > PS > 25ms > PE > 15ms > CE|
|+61ms|║Runtime (37385 bytes) successfully initialized in 25ms (v0.3.110.20191009) (59ms)|
|+62ms|║╔Execution stage started|
|+72ms|║║Condition #2 evaluated false (5ms)|
|+73ms|║║Condition group #1 evaluated false (state did not change) (7ms)|
|+81ms|║║Condition #7 evaluated false (5ms)|
|+82ms|║║Condition group #6 evaluated false (state did not change) (6ms)|
|+84ms|║╚Execution stage complete. (23ms)|
|+86ms|╚Event processed successfully (86ms)|


#2

I believe in the first IF block you want the dimmer switch changes to ON not OFF in order to turn the bulb on? otherwise in your piston above, you have both triggers changing to OFF for the dimmer switch


#3

LOl it was set to on, Ive been playing with it. Its not working for on or off.


#4

if both are off it will be conflicted…
is it ON or OFF?

plus, what changes the dimmer OFF??
if the dimmer goes down to 3% - let’s say - it’s not OFF. The lights might be off but the dimmer is not.


#6

setting both to off was a mistake, thats not the issue. If i tap the dimmer once its turns its lights off but the closet bulb stays on. Same goes for turning the dimmer switch on. The bathroom lights come on but the closet bulb doesnt


#8

The bottom half of your piston is exactly the same as one I use that turns off the smart bulb in the pantry when you turn off the dimmer switch in the laundry room. They are turned on with motion sensors and those are separate pistons, but the turn off is exactly the same. So I don’t see why that would not work. You can control the smart bulb with the app right?

My smart bulb is dimmable but it is not shown as a dimmer.


#9

Yes I can turn it off with the app. Its a Cree connected light bulb using zigbee.