theneweinstein / somneo

Home Assistant custom component for Philips Someo
32 stars 18 forks source link

Set AUX via home assistant #38

Closed Narta-byte closed 11 months ago

Narta-byte commented 1 year ago

Hello, I am trying to make the Sonéo into a DIY Bluetooth speaker by using an ESP32. The problem that I am facing is that I have to manually navigate the menu to set it to receive music from AUX. My question is if it's possible to set it to speaker mode via Home Assistant.

theneweinstein commented 1 year ago

I don't know, is it possible via the app to select the AUX input (I didn't find the options quickly myself). If it is possible via the app, there should be an API command.

Narta-byte commented 1 year ago

Hmm, good question. At a glance, there is no function in the app. It might be a stretch, but this project seems relevant. At the bottom of the file, there are some functions that sound like they could be related. This could suggest that it might be possible. However, I have not tested it or anything, and it might not even work.

theneweinstein commented 1 year ago

That is a great resource! I tested the API commands he sends and you can indeed change to AUX. When I find some time I will add these commands to my python package so it can also be used in HomeAssistant.

Narta-byte commented 1 year ago

That sounds awesome!

theneweinstein commented 1 year ago

Could you check out the master branch? I added a media_player function. I did some quick test and it seems to be working fine, let me know if there are some bugs left before I create a new release.

Narta-byte commented 1 year ago

It seems to be working perfectly!