Greets - I’ve been using a variety of HA distribs over the years, and for the most part only stuck with the strictly available options (read: I didn’t experiment too much) - if it wasn’t natively available in HA, I found another way to go about it - such as using mqtt and building PIC/Arduino/ESP/pi interceptors as clients to convert to other data - which meant a lot of little boxes everywhere.
I’m currently on Homeassistant in a python 3.9 Venv (which is actually running quite fine in an LXC container on debian 9), and I’ve been expanding options and learning about integrations more than I ever had, putting the configurable control back into HA where it’s easier to change or improve.
That said, I have another device that I can control via websockets. It’s not the only offering that this device has over IP, but it’s the one I wish to target since it is likely that an OLC / OSC / Artnet integration is NOT in the works anywhere)
I know HA has a websocket API, but that is for controlling and querying HA (per the docs) not for HA to control something else. I’ve been reading as many posts as I can goo*** about HA and websocket_client, but they all die old short deaths. Websocat as an external bash program seems to be where everyone has been pointed towards.
Is there an integration or cleaner component method for HA that would allow HA to send websocket oneshot data to another server (Where HA is the client)? The application is to command; HA open socket, send command, close socket; not continuously monitor or keep the socket open. My version of python has websocket_client library installed, (that was a roadblock in a Samsung TV thread a while back) so I’m hoping for some illumination of sorts…
Thanks,
Ted.