-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dimming sensor #99
Dimming sensor #99
Conversation
if output.get("pairingID") == Pairing.AL_RELATIVE_SET_VALUE_CONTROL.value: | ||
self._longpress = output.get("value") == "9" or output.get("value") == "8" | ||
return True |
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.
Would it be useful to have a long press up and a long press down?
If this is the possible values.
- longpress down: 1
- longpress down release: 0
- longpress up: 9
- longpress up release: 8
You could have a state with an enum with the 4 possible options. In Home Assistant they'd appear as one of the 4 options. That way a user can create automations based on one of the 4 options.
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.
Let me try it
Add device support for DimmingSensor
closes #92