Git Product home page Git Product logo

Comments (2)

Kane610 avatar Kane610 commented on June 23, 2024

Hello! I can have a look but I'm right now busy with other stuff. As the release schedule for home assistant has been adapted to cover Christmas vacations this will not be available prior to the 2022.2 release.

Please clarify your use cases for the different attributes as that will help when adding support for them on hass side.

from aiounifi.

kjake avatar kjake commented on June 23, 2024

Thanks for the consideration! If I understood how to develop for Home Assistant better, I definitely would have proposed this through a PR instead of an issue - as that would have allowed me to prove its worth as well, but, while I can overload the unifi integration via custom_components, I'm not sure how to deal with overriding aiounifi.

Anyway, my very specific use case is that I'd like to turn on/off a light at my desk based on whether I'm at the desk. I don't have any gadgets to detect vibration of my desk to trigger this, so I started looking at whether the UniFi controller considers my laptop to be 'away' in Home Assistant if it is in Sleep - and it turn out that it does not, but, it does enter Powersave mode, and I observed that powersave_enabled changes state for my laptop client based on whether it is in Sleep, or not; therefore, I could have Home Assistant turn on/off the light at my desk based on the powersave_enabled state of my laptop client.

Thanks!

from aiounifi.

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.