tsightler / ring-mqtt

Ring devices to MQTT Bridge
MIT License
578 stars 104 forks source link

Bug: Doorbell found, but no device added #762

Closed wbyoung closed 10 months ago

wbyoung commented 10 months ago

Describe the Bug

The log shows that a doorbell was found, but no device is added to HA

Steps to Reproduce

Install, configure, check devices

Expected Behavior

A device appears

Log Output

I can't find the full log location. Here's a snippet, but I'm happy to post the full file.

    mf: 'Ring',
    mdl: 'Doorbell Gen 2'
  }
}
2023-11-28T15:07:54.222Z ring-disc HASS config topic: homeassistant/sensor/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/343ea42e358e_info/config
2023-11-28T15:07:54.223Z ring-disc {
  name: 'Info',
  unique_id: '343ea42e358e_info',
  state_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state',
  device_class: 'timestamp',
  value_template: '{{ value_json["lastUpdate"] | default("") }}',
  json_attributes_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state',
  icon: 'mdi:information-outline',
  availability_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea42e358e' ],
    name: 'Front door',
    mf: 'Ring',
    mdl: 'Doorbell Gen 2'
  }
}
2023-11-28T15:07:54.223Z ring-disc HASS config topic: homeassistant/sensor/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/343ea42e358e_wireless/config
2023-11-28T15:07:54.224Z ring-disc {
  name: 'Wireless',
  unique_id: '343ea42e358e_wireless',
  state_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state',
  device_class: 'signal_strength',
  unit_of_measurement: 'dBm',
  value_template: '{{ value_json["wirelessSignal"] | default("") }}',
  json_attributes_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes',
  availability_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea42e358e' ],
    name: 'Front door',
    mf: 'Ring',
    mdl: 'Doorbell Gen 2'
  }
}
2023-11-28T15:07:54.225Z ring-disc HASS config topic: homeassistant/sensor/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/343ea42e358e_battery/config
2023-11-28T15:07:54.225Z ring-disc {
  name: 'Battery',
  unique_id: '343ea42e358e_battery',
  state_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state',
  device_class: 'battery',
  unit_of_measurement: '%',
  state_class: 'measurement',
  value_template: '{{ value_json["batteryLevel"] | default("") }}',
  json_attributes_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes',
  availability_topic: 'ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/status',
  payload_available: 'online',
  payload_not_available: 'offline',
  device: {
    ids: [ '343ea42e358e' ],
    name: 'Front door',
    mf: 'Ring',
    mdl: 'Doorbell Gen 2'
  }
}
2023-11-28T15:07:58.230Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/motion/attributes {"lastMotion":1701143561,"lastMotionTime":"2023-11-28T03:52:41Z","personDetected":false,"motionDetectionEnabled":true}
2023-11-28T15:07:58.231Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/motion_detection/state ON
2023-11-28T15:07:58.232Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/stream/state OFF
2023-11-28T15:07:58.233Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/stream/attributes {"status":"inactive"}
2023-11-28T15:07:58.235Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/motion/state OFF
2023-11-28T15:07:58.236Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/motion/attributes {"lastMotion":1701143561,"lastMotionTime":"2023-11-28T03:52:41Z","personDetected":false,"motionDetectionEnabled":true}
2023-11-28T15:07:58.237Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/ding/state OFF
2023-11-28T15:07:58.238Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/ding/attributes {"lastDing":1701143192,"lastDingTime":"2023-11-28T03:46:32Z"}
2023-11-28T15:07:58.239Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/ding_duration/state 180
2023-11-28T15:07:58.240Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/motion_duration/state 180
2023-11-28T15:07:58.241Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/snapshot_mode/state Auto
2023-11-28T15:07:58.242Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/snapshot/image <binary_image_data>
2023-11-28T15:07:58.244Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/snapshot/attributes {"timestamp":1701183928,"type":"interval"}
2023-11-28T15:07:58.244Z ring-mqtt [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/snapshot_interval/state 600
2023-11-28T15:07:58.535Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:07:58.536Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:07:58.537Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:10:17.297Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:10:17.298Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:10:17.299Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:15:17.204Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:15:17.205Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:15:17.208Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:20:17.223Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:20:17.225Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:20:17.226Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:25:17.208Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:25:17.210Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:25:17.211Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:30:17.332Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:30:17.333Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:30:17.334Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:35:17.212Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:35:17.214Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:35:17.216Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}
2023-11-28T15:40:17.228Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/info/state {"stream_Source":"rtsp://03cabcc9-ring-mqtt:8554/343ea42e358e_live","still_Image_URL":"https://homeassistant:8123{{ states.camera.front_door_snapshot.attributes.entity_picture }}","batteryLevel":100,"batteryLife":100,"firmwareStatus":"Up to Date","lastUpdate":"2023-11-28T14:40:58Z","wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:40:17.230Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/wireless/attributes {"wirelessNetwork":"*****","wirelessSignal":-48}
2023-11-28T15:40:17.231Z ring-attr [Front door] ring/e9e83d97-baa0-4fbe-8034-8e2aa9779b15/camera/343ea42e358e/battery/attributes {"batteryLevel":100,"batteryLife":100}

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

HA addon

Version

v5.6.3

Operating System

HA OS

Architecture

aarch64

Machine Details

Raspberry Pi

tsightler commented 10 months ago

This is not a bug, this is, at best, a support issue, however, since everything posted indicates that ring-mqtt itself is working fine, I can't help you beyond that (I wish I had time to help people troubleshoot MQTT and HA, but I don't). Most likely the problem is on the "other side" of the MQTT broker. however, in ~90% of the cases simply doing a forced refresh or restarting everything fixes the issue.

wbyoung commented 10 months ago

You were right, I had to reconfigure MQTT. Sorry to waste your time.

tsightler commented 10 months ago

Glad you got it. I apologize I was unable to be more help.