MayaPosch / NymphCast

Audio and video casting system with support for custom applications.
http://nyanko.ws/nymphcast.php
BSD 3-Clause "New" or "Revised" License
2.41k stars 81 forks source link

Integration with Home Assistant #67

Open 9scorp4 opened 2 years ago

9scorp4 commented 2 years ago

Hello,

Just like the title says, I am just opening the discussion about the possibility of integration of NymphCast with HA. I have been looking for an open source solution to Chromecast for a while and I find NymphCast to be the one that suits my needs most, even though I don't have it with me yet.

The idea about this integration is that we could control the NymphCast server from HA. Think about voice-command a movie, or turning on/off the TV following a trigger (voice command, sensor, buttons, etc.). Do you think it's possible to do that? I'm not so knowledgeable about open source technology so sorry if my question stays too vague.

Thanks!

MayaPosch commented 2 years ago

Thank you for this idea :)

I have done a bit of reading up on HA's architecture, and it's integration extensions: https://developers.home-assistant.io/docs/architecture_components/

At this point in time there seem to be two approaches to control NymphCast with HA:

  1. Making libnymphcast work with an HA integration module, via the C-interface compatibility in Python.
  2. Add MQTT support to NymphCast and control NC via the MQTT integration in HA.

The first option would be the most work, but also be the most versatile. The latter likely would be somewhat of a compromise due to the limitations of MQTT.

At this point I'm thinking that the first option is worth pursuing, to get something akin to the ChromeCast integration in HA, or similar.