Create device_tracker.huawei_router.markdown (#2983)

* Create device_tracker.huawei_router.markdown

* Update device_tracker.huawei_router.markdown

* add huawei logo

* Update device_tracker.huawei_router.markdown

* Update device_tracker.huawei_router.markdown
This commit is contained in:
Abílio Costa 2017-08-12 20:54:18 +01:00 committed by Paulus Schoutsen
parent cf2f5ebb2e
commit c1d0873c76
2 changed files with 511 additions and 0 deletions

View File

@ -0,0 +1,36 @@
---
layout: page
title: "Huawei Router"
description: "Instructions how to integrate Huawei Routers into Home Assistant."
date: 2017-07-16 01:40
sidebar: true
comments: false
sharing: true
footer: true
logo: huawei.png
ha_category: Presence Detection
ha_release: 0.51
---
This component offers presence detection by looking at connected devices to a [Huawei router](http://m.huawei.com/enmobile/enterprise/products/network/access/pon-one/hw-371813.htm).
Currently, this was only tested with the Huawei HG8247H (used by Vodafone Portugal).
To use a Huawei router in your installation, add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
device_tracker:
- platform: huawei_router
host: 192.168.1.1
username: user
password: pass
```
Configuration variables:
- **host** (*Required*): The IP address of your router, e.g. 192.168.1.1.
- **username** (*Required*): The username to login into the router (the same used trough the router's web interface).
- **password** (*Required*): The password for the specified username.
See the [device tracker component page](/components/device_tracker/) for instructions how to configure the people to be tracked.

View File

@ -0,0 +1,475 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
id="svg3751"
viewBox="0 0 300 300.20289"
height="300.20288"
width="300">
<defs
id="defs3753">
<radialGradient
id="radialGradient3572"
spreadMethod="pad"
gradientTransform="matrix(30.668899,0,0,-30.668899,54.739258,480.55713)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3574"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3576"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3578"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3580"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3582"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3546"
spreadMethod="pad"
gradientTransform="matrix(30.666946,0,0,-30.666946,54.740234,480.55811)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3548"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3550"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3552"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3554"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3556"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3520"
spreadMethod="pad"
gradientTransform="matrix(30.662826,0,0,-30.662826,54.738281,480.55322)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3522"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3524"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3526"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3528"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3530"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3494"
spreadMethod="pad"
gradientTransform="matrix(30.668426,0,0,-30.668426,54.737793,480.55615)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3496"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3498"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3500"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3502"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3504"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3468"
spreadMethod="pad"
gradientTransform="matrix(30.633362,0,0,-30.633347,54.729981,480.55664)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3470"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3472"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3474"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3476"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3478"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3442"
spreadMethod="pad"
gradientTransform="matrix(30.633118,0,0,-30.633118,54.732422,480.55762)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3444"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3446"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3448"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3450"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3452"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3416"
spreadMethod="pad"
gradientTransform="matrix(30.641281,0,0,-30.641281,54.736328,480.56445)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3418"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3420"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3422"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3424"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3426"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<radialGradient
id="radialGradient3390"
spreadMethod="pad"
gradientTransform="matrix(30.638077,0,0,-30.638077,54.730957,480.56006)"
gradientUnits="userSpaceOnUse"
r="1"
cy="0"
cx="0"
fy="0"
fx="0">
<stop
id="stop3392"
offset="0"
style="stop-opacity:1;stop-color:#f9ab95" />
<stop
id="stop3394"
offset="0.42008579"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3396"
offset="0.426971"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3398"
offset="0.87256252"
style="stop-opacity:1;stop-color:#ed1c24" />
<stop
id="stop3400"
offset="1"
style="stop-opacity:1;stop-color:#981015" />
</radialGradient>
<clipPath
id="clipPath3356"
clipPathUnits="userSpaceOnUse">
<path
id="path3358"
d="m 0,521.57 368.5,0 L 368.5,0 0,0 0,521.57 Z" />
</clipPath>
</defs>
<metadata
id="metadata3756">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(-172.44358,-219.73387)"
id="layer1">
<g
transform="matrix(7.0133699,0,0,-7.0133699,184.4516,489.91397)"
id="g3348">
<path
id="path3350"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 3.467,0 0,2.77 1.555,0 0,-6.834 -1.555,0 0,2.854 -3.467,0 0,-2.854 -1.559,0 0,6.834 L 0,2.77 0,0 Z" />
</g>
<g
id="g3352"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
clip-path="url(#clipPath3356)"
id="g3354">
<g
transform="translate(37.3755,444.7798)"
id="g3360">
<path
id="path3362"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 c 0,-1.208 0.381,-1.714 1.67,-1.714 1.285,0 1.658,0.506 1.658,1.714 l 0,4.095 1.559,0 0,-4.131 c 0,-0.872 -0.106,-1.473 -0.438,-1.839 -0.605,-0.664 -1.494,-0.938 -2.779,-0.938 -1.289,0 -2.184,0.274 -2.795,0.938 -0.338,0.371 -0.422,0.972 -0.422,1.839 l 0,4.131 L 0,4.095 0,0 Z" />
</g>
<g
transform="translate(45.3774,444.8823)"
id="g3364">
<path
id="path3366"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,0 2.207,0 1.084,2.63 0,0 Z m 1.969,3.992 3.154,-6.834 -1.73,0 -0.682,1.626 -3.219,0 -0.654,-1.626 -1.652,0 3.13,6.834 1.653,0 z" />
</g>
<g
transform="translate(51.2056,448.8745)"
id="g3368">
<path
id="path3370"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,0 1.711,-5.254 3.154,0 4.992,0 6.646,-5.254 8.244,0 l 1.6,0 -2.287,-6.834 -1.907,0 -1.578,5.098 -1.379,-5.098 -1.9,0 L -1.672,0 0,0 Z" />
</g>
<g
transform="translate(63.145,446.0962)"
id="g3372">
<path
id="path3374"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,0 4.303,0 0,-1.188 -4.313,0 C 0,-2.421 0.523,-2.869 1.754,-2.869 l 2.549,0 0,-1.187 -2.623,0 c -0.893,0 -1.588,0.065 -2.309,0.599 -0.766,0.559 -1.133,1.458 -1.133,2.693 0,2.416 1.1,3.542 3.487,3.542 l 2.578,0 0,-1.194 -2.549,0 C 0.625,1.584 0.061,1.071 0,0" />
</g>
<path
id="path3376"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 68.825,448.875 1.625,0 0,-6.834 -1.625,0 0,6.834 z" />
</g>
</g>
<g
id="g3378"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3380">
<g
id="g3386">
<g
id="g3388">
<path
id="path3402"
style="fill:url(#radialGradient3390);stroke:none"
d="m 31.014,471.791 c 0.14,-2.671 2.151,-4.255 2.151,-4.255 l 0,0 c 3.24,-3.157 11.084,-7.141 12.904,-8.049 l 0,0 c 0.024,-0.002 0.119,-0.036 0.174,0.035 l 0,0 c 0,0 0.075,0.059 0.037,0.155 l 0,0 c -4.991,10.904 -11.816,19.172 -11.816,19.172 l 0,0 c 0,0 -3.715,-3.527 -3.45,-7.058" />
</g>
</g>
</g>
</g>
<g
id="g3404"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3406">
<g
id="g3412">
<g
id="g3414">
<path
id="path3428"
style="fill:url(#radialGradient3416);stroke:none"
d="m 31.809,456.488 c 1.415,-2.523 3.801,-4.486 6.285,-3.883 l 0,0 c 1.717,0.429 5.596,3.137 6.875,4.054 l 0,0 -0.004,0.001 c 0.1,0.087 0.071,0.161 0.071,0.161 l 0,0 c -0.038,0.117 -0.172,0.117 -0.172,0.117 l 0,0 0,0.005 -13.055,-0.455 z" />
</g>
</g>
</g>
</g>
<g
id="g3430"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3432">
<g
id="g3438">
<g
id="g3440">
<path
id="path3454"
style="fill:url(#radialGradient3442);stroke:none"
d="m 28.685,462.349 c 1.416,-2.994 4.121,-3.902 4.121,-3.902 l 0,0 c 1.247,-0.513 2.496,-0.546 2.496,-0.546 l 0,0 c 0.195,-0.035 7.765,-0.004 9.792,0.004 l 0,0 c 0.088,0 0.135,0.088 0.135,0.088 l 0,0 c 0.063,0.102 -0.047,0.198 -0.047,0.198 l 0,0 0,0.001 c -5.734,3.866 -16.849,9.805 -16.849,9.805 l 0,0 c -1.011,-3.127 0.352,-5.648 0.352,-5.648" />
</g>
</g>
</g>
</g>
<g
id="g3456"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3458">
<g
id="g3464">
<g
id="g3466">
<path
id="path3480"
style="fill:url(#radialGradient3468);stroke:none"
d="m 43.993,484.086 c -3.457,-0.894 -4.274,-4.03 -4.274,-4.03 l 0,0 c -0.63,-1.974 0.018,-4.14 0.018,-4.14 l 0,0 c 1.15,-5.121 6.83,-13.531 8.052,-15.298 l 0,0 c 0.088,-0.087 0.153,-0.054 0.153,-0.054 l 0,0 c 0.122,0.033 0.125,0.144 0.125,0.161 l 0,0 c 1.875,18.782 -1.974,23.761 -1.974,23.761 l 0,0 c -0.567,-0.053 -2.1,-0.4 -2.1,-0.4" />
</g>
</g>
</g>
</g>
<g
id="g3482"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3484">
<g
id="g3490">
<g
id="g3492">
<path
id="path3506"
style="fill:url(#radialGradient3494);stroke:none"
d="m 50.313,460.713 0.006,0 c 0.01,-0.121 0.1,-0.146 0.1,-0.146 l 0,0 c 0.124,-0.048 0.187,0.073 0.187,0.073 l 0,0 0,-0.003 c 1.256,1.809 6.897,10.181 8.052,15.279 l 0,0 c 0,0 0.616,2.47 0.015,4.14 l 0,0 c 0,0 -0.85,3.185 -4.313,4.025 l 0,0 c 0,0 -0.998,0.257 -2.055,0.405 l 0,0 c 0,0 -3.869,-4.982 -1.992,-23.773" />
</g>
</g>
</g>
</g>
<g
id="g3508"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3510">
<g
id="g3516">
<g
id="g3518">
<path
id="path3532"
style="fill:url(#radialGradient3520);stroke:none"
d="m 53.509,456.931 c 0,0 -0.116,-0.016 -0.147,-0.102 l 0,0 c 0,0 -0.03,-0.114 0.052,-0.172 l 0,0 0,-0.002 c 1.245,-0.898 5.032,-3.546 6.86,-4.061 l 0,0 c 0,0 3.375,-1.15 6.304,3.884 l 0,0 -13.069,0.457 0,-0.004 z" />
</g>
</g>
</g>
</g>
<g
id="g3534"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3536">
<g
id="g3542">
<g
id="g3544">
<path
id="path3558"
style="fill:url(#radialGradient3546);stroke:none"
d="m 53.219,458.198 0,-10e-4 c 0,0 -0.097,-0.066 -0.064,-0.19 l 0,0 c 0,0 0.055,-0.097 0.132,-0.097 l 0,0 0,-0.005 c 2.053,0 9.831,-0.008 10.03,0.026 l 0,0 c 0,0 1.004,0.039 2.246,0.516 l 0,0 c 0,0 2.766,0.882 4.2,4.023 l 0,0 c 0,0 1.282,2.563 0.292,5.555 l 0,0 c 0,0 -11.1,-5.953 -16.836,-9.827" />
</g>
</g>
</g>
</g>
<g
id="g3560"
transform="matrix(7.0133699,0,0,-7.0133699,-22.64833,3618.6134)">
<g
id="g3562">
<g
id="g3568">
<g
id="g3570">
<path
id="path3584"
style="fill:url(#radialGradient3572);stroke:none"
d="m 52.133,459.731 0.006,0 c 0,0 -0.064,-0.127 0.033,-0.209 l 0,0 c 0,0 0.09,-0.068 0.176,-0.015 l 0,0 c 1.872,0.93 9.652,4.887 12.875,8.029 l 0,0 c 0,0 2.041,1.639 2.15,4.27 l 0,0 c 0.235,3.658 -3.441,7.043 -3.441,7.043 l 0,0 c 0,0 -6.813,-8.244 -11.799,-19.118" />
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 15 KiB