Skip to content

Instantly share code, notes, and snippets.

@mpolinowski
Created April 3, 2024 10:51
Show Gist options
  • Save mpolinowski/fffcc6a49dcb158e2380ad05c15fff40 to your computer and use it in GitHub Desktop.
Save mpolinowski/fffcc6a49dcb158e2380ad05c15fff40 to your computer and use it in GitHub Desktop.
Home Assistant INSTAR MQTTv5 Camera Configuration
sensor:
- device:
identifiers: in8415_office
manufacturer: INSTAR Deutschland GmbH
model: INSTAR 2k+ IN-8415 WLAN
name: IN-8415 2k+ Office
configuration_url: "http://192.168.2.201:80"
availability:
topic: cameras/201/status/connection
payload_available: '{"val":"online"}'
payload_not_available: '{"val":"offline"}'
object_id: in8415_office_testament
unique_id: in8415_office_testament
name: IN-8415 LWT
state_topic: cameras/201/status/connection
value_template: '{{ value_json.val }}'
- unique_id: office_alarmserver
name: Office Alarmserver
state_topic: cameras/201/status/alarm/triggered
device_class: current
value_template: '{{ value_json.val }}'
switch:
- unique_id: office_red_alarm_area
name: Office Red Alarm Area
state_topic: cameras/201/status/alarm/areas/red/enable
command_topic: cameras/201/alarm/areas/red/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_blue_alarm_are
name: Office Blue Alarm Area
state_topic: cameras/201/status/alarm/areas/blue/enable
command_topic: cameras/201/alarm/areas/blue/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_green_alarm_are
name: Office Green Alarm Area
state_topic: cameras/201/status/alarm/areas/green/enable
command_topic: cameras/201/alarm/areas/green/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_yellow_alarm_area
name: Office Yellow Alarm Area
state_topic: cameras/201/status/alarm/areas/yellow/enable
command_topic: cameras/201/alarm/areas/yellow/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_privacy_mask_1
name: Office Privacy Mask 1
state_topic: cameras/201/status/multimedia/privacy/region1/enable
command_topic: cameras/201/multimedia/privacy/region1/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_privacy_mask_2
name: Office Privacy Mask 2
state_topic: cameras/201/status/multimedia/privacy/region2/enable
command_topic: cameras/201/multimedia/privacy/region2/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_privacy_mask_3
name: Office Privacy Mask 3
state_topic: cameras/201/status/multimedia/privacy/region3/enable
command_topic: cameras/201/multimedia/privacy/region3/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_privacy_mask_4
name: Office Privacy Mask 4
state_topic: cameras/201/status/multimedia/privacy/region4/enable
command_topic: cameras/201/multimedia/privacy/region4/enable
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_auto_gamma
name: Office Auto Gamma
state_topic: cameras/201/status/multimedia/image/gamma/auto
command_topic: cameras/201/multimedia/image/gamma/auto
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_auto_denoise
name: Office Auto Denoise
state_topic: cameras/201/status/multimedia/image/denoise/auto
command_topic: cameras/201/multimedia/image/denoise/auto
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_flip
name: Office Flip
state_topic: cameras/201/status/multimedia/image/transform/flip
command_topic: cameras/201/multimedia/image/transform/flip
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
- unique_id: office_mirror
name: Office Mirror
state_topic: cameras/201/status/multimedia/image/transform/mirror
command_topic: cameras/201/multimedia/image/transform/mirror
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
optimistic: false
retain: false
number:
- unique_id: office_brightness
name: Office Brightness
object_id: in9408_brightness
icon: mdi:brightness-6
state_topic: cameras/201/status/multimedia/image/brightness
command_topic: cameras/201/multimedia/image/brightness
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 100
step: 1
unit_of_measurement: '%'
qos: 1
optimistic: false
- unique_id: office_brightness
name: Office Contrast
object_id: in9408_contrast
icon: mdi:contrast-box
state_topic: cameras/201/status/multimedia/image/contrast
command_topic: cameras/201/multimedia/image/contrast
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 100
step: 1
unit_of_measurement: '%'
qos: 1
optimistic: false
- unique_id: office_saturation
name: Office Saturation
object_id: in9408_saturation
icon: mdi:palette-outline
state_topic: cameras/201/status/multimedia/image/saturation
command_topic: cameras/201/multimedia/image/saturation
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 100
step: 1
unit_of_measurement: '%'
qos: 1
optimistic: false
- unique_id: office_hue
name: Office Hue
object_id: in9408_hue
icon: mdi:palette-outline
state_topic: cameras/201/status/multimedia/image/hue
command_topic: cameras/201/multimedia/image/hue
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 360
step: 1
qos: 1
optimistic: false
- unique_id: office_sharpness
name: Office Sharpness
object_id: in9408_sharpness
icon: mdi:shark-fin-outline
state_topic: cameras/201/status/multimedia/image/sharpness
command_topic: cameras/201/multimedia/image/sharpness
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 100
step: 1
unit_of_measurement: '%'
qos: 1
optimistic: false
- unique_id: office_vibrancy
name: Office Vibrancy
object_id: in9408_vibrancy
icon: mdi:palette-outline
state_topic: cameras/201/status/multimedia/image/vibrancy/value
command_topic: cameras/201/multimedia/image/vibrancy/value
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 255
step: 1
qos: 1
optimistic: false
- unique_id: office_gamma
name: Office Gamma
object_id: in9408_gamma
icon: mdi:gamma
state_topic: cameras/201/status/multimedia/image/gamma/preset
command_topic: cameras/201/multimedia/image/gamma/preset
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 18
step: 1
qos: 1
optimistic: false
- unique_id: office_denoise
name: Office Denoise
object_id: in9408_denoise
icon: mdi:contrast-box
state_topic: cameras/201/status/multimedia/image/denoise/preset
command_topic: cameras/201/multimedia/image/denoise/preset
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 15
step: 1
qos: 1
optimistic: false
- unique_id: office_max_iso
name: Office Max ISO
object_id: in9408_isomax
icon: mdi:brightness-6
state_topic: cameras/201/status/multimedia/image/isomax
command_topic: cameras/201/multimedia/image/isomax
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 1
max: 32
step: 1
qos: 1
optimistic: false
- unique_id: office_auto_ir
name: Office Auto IR LEDs
object_id: in9408_autoled
icon: mdi:lightbulb-night-outline
state_topic: cameras/201/status/features/nightvision/autoled
command_topic: cameras/201/features/nightvision/autoled
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 2
step: 1
qos: 1
optimistic: false
- unique_id: office_auto_ircut
name: Office Auto IRcut
object_id: in9408_autoircut
icon: mdi:lightbulb-night-outline
state_topic: cameras/201/status/features/nightvision/autoircut
command_topic: cameras/201/features/nightvision/autoircut
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 2
step: 1
qos: 1
optimistic: false
- unique_id: office_red_alarm_area_sensitivity
name: Office Red Alarm Area Sensitivity
object_id: in9408_red_area_sense
icon: mdi:cctv-off
state_topic: cameras/201/status/alarm/areas/red/sensitivity
command_topic: cameras/201/alarm/areas/red/sensitivity
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 100
step: 1
qos: 1
optimistic: false
- unique_id: office_blue_alarm_area_sensitivity
name: Office Blue Alarm Area Sensitivity
object_id: in9408_blue_area_sense
icon: 'mdi:cctv-off'
state_topic: cameras/201/status/alarm/areas/blue/sensitivity
command_topic: cameras/201/alarm/areas/blue/sensitivity
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 100
step: 1
qos: 1
optimistic: false
- unique_id: office_green_alarm_area_sensitivity
name: Office Green Alarm Area Sensitivity
object_id: in9408_blue_area_green
icon: mdi:cctv-off
state_topic: cameras/201/status/alarm/areas/green/sensitivity
command_topic: cameras/201/alarm/areas/green/sensitivity
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 100
step: 1
qos: 1
optimistic: false
- unique_id: office_yellow_alarm_area_sensitivity
name: Office Yellow Alarm Area Sensitivity
object_id: in9408_blue_area_yellow
icon: mdi:cctv-off
state_topic: cameras/201/status/alarm/areas/yellow/sensitivity
command_topic: cameras/201/alarm/areas/yellow/sensitivity
value_template: '{{ value_json.val }}'
command_template: '{"val":"{{ value }}"}'
min: 0
max: 100
step: 1
qos: 1
optimistic: false
button:
- unique_id: office_alarm_trigger
name: Office Alarm Trigger
command_topic: cameras/201/alarm/pushalarm
payload_press: '{"val":"1"}'
icon: mdi:alarm-light
qos: 2
retain: false
- unique_id: office_reboot
name: Office Reboot
command_topic: system/reboot/now
payload_press: '{"val":"1"}'
icon: mdi:cog-refresh-outline
qos: 2
retain: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment