From 765c4b2a299787fefc3b5d9a6761b5eacc82dbd6 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 26 Oct 2015 21:58:19 -0700 Subject: [PATCH] Add ubus platform and update blog post for 0.7.6 --- .../_components/device_tracker.luci.markdown | 11 +++- .../_components/device_tracker.ubus.markdown | 58 +++++++++++++++++++ ...retv-and-radiotherm-now-supported.markdown | 1 + 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 source/_components/device_tracker.ubus.markdown diff --git a/source/_components/device_tracker.luci.markdown b/source/_components/device_tracker.luci.markdown index c9d69c698f0..84becfbaba0 100644 --- a/source/_components/device_tracker.luci.markdown +++ b/source/_components/device_tracker.luci.markdown @@ -1,6 +1,6 @@ --- layout: component -title: "OpenWRT" +title: "OpenWRT (luci)" description: "Instructions how to integrate OpenWRT routers into Home Assistant." date: 2015-03-23 19:59 sidebar: true @@ -11,8 +11,15 @@ logo: openwrt.png ha_category: Presence Detection --- +_This is one of the two ways we support OpenWRT. If you encounter problems, try [ubus](/components/device_tracker.ubus.html)._ -Before this scanner can be used you have to install the luci RPC package on OpenWRT: opkg install luci-mod-rpc. +This is a presence detection scanner for OpenWRT using [luci](http://wiki.openwrt.org/doc/techref/luci). + +Before this scanner can be used you have to install the luci RPC package on OpenWRT: + +```bash +opkg install luci-mod-rpc +``` ```yaml # Example configuration.yaml entry diff --git a/source/_components/device_tracker.ubus.markdown b/source/_components/device_tracker.ubus.markdown new file mode 100644 index 00000000000..42543fa4ad7 --- /dev/null +++ b/source/_components/device_tracker.ubus.markdown @@ -0,0 +1,58 @@ +--- +layout: component +title: "OpenWRT (ubus)" +description: "Instructions how to integrate OpenWRT routers into Home Assistant." +date: 2015-03-23 19:59 +sidebar: true +comments: false +sharing: true +footer: true +logo: openwrt.png +ha_category: Presence Detection +--- + +_This is one of the two ways we support OpenWRT. If you encounter problems, try [luci](/components/device_tracker.luci.html)._ + +This is a presence detection scanner for OpenWRT using [ubus](http://wiki.openwrt.org/doc/techref/ubus). + +Before this scanner can be used you have to install the ubus RPC package on OpenWRT: + +```bash +opkg install rpcd-mod-file +``` + +And create a read-only user to be used by setting up the ACL file `/usr/share/rpcd/acl.d/user.json`. + +```json +{ + "user": { + "description": "Read only user access role", + "read": { + "ubus": { + "*": [ "*" ] + }, + "uci": [ "*" ] + }, + "write": {} + } +} +``` + +After this is done, configure Home Assistant as follows: + +```yaml +# Example configuration.yaml entry +device_tracker: + platform: ubus + host: ROUTER_IP_ADDRESS + username: YOUR_ADMIN_USERNAME + password: YOUR_ADMIN_PASSWORD +``` + +Configuration variables: + +- **host** (*Required*): The IP address of your router, e.g. 192.168.1.1. +- **username** (*Required*): The username of an user with administrative privileges, usually *admin*. +- **password** (*Required*): The password for your given admin account. + +See the [device tracker component page](/components/device_tracker.html) for instructions how to configure the people to be tracked. diff --git a/source/_posts/2015-10-26-firetv-and-radiotherm-now-supported.markdown b/source/_posts/2015-10-26-firetv-and-radiotherm-now-supported.markdown index 4981b049913..efc86bbfb18 100644 --- a/source/_posts/2015-10-26-firetv-and-radiotherm-now-supported.markdown +++ b/source/_posts/2015-10-26-firetv-and-radiotherm-now-supported.markdown @@ -36,6 +36,7 @@ complete revamp. - Media Player: [Plex](/components/media_player.plex.html) can now be auto discovered and configure itself ([@tomduijf](https://github.com/tomduijf)) - [Downloader](/components/downloader.html) will now treat relative paths based on config dir ([@tomduijf](https://github.com/tomduijf)) - Line Charts will use interpolation for sensor data and show current and target temperature for thermostats ([@balloob](https://github.com/balloob)) + - Device Tracker: [OpenWRT via ubus](/components/device_tracker.ubus.html) now supported ([@krzynio](https://github.com/krzynio))