Update binary_sensor.android_ip_webcam.markdown (#3479)

* Update binary_sensor.android_ip_webcam.markdown

* Fix format
This commit is contained in:
Andreas Jacobsen 2017-10-01 15:45:27 +02:00 committed by Fabian Affolter
parent f5e6696ebb
commit 5fe83ebc8f

View File

@ -17,3 +17,18 @@ ha_iot_class: "Local Polling"
The `android_ip_webcam` binary sensor platform lets you observe the motion state of [Android IP webcam](https://play.google.com/store/apps/details?id=com.pas.webcam) sensors through Home Assistant. The `android_ip_webcam` binary sensor platform lets you observe the motion state of [Android IP webcam](https://play.google.com/store/apps/details?id=com.pas.webcam) sensors through Home Assistant.
Devices will be configured automatically. Please refer to the [component](/components/android_ip_webcam/) configuration on how to setup. Devices will be configured automatically. Please refer to the [component](/components/android_ip_webcam/) configuration on how to setup.
## {% linkable_title Examples %}
You can also setup the binary motion sensor with the following script:
{% raw %}
```yaml
binary_sensor:
- platform: rest
name: Kitchen Motion
sensor_class: motion
resource: http://IP:8080/sensors.json?sense=motion_active
value_template: '{{ value_json.motion_active.data[0][1][0] | round(0) }}'
```
{% endraw %}