question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Current Situation

Hello, i have endless restart on my homebridge. Can you help me?

Logs

[08/09/2022, 13:51:19] [miot] [1c cleaner] Successfully created a RobotCleaner device! It is a Xiaomi Mijia 1C Sweeping Vacuum Cleaner.
[08/09/2022, 13:51:19] [miot] [1c cleaner] Initializing accessory!
[08/09/2022, 13:51:20] [miot] [1c cleaner] Accessory successfully initialized!
[08/09/2022, 13:51:20] [miot] [1c cleaner] Registering 1 accessories!
[08/09/2022, 13:51:20] [miot] [1c cleaner] Everything looks good! Initiating property polling!
[08/09/2022, 13:51:30] [G-On Alice] ERROR: HAP Discovery failed, please review config
[08/09/2022, 13:51:34] [Multipurpose Kettle] No kettle was found...
[08/09/2022, 13:51:34] [Multipurpose Kettle] No kettle was found...
[08/09/2022, 13:51:34] [homebridge-smartmi-humidifier] This plugin slows down Homebridge. The read handler for the characteristic 'Rotation Speed' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:34] [homebridge-smartmi-humidifier] This plugin slows down Homebridge. The read handler for the characteristic 'Relative Humidity Humidifier Threshold' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:34] [homebridge-smartmi-humidifier] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:38] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:38] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:38] [miot] [1c cleaner] Device found: dreame.vacuum.mc1808
[08/09/2022, 13:51:38] [miot] [1c cleaner] Setting up miot device!
[08/09/2022, 13:51:38] [miot] [1c cleaner] Device setup finished! Miot device ready!
[08/09/2022, 13:51:38] [miot] [1c cleaner] Connected to device: dreame.vacuum.mc1808
[08/09/2022, 13:51:38] [miot] [1c cleaner] Doing initial property fetch.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Main brush left time: 126 hours.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Main brush life level: 42%.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Filter life level: 20%.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Total clean time: 15552 hours.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Total cleaned: 482 times.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Total clean area: 11907 m2.
[08/09/2022, 13:51:39] [miot] [1c cleaner] Starting property polling.
[08/09/2022, 13:51:39] [Multipurpose Kettle] No kettle was found...
[08/09/2022, 13:51:39] [Multipurpose Kettle] No kettle was found...
[08/09/2022, 13:51:43] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:43] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:44] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:44] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:54] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:54] [homebridge-multipurpose-kettle] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[08/09/2022, 13:51:59] [Multipurpose Kettle] No kettle was found...
[08/09/2022, 13:51:59] [Multipurpose Kettle] No kettle was found...
[08/09/2022, 13:52:06] TypeError: Cannot read properties of null (reading 'setNoDelay')
    at HAPConnection.handleHttpServerRequest (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:634:25)
    at Server.emit (node:events:513:28)
    at parserOnIncoming (node:_http_server:980:12)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
[08/09/2022, 13:52:06] Got SIGTERM, shutting down Homebridge...
[08/09/2022, 13:52:11] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[08/09/2022, 13:52:16] [HB Supervisor] Restarting Homebridge...

Configuration

{
    "bridge": {
        "port": ,
        "pin": "",
        "name": "",
        "username": ""
    },
    "platforms": [
        {
            "platform": "BroadlinkRM",
            "name": "Broadlink RM",
            "hosts": [
                {
                    "address": "192.168.1.38",
                    "mac": "ec:0b:ae:9e:a3:09",
                    "isRM4": true
                }
            ],
            "accessories": [
                {
                    "name": "AC Swing",
                    "type": "switch",
                    "data": {
                        "on": "
                    },
                    "_bridge": {
                        "username": "0E:83:FD:29:58:C9",
                        "port": 55197
                    }
                },
                {
                    "name": "Living Room Thermometer",
                    "type": "temperatureSensor",
                    "noHumidity": true,
                    "_bridge": {
                        "username": "0E:83:FD:29:58:C9"
                    }
                },
                {
                    "name": "Living Room Humidity Sensor",
                    "type": "humiditySensor",
                    "_bridge": {
                        "username": "0E:83:FD:29:58:C9"
                    }
                },
                {
                    "name": "Hisense",
                    "type": "heater-cooler",
                    "noHumidity": true,
                    "_bridge": {
                        "username": "0E:83:FD:29:58:C9"
                    },
                    "defaultNowTemperature": 25,
                    "minTemperature": 16,
                    "maxTemperature": 23,
                    "coolingThresholdTemperature": 18,
                    "temperatureUnits": "C",
                    "fanStepSize": 25,
                    "tempStepSize": 1,
                    "data": {
                        "cool": {
                     
                                    }
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "auth": "form",
            "theme": "blue-grey",
            "lang": "auto",
            "port": 8581,
            "platform": "config",
            "tempUnits": "c",
            "name": "Config"
        },
        {
            "name": "Yeelighter",
            "timeout": 5000,
            "interval": 60000,
            "ctforcolor": true,
            "blocking": true,
            "split": false,
            "override": [
                {
                    "offOnDisconnect": true
                }
            ],
            "platform": "Yeelighter"
        },
        {
            "name": "G-On Alice",
            "username": "",
            "password": "",
            "pin": "",
            "debug": false,
            "platform": "G-On Alice"
        },
        {
            "devices": [
                {
                    "name": "1c cleaner",
                    "ip": "192.168.1.52",
                    "token": "",
                    "pollingInterval": 7,
                    "deepDebugLog": false,
                    "micloud": {
                        "timeout": 5000
                    },
                    "buzzerControl": true,
                    "ledControl": true,
                    "modeControl": false,
                    "mopModeControl": false,
                    "dndControl": false,
                    "showTemperature": true
                }
            ],
            "platform": "miot"
        }
    ],
    "accessories": [
        {
            "showTemperatureDisable": false,
            "ip": "192.168.1.58",
            "updateTimer": 300,
            "token": "",
            "model": "ca1",
            "name": "Увлажнитель",
            "accessory": "MiHumidifier"
        },
        {
            "name": "Xiaomi BLE Temperature sensor",
            "address": "A4:C1:38:29:4C:CB",
            "temperatureName": "Температура BLE Детская",
            "humidityName": "Влажность BLE Детская",
            "fakeGatoEnabled": true,
            "timeout": 15,
            "forceDiscovering": true,
            "forceDiscoveringDelay": 2500,
            "disableBatteryLevel": false,
            "lowBattery": 10,
            "temperatureOffset": 0,
            "humidityOffset": 0,
            "bindKey": "",
            "accessory": "Hygrotermograph"
        },
        {
            "name": "Xiaomi BLE Temperature clock",
            "address": "E7:2E:00:E0:C0:6F",
            "temperatureName": "Температура BLE Гостиная",
            "humidityName": "Влажность BLE Гостиная",
            "timeout": 15,
            "accessory": "Hygrotermograph"
        },
        {
            "name": "Multipurpose Kettle",
            "mode": "switch",
            "ip": "192.168.1.47",
            "token": "",
            "switchMode": null,
            "thermostatMode": null,
            "heat": 95,
            "sound": false,
            "temperature": true,
            "sensor": false,
            "interval": 5,
            "accessory": "MiMultipurposeKettle"
        }
    ]
}

Environment

  • OS: Raspbian GNU/Linux Buster (10)
  • Software: Homebridge v1.5.0
  • Node: v16.17.0
  • npm 8.15.0

Process Supervisor

hb-service

Additional Context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Superegcommented, Sep 17, 2022

I removed the line of code making issues (reasoning explained in the referenced PR https://github.com/homebridge/HAP-NodeJS/pull/968). Will push a homebridge beta update containing the fix soon.

1reaction
jorgemsccccommented, Sep 8, 2022

Looking at the section of code around the exception, it is in the request handler for HomeKit messages from iDevices etc.

Is your setup unusual or have odd networking?

i have “reverse” homekit to other service

So now i made child bridge for kettle plugin, restart HB and disable “reverse” homekit server. HB start successfully. While watching, I hope there will be no errors

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Reboot? - Computer Hope
1. A reboot is restarting a working computer using hardware (e.g., a power button) instead of software. Rebooting is sometimes necessary after ...
Read more >
How to Reboot a Computer System
Click the Windows "Start" button. Click the small arrow next to "Shut down" and select "Restart" to reboot your computer immediately.
Read more >
What is Reboot? - Definition from Techopedia
Reboot is the process of closing and starting a computer or its operating system from the initial boot loading sequence. This process reloads...
Read more >
Restart (reboot) your PC - Microsoft Support
Restart (reboot) your PC. Windows 10 More...Less. Go to Start , select the Power button, and then select Restart. Facebook · LinkedIn ·...
Read more >
How To Reboot Your Computer (Windows, Mac & Linux)
To reboot your computer means to restart it by closing out open programs, wiping any current processes residing in RAM, and restarting the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found