hannseman / homebridge-mi-hygrothermograph

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

Only the first device has config-ui-x settings #122

Closed NewsGuyTor closed 3 years ago

NewsGuyTor commented 3 years ago

This isn't really the biggest issue (since changing the config.json manually is so easy), but I just noticed that the settings for only the first Hygrothermograph listed in config.json is accessible through the Homebridge Config UI settings.

ethempekin commented 3 years ago

I have some difficulty in understanding to modify the config.json for accomodating more than more devices. can you share it here?

NewsGuyTor commented 3 years ago
        {
            "name": "Thermometer-Kitchen",
            "address": "28:2A:34:30:21:8D",
            "temperatureName": "Temperature",
            "humidityName": "Humidity",
            "fakeGatoEnabled": true,
            "timeout": 15,
            "forceDiscovering": true,
            "forceDiscoveringDelay": 2500,
            "disableBatteryLevel": false,
            "lowBattery": 10,
            "temperatureOffset": 0,
            "humidityOffset": 0,
            "accessory": "Hygrotermograph"
        },
        {
            "name": "Thermometer-Outside",
            "address": "58:2D:34:31:21:7B",
            "temperatureName": "Temperature",
            "humidityName": "Humidity",
            "fakeGatoEnabled": true,
            "timeout": 60,
            "forceDiscovering": true,
            "forceDiscoveringDelay": 2000,
            "disableBatteryLevel": false,
            "lowBattery": 10,
            "temperatureOffset": 0,
            "humidityOffset": 0,
            "accessory": "Hygrotermograph"
        }
hannseman commented 3 years ago

Just released a new version where it should be possible to configure multiple devices in config-ui-x, let me know if it works. Thanks!

ethempekin commented 3 years ago

Super thanks for the update. Also for @NewsGuyTor for the config. Running two sensors now but struggling with timing out of one. While I have good coverage of wifi (via airport express to extend wifi) in the attic sensor is not working reliable. RPi where homebridge is running is down 2 floors in the ground floor.

hannseman commented 3 years ago

@ethempekin these sensors do not rely on wifi but Bluetooth. I've had range issues myself caused by too thick concrete walls. Bluetooth range is unfortunately quite limited. One solution is to use another raspberry pi with homebridge on the floor that you've got issues with. Good luck!

ethempekin commented 3 years ago

Makes sense. Thanks.

Sent from my iPhone

On 27 Nov 2020, at 23:28, Hannes Ljungberg notifications@github.com wrote:

 @ethempekin these sensors do not rely on wifi but Bluetooth. I've had range issues myself caused by too thick concrete walls. Bluetooth range is unfortunately quite limited. One solution is to use another raspberry pi with homebridge on the floor that you've got issues with. Good luck!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.