Android IP Webcam


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.

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

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