delfick / photons

Python3.6+ asyncio framework for interacting with LIFX devices
https://photons.delfick.com
MIT License
73 stars 6 forks source link

tiles blink when told to stop animation #73

Open delfick opened 2 years ago

delfick commented 2 years ago

Hi, don't mean to revive the thread or anything but I figured this question would fit here best. It seems that when I run the effects/stop command with the following payload, my Tiles turn on very briefly and then back off again. My Candle, Beam, and Z Strip do not do this, but my Tiles do.

payload: '{"command": "effects/stop", "args": {"matcher": {"label": {{ label }} }, "stop_matrix": true, "matrix_options": {"power_on": false}, "stop_linear": true, "linear_options": {"power_on": false} }}'

Is part of the command written incorrectly to allow the Tiles to turn on when running effects/stop? Or is it something with Photons itself?

Originally posted by @Kackerlacka in https://github.com/delfick/photons/issues/64#issuecomment-937623388

delfick commented 2 years ago

I can't remember exactly and it's annoying to get out my tiles to test, but I believe that's a firmware issue with the tiles. LIFX has been clear since they were discontinued this means no more firmware updates for tiles.

It's only when the tile is already doing a firmware effect though isn't it?

Kackerlacka commented 2 years ago

So it's actually doing it with no effects running. Basically I use the apply_theme command to splotch some colors onto the tiles, but when I manually turn off the tiles and run the command above, they'll turn on very briefly and then off again.

The tiles will either all turn on briefly and show the theme that's applied, or only 1 or 2 will turn on and be solid red.

delfick commented 2 years ago

right, that's what the bug was. Yeah. So when you send the command to the tile that turns the effect off it will blink even if it's currently turned off.

Final-Hawk commented 2 years ago

Similar thing also happens with Lifx's automations. If you tell the tiles to turn off in an automation when they are already off, they will turn on then off again.

My solution to that was to not use the in app automations unfortunately.

delfick commented 2 years ago

That's because most actions with the LIFX HTTP API will stop all firmware and waveform effects before doing anything (it's also why things like alexa will stop a day dusk transition)