Deliver button release events for the Smatek S9E function keys
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- backend-api-design, embedded-iot
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Kotlin
- Stelle
- 63
- Fork
- 5
- Merge medio
- 1g 5h
- PR unite (30g)
- 11
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di panel-assistant/android
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
panel-assistant/android#224 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
panel-assistant/android#223 ·
I maintainer di solito rispondono entro 1 giorno
-
NSPanel Pro 86P - unknown zigbee gatewayForse già presa @maxlyth l’ha presa 2 giorni fa. Apertabug in progress
panel-assistant/android#222 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Feature Request: Local relay control in offline modeForse già presa @maxlyth l’ha presa 4 giorni fa. Apertabacklog enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
panel-assistant/android#220 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Smatek S9E PoE issuesForse di nuovo libera @maxlyth l’ha presa 35 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement in progress
panel-assistant/android#197 · 6 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di panel-assistant/android
Issue simili
-
IzzyOnDroid inclusionApertaF-Droid FOSS question
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
d4rken-org/butler#365 ·
I maintainer di solito rispondono entro 1 giorno
-
bug: 删除聊天模型后错误出现快速入门界面Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
maxrave-dev/SimpMusic#2992 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MetrolistGroup/Metrolist#5484 ·
I maintainer di solito rispondono entro 1 giorno
-
Streaming repair closes ~~ with strikethrough off (streamingRepairOptions never sets strikethrough)Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
software-mansion/enriched-markdown#1265 ·
I maintainer di solito rispondono entro 1 giorno