mgcrea / homebridge-tydom

Homebridge plugin to manage Tydom hardware by Delta Dore from Apple HomeKit.
63 stars 14 forks source link

Unable to use the plugin since a temperature sensor is failing #157

Open MaksOuw opened 2 months ago

MaksOuw commented 2 months ago

Hello,

I have a problem with the plugin : a temperature sensor is likely failing in my house, and since then, the plugin tells me this :

8/22/2024, 12:55:53 PM] AssertionError [ERR_ASSERTION]: Device with id="1521625864" not found in Tydom meta
    at new AssertionError (node:internal/assert/assertion_error:452:5)
    at assert (/var/lib/homebridge/node_modules/homebridge-tydom/src/utils/assert.ts:5:11)
    at getEndpointDetailsFromMeta (/var/lib/homebridge/node_modules/homebridge-tydom/src/helpers/tydom.ts:102:3)
    at /var/lib/homebridge/node_modules/homebridge-tydom/src/controller.ts:141:26
    at Array.forEach (<anonymous>)
    at Zc.scan (/var/lib/homebridge/node_modules/homebridge-tydom/src/controller.ts:138:15)
    at iu.didFinishLaunching (/var/lib/homebridge/node_modules/homebridge-tydom/src/platform.ts:65:5)
[8/22/2024, 12:55:53 PM] Got SIGTERM, shutting down Homebridge...

Related hardware

Delta Dore Tysense Thermo with a very low / dead battery

Expected behavior

I suppose the plugin should be able to ignore failing sensors and not crash the whole homebridge ?

Logs

See at the beginning of this issue

Dumps

{
            "hostname": "mediation.tydom.com",
            "username": "",
            "password": "",
            "debug": true,
            "platform": "Tydom",
            "excludedDevices": [
                "1521625864"
            ]
        }

I emptied username and password for obvious reasons I already tried to put the failing device in excludedDevices but with no success

Versions

Thanks !

MaksOuw commented 2 months ago

Quick update : I (hardly) removed the battery from the sensor and since then the plugin is functional and returns no error.

I think that the dead battery provoke this problem : it tries to access the temperature, the sensor is getting it and the battery dies, and so an error is triggered by the plugin.

I let you check this and potentially fix it, I'll change the battery (5€ vs 120€ the entire sensor, thanks planned obsolescence... they soldered the battery to the system, what a shitmove) and hope for the sensor to work for the next 10 years