Skip to content

Fix button number labels in custom action descriptions and logic bug in button 4 double press - #19

Open
skille wants to merge 3 commits into
XXBrain:mainfrom
skille:fix/button-description-labels
Open

Fix button number labels in custom action descriptions and logic bug in button 4 double press#19
skille wants to merge 3 commits into
XXBrain:mainfrom
skille:fix/button-description-labels

Conversation

@skille

@skille skille commented Aug 19, 2026

Copy link
Copy Markdown

Fixes #18

Changes

Cosmetic (descriptions only)

The custom action input descriptions for buttons 1, 2, and 4 all incorrectly referenced "Button 3" — a copy-paste error. No logic was affected.

Line Before After
276 Action to run on a release of Button 3 after a short press Button 1
282 Action to run when Button 3 is released after a long press Button 1
287 name: Button 3 (Double Press) Button 1 (Double Press)
288 Action to run when Button 3 is pressed twice Button 1
532 Action to run when Button 3 is released after a short press Button 2
539 Action to run when Button 3 is released after a long press Button 2
543 name: Button 3 (Double Press) Button 2 (Double Press)
544 Action to run when Button 3 is pressed twice Button 2
1045 Action to run on a release of Button 3 after a short press Button 4
1051 Action to run when Button 3 is released after a long press Button 4
1056 name: Button 3 (Double Press) Button 4 (Double Press)
1057 Action to run when Button 3 is pressed twice Button 4

Logic bug (line 1170)

Button 4's double press custom action variable referenced button_3_double_custom instead of button_4_double_custom. This caused button 4 double press custom actions to silently execute button 3's custom action instead.

# Before (bug)
button_4: !input button_3_double_custom

# After (fix)
button_4: !input button_4_double_custom

skille added 3 commits August 19, 2026 14:51
… 2 and 4

Buttons 1, 2, and 4 had copy-paste errors in their custom action
section input descriptions — all incorrectly referenced "Button 3".
No logic changes, descriptions only.

Fixes XXBrain#18
…m action

Cosmetic: Custom action section descriptions for buttons 1, 2 and 4
incorrectly referenced "Button 3" due to copy-paste errors.

Logic bug: Button 4 double_press custom action variable was reading
`button_3_double_custom` instead of `button_4_double_custom` (line 1170),
causing button 4 double press custom actions to silently run button 3's
custom action instead.

Fixes XXBrain#18
Copilot AI lite review requested due to automatic review settings August 19, 2026 12:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Home Assistant blueprint philips_zigbee_dial_combined_z2m.yaml to correct mislabeled custom-action input descriptions (buttons 1, 2, and 4) and fixes a logic error where Button 4 double-press actions were incorrectly mapped to Button 3’s custom action.

Changes:

  • Corrects copy/paste label text in the blueprint input descriptions for Button 1, Button 2, and Button 4 custom actions.
  • Fixes the actions_custom.double_press.button_4 mapping to reference !input button_4_double_custom (instead of button_3_double_custom).
  • Adds an extra trailing blank line at the end of the YAML file.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

Wrong button number in custom action descriptions for buttons 1, 2, and 4

2 participants