
* 🔥 Removes octopress.js * 🔥 Removes use of root_url var * 🔥 Removes Octopress generator reference from feed * 🔥 Removes delicious support * 🔥 Removes support for Pinboard * 🔥 Removes support for Disqus * 🔥 Removes support for Google Plus * ↩️ Migrate custom after_footer to default template * ↩️ Migrate custom footer to default template * ↩️ Migrate custom header to default template * 🔥 Removes unused template files * 🚀 Places time to read directly in post template * 🚀 Removes unneeded capture from archive_post.html template * 🔥 🚀 Removes unused, but heaving sorting call in component page * 🚀 Merged javascripts into a single file * 🔥 Removes more uses of root_url * 🚀 Removal of unneeded captures from head * 🔥 🚀 Removal of expensive liquid HTML compressor * 🔥 Removes unneeded templates * 🚀 Replaces kramdown with GitHub's CommonMark 🚀 * 💄 Adds Prism code syntax highlighting * ✨ Adds support for redirect in Netlify * ↩️ 🔥 Let Netlify handle all developer doc redirects * ✏️ Fixes typo in redirects file: Netify -> Netlify * 🔥 Removes unused .themes folder * 🔥 Removes unused aside.html template * 🔥 Removes Disqus config leftover * 🔥 Removes rouge highlighter config * 🔥 Removes Octopress 🎉 * 💄 Adjust code block font size and adds soft wraps * 💄 Adds styling for inline code blocks * 💄 Improve styling of note/warning/info boxes + div support * 🔨 Rewrites all note/warning/info boxes
2.5 KiB
title, description, logo, ha_category, ha_release, redirect_from
title | description | logo | ha_category | ha_release | redirect_from | ||
---|---|---|---|---|---|---|---|
OpenWRT (luci) | Instructions on how to integrate OpenWRT routers into Home Assistant. | openwrt.png |
|
pre 0.7 |
|
This is one of multiple ways we support OpenWRT. For an overview, see openwrt.
This is a presence detection scanner for OpenWRT using luci.
This integration requires a workaround when using luci with HTTPS and a self-signed certificate.
Before this scanner can be used you have to install the luci RPC package on OpenWRT:
# opkg install luci-mod-rpc
To use this device tracker in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
device_tracker:
- platform: luci
host: ROUTER_IP_ADDRESS
username: YOUR_ADMIN_USERNAME
password: YOUR_ADMIN_PASSWORD
{% configuration %}
host:
description: The hostname or IP address of your router, e.g., 192.168.1.1
.
required: true
type: string
username:
description: The username of an user with administrative privileges, usually admin
.
required: true
type: string
password:
description: The password for your given admin account.
required: true
type: string
ssl:
description: If your router enforces SSL connections, set to true
.
required: false
default: false
type: boolean
{% endconfiguration %}
See the device tracker integration page for instructions how to configure the people to be tracked.
This device tracker provides a number of additional attributes for each tracked device (if it is at home): flags
, ip
, device
, and host
. The first three attributes are taken from the ARP table returned by the luci RPC. The host
attribute is taken from the platform configuration and can be used to distinguish in which router a device is logged in, if you are using multiple OpenWRT routers.
Some installations have a small bug. The timeout for luci RPC calls is not set and this makes the call fail.
If you want to locally fix your OpenWRT installation, you can apply the change manually to /usr/lib/lua/luci/controller/rpc.lua
, or simply set a fixed timeout. The default is 3600.