I’ve noticed lately that HA is not updating device status(on/off) only when I change that devices status with google or alexa or smartthings.
In the image below I’ve turned on my 3 lights in the garage using the Smartthings app, however HA doesn’t update device state. Am I missing a setting somewhere? Thanks.
Home Assistant will update the states as soon as it has them, but there’s nothing HA can do if SmartThings isn’t communicating the updated states. Just another downside of cloud integrations.
If I disable/reable the device in Entities, HA then shows the correct state. Could this mean HA already has everything it needs to determine device state? I don’t know.
See my first reply. Use something more reliable than cloud pushing/polling if you’re dealing with critical pieces. Lots of cloud-free devices out there, especially plugs, which it looks like is what you’re dealing with.
From that link I included in my first post, the most reliable is at the bottom, least at the top. What I am trying to say is, if you want reliability, use local push devices. HA can only do the best with what it’s got.
As you’ve discovered, relying on third-party ecosystems and cloud services is not really what one would call reliable. If you can configure an update interval or something on the service’s end, awesome, but that will do nothing if the service goes down or HA can’t communicate with the service for whatever reason.
It looks like you already have some ESPHome devices setup, so I’m guessing you’re aware of the alternatives and get my point.
Looked into this more. This was an issue with my external_url in my configuration.yaml file. It needed to be my Home Assistant base external facing url. I’m not using nabu casa, i’m using the duckdns route for free remote access.
I had to delete my Smartthings integration in HA and a config/.storage/smartthings file(it’s hidden by default but if you go to the supervisor>fileeditor>configuration tab and delete the “-.storage” entry, then it will be visible)
Delete Smartthings token on the Smartthings site and re-add a new one.
Add Smartthings integration once again, confirm your “Callback URL” is your external_url(configured above) + /api/webhook/ + webhook id(automatically generated when you add the smartthings integration)should be something like:
If I recall correctly, the callback url gets created automatically. During Smartthings setup I saw a url that looked like my external_url + webhook_id.
Let me know if you need more help with it. I could retrace my steps a little more. It can be frustrating.
Sorry for the late response, haven’t checked in lately.