Foscam IP Camera

The foscam platform allows you to watch the live stream of your Foscam IP camera in Home Assistant.


To enable your Foscam IP camera in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
  - platform: foscam
    ip: IP_ADDRESS
    username: YOUR_USERNAME
    password: YOUR_PASSWORD

Configuration Variables


(string)(Required)The IP address your camera.


(integer)(Optional)The port that the camera is running on.

Default value: 88


(integer)(Optional)The port that the camera uses for RTSP. This is normally auto-discovered but some models may need this set, such as the R2 and R2C.

Default value: None


(string)(Required)The username for accessing your camera.


(string)(Required)The password for accessing your camera.


(string)(Optional)This parameter allows you to override the name of your camera.

There seems to be some issues within Foscam with lengthy passwords and passwords containing certain symbols. Be sure to check your camera’s documentation.

Control Foscam PTZ (Pan/Tilt/Zoom) - Home/Away

Foscam Webcams which support CGI Commands can be controlled by Home Assistant (Source). For an example of how this can be done, see the Foscam IP Camera Pan, Tilt, Zoom Control Cookbook entry.