That's the latest version of the plugin, but you need to upgrade to the latest version of py3coap as well. And no, it's not expected behavior that using "observe changes" should lock out other connections, apps or programs. I haven't tried the combination of Domoticz and HASS specifically at this time, but have seen no trouble running multiple instances of domoticz at the same time or observed any problems using the IKEA Tradfri app while running multiple instances of domoticz talking to the same gateway. There was, as noted in by wvdweerd, an error in py3coap that created multiple connections on timeouts, and it's possible that this somehow have blocked other connections, this should be fixed in the latest version of py3coap.bartplessers wrote: ↑Saturday 01 February 2020 0:54moroen wrote: ↑Friday 31 January 2020 22:08I've not been able to recreate your problem with using both HASS and domoticz, but I do suspect that this might be related to timeouts leaving behind open UDP-connections, since you noticed that the plugin seemed to respond slowly before locking out HASS.bartplessers wrote: ↑Wednesday 29 January 2020 23:26
So I don't have to restart domoticz, just disable the observe changes and wait a while.
Does this help?
Kind regards,
Bart
Please try updating to the latest version of py3coap, and see if that fixes this!
Regards,
M
Hi Moroen,
- Before the tests, I upgraded already to IKEA Tradfri Plugin - version 0.8.1. This is the latest at this moment, not?
- is it expected behaviour that you can NOT use "observe changes" with other connections to the IKEA bridge? Than the plugin becomes quit useless for me. I want to be as much as independent from any software. Playing around now with node-red, home-assistant, domoticz, openhab, etc... If a state is changed somewhere, I want to have it reflected in all my tools. It's really a bummer if the plugin locks out other connections
- If you have not been able to recreate my problems: does it mean that you have a working setup with both hass and domoticz? Or you just haven't got the opportunity to test this combination?
I alsof forgot to mention: I have 4 instances of home-assistant running on different servers. The "IKEA integrations" on al these servers talk smoothly to the IKEA bridge, so at least it is possible to have multiple connections to the bridge...
Kind regards,
Bart
I do know, however, that HASS uses COAP observations to update the state when the state is changed, either by HASS it self, by another program or a Tradfri remote. I also know, that getting stable observations for a prolonged time has proven difficult to achieve, which is the reason that this plugin uses polling, which is less efficient, but at least produces consistent updated information, albeit somewhat delayed.
So I really don't know why using both HASS and Domoticz with this plugin breaks HASS. In your expericence running multiple instances of HASS is working smoothly, and in my experience running multiple instances of Domoticz is working smoothly as well.
I might get around to set up HASS to investigate this further, but my main priority is to make the plugin work as smoothly and stable on Domoticz as I can...
Regards,
M