Open guix77 opened 1 year ago
Hey! Awesome work! Do you know if your fork still works with the current version of HA?
Hi, thanks! Yes it does, I'm on the latest Home Assistant 2023.8.3 and LedFx v2.0.71
This feature - and only this feature - is now available as a new integration: https://github.com/guix77/homeassistant-ledfx
Here's a PR implementing my feature request: https://github.com/dmamontov/hass-ledfx/issues/22
I went with the addition of a media_player entity. After all, LedFx is (kind of) a media player. Thought it would make more sense to put the play & pause feature into a media_player than in a switch. Also, we could add other new features like setting the global intensity (which could be the media_player "volume". Finally, the already existing feature of switching LedFx's audio source could be implemented in an async_select_source function of the media player.
For the coding style, I went straight to the point and didn't structure as well as the existing code. Let me know if you have suggestions to improve this.
Thanks :)