Replies: 1 comment 1 reply
-
It should be fairly easy to build something like that, but I don't think it should be part of the server. The server is supposed to emulate a device. It would probably be its own script. The protocol itself is pretty simple. You would just need to read a line (terminated by This would probably work pretty well for normal usage, except when multiple Yamaha (YNCA) integrations would be initializing at the same time. Personally I have always just disabled the integration on my production Home Assistant instance and enabled the one on my Dev instance and reverse it when I am done. Which is not ideal, but because I can use the server for almost all development it is not often needed. |
Beta Was this translation helpful? Give feedback.
-
Just an idea and I haven't read much of the YNCA server.py code yet.
The current implementation of YNCA limits it to 1 device. I was wondering if the
ynca.server
module you have could be turned into a proxy server. Theynca
spawn theserver
which in turn connects to the device. Theserver
would then allow any number of clients to connect to it and multiplex (or broadcast) all commands to the clients.The idea would be that
yamaha_ynca
uses that proxy server as well, so that you can still connect to the YNCA proxy server to do development or debugging.Beta Was this translation helpful? Give feedback.
All reactions