DALI: warn about DALI-2 instances whose events cannot be attributed - #1227
Open
evgeny-boger wants to merge 2 commits into
Open
DALI: warn about DALI-2 instances whose events cannot be attributed#1227evgeny-boger wants to merge 2 commits into
evgeny-boger wants to merge 2 commits into
Conversation
…uted IEC 62386-103 Table 8: only the "device short and instance number" event scheme puts both the sender's short address and the instance number into an event frame — the only combination the daemon can attribute to a device. A sensor left in another scheme (the factory default is "instance type and number") sends events that decode fine in the bus monitor yet update nothing — Illuminance stays 0 forever, and it reads as a polling bug (SOFT-7398). The device page now shows a warning for such instances with a one-click "Set recommended scheme" that rewrites every offending instance and saves. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
It had been inserted at the wrong "retry" anchor and sat in the svg-dashboard block, so the button rendered the raw key. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
KraPete
requested changes
Sep 4, 2026
| @@ -1,3 +1,11 @@ | |||
| wb-mqtt-homeui (2.250.1) stable; urgency=medium | |||
| name the sender gets a warning with a one-click "Set recommended scheme" — such | ||
| events decode in the bus monitor but could never update the controls (SOFT-7398) | ||
|
|
||
| -- Wiren Board Robot <info@wirenboard.com> Mon, 31 Aug 2026 20:10:00 +0300 |
Contributor
There was a problem hiding this comment.
Точно надо робота писать, а не тебя?
| import type { ResetMode } from './types'; | ||
| import type { InstanceConfig, ResetMode } from './types'; | ||
|
|
||
| // IEC 62386-103 Table 8: only the "device short and instance number" scheme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
IEC 62386-103, табл. 8: только схема адресации событий «короткий адрес устройства и номер компонента» (значение 2) кладёт в кадр события и адрес отправителя, и номер компонента — единственная комбинация, которую демон может атрибутировать устройству. Датчик с другой схемой (заводская — «тип и номер компонента») шлёт события, которые в мониторе шины декодируются, но контролы не обновляют: «Освещённость» навсегда 0, выглядит как баг опроса и диагностируется очень тяжело (SOFT-7398, реальный Tridonic MSensor с 18 такими компонентами).
Страница устройства DALI-2 показывает предупреждение для таких компонентов и кнопку «Установить рекомендуемую схему»: переписывает
event_schemeу всех проблемных инстансов и сохраняет.ATTRIBUTABLE_EVENT_SCHEME/wrongSchemeInstances()— чистая функция над конфигом устройства, экспортирована;InstanceConfigвtypes.ts, CSS баннера в одну строку с переносом на узких экранах;event-scheme-warning,fix-event-schemesв en/ru.Тесты
scheme-instances.test.ts— какие инстансы считаются проблемными (только числоваяevent_scheme≠ 2, только ключиinstanceN).tsc,eslint,vitestпо каталогу DALI — чисто.Задача: SOFT-7398
Скриншоты
Стенд WB8 с реальным WB-DALI: панель кнопок
wb-dali_1_bus_1_dali2_0на шине 1, все шесть компонентов «Кнопка» изначально на рекомендуемой схеме. Компонент 0 переключён на «тип и номер компонента» (схема 0, заводская) и сохранён — предупреждение появилось. После нажатия кнопки в баннере повторное чтение параметров с шины вернуло схему 2 на всех шести компонентах, то есть кнопка пишет в устройство, а не только в форму.Панель кнопок DALI-2, у компонента 0 сохранена схема «тип и номер компонента» — предупреждение и кнопка исправления
То же самое в английской локали
После «Установить рекомендуемую схему»: предупреждения нет, схема — «короткий адрес устройства и номер компонента», «Сохранить» неактивна
🤖 Generated with Claude Code