Android IP Webcam
The android_ip_webcam
integration connects with Android IP Webcam to turn any Android phone or tablet into a network camera with multiple viewing options.
The integration is setup as an MJPEG camera with all settings as switches inside Home Assistant. You can also integrate the sensors exposed by the app. If you have multiple phones, you can use all options inside a list.
There is currently support for the following device types within Home Assistant:
- Binary Sensor
- Camera
- Sensor
- Switch
Setup
Download Android IP Webcam app and launch the app. When you press ‘Start Server’, it will start streaming video from your phone and the IP address of the device will be shown on screen.
Configuration
To set up the component, add the following information to your configuration.yaml
file:
# Example configuration.yaml entry
android_ip_webcam:
- host: 192.168.1.10
Configuration Variables
The username to access the phone. If username is specified then password must be also.
The password to access the phone. If password is specified then username must be also.
List of sensor entities to be created by this component (if supported by the phone and app).
List of switch entities to be created by this component.
You need to enable logging in the Android app (Data logging
> Enable data logging
) if you wish to see the sensor states in Home Assistant. The sensor states stay as unknown
, until this is enabled.
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
- proximity
- sound
- video_connections
switches:
- exposure_lock
- ffc
- focus
- gps_active
- motion_detect
- night_vision
- overlay
- torch
- whitebalance_lock
- video_recording
- host: 192.168.1.203
port: 8000
sensors:
- light
switches:
- torch
Alternate Configuration Method
The configuration described above will cause the android_ip_webcam
binary sensor platform to automatically create and configure the devices. Alternatively you can omit the android_ip_webcam
component from your configuration.yaml
file and add individual devices instead.
Binary Sensor
You can setup the binary motion sensor with the following in your configuration.yaml
file:
# Example configuration.yaml entry
binary_sensor:
- platform: rest
name: Kitchen Motion
device_class: motion
resource: http://IP_ADDRESS:PORT/sensors.json?sense=motion_active
value_template: "{{ value_json.motion_active.data[0][1][0] | round(0) }}"
Camera
To enable only the camera in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
camera:
- platform: mjpeg
mjpeg_url: http://IP_ADDRESS:PORT/video
Other Sensors
You can setup your own sensors by examining the JSON file from the webcam server: http://IP:8080/sensors.json