I did not use HA-MQTT Bridge, since there is no normal instruction on what and how to install and not everything I need, but these HASSOS Addon: homeassistant-addons/eufy-ha-mqtt-bridge at main · MaxWinterstein/homeassistant-addons · GitHub they don’t work. I decided to withdraw the management for myself. Also, there is no mention of how to configure the MQTT broker in iobroker so that I could control the camera. I’ll share my settings. We put the MQTT broker in iobroker and do it as in the screenshot.
Be sure to include
- Send states (ack=true) too - Normally only the states/commands with
ack=false
will be sent to partner. If this flag is set every state independent of ack will be sent to partner.- Use different topic names for set and get - if active, so every state will have two topics:
adapter/instance/stateName
andadapter/instance/stateName/set
. In this case topic with/set
will be used to send non acknowledged commands (ack: false) and topic without/set
to receive state updates (with ack: true). The client will receive sent messages back in this mode.
Configuring the MQTT broker
Configuring the MQTT client
Brought out the control. The config is below. You need to replace T841000000000000 and specify your camera number instead of T841000000000000. I turned on Retain specifically to save messages, because there is no feedback from the integration, and if you restart MQTT, the status of the buttons will not be saved.
# Camera Control Eufy Indoor Cam 2K Pan & Tilt
##################################################################################
# Circuit breakers
switch:
# Enable / disable the camera
- platform: mqtt
unique_id: Device enabled
name: "Eufy camera device enabled"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/device_enabled/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/device_enabled"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-off
# Turn on / off the LED indicator
- platform: mqtt
unique_id: LED status
name: "Eufy camera led status"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/led_status/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/led_status"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:white-balance-sunny
# Enable / disable night surveillance
- platform: mqtt
unique_id: Auto nightvision
name: "Eufy camera auto nightvision"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/auto_nightvision/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/auto_nightvision"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-enhance
# Enable / disable RTSP stream
- platform: mqtt
unique_id: RTSP stream
name: "Eufy camera rtsp stream enabled"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/rtsp_stream/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/rtsp_stream"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:video-wireless-outline
# Enable / disable motion detection
- platform: mqtt
unique_id: Motion detection
name: "Eufy camera motion detection"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/motion_detection/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/motion_detection"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-account
# Enable / disable pet detection
- platform: mqtt
unique_id: Pet detection
name: "Eufy camera pet detection"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/pet_detection/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/pet_detection"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-account
# Enable / disable sound detection
- platform: mqtt
unique_id: Sound detection
name: "Eufy camera sound detection"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/sound_detected/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/sound_detected/set"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:account-voice
##################################################################################
# Sensors
sensor:
# Sound and motion sensors
- platform: mqtt
name: "Eufy camera motion detected"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/motion_detected"
icon: mdi:camera-account
- platform: mqtt
name: "Eufy camera person detected"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/person_detected"
icon: mdi:camera-account
- platform: mqtt
name: "Eufy camera pet detection"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/pet_detection"
- platform: mqtt
name: "Eufy camera crying detected"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/crying_detected"
- platform: mqtt
name: "Eufy camera sound detection"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/sound_detection"
icon: mdi:account-voice
# Camera System Information
- platform: mqtt
name: "Eufy camera name"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/name"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera model"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/model"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera serial number"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/serial_number"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera software version"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/software_version"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera rtsp stream url"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/rtsp_stream_url"
icon: mdi:webcam
Я не стал использовать HA-MQTT Bridge, так как нет нормальной инструкции что и как ставить и не все, что мне нужно, а эти HASSOS Addon: homeassistant-addons/eufy-ha-mqtt-bridge at main · MaxWinterstein/homeassistant-addons · GitHub не работают. Решил сам вывести управление для себя. Также тут нет упоминания как нужно было настроить MQTT брокер в iobroker, чтобы я мог управлять камерой. Поделюсь своими настройками. Ставим в iobroker MQTT брокер и делаем как на скриншоте.
Обязательно включаем
- Send states (ack=true) too - Normally only the states/commands with
ack=false
will be sent to partner. If this flag is set every state independent of ack will be sent to partner.- Use different topic names for set and get - if active, so every state will have two topics:
adapter/instance/stateName
andadapter/instance/stateName/set
. In this case topic with/set
will be used to send non acknowledged commands (ack: false) and topic without/set
to receive state updates (with ack: true). The client will receive sent messages back in this mode.
Настройка MQTT брокера
Настройка MQTT клиента
Вывел управление. Конфиг ниже. Нужно заменить T841000000000000 и вместо T841000000000000 указать свой номер камеры. Retain включил специально, чтобы сохранялись сообщения, ибо от интеграции нет обратной связи и если перезагрузить MQTT то статус кнопок не сохранится.
# Управление камерой Eufy Indoor Cam 2K Pan & Tilt
##################################################################################
# Выключатели
switch:
# Включить\выключить камеру
- platform: mqtt
unique_id: Device enabled
name: "Eufy camera device enabled"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/device_enabled/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/device_enabled"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-off
# Включить\выключить LED индикатор
- platform: mqtt
unique_id: LED status
name: "Eufy camera led status"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/led_status/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/led_status"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:white-balance-sunny
# Включить\выключить ночное наблюдение
- platform: mqtt
unique_id: Auto nightvision
name: "Eufy camera auto nightvision"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/auto_nightvision/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/auto_nightvision"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-enhance
# Включить\выключить RTSP stream
- platform: mqtt
unique_id: RTSP stream
name: "Eufy camera rtsp stream enabled"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/rtsp_stream/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/rtsp_stream"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:video-wireless-outline
# Включить\выключить обнаружение движения
- platform: mqtt
unique_id: Motion detection
name: "Eufy camera motion detection"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/motion_detection/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/motion_detection"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-account
# Включить\выключить обнаружение домашних животных
- platform: mqtt
unique_id: Pet detection
name: "Eufy camera pet detection"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/pet_detection/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/pet_detection"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:camera-account
# Включить\выключить обнаружение звука
- platform: mqtt
unique_id: Sound detection
name: "Eufy camera sound detection"
command_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/sound_detected/set"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/sound_detected/set"
payload_on: "true"
payload_off: "false"
state_on: "true"
state_off: "false"
retain: true
qos: 0
icon: mdi:account-voice
##################################################################################
# Сенсоры
sensor:
# Датчики звука и движения
- platform: mqtt
name: "Eufy camera motion detected"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/motion_detected"
icon: mdi:camera-account
- platform: mqtt
name: "Eufy camera person detected"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/person_detected"
icon: mdi:camera-account
- platform: mqtt
name: "Eufy camera pet detection"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/pet_detection"
- platform: mqtt
name: "Eufy camera crying detected"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/crying_detected"
- platform: mqtt
name: "Eufy camera sound detection"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/sound_detection"
icon: mdi:account-voice
# Системная информация камеры
- platform: mqtt
name: "Eufy camera name"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/name"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera model"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/model"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera serial number"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/serial_number"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera software version"
state_topic: "iobroker/eufy-security/0/T841000000000000/station/software_version"
icon: mdi:webcam
- platform: mqtt
name: "Eufy camera rtsp stream url"
state_topic: "iobroker/eufy-security/0/T841000000000000/cameras/T841000000000000/rtsp_stream_url"
icon: mdi:webcam