Comments (3)
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)
- Generate Home Assistant events for Vantage Button presses
- Add state support for for shades/blinds HOT 2
- Add sensible linting rules, add linting to GitHub Actions
- LVRS8-DIN device not being reported HOT 1
- Generate Home Assistant events when a Vantage Task is started/stopped
- Add support for PowerProfiles HOT 1
- Linters and devcontainers HOT 8
- Client does not reconnect after login failure
- Vantage IC-DIN-II Infusion Controller II init error HOT 4
- Expose Vantage Tasks to Home Assistant
- Expose LightSensor and AnemoSensor as sensors in Home Assistant HOT 1
- [MDR8RW101] load type brought into HA as a Light but should be a Switch HOT 4
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 home-assistant-vantage.