Deliver button release events for the Smatek S9E function keys
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
Línea de trabajo
Start by tracing the S9E accessibility onKeyEvent path and EvdevStreamSession, which the issue identifies as dropping release events. Check how the button event entity defines its fixed event-type list and how per-panel hardware profiles scope button handling. Done means F1–F4 release events reach Home Assistant for the S9E without duplicate reports, while existing press events remain compatible; the event naming and scoping decisions are open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What problem would this solve?
On the Smatek S9E, the four function keys (F1–F4) currently report to Home Assistant only on press - event.<panel>_button fires keycode_fN on the down edge, and the release is dropped. I'd like release reported too, so automations can do press-and-hold / momentary actions with these keys.
Confirmed feasible on hardware: the S9E's adc-keys device emits both edges - getevent -l /dev/input/event3 shows a DOWN then UP for each of F1–F4. The release just isn't surfaced: EvdevStreamSession emits only value==1 for keys, and the accessibility onKeyEvent path forwards only DOWN.
Proposed solution
I drafted the code changes locally but decided against a PR since there are two decisions which i would like leave to you:
-
Event shape - the button channel is an HA event entity with a fixed, descriptor-driven event-type list (flat string, no attributes), so a distinct type per edge seems to fit: keep
keycode_f1on press (backward-compatible) and add e.g.keycode_f1_released. Your call on the convention. -
Scope - I only want this for the S9E's F1–F4, not fleet-wide. The S9E currently surfaces these via the generic accessibility path (
evdev_buttons: []), which has no per-panel scoping; declaring them asevdev_buttonswould scope it per-profile but may double-report against the a11y path. I'd rather you pick the cleanest approach.
Panel hardware (if hardware-specific)
Smatek S9E
Hardware control path (for hardware features)
EV_KEY KEY_F1 DOWN
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F1 UP
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F2 DOWN
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F2 UP
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F3 DOWN
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F3 UP
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F4 DOWN
EV_SYN SYN_REPORT 00000000
EV_KEY KEY_F4 UP
EV_SYN SYN_REPORT 00000000
- Lenguaje dominante
- Kotlin
- Estrellas
- 63
- Forks
- 5
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 11
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de panel-assistant/android
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
panel-assistant/android#224 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
panel-assistant/android#223 ·
Los mantenedores suelen responder en 1 día
-
NSPanel Pro 86P - unknown zigbee gatewayPosiblemente ocupada @maxlyth la tomó hace 2 días. Abiertobug in progress
panel-assistant/android#222 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Feature Request: Local relay control in offline modePosiblemente ocupada @maxlyth la tomó hace 4 días. Abiertobacklog enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
panel-assistant/android#220 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Smatek S9E PoE issuesQuizá libre de nuevo @maxlyth la tomó hace 34 días y no hay ningún pull request abierto. Abiertoenhancement in progress
panel-assistant/android#197 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de panel-assistant/android
Issues similares
-
IzzyOnDroid inclusionAbiertoF-Droid FOSS question
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
d4rken-org/butler#365 ·
Los mantenedores suelen responder en 1 día
-
bug: 删除聊天模型后错误出现快速入门界面Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
maxrave-dev/SimpMusic#2992 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MetrolistGroup/Metrolist#5484 ·
Los mantenedores suelen responder en 1 día
-
Streaming repair closes ~~ with strikethrough off (streamingRepairOptions never sets strikethrough)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
software-mansion/enriched-markdown#1265 ·
Los mantenedores suelen responder en 1 día