Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] Aquara Temperatur / Humidity / Pressure sensor issue #18

Open
MrTomAsh opened this issue Mar 6, 2018 · 2 comments
Open

[SOLVED] Aquara Temperatur / Humidity / Pressure sensor issue #18

MrTomAsh opened this issue Mar 6, 2018 · 2 comments

Comments

@MrTomAsh
Copy link

MrTomAsh commented Mar 6, 2018

Hi,

there's an error in the code when you adding one of these bad boys.

Please change /kit/mijia/index.js from line 76 from this:

let humidityV1 = new HumidityV1(mijia);
  let temperatureV1 = new TemperatureV1(mijia);
  devices['weather.v1'] = {
    parseMsg: (json, rinfo) => {
      humidityV1.parseMsg(json, rinfo);
      temperatureV1.parseMsg(json, rinfo);
      PressureV1.parseMsg(json, rinfo);
    }
  }

to this:

let humidityV1 = new HumidityV1(mijia);
  let temperatureV1 = new TemperatureV1(mijia);
  let presureV1 = new PressureV1(mijia);
  devices['weather.v1'] = {
    parseMsg: (json, rinfo) => {
      humidityV1.parseMsg(json, rinfo);
      temperatureV1.parseMsg(json, rinfo);
      presureV1.parseMsg(json, rinfo);
    }
  }

Also, the line 58 in pressure.v1.js has to be commented as there's no AtmosphericPressureLevel characteristic in the HomeBridge (not supported by HomeKit at all atm).

Thanks!

@MrTomAsh
Copy link
Author

MrTomAsh commented Mar 8, 2018

You can find my updated version of this repository in here: https://github.com/MrTomAsh/homebridge-smarthome

@pax0707
Copy link

pax0707 commented Apr 21, 2018

@MrTomAsh Could you take a look at #13 ?
I have last_time error with your fork too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants