Git Product home page Git Product logo

Comments (10)

guesq avatar guesq commented on May 26, 2024 1

@Dane03 @guesq seems like you folks are having a different problem. So I will create a separate issue for this. In the worse case, I can automatically disable filter_life and child_lock for 2H and Pro H.

@guesq did you try to turn them off in settings before commenting out the code? Screen Shot 2021-11-21 at 4 36 12 pm

@torifat Thanks for your reply.
I'm using Xiaomi Air Purifier 2H. This is my settings:
Mi-Air-Purifier-Settings
I did not turn Child Lock on and only got the errors about Filter Life Level and Filter Change Indication. So I just commented out the lines with filter_life property. I also tested turning on Child Lock and got the errors about Lock Physical Controls.

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

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

from xiaomi-mi-air-purifier.

Csehla avatar Csehla commented on May 26, 2024

I got the error like this: How to fix it?

[11/18/2021, 11:12:58 PM] [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]

I have the same problem!

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

@Csehla your issue is similar to #223

from xiaomi-mi-air-purifier.

Dane03 avatar Dane03 commented on May 26, 2024

@torifat Thanks for your effort here.
I am constantly getting errors like

20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Lock Physical Controls': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.
[20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.
[20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.

Version is homebridge-xiaomi-mi-air-purifier v2.0.0
NPM 8.1.4
Node 16.13

Using Xiaomi Air Purifier 2h and Pro H

from xiaomi-mi-air-purifier.

guesq avatar guesq commented on May 26, 2024

@torifat Thanks for your effort here. I am constantly getting errors like

20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Lock Physical Controls': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info. [20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info. [20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.

Version is homebridge-xiaomi-mi-air-purifier v2.0.0 NPM 8.1.4 Node 16.13

Using Xiaomi Air Purifier 2h and Pro H

Same here.
I find the values of property filter_life and child_lock are undefined.

return device.property('filter_life').value;

return device.property('filter_life').value <= options.filterChangeThreshold

So I comment these lines out for now, then return some determined values and these errors are gone. There might be something wrong with getting these properties values.

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

@Dane03 @guesq seems like you folks are having a different problem. So I will create a separate issue for this. In the worse case, I can automatically disable filter_life and child_lock for 2H and Pro H.

@guesq did you try to turn them off in settings before commenting out the code?
Screen Shot 2021-11-21 at 4 36 12 pm

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

@guesq Ah! thank you. My bad! It's filter_life and not Air Quality. Also, thanks for confirming that the setting works for Child Lock.

from xiaomi-mi-air-purifier.

luluhoc avatar luluhoc commented on May 26, 2024

#233

made a pull request fixing this bug

from xiaomi-mi-air-purifier.

torifat avatar torifat commented on May 26, 2024

Closing this in favour of #229

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.