Closed xiwenc closed 5 years ago
To run in Freebsd jail it's also required to turn on vnet
with option allow_raw_sockets=1
if not sensors and the gateway itself are not fully working.
After more intensive testing it's best to revert https://github.com/Danielhiversen/PyXiaomiGateway/pull/138 because that was not the core issue. It could be breaking something else I'm not aware of instead.
So to summarize the working setup is:
11.2-RELEASE-p7
FreeBSD jail on FreeNAS 11.2-stablevnet
with option allow_raw_sockets=1
related links:
Sorry for the confusion! Hope this helps others in the future when attempting to run in jails.
Home Assistant release with the issue (if applicable):
Last working Home Assistant release (if known): unknown
PyXiaomiGateway library version (if known): 0.11.1
Operating environment (Hass.io/Docker/Windows/etc.): FreeBSD 11.2-RELEASE-p7 (freenas)
Traceback (if applicable):
The module tries to bind to multicast when it's not Windows:
It seems this breaks (is not available?) on FreeBSD.