Home Assistant集成OpenWrt

Home Assistant集成OpenWrt

2020-06-07 / 1 评论 / 3,020 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年10月27日,已超过905天没有更新,若内容或图片失效,请留言反馈。
  1. 首先确保安装了luci-mod-rpc模块,没有的使用opkg安装:
opkg install luci-mod-rpc
  1. 在 Home Assistant 的配置文件 configuration.yaml 中做如下配置
device_tracker:
  - platform: luci
    host: 192.168.1.1 # 你的路由器IP
    username: admin #用户名
    password: password #密码
  1. 使用lede编译的插件需要做版本改变,否则会无法使用设备track功能
# cat /etc/os-release

NAME="OpenWrt"
VERSION="SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt SNAPSHOT"
VERSION_ID="snapshot" # 这里需要修改成 `18.06`
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r0-f892bcd"
OPENWRT_BOARD="x86/64"
OPENWRT_ARCH="x86_64"
OPENWRT_TAINTS="no-all"
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r0-f892bcd"
0

评论 (1)

取消
  1. 头像
    720p izle
    Windows 10 · Google Chrome

    Money today is not the same as money tomorrow or even yesterday for that matter. Jennie Der Pearline

    回复