planetk / homebridge-netatmo

This is a homebridge plugin for several netatmo devices
Apache License 2.0
108 stars 24 forks source link

rain sensor problem #5

Closed fildy closed 8 years ago

fildy commented 8 years ago

my rain sensor in homkit only show loading of the battery level. not the rain level. how to fix it?

planetk commented 8 years ago

Hi,

sorry for the late reply, quite busy days ... Could you provide some more data? For eaxample the result of an API call?

fildy commented 8 years ago

Hi, no problem. How I can get the result of API call? Sorry, but I'm not programmer

gismo141 commented 8 years ago

I have the exact same problem - how could I provide the needed information?

planetk commented 8 years ago

Hi everybody,

sorry for giving no response for that long time. This one is a little hard to find.

Possibly the issue is in the client you use. Sometimes some values are hidden.

I'm using Elgato Eve. In settings -> Typen (in german, might be types or characteristics) -> There is a list of visible characteristics and of some hidden characteristics.

I hope the helps.

Kind regards

planetk commented 8 years ago

Considering this as solved. Please reopen if not.

PeteLawrence commented 8 years ago

I have the same problem, I believe the issue is due to the fact there is no 'battery_percent' key in the API response.

batteryLevel: function (callback) {
    this.getData(function (deviceData) {
      callback(null, deviceData.battery_percent);
    }.bind(this));
  },