snOOrz / homebridge-aqara

HomeBridge plugin for Aqara gateway and devices
539 stars 74 forks source link

Lost the ability to read temperature #27

Open jul9000 opened 7 years ago

jul9000 commented 7 years ago

Hi,

I was successfully using HomeBridge with both yeelight and aqara plugins. I had no issues at all until today, when I've decided to change the location of my Xiaomi Temperature and Humidity Sensor. I also wanted to clear the temperature history within the Xiaomi Home app, so I decided to remove the device there. After doing this, I have paired it again. Unfortunately in the iOS Home app the sensor doesn't show the temperature anymore! The weird thing is that the humidity is still there, but the temperature "box" says "No answer".

I have already recreated the whole homebridge setup:

  1. removed all the files in /accessories
  2. removed all the files in /persist
  3. changed the name of the bridge in config.json The sensor showed up, shows humidity without problems, but not the temperature.

Another weird thing, is that the Xiaomi Home app shows both the humidity and temperature just fine (so the sensor itself isn't damaged).

What's wrong? Can you help me?

snOOrz commented 7 years ago

You can remove homebridge from iOS Home app, and add it again.

On 2017年1月6日 +0800 04:35, jul9000 notifications@github.com, wrote:

Hi,

I was successfully using HomeBridge with both yeelight and aqara plugins. I had no issues at all until today, when I've decided to change the location of my Xiaomi Temperature and Humidity Sensor. I also wanted to clear the temperature history within the Xiaomi Home app, so I decided to remove the device there. After doing this, I have paired it again. Unfortunately in the iOS Home app the sensor doesn't show the temperature anymore! The weird thing is that the humidity is still there, but the temperature "box" says "No connection".

I have already recreated the whole homebridge setup:

  1. removed all the files in /accessories
  2. removed all the files in /persist
  3. changed the name of the bridge in config.json The sensor showed up, shows humidity without problems, but not the temperature.

Another weird thing, is that the Xiaomi Home app shows both the humidity and temperature just fine (so the sensor itself isn't damaged).

What's wrong? Can you help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/27, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2Ya7JZ-5d40Rzv8rHfmESqSXp1NfKks5rPVQPgaJpZM4LcGYg.

jul9000 commented 7 years ago

I've already tried that multiple times, unfortunately without success:

What else can I try? Is there a way to access some kind of logs? I've tried to run "homebridge -D", but nothing really happens...

tru2dagame commented 7 years ago

I got two Temperature and Humidity Sensor. Always got issue with one temperature information. And the other one works well.

jul9000 commented 7 years ago

Worst thing is that I had it working just fine, but suddenly it stopped working.

I've also tried to unpair and pair again the sensor with the gateway, using the Xiaomi Home app. The readings shows up just fine there, only the Apple Home app can't get the temperature. I have to say, it's frustrating ;)

It looks like homebridge is able to connect, but doesn't get the correct reading:

snOOrz commented 7 years ago

I have no idea. As long as the device works in Mijia app, it should work in homebridge too.

On 2017年1月6日 +0800 18:27, jul9000 notifications@github.com, wrote:

Worst thing is that I had it working just fine, but suddenly it stopped working.

I've also tried to unpair and pair again the sensor with the gateway, using the Xiaomi Home app. The readings shows up just fine there, only the Apple Home app can't get the temperature. I have to say, it's frustrating ;)

It looks like homebridge is able to connect, but doesn't get the correct reading:

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/27#issuecomment-270875208, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YdH2ngjuXnEL5voJ-9jU2z3TG74Oks5rPhbdgaJpZM4LcGYg.

jul9000 commented 7 years ago

Is it possible that negative readings causes this issue? It's quite cold right now in Poland (-12C). I've seen some reports of similar problems in other homebridge plugins.

EDIT: nope, moved the sensor inside, still the same :(

marcotini commented 7 years ago

You are not alone, also my temperature sensor doesn't working... just the humidity.

jul9000 commented 7 years ago

Yep, you can't rely on them too much. Mine was suddenly showing readings yesterday for a couple of hours, then disappeared and reappeared today... I'm wondering what's causing this? Isn't there any way to debug?

Thankfully, communication between the gateway and the Xiaomi app works fine, so all the automation can be handled there :)

tru2dagame commented 7 years ago

After missing for one day. It's now back to be normal for two days. I didn't do any changes.

Best Regards, Tru

在 2017年1月6日,下午6:26,jul9000 notifications@github.com 写道:

Worst thing is that I had it working just fine, but suddenly it stopped working.

I've also tried to unpair and pair again the sensor with the gateway, using the Xiaomi Home app. The readings shows up just fine there, only the Apple Home app can't get the temperature. I have to say, it's frustrating ;)

It looks like homebridge is able to connect, but doesn't get the correct reading:

when homebridge is running the sensor status says: "no answer" but when homebridge isn't running the sensor status says: "unavailable" — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

marcotini commented 7 years ago

Even to me now it's magically work (the only thing I did is unplug and replug the gateway).

marcotini commented 7 years ago

I found the solution: you need to deselect the option of status (so you don't see the temperature in homepage but just in the right room where the sensor is place).

jul9000 commented 7 years ago

Unfortunately, I cannot confirm this solution.