iobroker-community-adapters / ioBroker.chromecast

ioBroker Chromecast Adapter
MIT License
22 stars 12 forks source link

Request: Same Functions as Alexa Adapter #51

Open siggi85 opened 5 years ago

siggi85 commented 5 years ago

I would love to have the same functionality as the alexa adapter like:

I think when iot Adapter is google home ready many people would need something like this. :)

angelnu commented 5 years ago

The Google home speakers have two personalities: either the traditional anonim streaming player that anyone in the network can use without logging and the Assistent Mode which is similar to Alexa. Currently this adapter implements the first. So the second node would need to be added.

I quickly checked what node.is libraries are available for the Assistent Mode and I found a few that look promising but they seem to focus mainly in "conversing" with the adapter sending free text. I would like to be able to discover devices, activities or history as you suggest. I will have to keep searching...

I would see what can be quickly added and what would take more work. This would have been a good Christmas project so maybe would have to wait until the next vacations/ free weekend.

If anyone would like to recommend base libraries for the suggested functionality it would help me greatly.

siggi85 commented 5 years ago

Now that the Google iot Connection works and will be expanded the next week's and months, is it possible to priorities this feature request? 😊

siggi85 commented 5 years ago

Any news? Would still love this functions. :)

eric1905 commented 4 years ago

I would also like to have this. Would be great to implement this

angelnu commented 4 years ago

I have been exploring the options for this (looking at what is being done in Home Assistant):

  1. sending commands is implemented with 2 adapters: one converts the text to voice and then another sends to the chromecast -> this is what we do in IOBroker with the Sayit+Chromecast adapters.
  2. there is an SDK that allows to span a virtual home assistant instance. There is a docker container I tested that exposes a REST API to send commands (same as we do by typing in the assistant in our Android phones). This does not allow to send an announcement to just a single adapter but to all (broadcast message).

If we want to have option 2 we can just call the REST APIs of the existing docker container. Alternative would be to deploy the library directly in a new adapter. This would not be an extension to this adapter.

For me is enough to the docker container since in run in Kubernetes anyway so I can help in creating a dedicated adapter but not feeling like driving the implementation.