tsightler / ring-mqtt

Ring devices to MQTT Bridge
MIT License
600 stars 106 forks source link

Support: Do I need Mosquitto broker installed? #768

Closed FilipeOS closed 11 months ago

FilipeOS commented 11 months ago

Describe the Issue

Do I need to have MQTT Mosquito active? Because even if I don't have any configuration (because I don't know) it will break ring-mqtt until I enable it again.

Steps take so far

Deactivate Mosquito MQTT and leave only Ring-MQTT

Log Output

icon: 'hass:bell-ring',
  availability_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea49YYYYY' ],
    name: 'Chime',
    mf: 'Ring',
    mdl: 'Chime Pro v2'
  }
}
2023-12-22T14:57:14.899Z ring-disc HASS config topic: homeassistant/switch/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/343ea49YYYYY_play_motion_sound/config
2023-12-22T14:57:14.900Z ring-disc {
  name: 'Play Motion Sound',
  unique_id: '343ea49YYYYY_play_motion_sound',
  state_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/play_motion_sound/state',
  command_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/play_motion_sound/command',
  icon: 'hass:bell-ring',
  availability_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea49YYYYY' ],
    name: 'Chime',
    mf: 'Ring',
    mdl: 'Chime Pro v2'
  }
}
2023-12-22T14:57:14.902Z ring-disc HASS config topic: homeassistant/switch/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/343ea49YYYYY_nightlight_enabled/config
2023-12-22T14:57:14.903Z ring-disc {
  name: 'Nightlight Enabled',
  unique_id: '343ea49YYYYY_nightlight_enabled',
  state_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/nightlight_enabled/state',
  command_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/nightlight_enabled/command',
  json_attributes_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/nightlight_enabled/attributes',
  icon: 'mdi:lightbulb-night',
  availability_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea49YYYYY' ],
    name: 'Chime',
    mf: 'Ring',
    mdl: 'Chime Pro v2'
  }
}
2023-12-22T14:57:14.906Z ring-disc HASS config topic: homeassistant/sensor/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/343ea49YYYYY_info/config
2023-12-22T14:57:14.907Z ring-disc {
  name: 'Info',
  unique_id: '343ea49YYYYY_info',
  state_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/info/state',
  device_class: 'timestamp',
  value_template: '{{ value_json["lastUpdate"] | default("") }}',
  json_attributes_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/info/state',
  icon: 'mdi:information-outline',
  availability_topic: 'ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea49YYYYY' ],
    name: 'Chime',
    mf: 'Ring',
    mdl: 'Chime Pro v2'
  }
}
2023-12-22T14:57:16.912Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/status online
2023-12-22T14:57:16.918Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/status online
2023-12-22T14:57:18.919Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/motion/attributes {"lastMotion":1703255326,"lastMotionTime":"2023-12-22T14:28:46Z","personDetected":true,"motionDetectionEnabled":true}
2023-12-22T14:57:18.920Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/motion_detection/state ON
2023-12-22T14:57:18.959Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/volume/state 4
2023-12-22T14:57:18.960Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/snooze/state OFF
2023-12-22T14:57:18.961Z ring-attr [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/snooze/attributes {"minutes_remaining":0}
2023-12-22T14:57:18.962Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/nightlight_enabled/state OFF
2023-12-22T14:57:18.964Z ring-attr [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/nightlight_enabled/attributes {"nightlightState":"OFF"}
2023-12-22T14:57:18.965Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/snooze_minutes/state 1440
2023-12-22T14:57:18.966Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/play_ding_sound/state OFF
2023-12-22T14:57:18.967Z ring-mqtt [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/play_motion_sound/state OFF
2023-12-22T14:57:19.405Z ring-attr [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/info/state {"firmwareStatus":"Up to Date","lastUpdate":"2023-12-22T09:06:39Z","wirelessNetwork":"Vodafone-E6D667","wirelessSignal":-56}
2023-12-22T14:57:19.408Z ring-attr [Chime] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/chime/343ea49YYYYY/wireless/attributes {"wirelessNetwork":"Vodafone-E6D667","wirelessSignal":-56}
2023-12-22T14:57:19.456Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/stream/state OFF
2023-12-22T14:57:19.457Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/stream/attributes {"status":"inactive"}
2023-12-22T14:57:19.458Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/event_stream/state OFF
2023-12-22T14:57:19.459Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/event_stream/attributes {"status":"inactive"}
2023-12-22T14:57:19.460Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/event_select/state Motion 1
2023-12-22T14:57:19.460Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/event_select/attributes <recording_url_masked>
2023-12-22T14:57:19.461Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/motion/state OFF
2023-12-22T14:57:19.462Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/motion/attributes {"lastMotion":1703255326,"lastMotionTime":"2023-12-22T14:28:46Z","personDetected":true,"motionDetectionEnabled":true}
2023-12-22T14:57:19.462Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/ding/state OFF
2023-12-22T14:57:19.463Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/ding/attributes {"lastDing":1702809225,"lastDingTime":"2023-12-17T10:33:45Z"}
2023-12-22T14:57:19.464Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/ding_duration/state 180
2023-12-22T14:57:19.464Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/motion_duration/state 180
2023-12-22T14:57:19.465Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/snapshot_mode/state Auto
2023-12-22T14:57:19.466Z ring-mqtt [Doorbell] Requesting an updated interval snapshot
2023-12-22T14:57:19.468Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/snapshot_interval/state 600
2023-12-22T14:57:20.009Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/4c24988cEEEE_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.doorbell_snapshot.attributes.entity_picture }}","batteryLevel":92,"batteryLife":92,"firmwareStatus":"Up to Date","lastUpdate":"2023-12-22T14:29:05Z","wirelessNetwork":"Vodafone-E6D667","wirelessSignal":-80}
2023-12-22T14:57:20.010Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/wireless/attributes {"wirelessNetwork":"Vodafone-E6D667","wirelessSignal":-80}
2023-12-22T14:57:20.012Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/battery/attributes {"batteryLevel":92,"batteryLife":92}
2023-12-22T14:57:24.250Z ring-mqtt [Doorbell] Successfully retrieved updated interval snapshot
2023-12-22T14:57:24.251Z ring-mqtt [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/snapshot/image <binary_image_data>
2023-12-22T14:57:24.253Z ring-attr [Doorbell] ring/8aef6aef-XXXX-XXXX-b81f-ca2aed3b669f/camera/4c24988cEEEE/snapshot/attributes {"timestamp":1703257044,"type":"interval"}

Screenshots

No response

Config File

mqtt_url: mqtt://auto_username:auto_password@auto_hostname
mqtt_options: ""
livestream_user: ""
livestream_pass: ""
disarm_code: ""
enable_cameras: true
enable_modes: false
enable_panic: false
branch: addon
debug: ring-*
location_ids: []

Install Type

HASSIO

Version

5.6.3 (ring-mqtt)

Operating System

HAOS

Architecture

x86_64

tsightler commented 11 months ago

Yes, you need Mosquitto, or at least some MQTT broker, this is clearly stated in the documentation.

FilipeOS commented 11 months ago

Ok, but sometimes I get this, othertimes just work fine.. 2023-12-22T19:17:39.376Z ring-mqtt Attempting to reconnect to MQTT broker... 2023-12-22T19:17:39.386Z ring-mqtt Unable to connect to MQTT broker Connection refused: Not authorized

Do I need any configuration in Mosquito? Sorry but documentation is not meant for everyone.. I'm starting

If I restart ring-mqtt it starts working

tsightler commented 11 months ago

Sorry but documentation is not meant for everyone.. I'm starting

Sorry, but not all projects are meant for everyone. This project isn't targeted at starting users, it expects a level of understanding of how all of this stuff goes together. Unfortunately, I just don't have the bandwidth to help users that don't have this basic level of knowledge, it's a pre-req for using this project.