如上,有人在github上发布了一款hass windows portable的,只要下载下来就能运行,我看了下cpu和内存占用极小,比docker方案和vm方案好很多,而且很稳定,测试了下自己用的很多插件包括homekit啥的都能用,只有多dc1离线版的不能使,报错如下:
2021-01-06 22:52:12 ERROR (MainThread) [homeassistant.components.switch] Error while setting up phicomm_dc1_switch platform for switch
Traceback (most recent call last):
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\site-packages\homeassistant\helpers\entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\liush\Desktop\HassWP_0.116.4\config\custom_components\phicomm_dc1_switch\switch.py", line 52, in setup_platform
dc1sock.settimeout(200000000)
OverflowError: timeout doesn't fit into C timeval
2021-01-06 22:52:12 ERROR (MainThread) [homeassistant.components.switch] Error while setting up phicomm_dc1_switch platform for switch
Traceback (most recent call last):
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\site-packages\homeassistant\helpers\entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\liush\Desktop\HassWP_0.116.4\config\custom_components\phicomm_dc1_switch\switch.py", line 52, in setup_platform
dc1sock.settimeout(200000000)
OverflowError: timeout doesn't fit into C timeval
2021-01-06 22:52:12 ERROR (MainThread) [homeassistant.components.switch] Error while setting up phicomm_dc1_switch platform for switch
Traceback (most recent call last):
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\site-packages\homeassistant\helpers\entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\liush\Desktop\HassWP_0.116.4\config\custom_components\phicomm_dc1_switch\switch.py", line 52, in setup_platform
dc1sock.settimeout(200000000)
OverflowError: timeout doesn't fit into C timeval
2021-01-06 22:52:12 ERROR (MainThread) [homeassistant.components.switch] Error while setting up phicomm_dc1_switch platform for switch
Traceback (most recent call last):
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\site-packages\homeassistant\helpers\entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "c:\users\liush\desktop\hasswp_0.116.4\python-3.8.5\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\liush\Desktop\HassWP_0.116.4\config\custom_components\phicomm_dc1_switch\switch.py", line 52, in setup_platform
dc1sock.settimeout(200000000)
OverflowError: timeout doesn't fit into C timeval