Restore attribute LIFX bulbs


#1

1) Give a description of the problem
Restore attribute command isn’t working to restore LIFX bulb color, state.

2) What is the expected behavior?
Bulbs flashes and then restores to previous color and state.

3) What is happening/not happening?
Bulb stays at last state after flash, in this case on and last color applied in flash command.

**4) Post a Green Snapshot of the piston!
Did a search and tried restoring a couple different ways, tried adding a wait. Neither works.


#2

instead of restore have you tried the LIFX - set state task?


#3

I have not, thanks for the tip. I’ll take a look and try it tonight.


#4

I think I may have figured out my problem. It appears I was never capturing the state of my lights properly to being with. I had to change my “task cancellation policy” to never cancel for my “with {visual devices}” statement to ensure the “do” loop was executing. Need to do some more testing tonight.


#5

the capture and restore seem to be in the same with block. is that not so?

if that is the case, if the restore is getting executed the capture had to have been executed - no?


#6

Yes, you are right. Not sure why the lights were flashing but the capture/restore commands were not executing. I changed my task cancellation policy back to default and things appear to be working now. I see the restore being executed in my logs now. No idea whats going on anymore, might be a bug in the way webcore, smarthings, and LIFX interact.