hannseman / homebridge-mi-hygrothermograph

Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
MIT License
266 stars 52 forks source link

Peripheral Discovered but no event and not responding in Home App #134

Closed SimBro2708 closed 3 years ago

SimBro2708 commented 3 years ago

I did the steps as shown in the post. I used the Telink website to get the bindKey. The only step which didn´t work was setting the permissions "setcap cap_net_raw+eip $(eval readlink -f which node)" which gave me the error "unable to set CAP_SETFCAP effective capability: Operation not permitted". I googled this topic but couldn´t find anything helpfull. I´m assuming that it´s seeing the sensor but thinks that there is nothing to read? I reinstalled the Plugin a few times, tested it which other sensors but I just won´t work.

### Versions Homebridge Version 1.2.5

### mi-hygrothermograph Version homebridge-mi-hygrothermograph@3.0.3

### Node Version 14.15.4

###iOS Version 14.4

### Configuration { "name": "TemperatureHumidity", "temperatureName": "Temperature", "humidityName": "Humidity", "fakeGatoEnabled": false, "timeout": 15, "forceDiscovering": false, "disableBatteryLevel": false, "lowBattery": 10, "temperatureOffset": 0, "humidityOffset": 0, "bindKey": "e95d21eb1ce4a370dac96ed2a1551508", "accessory": "Hygrotermograph" }

Homebridge Log

[04/02/2021, 17:54:09] [TemperatureHumidity] [a4:c1:38:11:a6:46] Discovered peripheral Id: a4c13811a646 LocalName: LYWSD03MMC rssi: -37 serviceData: 30585b050c46a61138c1a408 [04/02/2021, 17:54:09] [TemperatureHumidity] No event

hannseman commented 3 years ago

You need to run setcap with sudo.

sbmueller commented 1 year ago

I don't have a node executable in PATH, is there a specific location Homebridge installs it into?

Edit: it is in /opt/homebridge/bin/node.