Git Product home page Git Product logo

Comments (15)

torifat avatar torifat commented on May 26, 2024

Can you please try the new version? The old one wasn't working properly with Homebrige 1.3.

from xiaomi-mi-air-purifier.

razvy94 avatar razvy94 commented on May 26, 2024

i try it and:

[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[Removed rest of the log because they don't provide any additional value. - Rifat]

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

Can you please share your version of Homebrige and homebridge-xiaomi-mi-air-purifier?

from xiaomi-mi-air-purifier.

razvy94 avatar razvy94 commented on May 26, 2024

homebridge-config-ui-x v4.41.2
homebridge-xiaomi-mi-air-purifier v2.0.0

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

Do you get a message like Connected to "Air Purifier" @ 192.168.XX.XXX! before these errors? It looks like your IP and Token is probably not working.

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

I will add a better error message. I just upgraded to the new version, and I still don't handle all errors cases properly.

from xiaomi-mi-air-purifier.

razvy94 avatar razvy94 commented on May 26, 2024

yes i get it, [18/11/2021, 16:12:23] [Air Purifier] Connected to "Air Purifier" @ 192.168.xx.xxx!

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

Is it possible for you to check your NodeJS version? I also use Xiaomi 3H and do not have this issue.

from xiaomi-mi-air-purifier.

razvy94 avatar razvy94 commented on May 26, 2024

Node.js Version | v14.18.1
Npm Version | v6.14.15

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

Do you get any other error before "[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info."?

It looks like the device is undefined for some reason and I can't reproduce it on my side :( I tried to use a wrong IP/Token but I don't get the same error. Sorry, I won't be able to help mich if I can't reproduce it :(

from xiaomi-mi-air-purifier.

razvy94 avatar razvy94 commented on May 26, 2024

no other errors just:

[18/11/2021, 16:49:54] [Air Purifier] Initializing XiaomiMiAirPurifier accessory...
[18/11/2021, 16:49:54] [Air Purifier] Air Purifier finished initializing!
18/11/2021, 16:49:56] [Air Purifier] Connected to "Air Purifier" @ 192.168.31.123!

[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[Removed rest of the log because they don't provide any additional value. - Rifat]

from xiaomi-mi-air-purifier.

boomchatchat avatar boomchatchat commented on May 26, 2024

i have a same issue, too.

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

@boomchatchat you don't have the same issue. Your errors are different.

from xiaomi-mi-air-purifier.

ZenitES avatar ZenitES commented on May 26, 2024

Hello,
I also have this problem, but with a Mi Air Purifier 2H.

Homebridge v1.3.8
Node.js v16.13.0
Npm v8.1.0

i get message
[25/11/2021, 17:24:25] Loaded plugin: [email protected]
[25/11/2021, 17:24:25] Registering accessory 'homebridge-xiaomi-mi-air-purifier.XiaomiMiAirPurifier'
[25/11/2021, 17:24:25] ---
[25/11/2021, 17:24:25] [Air Purifier] Initializing XiaomiMiAirPurifier accessory...
[25/11/2021, 17:24:25] [Air Purifier] Air Purifier finished initializing!
[25/11/2021, 17:24:25] [Air Purifier] Connected to "Air Purifier" @ 192.168.xxx.xxx!

then i get errors:

[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Target Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.mode is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Air Quality': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'PM2.5 Density': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: device.filterLifeLevel is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: device.filterLifeLevel is not a function. See https://git.io/JtMGR for more info.

from xiaomi-mi-air-purifier.

bidulle95 avatar bidulle95 commented on May 26, 2024

same issue

from xiaomi-mi-air-purifier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.