--- title: Foscam description: Instructions on how to integrate Foscam IP cameras within Home Assistant. ha_category: - Camera ha_iot_class: Local Polling ha_release: 0.7.3 ha_codeowners: - '@Foscam-wangzhengyu' ha_domain: foscam ha_config_flow: true ha_platforms: - camera - number - switch ha_integration_type: integration --- The **Foscam** {% term integration %} allows you to watch the live stream of your [Foscam](https://www.foscam.com) IP camera in Home Assistant. {% include integrations/config_flow.md %} {% note %} There seems to be some issues within Foscam with lengthy passwords and passwords containing certain symbols. Be sure to check your camera's documentation. {% endnote %} ## Supported functionality ### Entities The Foscam integration provides the following entities. #### Camera - **Streams** - **Description**: Most Foscam IP Cameras support two video streams, by default the `Main` stream is the high quality stream while the `Sub` stream is a lower quality stream. These streams can be configured in your camera preferences. - **Available for machines**: all. #### Switch - **Infrared** - **Description**: Control the camera’s infrared illuminator. - **Available for machines**: all. - **Device indicator light** - **Description**: Control the camera’s status indicator. - **Available for machines**: all. - **White light** - **Description**: Control the camera’s white light illuminator. - **Available for machines**: Cameras equipped with white light illumination. - **Remarks**: Since there is currently no mechanism to determine device capabilities for conditionally displaying the white light switch, unsupported models will still show the switch — but in a disabled state. This will be refined in a future update. - **Siren alarm** - **Description**: Control the device’s alarm. - **Available for machines**: all. - **Image flip/mirror** - **Description**: Toggle image flip/mirror on the device. - **Available for machines**: all. - **Sleep** - **Description**: Toggle sleep mode, when enabled, the device enters sleep state. - **Available for machines**: all. - **HDR** - **Description**: Toggle the camera’s HDR, when enabled, the image will reveal more detail in shadows and highlights. - **Available for machines**: all. - **WDR** - **Description**: Toggle the camera’s WDR, when enabled, the image will reveal more detail in shadows and highlights. - **Available for machines**: all. #### Number - **Device volume** - **Description**: Adjust the volume of device alert sounds, such as alarms and power on/off tones. - **Available for machines**: all. - **Speak volume** - **Description**: Adjust the device’s intercom volume. - **Available for machines**: all. #### Action `foscam.ptz` - **Control the device’s PTZ functions** - **Description**: If your Foscam camera supports PTZ, you will be able to pan or tilt your camera. | Data attribute | Description | | -----------------------| ----------- | | `entity_id` | String or list of strings that point at `entity_id`s of cameras. Use `entity_id: all` to target all. | | `movement` | Direction of the movement. Allowed values: `up`, `down`, `left`, `right`, `top_left`, `top_right`, `bottom_left`, `bottom_right` | | `travel_time` | (Optional) Travel time in seconds. Allowed values: float from 0 to 1. Default: 0.125 | - **Available for machines**: Devices with PTZ functionality. #### Action `foscam.ptz_preset` - **Direct the device to a specified preset position.** - **Description**: If your Foscam camera supports PTZ presets, you will be able to move the camera to a predefined preset using the preset name. | Data attribute | Description | | -----------------------| ----------- | | `entity_id` | String or list of strings that point at `entity_id`s of cameras. Use `entity_id: all` to target all. | | `preset_name` | The name of the preset to move to. Presets can be created from within the official Foscam apps. | - **Available for machines**: Devices with PTZ functionality. #### Example card with controls
Example showing a Foscam camera with controls for Pan and Tilt.