Giter Site home page Giter Site logo

Comments (3)

loopj avatar loopj commented on June 11, 2024

Hey @ddetton thanks for the feedback!

This is something I considered when initially writing the integration, and it looks like it is about 50/50 on if lighting integrations default to 100% or default to the last known state - there seems to be no convention or recommendation from HA.

One quirk of defaulting to the last known state, is that I couldn't find any exposed Vantage command interface for "turn on to last level". You must always specify a load level, eg LOAD 118 100.0.

One way around this would be to always track the last known level in memory in Home Assistant, but this would mean when restarting Home Assistant (eg. for an upgrade) we would lose these cached levels. Given the complexity of tracking/storing the cached levels, I opted to have "turn on" commands default to 100%.

I'm open to alternative approaches here, as I may have missed something!

from home-assistant-vantage.

Related Issues (13)

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.