core: Error in New Smartthings Auth in 2025.3.0b0
The problem
I got this error in 2025.3.0b0.
I tried to reconfigure Smartthings, but ended up getting constant error while auth callback. So I deleted former config in UI and then newly installed.
What version of Home Assistant Core has the issue?
core-2025.3.0b0
What was the last working version of Home Assistant Core?
core-2025.2.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Smartthings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
2025-02-27 09:17:27.224 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 우리 집 for smartthings
Traceback (most recent call last):
File "<string>", line 17, in __mashumaro_from_dict_json__
File "/usr/local/lib/python3.13/enum.py", line 726, in __call__
return cls.__new__(cls, value)
~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.13/enum.py", line 1199, in __new__
raise ve_exc
ValueError: 'sensor' is not a valid Capability
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 44, in __mashumaro_from_dict_json__
File "<string>", line 19, in __mashumaro_from_dict_json__
mashumaro.exceptions.InvalidFieldValue: Field "capabilities" of type list[Capability] in Component has invalid value ['sensor', 'presenceSensor', 'occupancySensor']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 9, in __mashumaro_from_json__
File "<string>", line 46, in __mashumaro_from_dict_json__
mashumaro.exceptions.InvalidFieldValue: Field "components" of type list[Component] in Device has invalid value [{'id': 'main', 'label': 'main', 'capabilities': ['sensor', 'presenceSensor', 'occupancySensor'], 'categories': [{'name': 'MobilePresence', 'categoryType': 'manufacturer'}], 'manufacturer_category': 'MobilePresence'}]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 94, in async_setup_entry
devices = await client.get_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pysmartthings/smartthings.py", line 197, in get_devices
return DeviceResponse.from_json(resp).items
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "<string>", line 11, in __mashumaro_from_json__
mashumaro.exceptions.InvalidFieldValue: Field "items" of type list[Device] in DeviceResponse has invalid value [{'deviceId': '863268c4-8800-4244-8591-8857be98e1ed', 'name': 'iPhone', 'label': 'iPhone', 'manufacturerName': 'SmartThings', 'presentationId': 'SmartThings-smartthings-Mobile_Presence', 'locationId': 'bb6e6604-0766-421a-ba1c-cc265dd857c6', 'ownerId': '7eb1db8b-6ce9-d872-36d4-9e5fb32bf668', 'components': [{'id': 'main', 'label': 'main', 'capabilities': ['presenceSensor'], 'categories': [{'name': 'MobilePresence', 'categoryType': 'manufacturer'}], 'manufacturer_category': 'MobilePresence'}], 'createTime': '2022-10-13T16:13:33.638Z', 'parentDeviceId': '595612e0-cb69-4371-a7e0-f89b4f172c7f', 'profile': {'id': '06dcf54d-ee4a-37a2-8240-42682d14a620'}, 'type': 'MOBILE', 'restrictionTier': 0, 'allowed': [], 'executionContext': 'CLOUD', 'relationships': []}, {'deviceId': '69302530-810d-42d0-9996-86d717520912', 'name': 'YS-iPhone', 'label': 'YS-iPhone', 'locationId': 'bb6e6604-0766-421a-ba1c-cc265dd857c6', 'ownerId': '7eb1db8b-6ce9-d872-36d4-9e5fb32bf668', 'components': [{'id': 'main', 'label': 'main', 'capabilities': ['sensor', 'presenceSensor', 'occupancySensor'], 'categories': [{'name': 'MobilePresence', 'categoryType': 'manufacturer'}], 'manufacturer_category': 'MobilePresence'}], 'createTime': '2021-02-17T06:32:37.410Z', 'parentDeviceId': 'b63a171a-9319-4223-af9f-a6593b9bfbf5', 'profile': {'id': '133f5857-76af-35dc-9cd8-b9b6e66abdb0'}, 'type': 'MOBILE', 'restrictionTier': 0, 'allowed': [], 'executionContext': 'CLOUD', 'relationships': []}, {'deviceId': 'a0af4c65-5d84-fcd2-e396-4d9b13076412', 'name': 'Samsung Microwave', 'label': 'Oven', 'manufacturerName': 'Samsung Electronics', 'presentationId': 'DA-KS-MICROWAVE-01011', 'deviceManufacturerCode': 'Samsung Electronics', 'locationId': 'bb6e6604-0766-421a-ba1c-cc265dd857c6', 'ownerId': '7eb1db8b-6ce9-d872-36d4-9e5fb32bf668', 'roomId': '74b15b87-388e-464b-96df-a7ba0f53b814', 'deviceTypeName': 'oic.d.microwave', 'components': [{'id': 'main', 'label': 'main', 'capabilities': [{'id': 'ocf', 'version': 1}, {'id': 'execute', 'version': 1}, {'id': 'refresh', 'version': 1}, {'id': 'ovenMode', 'version': 1}, {'id': 'ovenOperatingState', 'version': 1}, {'id': 'powerConsumptionReport', 'version': 1}, {'id': 'samsungce.deviceIdentification', 'version': 1}, {'id': 'samsungce.driverVersion', 'version': 1}, {'id': 'samsungce.definedRecipe', 'version': 1}, {'id': 'samsungce.cookRecipe', 'version': 1}, {'id': 'samsungce.doorState', 'version': 1}, {'id': 'samsungce.kitchenDeviceIdentification', 'version': 1}, {'id': 'samsungce.kitchenDeviceDefaults', 'version': 1}, {'id': 'samsungce.ovenMode', 'version': 1}, {'id': 'samsungce.ovenOperatingState', 'version': 1}, {'id': 'samsungce.microwavePower', 'version': 1}, {'id': 'samsungce.kitchenModeSpecification', 'version': 1}, {'id': 'samsungce.kidsLock', 'version': 1}, {'id': 'samsungce.softwareUpdate', 'version': 1}, {'id': 'custom.disabledCapabilities', 'version': 1}, {'id': 'sec.diagnosticsInformation', 'version': 1}], 'categories': [{'name': 'Microwave', 'categoryType': 'manufacturer'}]}], 'createTime': '2025-02-04T15:21:35.174Z', 'profile': {'id': 'd6c45b96-a8dc-3184-bdd9-b57b7f3f7888'}, 'ocf': {'ocfDeviceType': 'oic.d.microwave', 'name': 'Samsung Microwave', 'specVersion': 'core.1.1.0', 'verticalDomainSpecVersion': 'res.1.1.0,sh.1.1.0', 'manufacturerName': 'Samsung Electronics', 'modelNumber': 'TP2X_DA-KS-MICROWAVE-01011|40444841|50040100021511000200000000000000', 'platformVersion': 'DAWIT 3.0', 'platformOS': 'TizenRT 2.0 + IPv6', 'hwVersion': 'MediaTek', 'firmwareVersion': 'AKS-WW-TP2-21-OVEN-2_40240717', 'vendorId': 'DA-KS-MICROWAVE-01011', 'vendorResourceClientServerVersion': 'MediaTek Release 2.220916.2', 'lastSignupTime': '2025-02-04T15:21:35.078028280Z', 'transferCandidate': False, 'additionalAuthCodeRequired': False}, 'type': 'OCF', 'restrictionTier': 0, 'allowed': [], 'executionContext': 'CLOUD', 'relationships': []}]
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (9 by maintainers)
This is a bug in b3, will be fixed in b4
now it works 😃
The category of a device was not known, but in this case we do know it, so it should log once that happens
@wakevortex there’s a fix for your issue in 2025.3.0b2 but that needs to be cut first