home-assistant.io/source/_components/android_ip_webcam.markdown
Fabian Affolter 7e42615491
Add example
2017-10-26 08:47:11 +02:00

2.5 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page Android IP Webcam Connect Android devices as an IP webcam to Home Assistant 2017-03-10 00:00 true false true true android_ip_webcam.png Hub 0.40 Local Polling

The android_ip_webcam component turns an Android phone into a network camera with multiple viewing options.

It's setup as an MJPEG camera and all settings as switches inside of Home Assistant. You can also expose the sensors. If you have multiple phones, you can use all options inside a list.

To set it up, download the IP Webcam app, and add the following information to your configuration.yaml file:

# Example configuration.yaml entry
android_ip_webcam:
  - host: 192.168.1.10

Configuration variables:

  • host (Required): The IP Address of the phone on the network.
  • port (Optional): Default is set 8080. The port the IP Webcam listens on.
  • name (Optional): Override the name of the phone.
  • username (Optional): The username to access the phone.
  • password (Optional): The password to access the phone.
  • scan_interval (Optional): Default is 10 seconds. Defines the update interval of the phone.
  • sensors array (Optional): Conditions to display sensor in the frontend. See the list of supported sensors.
  • switches array (Optional): Conditions to display settings in the frontend. See the list of supported settings.
  • motion_sensor (Optional): Activate motion sensor if auto_discovery is disabled.

{% linkable_title Supported features %}

Sensors:

  • audio_connections
  • battery_level
  • battery_temp
  • battery_voltage
  • light
  • motion
  • pressure

Settings (Switches):

  • exposure_lock
  • ffc
  • focus
  • gps_active
  • night_vision
  • overlay
  • torch
  • whitebalance_lock
  • video_recording

{% linkable_title Full example %}

# Example configuration.yaml entry
android_ip_webcam:
  - host: 192.168.1.202
    port: 8000
    sensors:
      - audio_connections
      - battery_level
      - battery_temp
      - battery_voltage
      - light
      - motion
      - pressure
    switches:
      - exposure_lock
      - ffc
      - focus
      - gps_active
      - night_vision
      - overlay
      - torch
      - whitebalance_lock
      - video_recording
  - host: 192.168.1.203
    port: 8000
    sensors:
      - light
    switches:
      - torch