tsightler / ring-mqtt

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

Bug: Intercom ring state don't run #911

Closed open1999 closed 1 month ago

open1999 commented 1 month ago

Is there an existing issue for this?

Is this really a bug or just a usage/support question?

Have you read and followed any recommendations in the Support and Troubleshooting section of the wiki?

Did this issue start after an upgrade?

Are you prepared to respond and provide all relevant information (logs, screenshots, etc)

Describe the Bug

Ringer status no longer works. To try to resolve the problem, I stopped the container, deleted it in ring.com, created a new token, restarted the container, still the same problem. I did the procedure the day before yesterday and today. Battery is ok, the problem is only with the ringtone.

Steps to Reproduce

none

Expected Behavior

ring activate/desactivate

Log Output

2024-09-26T14:21:25.011Z ring-disc HASS config topic: homeassistant/lock/f60c337f-3269-49fe-bb12-f8b69a55bb85/343ea4b080c6_lock/config

2024-09-26T14:21:25.011Z ring-disc {

  name: 'Lock',

  unique_id: '343ea4b080c6_lock',

  state_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/lock/state',

  command_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/lock/command',

  availability_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/status',

  payload_available: 'online',

  payload_not_available: 'offline',

  device: {

    ids: [ '343ea4b080c6' ],

    name: 'MyHome',

    mf: 'Ring',

    mdl: 'Intercom'

  }

}

2024-09-26T14:21:25.012Z ring-disc HASS config topic: homeassistant/binary_sensor/f60c337f-3269-49fe-bb12-f8b69a55bb85/343ea4b080c6_ding/config

2024-09-26T14:21:25.012Z ring-disc {

  name: 'Ding',

  unique_id: '343ea4b080c6_ding',

  state_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/ding/state',

  json_attributes_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/ding/attributes',

  icon: 'mdi:doorbell',

  availability_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/status',

  payload_available: 'online',

  payload_not_available: 'offline',

  device: {

    ids: [ '343ea4b080c6' ],

    name: 'MyHome',

    mf: 'Ring',

    mdl: 'Intercom'

  }

}

2024-09-26T14:21:25.013Z ring-disc HASS config topic: homeassistant/sensor/f60c337f-3269-49fe-bb12-f8b69a55bb85/343ea4b080c6_info/config

2024-09-26T14:21:25.013Z ring-disc {

  name: 'Info',

  unique_id: '343ea4b080c6_info',

  state_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/info/state',

  device_class: 'timestamp',

  value_template: '{{ value_json["lastUpdate"] | default("") }}',

  entity_category: 'diagnostic',

  json_attributes_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/info/state',

  icon: 'mdi:information-outline',

  availability_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/status',

  payload_available: 'online',

  payload_not_available: 'offline',

  device: {

    ids: [ '343ea4b080c6' ],

    name: 'MyHome',

    mf: 'Ring',

    mdl: 'Intercom'

  }

}

2024-09-26T14:21:25.013Z ring-disc HASS config topic: homeassistant/sensor/f60c337f-3269-49fe-bb12-f8b69a55bb85/343ea4b080c6_wireless/config

2024-09-26T14:21:25.014Z ring-disc {

  name: 'Wireless',

  unique_id: '343ea4b080c6_wireless',

  state_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/info/state',

  device_class: 'signal_strength',

  unit_of_measurement: 'dBm',

  value_template: '{{ value_json["wirelessSignal"] | default("") }}',

  entity_category: 'diagnostic',

  json_attributes_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/wireless/attributes',

  availability_topic: 'ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/status',

  payload_available: 'online',

  payload_not_available: 'offline',

  device: {

    ids: [ '343ea4b080c6' ],

    name: 'MyHome',

    mf: 'Ring',

    mdl: 'Intercom'

  }

}

2024-09-26T14:21:29.019Z ring-mqtt [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/ding/state OFF

2024-09-26T14:21:29.020Z ring-mqtt [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/lock/state LOCKED

batteryLevel=87 firmwareStatus=Up to Date lastUpdate=2024-09-26T04:43:14Z wirelessNetwork=IOT_nomap wirelessSignal=-45

2024-09-26T14:21:29.348Z ring-attr [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/info/state 

batteryLevel=87

2024-09-26T14:21:29.349Z ring-attr [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/battery/attributes 

wirelessNetwork=IOT_nomap wirelessSignal=-45

2024-09-26T14:21:29.349Z ring-attr [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/wireless/attributes 

batteryLevel=87 firmwareStatus=Up to Date lastUpdate=2024-09-26T04:43:14Z wirelessNetwork=IOT_nomap wirelessSignal=-45

2024-09-26T14:23:48.278Z ring-attr [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/info/state 

batteryLevel=87

2024-09-26T14:23:48.279Z ring-attr [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/battery/attributes 

wirelessNetwork=IOT_nomap wirelessSignal=-45

2024-09-26T14:23:48.279Z ring-attr [MyHome] ring/f60c337f-3269-49fe-bb12-f8b69a55bb85/intercom/343ea4b080c6/wireless/attributes

Screenshots

No response

Config File

{
    "mqtt_url": "mqtt://********:***********@192.168.10.18:1883",
    "mqtt_options": "",
    "livestream_user": "",
    "livestream_pass": "",
    "disarm_code": "",
    "enable_cameras": true,
    "enable_modes": false,
    "enable_panic": false,
    "hass_topic": "homeassistant/status",
    "ring_topic": "ring",
    "location_ids": [
         ""
      ]
}

Install Type

Docker

Version

v5.7.1

Operating System

Debian

Architecture

x86-64

Machine Details

Physical mini PC

open1999 commented 1 month ago

Hello,

I started searching with "- DEBUG=ring*" and suddenly all the ding state is ok.

I tested again without DEBUG it's OK.

Maybe the ring.com server?

I closed the ticket.

Sorry

tsightler commented 1 month ago

You should verify that you do not have anything that would block push notifications. Things like VPNs, firewalls with low timeouts, adblockers, anything that might interfere with a continuous connection to Gtalk servers (TCP port 5222) as that is where push notifications are received from.

In general, there is very little that I can do if push notifications are not being received as the code cannot take actions on data that didn't get to it.

open1999 commented 1 month ago

For your information.

Following your message on the router I did several tests by modifying my router, no change.

I noticed that if I restart the container it is good for a few hours and then no longer works (ring state).

I installed the Home Assistant ring module (after stopping Ring MQTT).

No problem with the HA module.

tsightler commented 1 month ago

If Ring HA module works for you then just use it, no problem, it's a better solution for HA native anyway if you don't need any of the other features of ring-mqtt.