zanfur
zanfur
This is a websocket id, and must be a number. Trying to use a string fails: ``` 2022-10-17 13:12:15.957325 WARNING HASS: response: `{'id': '97e896950b054e378122c15e1b32b45c', 'type': 'result', 'success': False, 'error': {'code':...
From RFC6455 (WebSocket): The masking key is a 32-bit value chosen at random by the client. When preparing a masked frame, the client MUST pick a fresh masking key from...
This should completely close #505 when merged.
No problem on changing the names, I didn't know which way you guys wanted. Though if it's a service instead anyway, what would the service name be? The issue with...
I'll play with that. I was going to use a promise/future but basically the same. If there's no chance of multiple threads calling ws_request in parallel then agree it's much...
From the asyncio.Event documentation (https://docs.python.org/3/library/asyncio-sync.html) at the top of the page: > asyncio primitives are not thread-safe, therefore they should not be used for OS thread synchronization (use threading for...
From my analysis of the code (which hey could easily be wrong), the app gets its own thread and all its calls to the plugin (via the api) are run...
Oh great! That makes things a bit easier. I just went and looked through all of the app thread/worker selection and also realized that you only have the single loop....
Technically the app can still make its own thread and loop but then the plugin will complain when it tries to make the ws request in the executor, because the...
I created a pull request that will give access to these registries, as well as all data retrievable over the websocket api: https://github.com/AppDaemon/appdaemon/pull/1583