Skip to content
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

Output MOTOR #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Output MOTOR #100

wants to merge 2 commits into from

Conversation

rzulian
Copy link
Contributor

@rzulian rzulian commented May 15, 2024

support outtup_type MOTOR
add output states

rzulian added 2 commits May 15, 2024 16:12
fixed is_dimmable
create Motor(output)
@@ -803,6 +815,34 @@ def stop(self):
self._lutron.send(Lutron.OP_EXECUTE, Output._CMD_TYPE, self._integration_id,
Output._ACTION_STOP)

class Motor(Output):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't support simple raise/lower.

My suggestion is to make this inherit from Shade, and move the enums out of Output into this class

Copy link
Contributor Author

@rzulian rzulian May 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot understand why this won't support raise/lower. Can you elaborate on this?
Regarding inherriting from Shade. I think this is wrong, as this is a Motor entity, which is different from a Lutron Shade, even though we will use the motor as a shade In HA.

@cdheiser
Copy link
Collaborator

cdheiser commented May 27, 2024 via email

@rzulian
Copy link
Contributor Author

rzulian commented May 30, 2024

Ok... you've duplicated an implementation. So now we have both the shade and motor, implementing the same functionality, with different method names. Functionally speaking, a motor is a shade with additional controls. I'd like to remove the duplication of methods/implementation here. Not all outputs support start/stop raise/lower which is why they were implemented in the shade class.

QS Sivoia shades have additional controls (eg. tilt and lift) that are not currently implemented and that are not possible with a motor, at the same time motor is implementing jog raise, which is not in the shades.

Do you want to differentiate the different types in HA?

@cdheiser
Copy link
Collaborator

cdheiser commented May 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants