MQTT Camera


The mqtt camera platform allows you to integrate the content of an image file sent through MQTT into Home Assistant as a camera. Every time a message under the topic in the configuration is received, the image displayed in Home Assistant will also be updated.

This can be used with an application or a service capable of sending images through MQTT, for example Zanzito.

Configuration

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

# Example configuration.yaml entry
camera:
  - platform: mqtt
    topic: zanzito/shared_locations/my-device

Configuration Variables

topic

(string)(Required)The MQTT topic to subscribe to.

name

(string)(Optional)The name of the camera.

unique_id

(string)(Optional)An ID that uniquely identifies this camera. If two cameras have the same unique ID Home Assistant will raise an exception.

device

(map)(Optional)Information about the device this camera is a part of to tie it into the device registry. Only works through MQTT discovery and when unique_id is set.

identifiers

(list | string)(Optional)A list of IDs that uniquely identify the device. For example a serial number.

connections

(list)(Optional)A list of connections of the device to the outside world as a list of tuples [connection_type, connection_identifier]. For example the MAC address of a network interface: "connections": ["mac", "02:5b:26:a8:dc:12"].

manufacturer

(string)(Optional)The manufacturer of the device.

model

(string)(Optional)The model of the device.

name

(string)(Optional)The name of the device.

sw_version

(string)(Optional)The firmware version of the device.