You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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:
to this:
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!
The text was updated successfully, but these errors were encountered: