Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error while executing the action switch/turn_on . SmartThingsCommandError(ConflictError, invalid device state) #141128

Open
C0dezin opened this issue Mar 22, 2025 · 13 comments

Comments

@C0dezin
Copy link

C0dezin commented Mar 22, 2025

The problem

So, everytime I try to turn my tv on or off using the smartthings integration, I get the following error "Error while executing the action switch/turn_on . SmartThingsCommandError(ConflictError, invalid device state)". It looks like to be related to #140903 (which was fixed but generated another problem #141127).

Image

What version of Home Assistant Core has the issue?

core-2025.3.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SmartThings

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration (smartthings) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of smartthings can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign smartthings Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


smartthings documentation
smartthings source
(message by IssueLinks)

@joostlek
Copy link
Member

The only reason why this would be our problem is when the TV was already off and we sent the off command, otherwise it would be on SmartThings

@C0dezin
Copy link
Author

C0dezin commented Mar 22, 2025

The official SmartThings app works fine, probably something with their API then

@joostlek
Copy link
Member

No I mean, I can see it happening that HA still tries to turn off a device that is off, causing this, can you verify this?

@C0dezin
Copy link
Author

C0dezin commented Mar 22, 2025

Oh yeah, lemme check

@C0dezin
Copy link
Author

C0dezin commented Mar 22, 2025

So, When I turn off the TV in Home Assistant, it does turn off the TV, but the switch in Home Assistant stays in the 'on' state, even though the TV is clearly off. It seems like the status isn’t updating properly.

More details: Yeah so the thing is: I turned on the TV on the remote and tried turning off on home assistant, it did turn it off, but it went back to on state(on home assistant) even tho it was clearly turned off. So it appears to be something with the pushing status thing

@Jonmatt12
Copy link

I get the same issues when turning it off either via the remote, smartthings app or even within home assistant it will show within home assistant that the tv status is still on. This can be very annoying when you have other automations that rely on the status being off.

Do we have a workaround or a fix for this issue yet?

Thanks

@joostlek
Copy link
Member

But do you get the update in time?

@Jonmatt12
Copy link

But do you get the update in time?

Sorry not sure what you mean if this was me being asked?

@joostlek
Copy link
Member

Either one of you

@Jonmatt12
Copy link

Jonmatt12 commented Apr 3, 2025

But do you get the update in time?

Sorry what update?

I have this morning done the 2025.4 core update which I noticed had some Smartthings updates.

I have since re-added the integration to update to the newest entities however my TV media player entity in home assistant still shows as being "on" when the TV is turned off and in standby. However when checking the smartthings app it shows as off

Home assistant
Image

Smartthings
Image

@joostlek
Copy link
Member

joostlek commented Apr 3, 2025

Can you check what's on the advanced SmartThings devices dashboard?

If you can reproduce this, can you enable debug logging and try it?

@C0dezin
Copy link
Author

C0dezin commented Apr 4, 2025

it works fine on the advanced SmartThings dashboard, but with the new core update it was fixed for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants