Deliver button release events for the Smatek S9E function keys
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Kotlin
- 星标
- 63
- 派生
- 5
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 11
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
panel-assistant/android 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
panel-assistant/android#224 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
panel-assistant/android#223 ·
维护者通常 1 天内回复
-
NSPanel Pro 86P - unknown zigbee gateway可能已有人在做 @maxlyth 于 2 天前认领。 未关闭bug in progress
panel-assistant/android#222 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Feature Request: Local relay control in offline mode可能已有人在做 @maxlyth 于 4 天前认领。 未关闭backlog enhancement
难度 3/5 1-2 天 新手友好度 52/100
panel-assistant/android#220 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Smatek S9E PoE issues可能重新可做 @maxlyth 于 35 天前认领,目前没有进行中的 PR。 未关闭enhancement in progress
panel-assistant/android#197 · 6 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 panel-assistant/android 的全部 Issue
相似的 Issue
-
F-Droid FOSS question
难度 1/5 1 小时以内 新手友好度 75/100
d4rken-org/butler#365 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
maxrave-dev/SimpMusic#2992 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
MetrolistGroup/Metrolist#5484 ·
维护者通常 1 天内回复
-
Streaming repair closes ~~ with strikethrough off (streamingRepairOptions never sets strikethrough)未关闭
难度 1/5 1 小时以内 新手友好度 92/100
software-mansion/enriched-markdown#1265 ·
维护者通常 1 天内回复