斐讯N1 全Docker智能家居系统镜像基于Armbian 5.3,系统负载正常。(理论上支持所有Armbian系统)
电脑需要安装iTuns才可以访问下面地址。SSH用户名:root 密码:1234

内置项目:

CockPit (树莓派系统管理界面 https://itcommander.local:9090 用户名密码同SSH)
Portainer (Docker 管理网页界面 https://itcommander.local:8443)
Home Assistant (http://itcommander.local:8123)
Configurator (http://itcommander.local:3218 用户名:admin 密码: itcommander)
Mopidy (蓝牙配对连接即可播放音乐,音乐路径已设置共享目录。)
SnapCast (音乐播放服务器,可SnapCast客户端网络连接,多点同步播放Mopidy音乐。)
ZigBee2Mqtt (自制ZigBee网关使用)
MariaDB (Mysql 数据库 用户名:root 密码:itcommander)
HomeBridge (配对苹果家庭摄像头,显示MotionEye里的画面)
MQTT (mqtt标准服务器,无用户名密码)
MotionEye (配置USB或网络摄像头,http://itcommander.local:8765 用户名:admin 密码:空)
OpenWRT (http://openwrt.local 需要网线连接,WiFi不可用)

注1: 所有Docker容器配置文件存放在/opt/目录下。
注2: 如果没有插网线跑脚本OpenWrt将不会安装,如需再次安装,插上网线再次运行安装脚本。

请使用大于8G的U盘,大于8G不是等于8G。
请使用大于8G的U盘,大于8G不是等于8G。
请使用大于8G的U盘,大于8G不是等于8G。
请使用大于8G的U盘,大于8G不是等于8G。
请使用大于8G的U盘,大于8G不是等于8G。
请使用大于8G的U盘,大于8G不是等于8G。

下载地址:https://yadi.sk/d/4Luurr99c90MfA

百度云:https://pan.baidu.com/s/1KExrwNbh-7jACg2zK2cIWg 提取码:o3z6

镜像刷好后连接网线执行下面命令:

bash <(curl -L -s https://sumju.net/docker.sh)

等待大约2小时可以完成全部安装。

162 对 “斐讯N1 智能家居镜像出炉,Armbian系统全docker形式包含OpenWRT。”的想法;

      1. 这个系统昨晚深夜装了两个小时才好,进去home assistant,里面的配置-配置检查还有配置-服务管理均不能用,up主一些常用的命令能否在博客一并贴出来,本人用的N1盒子,很多命令跟着你的哔哩哔哩操作均用不了,另外有没有QQ群或者微信群,方便大家交流。您留下的网址除了这个外,我家都打不开。

  1. 按教程输入bash <(curl -L -s https://sumju.net/docker.sh)后报错,请指点,谢谢
    sed: can't read /root/install.sh: No such file or directory
    sed: can't read /root/install.sh: No such file or directory
    sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
    sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
    sudo: fatal error, unable to load plugins
    其中下载成功一个
    Length: 56759 (55K) [application/octet-stream]
    Saving to: ‘BCM4345C0.hcd.3’
    但后续继续报错
    sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
    sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
    sudo: fatal error, unable to load plugins
    /dev/fd/63: line 368: docker: command not found
    整个过程一分钟就结束了,安装失败

      1. 您好,我也遇到相同的问题,固件是从您提供的百度云下载的,安装后用命令也是提示错误,但是用在您2019.11.22日发布的那个固件就可以。

          1. Create a network
            Reading package lists… Done
            Building dependency tree
            Reading state information… Done
            jq is already the newest version (1.5+dfsg-2+b1).
            0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
            cp: cannot stat ‘/opt/resource/config.json’: No such file or directory
            cp: cannot stat ‘/opt/resource/settings.conf’: No such file or directory
            cp: cannot stat ‘/opt/resource/configuration.yaml’: No such file or directory
            cp: cannot stat ‘/opt/resource/automations.yaml’: No such file or directory
            cp: cannot stat ‘/opt/resource/onboarding’: No such file or directory
            cp: cannot stat ‘/opt/resource/auth’: No such file or directory
            cp: cannot stat ‘/opt/resource/hacs’: No such file or directory
            Error response from daemon: Container 9f0b07d37645121f1f153e18882ef5d60f4590a7783160935663baa7240c402c is not running
            Error response from daemon: Container 9f0b07d37645121f1f153e18882ef5d60f4590a7783160935663baa7240c402c is not running
            + [email protected]
            updated 1 package in 7.112s
            Reading package lists… Done
            Building dependency tree
            Reading state information… Done
            snapclient is already the newest version (0.15.0-1).
            snapserver is already the newest version (0.15.0-1).
            0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
            Synchronizing state of snapserver.service with SysV service script with /lib/systemd/systemd-sysv-install.
            Executing: /lib/systemd/systemd-sysv-install enable snapserver
            Synchronizing state of snapclient.service with SysV service script with /lib/systemd/systemd-sysv-install.
            Executing: /lib/systemd/systemd-sysv-install enable snapclient
            useradd: user ‘itcommander’ already exists
            Reading package lists… Done
            Building dependency tree
            Reading state information… Done
            samba is already the newest version (2:4.9.5+dfsg-5+deb10u1).
            0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
            Synchronizing state of smbd.service with SysV service script with /lib/systemd/systemd-sysv-install.
            Executing: /lib/systemd/systemd-sysv-install enable smbd
            sed: can’t read /boot/rc-local: No such file or directory

  2. 这个系统昨晚深夜装了两个小时才好,进去home assistant,里面的配置-配置检查还有配置-服务管理均不能用,up主一些常用的命令能否在博客一并贴出来,本人用的N1盒子,很多命令跟着你的哔哩哔哩操作均用不了,另外有没有QQ群或者微信群,方便大家交流。您留下的网址除了这个外,我家都打不开。

  3. 您好,安装了您的固件,configurator,MotionEye,mopidy,都可以在HASS的页面打开,就是ESPhome,nodered,iobroke都是ItCommander.lacal拒绝访问,想问下是我哪里没有设置对还是没有安装好呢?

  4. 您好,安装了您的N1固件,在hass页面左侧,点击“esphome”,”nodered”,都显示“itcommander.local 拒绝了我们的连接请求。”,请问这是我没设置对还是哪里有问题呢?

          1. 抱歉,真的没看明白,少装的软件是什么,怎么安装,如果有时间的话,请不吝赐教,谢谢。

      1. 大佬,我真的认真看了这个教程,可是没有看到esphomer的安装教程啊? 我在网上找到docker命令安装上了,但是运行不了,portainer的日志里显示:standard_init_linux.go:211: exec user process caused “exec format error”。 我真的不想麻烦您,但我是真的找不到,能告诉我是怎么安装这个软件吗? 或者您其他哪篇文章?

          1. 那N1应该怎么装呢? 我用16G的U盘,没有写入到N1的emmc里,但是在DOCKER里装上esphome后就是运行不起来。

  5. 您好,我也遇到相同的问题,固件是从您提供的百度云下载的,安装后用命令也是提示错误,但是用在您2019.11.22日发布的那个固件就可以。

  6. Home Assistant 界面中 Configurator、ESPHome、IOBroker、MotionEye、Music、NodeRed 都提示找不到 itcommander.local 的服务器 IP 地址,另外配置->集成->搜索并添加HACS,能搜索到但是无法添加,请问这些该如何解决?

  7. 大神好!有几个问题请教:
    1:安装完成后通过IP地址和端口只能打开这个网页(Home Assistant)别的都打不开,请问问题出在哪里?9090 8443 3218 8765都打不开。
    2:想用DDNS外网访问的话怎么实现?是在路由器转发和映射还是N1可以安装DDNS服务器?
    3:想用docker安装v2ray server,或者trojun,放在墙外当服务器,怎么实现?
    非常感谢!

  8. 你好,我安装了您的镜像,能进入HA,但是通过winSCP也找不到 .homeassistant/这个文件夹,本人小白,请给指示,谢谢了!

  9. 这个镜像完整安装完后,占用u盘多少空间啊?我的安装完后,只占用6G多的用空间,此外hass界面的esphome iobroker nodered这三个个功能都无法使用(显示itcommander.local 拒绝了我们的连接请求。),以上问题请大神回复一下,谢谢了。

  10. 大佬,打扰,安装过程走了几次,到最后都是现实没有空间了(我是写入内存了),有没有什么方法在现已经安装的基础上清理一下内存储空间?我觉得应该是8gemmc够用了,安装的时候显示是4月7日 版本。谢谢

  11. 你好,想请教一下:
    我安装了好几遍,docker里都没有home assistant;
    另外openwrt无法连接网络,点击运行提示“network magnet not found”

  12. 我也是这个问题,安装了N1固件,在hass页面左侧,点击“esphome”,”nodered”,都显示“itcommander.local 拒绝了我们的连接请求。”,请问这是我没设置对还是哪里有问题呢?也尝试了很多方法

    1. esphome和NodeRed都可以单独通过ssh安装了,通过左侧打开的,而唯独IOBroker即使独立安装了,也在浏览器里面显示因 X-Frame-Options 政策阻止,此页面包含的内容安全政策阻止了在此上下文中进行的载入。无法打开。

  13. 刚刚下载好,2个小时多。鄙视baidu
    开始折腾,是不是遇到小伙伴一样的问题。
    我是原来有OPENWRT,不知道怎么将N1清零重新安装。
    试试看再说,请up给一个指点,谢谢!

  14. Welcome to Debian Buster with Armbian Linux 5.3.0-aml-g12
    System load: 0.02 0.14 0.08 Up time: 5 min
    Memory usage: 7 % of 1805MB IP: 192.168.3.2
    CPU temp: 51°C
    Usage of /: 12% of 27G storage/: 55% of 128M

    sorry 拼多多优盘坏的,害我浪费了时间,现在进入duilding dependency tree

  15. 不知道building、、tree 会不会对NI内存负载有没有压力,能不能优化原来自带的openwrt,清理干净。
    两个openwrt挺怪的

  16. 正在 Ping debian.map.fastly.net [151.101.110.133] 具有 32 字节的数据:
    请求超时。
    来自 151.101.110.133 的回复: 字节=32 时间=184ms TTL=53
    来自 151.101.110.133 的回复: 字节=32 时间=183ms TTL=53
    来自 151.101.110.133 的回复: 字节=32 时间=182ms TTL=53
    来自 151.101.110.133 的回复: 字节=32 时间=182ms TTL=53
    请求超时。
    请求超时。
    请求超时。
    请求超时。
    请求超时。

      1. sorry,没找到群。
        我把调试过程写清楚,让同样问题都小白也贯通的对应上自己的问题。谢谢提醒,我会注意方式。见谅。

      2. 这几天在一个大群里遇到类似的爱好者,不能用言语沟通,所以顺路宣传一下主播的bili主站,希望他们早日入门。有许多大学生也希望学习,制作毕业课件,你的课程很适合他们。👍️

  17. 总结下折腾的结果:
    软件名称 —— 》DOCKER映像文件 状态
    OpenWRT —— kanshudj/n1-openwrtgateway:r9.10.1 CREATED
    Z2M-Assistant ——carldebilly/zigbee2mqttassistant:linux-arm64 RUNNING
    MotionEye ——-wgen/motioneye:arm64 RUNNING
    Configurator ——-zurajm/hass-configurator:latest-arm64 RUNNING
    ZigBee2MQTT ——- koenkk/zigbee2mqtt RUNNING
    MariaDB ——–mariadb:latest RUNNING
    HomeBridge ——–oznu/homebridge:latest RUNNING
    Mopidy ——–jorenn92/mopidy:aarch64 RUNNING
    MQTT ——–arm64v8/eclipse-mosquitto:latest RUNNING
    Portainer ——–portainer/portainer RUNNING
    Home-Assistant——-76583dddce12 (估计安装了一次未成功执行了2次pull) STOPPED (Images 状态Unused 1.4 GB)考虑清理

    images 里面有个映像没有标签名称1.2 GB,估计被上面HASS失败占用名称 sha256:76583dddce12423444beb13b0b7b44297446820583044b15a416013e73d4e7ed 构建 Docker 3.0.10+azure on linux, arm64 CMD python3 -m homeassistant –config /config PYTHON_VERSION 3.7.6 PYTHON_PIP_VERSION 19.3.1 WHEELS_LINKS https://wheels.home-assistant.io/alpine-3.10/aarch64/
    容器里面就这些 ,该清理运行稳定后清理。本次使用U盘64G,历时呵呵呵了

  18. 调试整理二:(建议同时打开三个页面,核对Configurator 配置插件的端口是否一样。docker管理页面PULL遗漏镜像
    1,Configurator 使用正常 方便👍 3218
    2,ESPHOME请确保你已获取正确的网址: http://itcommander.local:6052 镜像缺失,执行PULL— 名称: esphome/esphome:latest 730.6 MB (补充一下,由于安装时许多以来在墙外,get失败也难免)
    不能推送到DOCKER注册表Failure: errors: denied: requested access to the resource is denied unauthorized: authentication required . 手工拖取 进入docker 容器内 添加 esphome/esphome:latest 发布端口6052 NETWORK 介入类型保持其他插件一直 HOST,执行Deploy the contaner,pull成功!
    但是重启无效:standard_init_linux.go:211: exec user process caused “exec format error”
    这样的配置需要考虑到很多环境因素,还请ITcommander指导。
    向ITCOMMANDER致敬!!!

    3,

  19. 6052 云端UBUNTU能docker esphome 运行正常,嵌入到本地算是成功打开了,这样刷写模块刷写到哪个串口?
    8181 buanet/iobroker Installing additional packages is set by ENV.
    云端运行一样情况,估计插件还在搜索依赖:The following packages will be installed: vi…

  20. OpenWRT 默认安装没有配置选择网络接口,本次推送选择bridge,获得172.17.0.6
    后台:
    Press the [f] key and hit [enter] to enter failsafe mode

    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level

    label buffer too small 256 > 63

    label buffer too small 256 > 63

    算啥尼,呵呵、、、、

  21. 1880 pull nodered/node-red-docker:latest NETWORK BRIDGE
    :standard_init_linux.go:211: exec user process caused “exec format error”
    docker search nodered/node-red 版本对应上了!!!
    运行正常:
    4 May 06:41:49 – [info] Server now running at http://127.0.0.1:1880/

    4 May 06:41:49 – [info] Starting flows

    4 May 06:41:49 – [info] Started flows

  22. iobroker 也是版本对应问题,hash changed or no sources cached => force download of new sources
    ash changed or no sources cached => force download of new sources
    已更改或无源缓存=》强制下载新源

  23. 提醒下小白:
    没有本地域名解释的清江.yaml里面的配置域名修改为本地ip地址与端口,不然app远程会找不到插件服务器。

  24. iobroker 后台的提示

    —- Step 4 of 5: Applying special settings —–

    ————————————————————

    Some adapters have special requirements/ settings which can be activated by the use of environment variables.

    For more information take a look at readme.md on Github!

    ————————————————————

    —– Step 5 of 5: ioBroker startup —–

    ————————————————————

    Starting ioBroker…

    host.d48db5861938 check instance “system.adapter.admin.0” for host “d48db5861938”

    host.d48db5861938 check instance “system.adapter.discovery.0” for host “d48db5861938”

    host.d48db5861938 check instance “system.adapter.info.0” for host “d48db5861938”

    Send diag info: {“uuid”:”7abd3182-d399-f7bd-da19-9550d8babede”,”language”:””,”country”:””,”hosts”:[{“version”:”2.2.9″,”platform”:”Javascript/Node.js”,”type”:”linux”}],”node”:”v10.20.1″,”arch”:”x64″,”adapters”:{“admin”:{“version”:”3.7.8″,”platform”:”Javascript/Node.js”},”discovery”:{“version”:”1.3.0″,”platform”:”Javascript/Node.js”},”info”:{“version”:”1.5.6″,”platform”:”Javascript/Node.js”}},”statesType”:”file”,”objectsType”:”file”,”model”:”Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz”,”cpus”:2,”mem”:4104060928,”ostype”:”Linux”,”city”:””}

    hash changed or no sources cached => force download of new sources

    Send diag info: {“uuid”:”7abd3182-d399-f7bd-da19-9550d8babede”,”language”:””,”country”:””,”hosts”:[{“version”:”2.2.9″,”platform”:”Javascript/Node.js”,”type”:”linux”}],”node”:”v10.20.1″,”arch”:”x64″,”adapters”:{“admin”:{“version”:”3.7.8″,”platform”:”Javascript/Node.js”},”discovery”:{“version”:”1.3.0″,”platform”:”Javascript/Node.js”},”info”:{“version”:”1.5.6″,”platform”:”Javascript/Node.js”}},”statesType”:”file”,”objectsType”:”file”,”model”:”Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz”,”cpus”:2,”mem”:4104060928,”ostype”:”Linux”,”city”:””}

    hash changed or no sources cached => force download of new sources

    研究研究 ,源更改了、、、、、、

  25. REPULL IMAGE :
    DOCKER SEARCH ESPhome HUB LIST
    PULL esphome/esphome-armv7 PORT 6052 NETWORK HOST
    、、、、、、、、执行成功,版本对应上ARMv7!!!
    容器安装成功!!!
    NFO Starting dashboard web server on port 6052 and configuration dir /config…

    INFO 200 GET / (172.17.0.1) 122.82ms

    INFO 200 GET /static/fonts/material-icons.css?hash=ead4c276 (172.17.0.1) 18.17ms

    INFO 200 GET /static/esphome.css?hash=33d0115f (172.17.0.1) 3.58ms

    INFO 200 GET /static/materialize-stepper.min.css?hash=a7ad7ee2 (172.17.0.1) 3.91ms

    INFO 200 GET /static/jquery.validate.min.js?hash=b2d2cf16 (172.17.0.1) 4.13ms

    INFO 200 GET /static/materialize-stepper.min.js?hash=9f34c4ff (172.17.0.1) 3.61ms

    INFO 200 GET /static/jquery.min.js?hash=2f6b11a7 (172.17.0.1) 39.30ms

    INFO 200 GET /static/jquery-ui.min.js?hash=a0b1425d (172.17.0.1) 50.01ms

    INFO 200 GET /static/materialize.min.js?hash=4be20daf (172.17.0.1) 24.04ms

    INFO 200 GET /static/materialize.min.css?hash=ec1df3ba (172.17.0.1) 24.16ms

    INFO 200 GET /static/esphome.js?hash=2825ee86 (172.17.0.1) 3.90ms

    INFO 200 GET /static/ace.js?hash=2280cf05 (172.17.0.1) 23.92ms

    INFO 101 GET /ace (172.17.0.1) 2.63ms

    INFO Running command ‘esphome –dashboard -q /config vscode –ace’

    INFO 200 GET /static/fonts/MaterialIcons-Regular.woff2 (172.17.0.1) 5.56ms

    INFO 200 GET /static/mode-yaml.js (172.17.0.1) 3.91ms

    INFO 200 GET /static/theme-dreamweaver.js (172.17.0.1) 3.81ms

    INFO 200 GET /static/favicon.ico?hash=2655a073 (172.17.0.1) 4.04ms

  26. ESPHOME 的配置文件估计随安装防盗哪儿呢?
    小伙伴可以执行locate 查找config文件、、、、、、、
    我也不知道它会到哪里去,会不会跟随UP主的、/opt/HASS???、、

  27. 还剩下最后一个插件iobroker : itcommander.local 拒绝了我们的连接请求。
    docker search iobroker:
    root@itcommander:~# docker search iobroker
    NAME DESCRIPTION STARS OFFICIAL AUTOMATED
    buanet/iobroker Docker Image for ioBroker based on Debian (h… 61 [OK]
    iobroker/iobroker This is docker version of ioBroker Home-Auto… 12 [OK]
    smarthomefans/iobroker 3
    bluefox/iobroker.docker ioBroker container. 2 [OK]
    duffbeer2000/iobroker ioBroker for Unraid 2
    mcdhrts/iobroker_pi3 iobroker for raspberry pi 3 based on buanet/… 2
    athalis/iobroker iobroker 1 [OK]
    salenss/iobroker Iobroker based in alpine package node v6 1 [OK]
    gamebeast/iobroker IoBroker Docker 1 [OK]
    bluemoon1978/iobroker first start 1 [OK]
    trasrik/iobroker ioBroker based on Debian Stretch (slim image… 0 [OK]
    kremanjel/iobroker Docker Image for ioBroker based on Node.js (… 0
    castorio/iobroker ioBroker Image running on Ubuntu, running fr… 0 [OK]
    treban/iobroker iobroker docker image 0 [OK]
    diggewuff/iobroker 0
    angelnu/iobroker Multi arch docker for the ioBroker 0 [OK]
    migoller/iobroker ioBroker for Docker – Automate your life 0
    thost96/iobroker iobroker for raspberry pi 3 0
    dirkplatt/iobroker iobroker für unraid 0 [OK]
    duffbeer2000/iobroker_unraid ioBroker for Unraid 0
    samosir/iobroker stack with iobroker, redisdb, influxdb and g… 0
    jimus/iobroker ioBroker container image 0
    tp1de/iobroker Docker Image for ioBroker based on Debian:La… 0
    sriegler/iobroker ioBroker prepared for external data storage … 0
    wagopfc/iobroker Use IoBroker on Wago ‘PFC 200 G2’ and ‘Touch… 0
    root@itcommander:~#
    哪个是呢???、、、、、、、、

  28. pull 这个 玩玩 mcdhrts/iobroker_pi3
    镜像760M 出来这个提示:
    —————————————-
    —– Image-Version: 3.0.0 —–
    —– 2020-05-05 13:54:44 —–
    —————————————-
    Startupscript running…
    Installing additional packages…
    The following packages will be installed: nano

    也不老实,还在拖依赖包、、、、
    期待这位“小姐姐”给个好脸色,嘻嘻嘻、、、、、、
    再不行换包房、、、、、、、hhhh

    1. 必须的,我按照提示购买了64G,安装中会有许多依赖在墙外的,保持耐心。没有安装成功的,结束后请在docker管理器里面再执行补安装。遇到usb棒坏的斐讯N1找不到执行文件的情况注意了。讲课老师的课程里都有详细指导与软件包,很方便。这个集成很方便调试。

  29. 你好,感谢你提供Armbian全Docker套件,目前有个问题想咨询一下你,我在最后一步安装套件,一直卡下载protainer-cn.zip,已经重新试过几次,搞了2天了。也换源了。还有法子么?

  30. sudo: error in /etc/sudo.conf, line 0 while loading plugin “sudoers_policy”
    sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
    sudo: fatal error, unable to load plugins
    sudo: error in /etc/sudo.conf, line 0 while loading plugin “sudoers_policy”
    sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
    sudo: fatal error, unable to load plugins
    报错信息

  31. 你好,我执行了好几次安装命令,安装hass 的时候提示空间不足了,要怎么清除在重新安装呢?谢谢
    docker: failed to register layer: Error processing tar file(exit status 1): write /usr/local/lib/python3.7/site-packages/pandas/_libs/tslibs/timezones.cpython-37m-aarch64-linux-gnu.so: no space left on device.

  32. gw=$(sudo route -n | grep eth0 | grep UG | awk ‘{print $2}’)
    本人gw值实际为192.168.3.1 192.168.3.1 应该为192.168.3.1
    导致docker network create失败,单独设置后跑脚本创建成功。

    root@itcommander:~# route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    0.0.0.0 192.168.3.1 0.0.0.0 UG 0 0 0 eth0
    0.0.0.0 192.168.3.1 0.0.0.0 UG 100 0 0 eth0

      1. 在我的N1上运行route -n命令结果是我上面贴的结果, Metric 一个是0 还一个是100,其他字段都一样。
        用你的那个变量对应命令取出来是2个网关, gw变量打印出来值是 192.168.3.1 192.168.3.1 ,多拼了一个192.168.3.1
        docker network create -d macvlan –subnet=192.168.3.0/24 –gateway=192.168.3.1 192.168.3.1 –ipv6 –subnet=fe80::/16 –gateway=fe80::1 -o parent=eth0 -o macvlan_mode=bridge macnet。

  33. root@itcommander:/etc# gw=$(sudo route -n | grep eth0 | grep UG | awk ‘{print $2}’)
    root@itcommander:/etc# echo $gw
    192.168.3.1 192.168.3.1
    中间有空格

  34. 如何修改docker里Home Assistant使用docker里MariaDB数据库?

    已经根据“Home Assistant 0.103.6 更改MySQL数据库”操作如下
    CREATE DATABASE hass;
    CREATE USER ‘hass’@’%’ IDENTIFIED BY ‘hass123456’;
    GRANT ALL ON *.* TO ‘hass’@’%’;
    FLUSH PRIVILEGES;

    修改configuration.yaml配置文件中recorder如下
    recorder:
    purge_keep_days: 5
    db_url: mysql+pymysql://hass:hass123456@localhost/hass?charset=utf8

    但hass日志报错如下,请问需要如何操作。 将localhost修改为主机ip地址也不行。不会要在hass镜像里安装mysql客户端吧
    Error during connection setup: No module named ‘pymysql’ (retrying in 3 seconds)

  35. 设置openwrt的网页端,点击保存后,会提示/usr/lib/lua/luci/dispatcher.lua:550: Fatal: Indexcache is not sane!
    stack traceback:
    [C]: in function ‘assert’
    /usr/lib/lua/luci/dispatcher.lua:550: in function ‘createindex’
    /usr/lib/lua/luci/dispatcher.lua:593: in function ‘createtree’
    /usr/lib/lua/luci/dispatcher.lua:261: in function ‘dispatch’
    /usr/lib/lua/luci/dispatcher.lua:127: in function
    之后点击任何一个子菜单都会如此,怎么破?

  36. Illegal instruction (core dumped)
    *** [.pioenvs/kiang/src/esphome/components/api/api_connection.cpp.o] Error 132
    Illegal instruction (core dumped)
    *** [.pioenvs/kiang/src/esphome/components/api/api_pb2.cpp.o] Error 132
    Illegal instruction (core dumped)
    *** [.pioenvs/kiang/src/esphome/components/api/api_pb2_service.cpp.o] Error 132
    Illegal instruction (core dumped)
    *** [.pioenvs/kiang/src/esphome/components/api/api_server.cpp.o] Error 132

    我研究了一下你的脚本,不管是单独用你的esphome镜像,还是dockerhub里面的esphome,在编译yaml的时候,始终卡在这里 我架了梯子,所以不是网的问题

  37. 你好,Home Assistant苹果家配对密码登陆页面查看通知区提示的密码,我之前连接过,但是没有记录下来,后面换手机后想再接入时找不到配对密码了,请问我可以在哪里再次找到这个配对密码?

      1. 谢谢,在网上找到办法了,在hass里的Configurator里,打开根目录下config,找到.homekit.state删除掉,重启后那个代码又出来了。

回复 lfy0425 取消回复