delfick / photons

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

[interactor] add commands to control tile animations #32

Closed delfick closed 3 years ago

delfick commented 3 years ago

Adding the following commands

They should do what you expect :)

Djelibeybi commented 3 years ago

This is awesome. I’ll write up a blog post on how to create a HomeKit switch to turn on and off Tile effects using Interactor when I’m back home next week.

delfick commented 3 years ago

:)

Final-Hawk commented 3 years ago

Great work @delfick, thanks for the release

Djelibeybi commented 3 years ago

Is there a way to use lifx lan:arrange and provide that arrangement for Interactor?

delfick commented 3 years ago

I'd prefer keeping them as separate. Especially since for now that means interactor has no javascript tooling.

On Mon, 28 Dec 2020, 2:40 pm Avi Miller, notifications@github.com wrote:

Is there a way to use lifx lan:arrange and provide that arrangement for Interactor?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/delfick/photons/pull/32#issuecomment-751563393, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2V5OBPHELI5YKO64LOK3SW742HANCNFSM4VIX44YA .

Djelibeybi commented 3 years ago

Yeah, I'm happy with them being seperate, I'm just not sure where Arranger stores its arrangements. So if I use lifx lan:arrange on my desktop, how do I ensure that Interactor running in a container on my NAS uses the same arrangement?

delfick commented 3 years ago

The arranger is changing user_x/user_y properties on the tiles themselves. A tile animation will read these values when the device is first discovered and assume they don't change. So if you change those, then you need to restart the animation and it'll work.

On Mon, 28 Dec 2020, 2:46 pm Avi Miller, notifications@github.com wrote:

Yeah, I'm happy with them being seperate, I'm just not sure where Arranger stores its arrangements. So if I use lifx lan:arrange on my desktop, how do I ensure that Interactor running in a container on my NAS uses the same arrangement?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/delfick/photons/pull/32#issuecomment-751564404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2V5PVREWEFPKY4H4HCCLSW75Q5ANCNFSM4VIX44YA .

Final-Hawk commented 3 years ago

Oh so the tile arranger on the Pi is not locally stored, it sends the arrangement to the tiles and the tiles store that data?

delfick commented 3 years ago

yeap :)

On Mon, 28 Dec 2020, 3:30 pm Joshua, notifications@github.com wrote:

Oh so the tile arranger on the Pi is not locally stored, it sends the arrangement to the tiles and the tiles store that data.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/delfick/photons/pull/32#issuecomment-751570547, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2V5I4D6EFIYFGZBKCBCLSXACVTANCNFSM4VIX44YA .

Djelibeybi commented 3 years ago

Perfect! I have taken it for a brief spin and it works as expected. :) I'll probably write something up proper later this week or next week.

delfick commented 3 years ago

thanks :)

On Mon, 28 Dec 2020, 4:25 pm Avi Miller, notifications@github.com wrote:

Perfect! I have taken it for a brief spin and it works as expected. :) I'll probably write something up proper later this week or next week.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/delfick/photons/pull/32#issuecomment-751580881, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2V5PJWVHDZA3BE7VQQ63SXAJF3ANCNFSM4VIX44YA .