home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.23k stars 30.24k forks source link

Failed setup, will retry... rate limited... #125277

Closed Majestic7979 closed 1 month ago

Majestic7979 commented 1 month ago

The problem

image

In the meantime my locks are not reporting status and the commands to lock or unlock don't work.

Thanks for investigating :)

What version of Home Assistant Core has the issue?

core-2024.9.0

What was the last working version of Home Assistant Core?

core-2024.7.0

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Yale Home

Link to integration documentation on our website

https://www.home-assistant.io/integrations/yale

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

The problem is that this issue is occurring constantly making the integration practically unusable... it happens upon restarts primarily. I restart my server every morning at 4am but also whenever Debian is updated. Once the integration loads I also noticed that the locks don't always react upon commands to lock or unlock, or their status is reported incorrectly based on their actual state (reports locked when it's actually unlocked). I have enabled debug logging, please let me know exactly what else is required and I'll be glad to provide, in the meantime thanks so much for reviewing my report.

home-assistant[bot] commented 1 month ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (yale) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `yale` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign yale` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


yale documentation yale source (message by IssueLinks)

bdraco commented 1 month ago

Do you have an automation that is reloading the integration?

Majestic7979 commented 1 month ago

Do you have an automation that is reloading the integration?

Not at all. Most of my automations rely on reading the open/close or lock/unlock state of the locks and doing things like arming/disarming alarms/zones and I have NFC tags I scan (I'm disabled) to lock/unlock including in my bedroom door where I adapted a Linus lock to work with an internal door. I use the Yale Home Bridge. All my locks are showing Unknown status and can't be operated from HA. I enabled debug logging yesterday so if you need it I can provide.

bdraco commented 1 month ago

Please post the debug log. Thanks.

rchiileea commented 1 month ago

image same issue here no devices detected, (I have cameras and new alarm that only works in yale home).

Majestic7979 commented 1 month ago

image same issue here no devices detected, (I have cameras and new alarm that only works in yale home).

this is NOT the same issue, and please stop spamming. You already have your own issue.

Majestic7979 commented 1 month ago

Please post the debug log. Thanks.

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.9.0",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/London",
    "os_name": "Linux",
    "os_version": "6.1.28-v8+",
    "run_as_root": true
  },
  "custom_components": {
    "bambu_lab": {
      "documentation": "https://github.com/greghesp/ha-bambulab",
      "version": "2.0.22",
      "requirements": []
    },
    "frigate": {
      "documentation": "https://github.com/blakeblackshear/frigate",
      "version": "5.4.0",
      "requirements": [
        "pytz"
      ]
    },
    "mbapi2020": {
      "documentation": "https://github.com/ReneNulschDE/mbapi2020",
      "version": "v0.17.0",
      "requirements": [
        "protobuf>=3.19.1"
      ]
    },
    "bedjet": {
      "documentation": "https://github.com/asheliahut/ha-bedjet",
      "version": "0.3.0",
      "requirements": []
    },
    "philips_airpurifier": {
      "documentation": "https://github.com/betaboon/philips-airpurifier",
      "version": "0.4.0",
      "requirements": [
        "aioairctrl @ git+https://github.com/betaboon/aioairctrl@v0.2.1"
      ]
    },
    "webrtc": {
      "documentation": "https://github.com/AlexxIT/WebRTC",
      "version": "v3.5.2",
      "requirements": []
    },
    "linktap": {
      "documentation": "https://github.com/sh00t2kill/linktap_local_http_component",
      "version": "0.1.0",
      "requirements": []
    },
    "epson_projector_link": {
      "documentation": "https://github.com/amosyuen/ha-epson-projector-link",
      "version": "1.0.1",
      "requirements": [
        "pyserial_asyncio>=0.4",
        "async_timeout>=3.0.0"
      ]
    },
    "fontawesome": {
      "documentation": "https://github.com/thomasloven/hass-fontawesome",
      "version": "2.2.1",
      "requirements": []
    },
    "octopus_energy": {
      "documentation": "https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy",
      "version": "12.2.1",
      "requirements": []
    },
    "nodered": {
      "documentation": "https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/custom_integration/",
      "version": "4.0.2",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "philips_airpurifier_coap": {
      "documentation": "https://github.com/kongo09/philips-airpurifier-coap",
      "version": "0.18.9",
      "requirements": [
        "aioairctrl==0.2.5",
        "getmac==0.9.4"
      ]
    },
    "browser_mod": {
      "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
      "version": "2.3.1",
      "requirements": []
    },
    "fluvalble": {
      "documentation": "https://www.home-assistant.io/integrations/fluvalble",
      "version": "0.0.1",
      "requirements": []
    },
    "tuya_ble": {
      "documentation": "https://www.home-assistant.io/integrations/tuya_ble",
      "version": "0.1.8",
      "requirements": [
        "tuya-iot-py-sdk==0.6.6",
        "pycountry>23.0.0"
      ]
    },
    "simpleicons": {
      "documentation": "https://github.com/vigonotion/hass-simpleicons",
      "version": "v2.2.1",
      "requirements": [
        "simpleicons==7.14.0"
      ]
    },
    "dreame_vacuum": {
      "documentation": "https://github.com/Tasshack/dreame-vacuum",
      "version": "v2.0.0b16",
      "requirements": [
        "pillow",
        "numpy",
        "pybase64",
        "requests",
        "pycryptodome",
        "python-miio",
        "py-mini-racer",
        "paho-mqtt"
      ]
    }
  },
  "integration_manifest": {
    "domain": "yale",
    "name": "Yale",
    "codeowners": [
      "bdraco"
    ],
    "config_flow": true,
    "dependencies": [
      "application_credentials",
      "cloud"
    ],
    "dhcp": [
      {
        "hostname": "yale-connect-plus",
        "macaddress": "00177A*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/yale",
    "iot_class": "cloud_push",
    "loggers": [
      "socketio",
      "engineio",
      "yalexs"
    ],
    "requirements": [
      "yalexs==8.6.3",
      "yalexs-ble==2.4.3"
    ],
    "is_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 6.507299985969439e-05
    },
    "01J6YYG2C4T2T7NNVJ19SZRGWK": {
      "wait_import_platforms": -0.2024604250000266,
      "config_entry_setup": 15.109457024000221
    }
  },
  "data": {
    "locks": {
      "xx": {
        "LockName": "Back Door",
        "Type": 1002,
        "Created": "2023-10-02T17:13:28.943Z",
        "Updated": "2023-10-02T17:13:28.943Z",
        "LockID": "xx",
        "HouseID": "**REDACTED**",
        "HouseName": "My Home",
        "Calibrated": false,
        "timeZone": "Europe/London",
        "battery": 0.5183855730865616,
        "batteryInfo": {
          "level": 0.5183855730865616,
          "warningState": "lock_state_battery_warning_none",
          "infoUpdatedDate": "2024-09-04T20:59:26.990Z",
          "lastChangeDate": "2023-10-02T14:42:55.000Z",
          "lastChangeVoltage": 6463,
          "state": "Medium",
          "icon": "https://app-resources.aaecosystem.com/images/lock_battery_state_medium.png"
        },
        "hostLockInfo": {
          "productID": 2,
          "productTypeID": 26112,
          "manufacturer": "iRevo",
          "serialNumber": "Conexis"
        },
        "supportsEntryCodes": true,
        "remoteOperateSecret": "**REDACTED**",
        "skuNumber": "TEST200228",
        "macAddress": "78:9C:xxx",
        "SerialNumber": "xx",
        "LockStatus": {
          "status": "unknown",
          "dateTime": "2024-09-04T21:12:38.012Z",
          "isLockStatusChanged": false,
          "valid": true,
          "unknownReason": "unknown_error_during_connect",
          "doorState": "unknown"
        },
        "currentFirmwareVersion": "2.0.0-1.0.16",
        "keypad": {
          "_id": "xx",
          "serialNumber": "xx",
          "lockID": "xx",
          "currentFirmwareVersion": "2.27.0",
          "battery": {},
          "batteryLevel": "Medium",
          "batteryState": "Medium",
          "batteryRaw": 177
        },
        "homeKitEnabled": false,
        "zWaveEnabled": false,
        "isGalileo": false,
        "Bridge": {
          "_id": "xx",
          "mfgBridgeID": "xx",
          "deviceModel": "cancri",
          "firmwareVersion": "1.5.0",
          "operative": true,
          "status": {
            "current": "online",
            "lastOffline": "2024-09-04T21:12:12.967Z",
            "updated": "2024-09-04T21:12:36.485Z",
            "lastOnline": "2024-09-04T21:12:36.485Z"
          },
          "locks": [
            {
              "_id": "xx",
              "macAddress": "78:9C:xxx",
              "LockID": "xx"
            }
          ],
          "hyperBridge": true
        },
        "remoteDevice": {
          "id": "xx",
          "type": "bridge",
          "serialNumber": "xx",
          "currentStatus": "online",
          "wifiInfo": {
            "mac": "B0:44:9Cxxx",
            "rssi": -67
          }
        },
        "parametersToSet": {},
        "users": "**REDACTED**",
        "pubsubChannel": "**REDACTED**",
        "ruleHash": {},
        "cameras": [],
        "geofenceLimits": {
          "ios": {
            "debounceInterval": 90,
            "gpsAccuracyMultiplier": 2.5,
            "maximumGeofence": 5000,
            "minimumGeofence": 100,
            "minGPSAccuracyRequired": 80
          }
        },
        "accessSchedulesAllowed": true,
        "pins": "**REDACTED**"
      },
      "xx": {
        "LockName": "Master bedroom",
        "Type": 6,
        "Created": "2024-03-11T18:21:54.779Z",
        "Updated": "2024-03-11T18:21:54.779Z",
        "LockID": "xx",
        "HouseID": "**REDACTED**",
        "HouseName": "My Home",
        "Calibrated": false,
        "timeZone": "Europe/London",
        "battery": 0.7430338432350254,
        "batteryInfo": {
          "level": 0.7430338432350254,
          "warningState": "lock_state_battery_warning_none",
          "infoUpdatedDate": "2024-09-04T17:48:03.835Z",
          "lastChangeDate": "2024-07-08T22:02:22.000Z",
          "lastChangeVoltage": 6301,
          "state": "High",
          "icon": "https://app-resources.aaecosystem.com/images/lock_battery_state_high.png"
        },
        "hostHardwareID": "xxx-9cd1-xxx-bf08-xxx",
        "supportsEntryCodes": false,
        "remoteOperateSecret": "**REDACTED**",
        "HomeKitSetupPayload": "X-HM://xxx",
        "skuNumber": "ASL6_05/101200/SI",
        "macAddress": "78:9C:85xxx",
        "SerialNumber": "xx",
        "LockStatus": {
          "status": "unknown",
          "dateTime": "2024-09-04T22:21:12.456Z",
          "isLockStatusChanged": false,
          "valid": true,
          "doorState": "closed"
        },
        "currentFirmwareVersion": "3.2.2",
        "homeKitEnabled": false,
        "zWaveEnabled": false,
        "isGalileo": false,
        "Bridge": {
          "_id": "xx",
          "mfgBridgeID": "xx",
          "deviceModel": "cancri",
          "firmwareVersion": "1.5.0",
          "operative": true,
          "status": {
            "current": "online",
            "lastOnline": "2024-09-04T21:12:01.594Z",
            "updated": "2024-09-04T21:12:01.594Z",
            "lastOffline": "2024-09-04T21:11:38.046Z"
          },
          "locks": [
            {
              "_id": "xx",
              "macAddress": "78:9C:xxx",
              "LockID": "xx"
            },
            {
              "_id": "xx",
              "macAddress": "98:1B:xxx",
              "LockID": "xx"
            }
          ],
          "hyperBridge": true
        },
        "remoteDevice": {
          "id": "xx",
          "type": "bridge",
          "serialNumber": "xx",
          "currentStatus": "online",
          "wifiInfo": {
            "mac": "B0:44:xxx",
            "rssi": -43
          }
        },
        "parametersToSet": {},
        "users": "**REDACTED**",
        "pubsubChannel": "**REDACTED**",
        "ruleHash": {},
        "cameras": [],
        "geofenceLimits": {
          "ios": {
            "debounceInterval": 90,
            "gpsAccuracyMultiplier": 2.5,
            "maximumGeofence": 5000,
            "minimumGeofence": 100,
            "minGPSAccuracyRequired": 80
          }
        },
        "accessSchedulesAllowed": true
      },
      "xx": {
        "LockName": "Front Door",
        "Type": 1002,
        "Created": "2023-12-09T16:03:43.903Z",
        "Updated": "2023-12-09T16:03:43.903Z",
        "LockID": "xx",
        "HouseID": "**REDACTED**",
        "HouseName": "My Home",
        "Calibrated": false,
        "timeZone": "Europe/London",
        "battery": 0.24288012634769984,
        "batteryInfo": {
          "level": 0.24288012634769984,
          "warningState": "lock_state_battery_warning_none",
          "infoUpdatedDate": "2024-09-04T17:48:41.000Z",
          "lastChangeDate": "2023-12-09T16:03:43.903Z",
          "lastChangeVoltage": 6200,
          "state": "Medium",
          "icon": "https://app-resources.aaecosystem.com/images/lock_battery_state_medium.png"
        },
        "hostLockInfo": {
          "productID": 2,
          "productTypeID": 26112,
          "manufacturer": "iRevo",
          "serialNumber": "Conexis"
        },
        "supportsEntryCodes": true,
        "remoteOperateSecret": "**REDACTED**",
        "skuNumber": "TEST200228",
        "macAddress": "98:1B:xxx",
        "SerialNumber": "xx",
        "LockStatus": {
          "status": "unknown",
          "dateTime": "2024-09-04T21:12:02.672Z",
          "isLockStatusChanged": false,
          "valid": true,
          "unknownReason": "unknown_error_during_connect",
          "doorState": "unknown"
        },
        "currentFirmwareVersion": "2.0.0-1.0.16",
        "keypad": {
          "_id": "xx",
          "serialNumber": "xx",
          "lockID": "xx",
          "currentFirmwareVersion": "2.27.0",
          "battery": {},
          "batteryLevel": "Medium",
          "batteryState": "Medium",
          "batteryRaw": 165
        },
        "homeKitEnabled": false,
        "zWaveEnabled": false,
        "isGalileo": false,
        "Bridge": {
          "_id": "xx",
          "mfgBridgeID": "xx",
          "deviceModel": "cancri",
          "firmwareVersion": "1.5.0",
          "operative": true,
          "status": {
            "current": "online",
            "lastOnline": "2024-09-04T21:12:01.594Z",
            "updated": "2024-09-04T21:12:01.594Z",
            "lastOffline": "2024-09-04T21:11:38.046Z"
          },
          "locks": [
            {
              "_id": "xx",
              "macAddress": "78:9C:8xxx",
              "LockID": "xx"
            },
            {
              "_id": "xx",
              "macAddress": "98:1B:xxx",
              "LockID": "xx"
            }
          ],
          "hyperBridge": true
        },
        "remoteDevice": {
          "id": "xx",
          "type": "bridge",
          "serialNumber": "xx",
          "currentStatus": "online",
          "wifiInfo": {
            "mac": "B0:44:9xxx",
            "rssi": -43
          }
        },
        "parametersToSet": {},
        "users": "**REDACTED**",
        "pubsubChannel": "**REDACTED**",
        "ruleHash": {},
        "cameras": [],
        "geofenceLimits": {
          "ios": {
            "debounceInterval": 90,
            "gpsAccuracyMultiplier": 2.5,
            "maximumGeofence": 5000,
            "minimumGeofence": 100,
            "minGPSAccuracyRequired": 80
          }
        },
        "accessSchedulesAllowed": true,
        "pins": "**REDACTED**"
      }
    },
    "doorbells": {},
    "brand": "yale_global"
  }
}

Thanks a lot for your work bdraco 🙏🥰

rchiileea commented 1 month ago

image same issue here no devices detected, (I have cameras and new alarm that only works in yale home).

this is NOT the same issue, and please stop spamming. You already have your own issue.

YES I do and so sorry that you see that one post is called spamming, sorry I hurt your post by spamming one post into this, i wont post or comment again to your community of one, forgive me.

bdraco commented 1 month ago

Please post the debug log. Thanks.

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.9.0",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/London",
    "os_name": "Linux",
    "os_version": "6.1.28-v8+",
    "run_as_root": true
  },
  "custom_components": {
    "bambu_lab": {
      "documentation": "https://github.com/greghesp/ha-bambulab",
      "version": "2.0.22",
      "requirements": []
    },
    "frigate": {
      "documentation": "https://github.com/blakeblackshear/frigate",
      "version": "5.4.0",
      "requirements": [
        "pytz"
      ]
    },
    "mbapi2020": {
      "documentation": "https://github.com/ReneNulschDE/mbapi2020",
      "version": "v0.17.0",
      "requirements": [
        "protobuf>=3.19.1"
      ]
    },
    "bedjet": {
      "documentation": "https://github.com/asheliahut/ha-bedjet",
      "version": "0.3.0",
      "requirements": []
    },
    "philips_airpurifier": {
      "documentation": "https://github.com/betaboon/philips-airpurifier",
      "version": "0.4.0",
      "requirements": [
        "aioairctrl @ git+https://github.com/betaboon/aioairctrl@v0.2.1"
      ]
    },
    "webrtc": {
      "documentation": "https://github.com/AlexxIT/WebRTC",
      "version": "v3.5.2",
      "requirements": []
    },
    "linktap": {
      "documentation": "https://github.com/sh00t2kill/linktap_local_http_component",
      "version": "0.1.0",
      "requirements": []
    },
    "epson_projector_link": {
      "documentation": "https://github.com/amosyuen/ha-epson-projector-link",
      "version": "1.0.1",
      "requirements": [
        "pyserial_asyncio>=0.4",
        "async_timeout>=3.0.0"
      ]
    },
    "fontawesome": {
      "documentation": "https://github.com/thomasloven/hass-fontawesome",
      "version": "2.2.1",
      "requirements": []
    },
    "octopus_energy": {
      "documentation": "https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy",
      "version": "12.2.1",
      "requirements": []
    },
    "nodered": {
      "documentation": "https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/custom_integration/",
      "version": "4.0.2",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "philips_airpurifier_coap": {
      "documentation": "https://github.com/kongo09/philips-airpurifier-coap",
      "version": "0.18.9",
      "requirements": [
        "aioairctrl==0.2.5",
        "getmac==0.9.4"
      ]
    },
    "browser_mod": {
      "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
      "version": "2.3.1",
      "requirements": []
    },
    "fluvalble": {
      "documentation": "https://www.home-assistant.io/integrations/fluvalble",
      "version": "0.0.1",
      "requirements": []
    },
    "tuya_ble": {
      "documentation": "https://www.home-assistant.io/integrations/tuya_ble",
      "version": "0.1.8",
      "requirements": [
        "tuya-iot-py-sdk==0.6.6",
        "pycountry>23.0.0"
      ]
    },
    "simpleicons": {
      "documentation": "https://github.com/vigonotion/hass-simpleicons",
      "version": "v2.2.1",
      "requirements": [
        "simpleicons==7.14.0"
      ]
    },
    "dreame_vacuum": {
      "documentation": "https://github.com/Tasshack/dreame-vacuum",
      "version": "v2.0.0b16",
      "requirements": [
        "pillow",
        "numpy",
        "pybase64",
        "requests",
        "pycryptodome",
        "python-miio",
        "py-mini-racer",
        "paho-mqtt"
      ]
    }
  },
  "integration_manifest": {
    "domain": "yale",
    "name": "Yale",
    "codeowners": [
      "bdraco"
    ],
    "config_flow": true,
    "dependencies": [
      "application_credentials",
      "cloud"
    ],
    "dhcp": [
      {
        "hostname": "yale-connect-plus",
        "macaddress": "00177A*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/yale",
    "iot_class": "cloud_push",
    "loggers": [
      "socketio",
      "engineio",
      "yalexs"
    ],
    "requirements": [
      "yalexs==8.6.3",
      "yalexs-ble==2.4.3"
    ],
    "is_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 6.507299985969439e-05
    },
    "01J6YYG2C4T2T7NNVJ19SZRGWK": {
      "wait_import_platforms": -0.2024604250000266,
      "config_entry_setup": 15.109457024000221
    }
  },
  "data": {
    "locks": {
      "xx": {
        "LockName": "Back Door",
        "Type": 1002,
        "Created": "2023-10-02T17:13:28.943Z",
        "Updated": "2023-10-02T17:13:28.943Z",
        "LockID": "xx",
        "HouseID": "**REDACTED**",
        "HouseName": "My Home",
        "Calibrated": false,
        "timeZone": "Europe/London",
        "battery": 0.5183855730865616,
        "batteryInfo": {
          "level": 0.5183855730865616,
          "warningState": "lock_state_battery_warning_none",
          "infoUpdatedDate": "2024-09-04T20:59:26.990Z",
          "lastChangeDate": "2023-10-02T14:42:55.000Z",
          "lastChangeVoltage": 6463,
          "state": "Medium",
          "icon": "https://app-resources.aaecosystem.com/images/lock_battery_state_medium.png"
        },
        "hostLockInfo": {
          "productID": 2,
          "productTypeID": 26112,
          "manufacturer": "iRevo",
          "serialNumber": "Conexis"
        },
        "supportsEntryCodes": true,
        "remoteOperateSecret": "**REDACTED**",
        "skuNumber": "TEST200228",
        "macAddress": "78:9C:xxx",
        "SerialNumber": "xx",
        "LockStatus": {
          "status": "unknown",
          "dateTime": "2024-09-04T21:12:38.012Z",
          "isLockStatusChanged": false,
          "valid": true,
          "unknownReason": "unknown_error_during_connect",
          "doorState": "unknown"
        },
        "currentFirmwareVersion": "2.0.0-1.0.16",
        "keypad": {
          "_id": "xx",
          "serialNumber": "xx",
          "lockID": "xx",
          "currentFirmwareVersion": "2.27.0",
          "battery": {},
          "batteryLevel": "Medium",
          "batteryState": "Medium",
          "batteryRaw": 177
        },
        "homeKitEnabled": false,
        "zWaveEnabled": false,
        "isGalileo": false,
        "Bridge": {
          "_id": "xx",
          "mfgBridgeID": "xx",
          "deviceModel": "cancri",
          "firmwareVersion": "1.5.0",
          "operative": true,
          "status": {
            "current": "online",
            "lastOffline": "2024-09-04T21:12:12.967Z",
            "updated": "2024-09-04T21:12:36.485Z",
            "lastOnline": "2024-09-04T21:12:36.485Z"
          },
          "locks": [
            {
              "_id": "xx",
              "macAddress": "78:9C:xxx",
              "LockID": "xx"
            }
          ],
          "hyperBridge": true
        },
        "remoteDevice": {
          "id": "xx",
          "type": "bridge",
          "serialNumber": "xx",
          "currentStatus": "online",
          "wifiInfo": {
            "mac": "B0:44:9Cxxx",
            "rssi": -67
          }
        },
        "parametersToSet": {},
        "users": "**REDACTED**",
        "pubsubChannel": "**REDACTED**",
        "ruleHash": {},
        "cameras": [],
        "geofenceLimits": {
          "ios": {
            "debounceInterval": 90,
            "gpsAccuracyMultiplier": 2.5,
            "maximumGeofence": 5000,
            "minimumGeofence": 100,
            "minGPSAccuracyRequired": 80
          }
        },
        "accessSchedulesAllowed": true,
        "pins": "**REDACTED**"
      },
      "xx": {
        "LockName": "Master bedroom",
        "Type": 6,
        "Created": "2024-03-11T18:21:54.779Z",
        "Updated": "2024-03-11T18:21:54.779Z",
        "LockID": "xx",
        "HouseID": "**REDACTED**",
        "HouseName": "My Home",
        "Calibrated": false,
        "timeZone": "Europe/London",
        "battery": 0.7430338432350254,
        "batteryInfo": {
          "level": 0.7430338432350254,
          "warningState": "lock_state_battery_warning_none",
          "infoUpdatedDate": "2024-09-04T17:48:03.835Z",
          "lastChangeDate": "2024-07-08T22:02:22.000Z",
          "lastChangeVoltage": 6301,
          "state": "High",
          "icon": "https://app-resources.aaecosystem.com/images/lock_battery_state_high.png"
        },
        "hostHardwareID": "xxx-9cd1-xxx-bf08-xxx",
        "supportsEntryCodes": false,
        "remoteOperateSecret": "**REDACTED**",
        "HomeKitSetupPayload": "X-HM://xxx",
        "skuNumber": "ASL6_05/101200/SI",
        "macAddress": "78:9C:85xxx",
        "SerialNumber": "xx",
        "LockStatus": {
          "status": "unknown",
          "dateTime": "2024-09-04T22:21:12.456Z",
          "isLockStatusChanged": false,
          "valid": true,
          "doorState": "closed"
        },
        "currentFirmwareVersion": "3.2.2",
        "homeKitEnabled": false,
        "zWaveEnabled": false,
        "isGalileo": false,
        "Bridge": {
          "_id": "xx",
          "mfgBridgeID": "xx",
          "deviceModel": "cancri",
          "firmwareVersion": "1.5.0",
          "operative": true,
          "status": {
            "current": "online",
            "lastOnline": "2024-09-04T21:12:01.594Z",
            "updated": "2024-09-04T21:12:01.594Z",
            "lastOffline": "2024-09-04T21:11:38.046Z"
          },
          "locks": [
            {
              "_id": "xx",
              "macAddress": "78:9C:xxx",
              "LockID": "xx"
            },
            {
              "_id": "xx",
              "macAddress": "98:1B:xxx",
              "LockID": "xx"
            }
          ],
          "hyperBridge": true
        },
        "remoteDevice": {
          "id": "xx",
          "type": "bridge",
          "serialNumber": "xx",
          "currentStatus": "online",
          "wifiInfo": {
            "mac": "B0:44:xxx",
            "rssi": -43
          }
        },
        "parametersToSet": {},
        "users": "**REDACTED**",
        "pubsubChannel": "**REDACTED**",
        "ruleHash": {},
        "cameras": [],
        "geofenceLimits": {
          "ios": {
            "debounceInterval": 90,
            "gpsAccuracyMultiplier": 2.5,
            "maximumGeofence": 5000,
            "minimumGeofence": 100,
            "minGPSAccuracyRequired": 80
          }
        },
        "accessSchedulesAllowed": true
      },
      "xx": {
        "LockName": "Front Door",
        "Type": 1002,
        "Created": "2023-12-09T16:03:43.903Z",
        "Updated": "2023-12-09T16:03:43.903Z",
        "LockID": "xx",
        "HouseID": "**REDACTED**",
        "HouseName": "My Home",
        "Calibrated": false,
        "timeZone": "Europe/London",
        "battery": 0.24288012634769984,
        "batteryInfo": {
          "level": 0.24288012634769984,
          "warningState": "lock_state_battery_warning_none",
          "infoUpdatedDate": "2024-09-04T17:48:41.000Z",
          "lastChangeDate": "2023-12-09T16:03:43.903Z",
          "lastChangeVoltage": 6200,
          "state": "Medium",
          "icon": "https://app-resources.aaecosystem.com/images/lock_battery_state_medium.png"
        },
        "hostLockInfo": {
          "productID": 2,
          "productTypeID": 26112,
          "manufacturer": "iRevo",
          "serialNumber": "Conexis"
        },
        "supportsEntryCodes": true,
        "remoteOperateSecret": "**REDACTED**",
        "skuNumber": "TEST200228",
        "macAddress": "98:1B:xxx",
        "SerialNumber": "xx",
        "LockStatus": {
          "status": "unknown",
          "dateTime": "2024-09-04T21:12:02.672Z",
          "isLockStatusChanged": false,
          "valid": true,
          "unknownReason": "unknown_error_during_connect",
          "doorState": "unknown"
        },
        "currentFirmwareVersion": "2.0.0-1.0.16",
        "keypad": {
          "_id": "xx",
          "serialNumber": "xx",
          "lockID": "xx",
          "currentFirmwareVersion": "2.27.0",
          "battery": {},
          "batteryLevel": "Medium",
          "batteryState": "Medium",
          "batteryRaw": 165
        },
        "homeKitEnabled": false,
        "zWaveEnabled": false,
        "isGalileo": false,
        "Bridge": {
          "_id": "xx",
          "mfgBridgeID": "xx",
          "deviceModel": "cancri",
          "firmwareVersion": "1.5.0",
          "operative": true,
          "status": {
            "current": "online",
            "lastOnline": "2024-09-04T21:12:01.594Z",
            "updated": "2024-09-04T21:12:01.594Z",
            "lastOffline": "2024-09-04T21:11:38.046Z"
          },
          "locks": [
            {
              "_id": "xx",
              "macAddress": "78:9C:8xxx",
              "LockID": "xx"
            },
            {
              "_id": "xx",
              "macAddress": "98:1B:xxx",
              "LockID": "xx"
            }
          ],
          "hyperBridge": true
        },
        "remoteDevice": {
          "id": "xx",
          "type": "bridge",
          "serialNumber": "xx",
          "currentStatus": "online",
          "wifiInfo": {
            "mac": "B0:44:9xxx",
            "rssi": -43
          }
        },
        "parametersToSet": {},
        "users": "**REDACTED**",
        "pubsubChannel": "**REDACTED**",
        "ruleHash": {},
        "cameras": [],
        "geofenceLimits": {
          "ios": {
            "debounceInterval": 90,
            "gpsAccuracyMultiplier": 2.5,
            "maximumGeofence": 5000,
            "minimumGeofence": 100,
            "minGPSAccuracyRequired": 80
          }
        },
        "accessSchedulesAllowed": true,
        "pins": "**REDACTED**"
      }
    },
    "doorbells": {},
    "brand": "yale_global"
  }
}

Thanks a lot for your work bdraco 🙏🥰

It looks like only the diagnostics came though, would you please post the debug logs as well

https://www.home-assistant.io/docs/configuration/troubleshooting/#debug-logs-and-diagnostics

Majestic7979 commented 1 month ago

Hi @bdraco, I enabled the debug logging two days ago:

image

image

image

When I click Download diagnostics the stuff I provided to you is all I get...

I disabled the debug logging and got a text file but it contains far too much sensitive info, could you be kind enough and let me know a private way to provide you this file directly rather than here? I promise not to spam you or request personal support, I just don't want to share with everyone.

Thank you.

Thank you.

bdraco commented 1 month ago

You can send it to my dropbox at nick@koston.org or my gdrive at bdraco@gmail.com

Majestic7979 commented 1 month ago

Sent :)

bdraco commented 1 month ago

I added a debounce in https://github.com/home-assistant/core/pull/125442 for when the websocket sends rapid updates to ensure it doesn't poll the activity API too often. Hopefully you won't be able to hit the rate limit anymore

Majestic7979 commented 1 month ago

I added a debounce in #125442 for when the websocket sends rapid updates to ensure it doesn't poll the activity API too often. Hopefully you won't be able to hit the rate limit anymore

Thanks @bdraco, so you think this may fix the constant blinking on the ConnectX bridge (another user opened this issue but I'm also having it), and will this hopefully stop the devices going unavailable and prevent them from not operating?

When should I update HA for this fix, an ETA would be highly appreciated, just for awareness.

Thanks again for supporting not just me but all of us who are using your integration 🙏

bdraco commented 1 month ago

Thanks @bdraco, so you think this may fix the constant blinking on the ConnectX bridge (another user opened this issue but I'm also having it), and will this hopefully stop the devices going unavailable and prevent them from not operating?

I don't think thats related as the only thing that causes the integration do anything with the bridge is the remoteoperate api, but you have to click lock/unlock for that to be accessed.

When should I update HA for this fix, an ETA would be highly appreciated, just for awareness.

Its scheduled for 2024.9.2 ~ 10 days (or sooner)

Majestic7979 commented 1 month ago

Alright I'll write an update when I get it to let you know how it all went. Enjoy your weekend 😁

Majestic7979 commented 2 days ago

@bdraco As promised I came back to say thank you! Installed the update and have been testing, it's working fine now, I really am grateful for your quick work on this. There is just one thing that happens, and I didn't want to open a new issue because you are probably extremely busy but in case you wanna take a look to "perfect" the integration further, it's just that when HA restarts (I have a daily restart routine to keep things running smoothly) the entity state of the locks won't show up until the locks are actually operated: image

So they stay at "Unknown" which causes issues in some of my automations. When I open the Yale Home app on my Android device and let the app poll the locks, then the status gets updated on HA and the locks show either Locked or Unlocked, I don't even need to touch the locks physically or press any button on the Yale Home app, just opening it and waiting for the circle to turn green or red according to the current lock state is enough to trigger a state update on HA. If you could fix this so it polls the Yale Home server and updates the locks upon restart of HA then the integration would be absolutely perfect!

bdraco commented 2 days ago

Please open a new issue as I’m traveling right now and I will forget otherwise.

will also need debug logs since it does poll the state at startup and it seems like the api is reporting stale state.

if it is the api reporting the state as unknown we could try waking the lock automatically but we would need to be very very careful not to hit rate limits if we do that

Majestic7979 commented 1 day ago

Please open a new issue as I’m traveling right now and I will forget otherwise.

will also need debug logs since it does poll the state at startup and it seems like the api is reporting stale state.

if it is the api reporting the state as unknown we could try waking the lock automatically but we would need to be very very careful not to hit rate limits if we do that

@bdraco No problem, I hope you enjoy your trip and again I wanna say there's no pressure from me here, I only wanted to bring it to your attention if you had any interest in making something great even better when you have the time :) I can live with opening the Android app every morning, but won't lie, it would be great if I didn't have to lol.

You're great at fixing this stuff so I know you'll come up with a solution, and of course I'll provide the logs, when you are ready. For now I'll step aside to let you travel in peace and open the issue, then when I hear back I'll start the process of log collection for you.

Have a nice week ahead :)