-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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 a "Calibrate" Button for Shelly Cover Entities #114632
Comments
Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) shelly documentation |
I already figured that I just need to add a button to the "BUTTONS" list in homeassistant/components/shelly/button.py |
My assumption is that I need to do something like this (pseudo-code) for execution:
|
My guess for the button is:
|
We could define a method calibrate_cover(self) -> None and is_cover_calibration_supported(self) -> bool and use coordinator.is_cover_calibration_supported() for supported lambda expression and |
This is a pretty good idea for a new feature. A few comments from me:
Since you have started to analyze this feature and I assume that you have devices on which you can test it, I encourage you to open a pull request with this change. |
I currently only have Gen1 Devices. I'm using a shelly 2.5. But sure, I could test this at least with the Gen1 Device. |
I currently only have Gen1 Devices. I'm using a shelly 2.5. But sure, I could test this at least with the Gen1 Device. But since not having Gen2 / Gen3 devices I'm unable to test any implementation against it. |
The problem
From time to time covers may need to be recalibrated.
Thus it would be nice to have a configuration button entity alongside the cover entity itself.
This is only required if the Shelly device has type "roller" and supports positioning.
In this case it would be nice to have a button which triggers Sheely Cover.Calibrate
What version of Home Assistant Core has the issue?
2024.3.3
What was the last working version of Home Assistant Core?
2024.3.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Shelly
Link to integration documentation on our website
https://www.home-assistant.io/integrations/shelly/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: