Repository navigation
fix: resolve the OpenAPI deviceType names for locks and other devices - #345
Merged
Merged
Conversation
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
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.
The OpenAPI reports several device types under names
DEVICE_CLASS_MAPdidn't have, so for OpenAPI users the device was never created. That includes every lock:deviceTypeFound 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