Skip to content

Correct platform-support badges (TYPE_OPTIONS) to match ioBroker.iot - #644

Open
krobipd wants to merge 1 commit into
ioBroker:masterfrom
krobipd:fix/type-options-platform-accuracy
Open

Correct platform-support badges (TYPE_OPTIONS) to match ioBroker.iot#644
krobipd wants to merge 1 commit into
ioBroker:masterfrom
krobipd:fix/type-options-platform-accuracy

Conversation

@krobipd

@krobipd krobipd commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What & why

The Alexa/Google/Yandex icons in the device-type selector (TYPE_OPTIONS in src-admin/src/Components/TypeOptions.tsx) have drifted from what ioBroker.iot actually supports today, so the badges are inaccurate in both directions.

Verified against the current iot source gates (not the frontend SMART_TYPES dropdown, which is stale):

Platform iot gate (source of truth) Change
Alexa AlexaSmartHomeV3/Controls/index.ts factory (24 types; each control's .type via the Control.ts class-name getter) badge showed only 8 → added the 16 iot actually supports: airCondition, blind, button, door, gate, humidity, motion, rgb, rgbSingle, rgbwSingle, slider, temperature, vacuumCleaner, volume, volumeGroup, window. The previous set matched the deprecated Alexa v2 list.
Google googleHome.ts converter map (17, no generic fallback) removed illuminance, percentage, rgbwSingle (no converter → not exposed)
Yandex/Alisa alisa.ts converter map (17, no generic fallback) added buttonSensor, gate; removed percentage, rgbwSingle

The Material column is intentionally left unchanged (not cross-checked against the material adapter in this PR).

One file, 19 values changed, no structural change.

The Alexa/Google/Yandex icons in the device-type selector (TYPE_OPTIONS)
drifted from what ioBroker.iot actually supports. Verified against the iot
source gates and corrected:

- Alexa (AlexaSmartHomeV3/Controls factory, 24 types): the badge showed
  only 8. Added the 16 that iot supports: airCondition, blind, button,
  door, gate, humidity, motion, rgb, rgbSingle, rgbwSingle, slider,
  temperature, vacuumCleaner, volume, volumeGroup, window. The old set
  matched the deprecated Alexa v2 list.
- Google (googleHome converter map, 17 types): removed illuminance,
  percentage, rgbwSingle (no converter -> not exposed).
- Yandex/Alisa (alisa converter map, 17 types): added buttonSensor, gate;
  removed percentage, rgbwSingle.

The Material column is left unchanged (not cross-checked here).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant