New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add height sensor to Idasen Desk integration #103324
Conversation
Co-authored-by: J. Nick Koston <nick@koston.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link a changelog/release notes or something when bumping the dependency in the PR description
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
@abmantis It looks like this is good to go once there is a docs PR linked |
Needs rebase to resolve conflicts and a doc PR needs to be made. |
Docs PR added and conflicts resolved. |
async def async_added_to_hass(self) -> None: | ||
"""When entity is added to hass.""" | ||
await super().async_added_to_hass() | ||
self._handle_coordinator_update() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will make an extra state update besides the default state update at the end of entity addition. We should separate the native value attribute update from the state update if we need to update the native value here.
Proposed change
This exposes the height in meters from the desk. This is more granular than the
percentage offered by the cover platform, allowing the user to detect even small
desk changes from the physical controller.
One use case mentioned in abmantis/idasen-ha#14
is being able to use a double press on the physical controller to trigger an automation
on Home Assistant, like moving the desk to a pre-defined position.
idasen-ha lib update changelog: abmantis/idasen-ha@2.3...2.4
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: