Skip to main content

Home Assistant - MQTT Auto-Discovery :: Configuration

Guangzhou, China

The discovery of MQTT devices will enable one to use MQTT devices with only minimal configuration effort on the side of Home Assistant. Two parts are required on the device side: The configuration topic which contains the necessary device type and unique identifier, and the remaining device configuration without the device type.

Discovery Topic

The discovery topic needs to follow a specific format:

<discovery_prefix>/<component>/[<node_id>/]<object_id>/config
  • <component>: One of the supported MQTT components, eg. binary_sensor, button, camera.
  • <node_id> (Optional): ID of the node providing the topic, this is not used by Home Assistant but may be used to structure the MQTT topic. The ID of the node must only consist of characters from the character class [a-zA-Z0-9_-] (alphanumerics, underscore and hyphen).
  • <object_id>: The ID of the device. This is only to allow for separate topics for each device and is not used for the entity_id. The ID of the device must only consist of characters from the character class [a-zA-Z0-9_-] (alphanumerics, underscore and hyphen).

Discovery Payload

The payload must be a serialized JSON dictionary and will be checked like an entry in your configuration.yaml file if a new device is added, with the exception that unknown configuration keys are allowed but ignored. This means that missing variables will be filled with the platform’s default values. All configuration variables which are required must be present in the payload.

Subsequent messages on a topic where a valid payload has been received will be handled as a configuration update, and a configuration update with an empty payload will cause a previously discovered device to be deleted.

Testing

Example :: Motion detection (binary sensor)

Using a camera alarm server to trigger an alert.

  • Configuration topic: homeassistant/binary_sensor/camera1/config
  • Payload: {"name": "camera1", "device_class": "motion", "state_topic": "cameras/camera1/alarm"}

Update the State Topic cameras/camera1/alarm with the payload ON to trigger the alarm (and OFF to release it again):

Home Assistant - MQTT Auto-Discovery

The sensor can be deleted again by by sending an empty message to the Configuration Topic.

Example :: Sensors

Setting up a sensor with multiple measurement values requires multiple consecutive configuration topic submissions.

  • Configuration topic #1: homeassistant/sensor/cameraGardenTemp/config
  • Configuration payload #1: {"device_class": "temperature", "name": "Garden Temperature", "state_topic": "cameras/garden/status/sensors", "unit_of_measurement": "°C", "value_template": "{{ value_json.temperature}}" }
  • Configuration topic #2: homeassistant/sensor/cameraGardenHum/config
  • Configuration payload #2: {"device_class": "humidity", "name": "Garden Humidity", "state_topic": "cameras/garden/status/sensors", "unit_of_measurement": "%", "value_template": "{{ value_json.humidity}}" }

Now we can update the State Topic cameras/garden/status/sensors with the Payload { "temperature": 38.20, "humidity": 92.70 }.

Home Assistant - MQTT Auto-Discovery

The sensor can be deleted again by by sending an empty message to the Configuration Topics.

Example :: Entities with Command Topics

Activating or deactivating camera functions, e.g. a Privacy Mask multimedia/privacy/region1/enable is similar but additionally requires a Command Topic. And we will need to handle the formatting - as by default Home Assistant will expect an ON or OFF as switch values:

  • Configuration topic: homeassistant/switch/in9408_garden_privacy_mask1/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden_privacy_mask1",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden"
},
"object_id":"in9408_garden_privacy_mask1",
"unique_id": "in9408_garden_privacy_mask1",
"name": "IN-9408 2k+ Garden Privacy Mask 1",
"command_topic": "cameras/115/multimedia/privacy/region1/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/privacy/region1/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Home Assistant - MQTT Auto-Discovery

Example :: Multiple Entities with Command Topics in one Device

We can send several configuration updates and collect them in one device by using the following topic structure homeassistant/switch/in9408_garden/privacy_mask1/config and keeping the device configuration inside the payload identical for each MQTT command topic we want to add:

Home Assistant - MQTT Auto-Discovery

Alarm :: Alarm Area 1

  • Configuration topic: homeassistant/switch/in9408_garden/alarm_area_red/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm_area_red",
"unique_id": "in9408_garden_alarm_area_red",
"name": "IN-9408 2k+ Garden Alarm Area Red",
"icon": "mdi:camera-metering-matrix",
"command_topic": "cameras/115/alarm/areas/red/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/areas/red/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: Alarm Area 2

  • Configuration topic: homeassistant/switch/in9408_garden/alarm_area_blue/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm_area_blue",
"unique_id": "in9408_garden_alarm_area_blue",
"name": "IN-9408 2k+ Garden Alarm Area Blue",
"icon": "mdi:camera-metering-matrix",
"command_topic": "cameras/115/alarm/areas/blue/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/areas/blue/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: Alarm Area 3

  • Configuration topic: homeassistant/switch/in9408_garden/alarm_area_green/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm_area_green",
"unique_id": "in9408_garden_alarm_area_green",
"name": "IN-9408 2k+ Garden Alarm Area Green",
"icon": "mdi:camera-metering-matrix",
"command_topic": "cameras/115/alarm/areas/green/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/areas/green/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: Alarm Area 4

  • Configuration topic: homeassistant/switch/in9408_garden/alarm_area_yellow/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm_area_yellow",
"unique_id": "in9408_garden_alarm_area_yellow",
"name": "IN-9408 2k+ Garden Alarm Area Yellow",
"icon": "mdi:camera-metering-matrix",
"command_topic": "cameras/115/alarm/areas/yellow/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/areas/yellow/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: Red Alarm Area Sensitivity

  • Configuration topic: homeassistant/number/in9408_garden/red_area_sense/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_red_area_sense",
"unique_id": "in9408_garden_red_area_sense",
"name": "IN-9408 2k+ Garden Red Alarm Area Sensitivity",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/alarm/areas/red/sensitivity",
"state_topic": "cameras/115/status/alarm/areas/red/sensitivity",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Alarm :: Blue Alarm Area Sensitivity

  • Configuration topic: homeassistant/number/in9408_garden/blue_area_sense/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_blue_area_sense",
"unique_id": "in9408_garden_blue_area_sense",
"name": "IN-9408 2k+ Garden Blue Alarm Area Sensitivity",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/alarm/areas/blue/sensitivity",
"state_topic": "cameras/115/status/alarm/areas/blue/sensitivity",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Alarm :: Green Alarm Area Sensitivity

  • Configuration topic: homeassistant/number/in9408_garden/green_area_sense/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_green_area_sense",
"unique_id": "in9408_garden_green_area_sense",
"name": "IN-9408 2k+ Garden Green Alarm Area Sensitivity",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/alarm/areas/green/sensitivity",
"state_topic": "cameras/115/status/alarm/areas/green/sensitivity",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Alarm :: Yellow Alarm Area Sensitivity

  • Configuration topic: homeassistant/number/in9408_garden/yellow_area_sense/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_yellow_area_sense",
"unique_id": "in9408_garden_yellow_area_sense",
"name": "IN-9408 2k+ Yellow Alarm Area Sensitivity",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/alarm/areas/yellow/sensitivity",
"state_topic": "cameras/115/status/alarm/areas/yellow/sensitivity",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Alarm :: Alarm Actions

  • Configuration topic: homeassistant/switch/in9408_garden/alarm/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm",
"unique_id": "in9408_garden_alarm",
"name": "IN-9408 2k+ Garden Alarm",
"icon": "mdi:shield-home-outline",
"command_topic": "cameras/115/alarm/actions/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/actions/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: Alarm Email

  • Configuration topic: homeassistant/switch/in9408_garden/alarm_email/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm_email",
"unique_id": "in9408_garden_alarm_email",
"name": "IN-9408 2k+ Garden Alarm Email",
"icon": "mdi:email-alert-outline",
"command_topic": "cameras/115/alarm/actions/email/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/actions/email/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: PIR Sensor

  • Configuration topic: homeassistant/switch/in9408_garden/pir/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_pir",
"unique_id": "in9408_garden_pir",
"name": "IN-9408 2k+ Garden PIR Sensor",
"icon": "mdi:motion-sensor",
"command_topic": "cameras/115/alarm/actions/pir/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/actions/pir/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}
  • Configuration topic: homeassistant/switch/in9408_garden/pir_link/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_link_pir",
"unique_id": "in9408_garden_link_pir",
"name": "IN-9408 2k+ Garden Link PIR Sensor",
"icon": "mdi:leak-off",
"command_topic": "cameras/115/alarm/actions/pir/link",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/actions/pir/link",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Alarm :: Trigger Alarm

  • Configuration topic: homeassistant/button/in9408_garden/alarm_trigger/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_alarm_trigger",
"unique_id": "in9408_garden_alarm_trigger",
"name": "IN-9408 2k+ Garden Alarm Trigger",
"icon": "mdi:alarm-light",
"command_topic": "cameras/115/alarm/pushalarm",
"payload_press": "{\"val\":\"1\"}",
"qos": 2
}

Alarm :: Audio Detection

  • Configuration topic: homeassistant/switch/in9408_garden/audio_detection/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_audio_detection",
"unique_id": "in9408_garden_audio_detection",
"name": "IN-9408 2k+ Garden Audio Detection",
"icon": "mdi:waveform",
"command_topic": "cameras/115/alarm/actions/audiodetection/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/alarm/actions/audiodetection/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Audio-Out

  • Configuration topic: homeassistant/switch/in9408_garden/audio_out/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_audio_out",
"unique_id": "in9408_garden_audio_out",
"name": "IN-9408 2k+ Garden Audio Out",
"icon": "mdi:volume-high",
"command_topic": "cameras/115/multimedia/audio/out/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/audio/out/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Audio-In

  • Configuration topic: homeassistant/switch/in9408_garden/audio_in/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_audio_in",
"unique_id": "in9408_garden_audio_in",
"name": "IN-9408 2k+ Garden Audio In",
"icon": "mdi:volume-high",
"command_topic": "cameras/115/multimedia/audio/in/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/audio/in/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Privacy Mask 1

  • Configuration topic: homeassistant/switch/in9408_garden/privacy_mask1/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_privacy_mask1",
"unique_id": "in9408_garden_privacy_mask1",
"name": "IN-9408 2k+ Garden Privacy Mask 1",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/multimedia/privacy/region1/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/privacy/region1/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Privacy Mask 2

  • Configuration topic: homeassistant/switch/in9408_garden/privacy_mask2/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_privacy_mask2",
"unique_id": "in9408_garden_privacy_mask2",
"name": "IN-9408 2k+ Garden Privacy Mask 2",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/multimedia/privacy/region2/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/privacy/region2/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Privacy Mask 3

  • Configuration topic: homeassistant/switch/in9408_garden/privacy_mask3/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_privacy_mask3",
"unique_id": "in9408_garden_privacy_mask3",
"name": "IN-9408 2k+ Garden Privacy Mask 3",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/multimedia/privacy/region3/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/privacy/region3/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Privacy Mask 4

  • Configuration topic: homeassistant/switch/in9408_garden/privacy_mask4/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_privacy_mask4",
"unique_id": "in9408_garden_privacy_mask4",
"name": "IN-9408 2k+ Garden Privacy Mask 4",
"icon": "mdi:cctv-off",
"command_topic": "cameras/115/multimedia/privacy/region4/enable",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/privacy/region4/enable",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Auto Gamma

  • Configuration topic: homeassistant/switch/in9408_garden/auto_gamma/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_auto_gamma",
"unique_id": "in9408_garden_auto_gamma",
"name": "IN-9408 2k+ Garden Auto Gamma",
"icon": "mdi:gamma",
"command_topic": "cameras/115/multimedia/image/gamma/auto",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/image/gamma/auto",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Gamma

  • Configuration topic: homeassistant/number/in9408_garden/gamma/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_gamma",
"unique_id": "in9408_garden_gamma",
"name": "IN-9408 2k+ Garden Gamma",
"icon": "mdi:gamma",
"command_topic": "cameras/115/multimedia/image/gamma/preset",
"state_topic": "cameras/115/status/multimedia/image/gamma/preset",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 18,
"step": 1,
"qos": 1
}

Multimedia :: Auto Denoise

  • Configuration topic: homeassistant/switch/in9408_garden/auto_denoise/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_auto_denoise",
"unique_id": "in9408_garden_auto_denoise",
"name": "IN-9408 2k+ Garden Auto Denoise",
"icon": "mdi:gamma",
"command_topic": "cameras/115/multimedia/image/denoise/auto",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/image/denoise/auto",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Denoise

  • Configuration topic: homeassistant/number/in9408_garden/denoise/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_denoise",
"unique_id": "in9408_garden_denoise",
"name": "IN-9408 2k+ Garden Denoise",
"icon": "mdi:contrast-box",
"command_topic": "cameras/115/multimedia/image/denoise/preset",
"state_topic": "cameras/115/status/multimedia/image/denoise/preset",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 15,
"step": 1,
"qos": 1
}

Multimedia :: Flip

  • Configuration topic: homeassistant/switch/in9408_garden/flip/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_auto_flip",
"unique_id": "in9408_garden_auto_flip",
"name": "IN-9408 2k+ Garden Flip",
"icon": "mdi:gamma",
"command_topic": "cameras/115/multimedia/image/transform/flip",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/image/transform/flip",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Mirror

  • Configuration topic: homeassistant/switch/in9408_garden/mirror/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_auto_mirror",
"unique_id": "in9408_garden_auto_mirror",
"name": "IN-9408 2k+ Garden Mirror",
"icon": "mdi:gamma",
"command_topic": "cameras/115/multimedia/image/transform/mirror",
"payload_on": "{\"val\":\"1\"}",
"payload_off": "{\"val\":\"0\"}",
"state_topic": "cameras/115/status/multimedia/image/transform/mirror",
"state_on": 1,
"state_off": 0,
"value_template": "{{ value_json.val }}",
"qos": 1
}

Multimedia :: Brightness

  • Configuration topic: homeassistant/number/in9408_garden/brightness/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_brightness",
"unique_id": "in9408_garden_brightness",
"name": "IN-9408 2k+ Garden Brightness",
"icon": "mdi:brightness-6",
"command_topic": "cameras/115/multimedia/image/brightness",
"state_topic": "cameras/115/status/multimedia/image/brightness",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Multimedia :: Contrast

  • Configuration topic: homeassistant/number/in9408_garden/contrast/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_contrast",
"unique_id": "in9408_garden_contrast",
"name": "IN-9408 2k+ Garden Contrast",
"icon": "mdi:contrast-box",
"command_topic": "cameras/115/multimedia/image/contrast",
"state_topic": "cameras/115/status/multimedia/image/contrast",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Multimedia :: Saturation

  • Configuration topic: homeassistant/number/in9408_garden/saturation/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_saturation",
"unique_id": "in9408_garden_saturation",
"name": "IN-9408 2k+ Garden Saturation",
"icon": "mdi:palette-outline",
"command_topic": "cameras/115/multimedia/image/saturation",
"state_topic": "cameras/115/status/multimedia/image/saturation",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Multimedia :: Hue

  • Configuration topic: homeassistant/number/in9408_garden/hue/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_hue",
"unique_id": "in9408_garden_hue",
"name": "IN-9408 2k+ Garden Hue",
"icon": "mdi:palette-outline",
"command_topic": "cameras/115/multimedia/image/hue",
"state_topic": "cameras/115/status/multimedia/image/hue",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 360,
"step": 1,
"qos": 1
}

Multimedia :: Sharpness

  • Configuration topic: homeassistant/number/in9408_garden/sharpness/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_sharpness",
"unique_id": "in9408_garden_sharpness",
"name": "IN-9408 2k+ Garden Sharpness",
"icon": "mdi:shark-fin-outline",
"command_topic": "cameras/115/multimedia/image/sharpness",
"state_topic": "cameras/115/status/multimedia/image/sharpness",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 100,
"step": 1,
"unit_of_measurement": "%",
"qos": 1
}

Multimedia :: Vibrancy

  • Configuration topic: homeassistant/number/in9408_garden/vibrancy/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_vibrancy",
"unique_id": "in9408_garden_vibrancy",
"name": "IN-9408 2k+ Garden Vibrancy",
"icon": "mdi:palette-outline",
"command_topic": "cameras/115/multimedia/image/vibrancy/value",
"state_topic": "cameras/115/status/multimedia/image/vibrancy/value",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 255,
"step": 1,
"qos": 1
}

Multimedia :: Max ISO

  • Configuration topic: homeassistant/number/in9408_garden/isomax/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_isomax",
"unique_id": "in9408_garden_isomax",
"name": "IN-9408 2k+ Garden Max ISO",
"icon": "mdi:brightness-6",
"command_topic": "cameras/115/multimedia/image/isomax",
"state_topic": "cameras/115/status/multimedia/image/isomax",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 1,
"max": 32,
"step": 1,
"qos": 1
}

Multimedia :: Auto IR LEDs

  • Configuration topic: homeassistant/number/in9408_garden/autoled/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_autoled",
"unique_id": "in9408_garden_autoled",
"name": "IN-9408 2k+ Garden Auto IR LEDs",
"icon": "mdi:lightbulb-night-outline",
"command_topic": "cameras/115/features/nightvision/autoled",
"state_topic": "cameras/115/status/features/nightvision/autoled",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 2,
"step": 1,
"qos": 1
}

Multimedia :: Auto IRcut

  • Configuration topic: homeassistant/number/in9408_garden/autoircut/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_autoircut",
"unique_id": "in9408_garden_autoircut",
"name": "IN-9408 2k+ Garden Auto IRcut",
"icon": "mdi:lightbulb-night-outline",
"command_topic": "cameras/115/features/nightvision/autoircut",
"state_topic": "cameras/115/status/features/nightvision/autoircut",
"value_template": "{{ value_json.val }}",
"command_template": "{\"val\":\"{{ value }}\"}",
"min": 0,
"max": 2,
"step": 1,
"qos": 1
}

System :: Reboot

  • Configuration topic: homeassistant/button/in9408_garden/reboot/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_reboot",
"unique_id": "in9408_garden_reboot",
"name": "IN-9408 2k+ Garden Reboot",
"icon": "mdi:cog-refresh-outline",
"command_topic": "system/reboot/now",
"payload_press": "{\"val\":\"1\"}",
"qos": 2
}

Snapshot

NOT WORKING, see HA Forum

  • Configuration topic: homeassistant/camera/in9408_garden/snapshot/config
  • Payload:
{
"device": {
"identifiers": "in9408_garden",
"manufacturer": "INSTAR Deutschland GmbH",
"model": "INSTAR 2k+ IN-9408 WLAN",
"name": "IN-9408 2k+ Garden",
"configuration_url": "http://192.168.2.115:80"
},
"availability": {
"topic": "cameras/115/status/testament",
"payload_available": "{\"val\":\"alive\"}",
"payload_not_available": "{\"val\":\"dead\"}"
},
"object_id":"in9408_garden_snapshot",
"unique_id": "in9408_garden_snapshot",
"name": "IN-9408 2k+ Snapshot",
"topic": "cameras/115/status/task/photoseries/snap/base64",
"json_attributes_topic": "cameras/115/status/task/photoseries/snap/base64",
"json_attributes_template": "{\"val\":\"{{value}}\"}\n",
"name": "snapshot",
"encoding": "b64",
"icon": "mdi:image",
"qos": 1
}
mqtt:
camera:
- topic: cameras/115/status/task/photoseries/snap/base64
json_attributes_topic: cameras/115/status/task/photoseries/snap/base64
json_attributes_template: >
{"val":"{{value}}"}
name: snapshot
encoding: b64
icon: mdi:image
qos: 1
mqtt:
camera:
- topic: cameras/115/status/task/photoseries/snap/base64
value_template: '{{ value_json.val }}'
name: snapshot
encoding: b64
icon: mdi:image
qos: 1