Luligu / Luligu/zigbee2mqtt-automations

Add possibility to alternate between dim up and down by button hold actions

Open
#2 8 comments 0 reactions 1 assignee View on GitHub

@Luligu is already working on this.

Since Nov 27, 2024.

enhancement
Dominant language
TypeScript
Stars
76
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
I would like to be able to control both on/off and dim of a lamp using a single button.

Describe the solution you'd like
Let's say I have a single button remote which supports short press and hold actions. I would like to be able to both toggle on/off of a lamp using short press of the button, but also be able to dim the same lamp up and down but using the hold action. The hold action should alternate between dim up and dim down. The speed of dimming should preferably be controllable via config. The dimming should occur as long as I hold the button, and stop once i release the button.

Describe alternatives you've considered
Currently I'm solving this by using ControllerX via Appdaemon, but would like to move this logic into z2m to get rid of the dependency to external applications.

Additional context
Thanks for the great extension :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.