『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4095|回复: 5

[技术探讨] 求助 求助 真心无解 从设备VM换到N1后各种出错

[复制链接]

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

发表于 2018-7-16 23:28:40 | 显示全部楼层 |阅读模式
本帖最后由 xieahui 于 2018-7-17 16:49 编辑

本来一直用的win7虚拟VM,装的16.10ubuntu server版 折腾了半个月终于有一点点起色 能马虎用用了
然后就买了个斐讯N1 刷的本站教程里面的Ubuntu 18.04 LTS \n \l
然后也是按照管理员大大的无坑版安装的命令,也没看到哪个报错
然后发现18.04版本随便加什么都报错,怎么加怎么错 随便上个开关都错  完全蒙了。。。
是版本的关系吗?  如果是版本的关系的话大大门有16.10的ubnutu镜像吗?(刷斐讯N1)

群里大神给力,一个命令搞定了,还有其他很多坑到时候整理下发出来虚拟环境下跟那几个一起装
pip install broadlink==0.9.0

以下随意取了其中两个出错启动不了的情况下的log
``````````````````````````````````````````````````````````````````````````````````````````````
2018-07-16 23:10:05 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=1 from 2018-07-16 15:07:53.217356)
2018-07-16 23:11:58 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package broadlink==0.9.0: python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.4.11 which is incompatible.
Command "/srv/homeassistant/homeassistant_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-0vsmgjmz/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4s9vhk5w/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/pycryptodome" failed with error code 1 in /tmp/pip-install-0vsmgjmz/pycryptodome/
2018-07-16 23:11:58 ERROR (MainThread) [homeassistant.requirements] Not initializing switch.broadlink because could not install requirement broadlink==0.9.0
2018-07-16 23:11:58 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.broadlink: Could not install all requirements.
```````````````````````````````````````````````````````````````````````````````````````````````````
2018-07-16 22:47:17 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=22 from 2018-07-16 14:45:10.648055)
2018-07-16 22:49:10 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package broadlink==0.9.0: python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.4.11 which is incompatible.
Command "/srv/homeassistant/homeassistant_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6xnn4f3q/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-dl7cgymc/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/pycryptodome" failed with error code 1 in /tmp/pip-install-6xnn4f3q/pycryptodome/
2018-07-16 22:49:10 ERROR (MainThread) [homeassistant.requirements] Not initializing sensor.broadlink because could not install requirement broadlink==0.9.0
2018-07-16 22:49:10 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.broadlink: Could not install all requirements.
2018-07-16 22:51:09 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package broadlink==0.9.0: python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.4.11 which is incompatible.
Command "/srv/homeassistant/homeassistant_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-3xjcgpow/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-62sxa0e2/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/pycryptodome" failed with error code 1 in /tmp/pip-install-3xjcgpow/pycryptodome/
2018-07-16 22:51:09 ERROR (MainThread) [homeassistant.requirements] Not initializing sensor.broadlink because could not install requirement broadlink==0.9.0
2018-07-16 22:51:09 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.broadlink: Could not install all requirements.
```````````````````````````````````````````````````````````````````````````````````````````````````````



回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

 楼主| 发表于 2018-7-17 00:26:39 | 显示全部楼层
QQ图片20180717002557.png
重新装的时候一直这个红字提示 是不是什么插件没装好?
回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

 楼主| 发表于 2018-7-17 00:39:49 | 显示全部楼层
2018-06-01 15:01:02 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=4 from 2018-06-01 06:58:43.701386)
2018-06-01 15:02:59 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package broadlink==0.9.0: python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.4.11 which is incompatible.
Command "/srv/homeassistant/homeassistant_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-f_8orq4e/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-gmqn056o/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/pycryptodome" failed with error code 1 in /tmp/pip-install-f_8orq4e/pycryptodome/
2018-06-01 15:02:59 ERROR (MainThread) [homeassistant.requirements] Not initializing switch.broadlink because could not install requirement broadlink==0.9.0
2018-06-01 15:02:59 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.broadlink: Could not install all requirements.
回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

 楼主| 发表于 2018-7-17 00:46:59 | 显示全部楼层
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:08 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
2018-06-01 15:15:09 ERROR (MainThread) [homeassistant.components.binary_sensor] ping: Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 96, in update
    self.ping.update()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 152, in update
    self.data = self.ping()
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/binary_sensor/ping.py", line 120, in ping
    self._ping_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'
回复

使用道具 举报

18

主题

192

帖子

1047

积分

金牌会员

Rank: 6Rank: 6

积分
1047
金钱
850
HASS币
20
发表于 2018-7-17 01:26:51 | 显示全部楼层
在用N1作为HASSIO服务器
我自己的方法如下
不知道能不能合适你

N1新到手到装上ubuntu
http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=327886&highlight=N1


ubuntu装hassio
https://bbs.hassbian.com/forum.p ... 72&highlight=N1

回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

 楼主| 发表于 2018-7-17 06:12:58 | 显示全部楼层
jc78256 发表于 2018-7-17 01:26
在用N1作为HASSIO服务器
我自己的方法如下
不知道能不能合适你

你的文章我原本已经关注到了,
就是怕路径不一样又蒙蔽才选择手动
回头晚上试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 23:58 , Processed in 0.444862 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表