Scripts not showing up in companion app - IOS 18.2

Hello,
Im trying to use scripts I have set up to turn on some lights but they are not showing up when i try to add them to a widget.
I used to have a script setup on my iPhone 16 pro but now that i have changed my phone to the standard iPhone 16 the scrips wont show up.
I have removed all devices just incase there was any conflict.
When Looking at the debugging logs I get the following errors - {“error”: "The operation couldn’t be completed. (HAKit.HADataError error}

Any help as to where I am going wrong would be greatly appreciated


.

I had same issue and “fixed” it once I reloaded widgets. Go to iOS HA application, settings → Companion app → Widgets and press “reload all widgets”. Widgets should show scripts now.

Hi medojr,
thanks for your help but unfortunately this hasn’t worked.
Ive looked at the debug logs but cant make much sence of them and not sure if this is related to the problem.
“Failed to fetch states on server Home”