hannseman / homebridge-mi-hygrothermograph

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

LYWSDCGQ01ZM Zero values #120

Closed repochris closed 3 years ago

repochris commented 3 years ago

Expected Behavior

Screenshot 2020-11-10 124210

Current Behavior

Steps to Reproduce (for bugs)

Versions

Configuration

{
    "bridge": {
        "name": "Homebridge C872",
        "username": "0E:C9:23:BB:C8:72",
        "port": 51270,
        "pin": "436-21-760"
    },
    "accessories": [
        {
            "name": "Temperature & Humidity",
            "temperatureName": "Temperature",
            "humidityName": "Humidity",
            "fakeGatoEnabled": false,
            "timeout": 15,
            "forceDiscovering": true,
            "forceDiscoveringDelay": 2500,
            "disableBatteryLevel": false,
            "lowBattery": 10,
            "temperatureOffset": 0,
            "humidityOffset": 0,
            "accessory": "Hygrotermograph"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        }
    ]
}

Homebridge Log / Command Output

[10/11/2020, 12:22:22] [HB Supervisor] Restarting Homebridge...
[10/11/2020, 12:22:22] [HB Supervisor] Starting Homebridge with extra flags: -I -D
[10/11/2020, 12:22:22] [HB Supervisor] Started Homebridge v1.1.6 with PID: 3839
[10/11/2020, 12:22:23] Loaded config.json with 1 accessories and 1 platforms.
[10/11/2020, 12:22:23] ---
[10/11/2020, 12:22:25] Loaded plugin: homebridge-config-ui-x@4.32.0
[10/11/2020, 12:22:25] Registering platform 'homebridge-config-ui-x.config'
[10/11/2020, 12:22:25] ---
[10/11/2020, 12:22:25] Loaded plugin: homebridge-mi-hygrothermograph@3.0.2
[10/11/2020, 12:22:28] Registering accessory 'homebridge-mi-hygrothermograph.Hygrotermograph'
[10/11/2020, 12:22:28] ---
[10/11/2020, 12:22:28] Loading 1 platforms...
[10/11/2020, 12:22:28] [Config] Initializing config platform...
[10/11/2020, 12:22:28] [Config] Running in Service Mode
[10/11/2020, 12:22:28] Loading 1 accessories...
[10/11/2020, 12:22:28] [Temperature & Humidity] Initializing Hygrotermograph accessory...
[10/11/2020, 12:22:28] [Temperature & Humidity] address option is not set. When running multiple sensors this will cause interference. See README for instructions.
[10/11/2020, 12:22:28] [Temperature & Humidity] Initialized accessory
Setup Payload:
X-HM://00246WIV4DMH5
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 436-21-760 │     
    └────────────┘     

[10/11/2020, 12:22:29] Homebridge is running on port 51270.
[10/11/2020, 12:22:29] [Temperature & Humidity] Start scanning.
[10/11/2020, 12:22:29] [Temperature & Humidity] Started scanning.
hannseman commented 3 years ago

Have you tried moving the sensor close to the raspberry pi to rule out any range issues?

repochris commented 3 years ago

Hi, the devices are next to each other (15cm) and it appears to be correctly detected as it can read device information.

vovkaprigarin commented 3 years ago

Same issue.. ;( Did you find solution?

4rsh-010 commented 3 years ago

It worked, but since today i get the same issue/notification.

MontroseSt commented 3 years ago

Same issue on macOS . On reddit it was recommended to try to run sudo setcap cap_net_raw+eip $(eval readlink -f which node) However, I can't run setcap in terminal.

dmittov commented 3 years ago

Thank you, it helped. I opened Terminal in Homebridge UI and executed the following commands:

/homebridge # which node
/usr/local/bin/node
/homebridge # sudo setcap cap_net_raw+eip $(eval readlink -f /usr/local/bin/node)
/homebridge #

and restarted the Homebridge.