Comments (15)
Can you please try the new version? The old one wasn't working properly with Homebrige 1.3.
from xiaomi-mi-air-purifier.
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.
Can you please share your version of Homebrige and homebridge-xiaomi-mi-air-purifier
?
from xiaomi-mi-air-purifier.
homebridge-config-ui-x v4.41.2
homebridge-xiaomi-mi-air-purifier v2.0.0
from xiaomi-mi-air-purifier.
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.
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.
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.
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.
Node.js Version | v14.18.1
Npm Version | v6.14.15
from xiaomi-mi-air-purifier.
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.
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.
i have a same issue, too.
from xiaomi-mi-air-purifier.
@boomchatchat you don't have the same issue. Your errors are different.
from xiaomi-mi-air-purifier.
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.
same issue
from xiaomi-mi-air-purifier.
Related Issues (20)
- Issue with parental lock in homekit
- No Support for XIAOMI Smart Air Purifier 4 Pro HOT 7
- Mi Air Purifier 3H does not respond anymore
- Add device support for zhimi.airpurifier.v7
- 2s not able to change speed and always set to Auto when switch on
- Plugin not working anymore HOT 5
- Mi Air Purifier MAX2 does not connect
- Deprecation of device.changeFanSpeed HOT 3
- Ability to configure air quality ranges HOT 1
- Device not responding in Homekit
- Unresponsive 4 lite ……, I hope you fix the error as soon as possible thank you
- Mi 3H
- Impossible to control my Mi Air Purifier 2S
- The plugin not working at all
- Is this abandoned? HOT 1
- Mi air purifier 3C HOT 1
- Disable switches (silent, etc)
- Update to support new models HOT 2
- Logs say that "this plugin slows down Homebridge... Please check that you properly call the callback!" HOT 3
- Since update last month the Ai Purifier Pro switches to Auto by itself after some time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xiaomi-mi-air-purifier.