tsightler / ring-mqtt

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

Bug: Crypto-key is missing #932

Closed WoCha-FR closed 2 weeks ago

WoCha-FR commented 2 weeks 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

Error message after starting device discovery

Steps to Reproduce

Download last version - Install dependancy - Run

Expected Behavior

No error message and data send to MQTT

Log Output

ring-mqtt Detected runmode: standard +0ms
  ring-mqtt Configuration file: D:\Developpement\NodeJS\ring-mqtt/config.json +1ms
  ring-mqtt Reading latest data from state file: D:\Developpement\NodeJS\ring-mqtt/ring-state.json +0ms
  ring-mqtt MQTT URL: mqtt://10.42.1.6:1883 +889ms
  ring-mqtt Attempting connection to Ring API using saved refresh token... +0ms
  ring-mqtt Successfully established connection to Ring API using saved token +3s
  ring-mqtt Received updated refresh token +2ms
  ring-mqtt Saving updated refresh token to state file +3s
  ring-mqtt Successfully saved updated state file: D:\Developpement\NodeJS\ring-mqtt/ring-state.json +1s
  ring-mqtt Attempting connection to MQTT broker... +0ms
  ring-mqtt MQTT connection established, processing Ring locations... +2s
  ring-mqtt ------------------------------------------------------------------------------------------ +3s
  ring-mqtt This account has access to the following locations: +1ms
  ring-mqtt            Rozier-en-Donzy (REMOVED-BY-ME) +0ms
  ring-mqtt                                                                                            +0ms
  ring-mqtt IMPORTANT: If *ANY* alarm or smart lighting hubs at these locations are *OFFLINE*  +1ms
  ring-mqtt            the device discovery process below will hang and no devices will be     +0ms
  ring-mqtt            published!                                                              +0ms
  ring-mqtt                                                                                            +1ms
  ring-mqtt            If the message "Device Discovery Complete!" is not logged below, please +0ms
  ring-mqtt            carefully check the Ring app for any hubs or smart lighting devices     +0ms
  ring-mqtt            that are in offline state and either remove them from the location or   +0ms
  ring-mqtt            bring them back online prior to restarting ring-mqtt.                   +1ms
  ring-mqtt                                                                                            +0ms
  ring-mqtt            If desired, the "location_ids" config option can be used to restrict    +0ms
  ring-mqtt            discovery to specific locations. See the documentation for details.     +0ms
  ring-mqtt ------------------------------------------------------------------------------------------ +1ms
  ring-mqtt Starting Device Discovery... +0ms
  ring-mqtt                                                                                            +0ms
  ring-mqtt New location: Rozier-en-Donzy (REMOVED-BY-ME) +0ms
Message dropped as it could not be decrypted: crypto-key is missing
Message dropped as it could not be decrypted: crypto-key is missing
Message dropped as it could not be decrypted: crypto-key is missing
Message dropped as it could not be decrypted: crypto-key is missing
Message dropped as it could not be decrypted: crypto-key is missing
Message dropped as it could not be decrypted: crypto-key is missing
Message dropped as it could not be decrypted: crypto-key is missing

Screenshots

No response

Config File

{
    "mqtt_url": "mqtt://10.42.1.6: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

Manual

Version

v5.7.2

Operating System

Debian 12 & Windows

Architecture

x86_64

Machine Details

Physical machine x86_64

tsightler commented 2 weeks ago

Messages in the log are not a bug, it's normal in some cases that push receiver cannot decrypt some specific messages and they are not related to discovery. Can you please describe what functional problem you are having?

WoCha-FR commented 2 weeks ago

Messages in the log are not a bug, it's normal in some cases that push receiver cannot decrypt some specific messages and they are not related to discovery. Can you please describe what functional problem you are having?

Hello, No message we're sent because my base alarm station was offline. Now all works fine.

Sorry for the incorrect report.