Skip to content

[SmartThings] OAuth integration fails after 24h – 401 Unauthorized on device command (HA 2025.6 + Nabu Casa) #147263

@matteoopc

Description

@matteoopc

The problem

After installing the SmartThings integration using OAuth2 (no PAT), everything works at first. But after ~24h, all automations and service calls fail with 401 Unauthorized.

This happens on Home Assistant 2025.6 with Nabu Casa active. No webhook or token errors are shown in the logs.

What version of Home Assistant Core has the issue?

2025.6

What was the last working version of Home Assistant Core?

None — bug persists across fresh installs with OAuth

What type of installation are you running?

Home Assistant OS (via Nabu Casa)

Integration causing the issue

SmartThings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/smartthings/

Example YAML snippet

# automation or service calls fail on any device after ~24h
- service: switch.turn_off
  target:
    entity_id: switch.condizionatore_cucina

### What version of Home Assistant Core has the issue?

core-2025.6.1

### What was the last working version of Home Assistant Core?

_No response_

### What type of installation are you running?

Home Assistant Supervised

### Integration causing the issue

Smartthings

### Link to integration documentation on our website

_No response_

### Diagnostics information

_No response_

### Example YAML snippet

```yaml

Anything in the logs that might be useful for us?

Error executing script. Unexpected error for device at pos 1: 401, message='Unauthorized', url='https://api.smartthings.com/v1/devices/<device_id>/commands'

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions