fabsenet / adrilight

An Ambilight clone for Windows based sources - HTPC or just a normal PC
MIT License
155 stars 40 forks source link

MQTT integration #105

Open fabsenet opened 4 years ago

fabsenet commented 4 years ago

possible feature?

Also possibly direct homeassistant integration?

fabsenet commented 4 years ago

https://www.home-assistant.io/docs/mqtt/discovery/

murmelbahn commented 4 years ago

Yes, MQTT would be really nice!

fabsenet commented 4 years ago

@murmelbahn can you tell me more about what you would expect from an mqtt integration?

murmelbahn commented 4 years ago

Hi, the best I can imagine is a Home Assistant integration with the same features as WLED. Pick a color, pick an effect and controll brightness.

Maerchensarg commented 4 years ago

Oh yes, sounds pretty nice.

ark-sys commented 3 years ago

Hi, has someone made any progress on this? I was looking for a way to use wireless communication instead of USB. Maybe with a wifi module on the arduino and mqtt communication on the local network. Any hint on where to start in order to add this feature (i'm new to C#). Thanks!

fabsenet commented 3 years ago

Hi! I this issue is more about integrating adrilight in a smarthome environment and not about controlling the actual leds over wifi.

I had an idea for controlling the leds over wifi since forever but sadly I have too many other things in my life right now. My starting point would be to use an esp with wled firmware on it connected to the leds. Then teach adrilight to talk to wled with some of the faster udp options. Timing is absolutely critically for a good experience. Mqtt is too slow for this. Even this approach needs to be tested if it is fast enough.

ark-sys commented 3 years ago

Ok thanks, I'll check on that. For mqtt i was thinking to create a topic for each led and thus update the status on each topic independently, but i agree that it may create some latency. I'll try to do some testing on my own and i'll let you know if something works