mattsaxon / HASS-SpeakercraftMediaPlayer

Speakercraft Platform for Home Assistant
4 stars 1 forks source link

Enhancements. #10

Closed sjeffrey101 closed 2 years ago

sjeffrey101 commented 2 years ago

hi matt

ok had a chance to test your code. Works really well. thanks for making this so much better.

i think we should make the following changes. (not in this order or priority) and once i figure out github i can contribute to this.

some of these could be breaking changes, or have the potential to, so probably priority would be to do them before getting many users.

what are your thoughts?

kind regards

stuart

mattsaxon commented 2 years ago

This looks a good set of changes to me.

We should split each items into a separate issue, the Pypi one already has an issue.

how’s the performance of the component for you, does it render your ESP32 solution unnecessary? I still think we ideally support this so people who are not lucky enough to have their HA unit by their MZC can still be supported .

sjeffrey101 commented 2 years ago

hi Matt,

yeah i didnt want to create seperate posts until i got your feed back (didnt want to spam you).

Performance wise its very quick. Im ditching the ESP32 solution in favour of this - 1 less thing to plug in and manage.

there might be better ways of handling a remote unit - I once tried a serial to ethernet, but it wasnt fast enough to handle the 11/13 send window. But it probably supports the flow control in its own firmware, so it probably could have worked had i realised.

mattsaxon commented 2 years ago

Yes I was thinking about some sort of remote serial using ser2net or socat.

one issue to work through is that I think this approach would need an HA add-in as Hassio doesn’t have these components installed in the base Linux image.

How do you have HA installed?

sjeffrey101 commented 2 years ago

im installed using docker on my synology. But i have a spare mini pc i will eventually move a full HASSOS onto.

i dont think it would need an addin as the ser2net would be at the remote end. From what i understand the url in serial_asyncio.open_serial_connection can connect to tcp also? (but i might be wrong).

mattsaxon commented 2 years ago

Ah, ok that makes sense. As you say it would be remote end, so even if pyserial doesn’t directly support, we could just change to a socket connection.

mattsaxon commented 2 years ago

I've created issues for each of the items that are outstanding and will close this one