Skip to content

fix: resolve the OpenAPI deviceType names for locks and other devices - #345

Merged
donavanbecker merged 1 commit into
latestfrom
fix/openapi-type-names
Oct 24, 2026
Merged

donavanbecker merged 1 commit into
latestfrom
fix/openapi-type-names

Conversation

@donavanbecker

Copy link
Copy Markdown
Contributor

The OpenAPI reports several device types under names DEVICE_CLASS_MAP didn't have, so for OpenAPI users the device was never created. That includes every lock:

OpenAPI deviceType Class
Smart Lock WoSmartLock
Smart Lock Pro WoSmartLockPro
Smart Lock Pro Wifi WoSmartLockProWiFi
Smart Lock Ultra WoSmartLockPro
Air Purifier VOC WoAirPurifier
Air Purifier Table PM2.5 / VOC WoAirPurifierTable
Smart Radiator Thermostat WoSmartThermostatRadiator
Home Climate Panel WoClimatePanel
Standing Fan, Battery Circulator Fan 2 Pro WoCirculatorFan
RGBIC Neon Rope Light WoRGBICNeonWireRopeLight
AI Art Frame WoArtFrame
Hub WoHub2

Found while testing homebridge-switchbot against 5.1.0: an OpenAPI Lock Pro couldn't be found. Names are taken from the SwitchBotAPI device pages. Cameras, Video Doorbell, AI MindClip, Kata Friends, WeatherStation, Permanent Outdoor Lights and RGBICWW Ceiling Light have no device class yet and stay unmapped.

Build, 388 tests and lint pass. No label, so the release defaults to a patch (5.1.1).


Generated by Claude Code

The OpenAPI reports these device types under names DEVICE_CLASS_MAP did not
have, so the device was never created for OpenAPI users:

- Smart Lock, Smart Lock Pro, Smart Lock Pro Wifi, Smart Lock Ultra
- Air Purifier VOC, Air Purifier Table PM2.5, Air Purifier Table VOC
- Smart Radiator Thermostat, Home Climate Panel
- Standing Fan, Battery Circulator Fan 2 Pro
- RGBIC Neon Rope Light, AI Art Frame, Hub

Names are taken from the SwitchBotAPI device pages. Cameras, Video
Doorbell, AI MindClip, Kata Friends, WeatherStation, Permanent Outdoor
Lights and RGBICWW Ceiling Light have no device class yet and stay
unmapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TYWa2RXoWsaUTWh76oNv8s
@donavanbecker
donavanbecker merged commit 85f42c2 into latest Oct 24, 2026
2 checks passed
@donavanbecker
donavanbecker deleted the fix/openapi-type-names branch October 24, 2026 13:31
@donavanbecker
donavanbecker restored the fix/openapi-type-names branch October 24, 2026 13:38
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.

2 participants