iOS icon indicating copy to clipboard operation
iOS copied to clipboard

iOs Actions not syncing

Open wtangofoxtrot opened this issue 2 years ago • 9 comments

iOS device model, version and app version

Model Name: 13mini and 14 Software Version: 17.5.1 App version: 2024.730

Home Assistant Core Version

2024.7.2

Describe the bug iOs Actions are setup on the HA server in the configuration.yaml and have been working for atleast 1 year until they stopped ~2weeks ago. No changes were made on the server but all connected iOs devices show an empty list for synced actions as shown in the below screenshot:

To Reproduce

  • go to Companion app settings >Actions and tap Update server Actions
  • Nothing gets synced across from the server

Expected behavior

  • ios actions are setup in the server's configuration.yaml using https://companion.home-assistant.io/docs/core/actions/
  • these actions were previously working but stopped across all connected devices by themselves with no server side changes
  • re-added dummy action in the configuration.yaml using above documentation and it too did not sync across after restarting the HA server to load the configuration.yaml

Screenshots

353930568-90dfd2af-21a9-475c-8b13-b0651823c2a5 Additional context

Had filed https://github.com/home-assistant/core/issues/122968 but was told to post here as my testing by reverting the HA server to when it was working did not fix the issue indicating this is likely a mobile app issue.

Example YAML snippet

ios:
  actions:
    - name: Fred
      label:
        text: "Hello, World"
      icon:
        icon: earth
      show_in_carplay: false
      show_in_watch: true
    - name: Desk Toggle
      label:
        text: "WTangoFoxtrot's Desk"
      icon:
        icon: Desk
      show_in_watch: true

ios companion app logs: 2024-08-02_15.46.20-0700.logs.zip

wtangofoxtrot avatar Aug 02 '24 21:08 wtangofoxtrot

First time using GitHub here but can confirm this is also happening on my Gen1 iPad Pro on 2024.7

Korvorkian avatar Aug 02 '24 22:08 Korvorkian

Please share your logs and YAML, I'll check on Monday

bgoncal avatar Aug 02 '24 22:08 bgoncal

done @bgoncal

wtangofoxtrot avatar Aug 02 '24 22:08 wtangofoxtrot

In your logs it says the iOS component is not loaded in your HA server, if you go to Settings >> Devices & services, do you see "iOS" as one of the integrations there?

Before we move forward let's try this:

  • Remove the actions from your configuration.yaml

  • Restart HA

  • Open App and go to the Actions screen inside companion App settings

  • Add actions back to configuration.yaml

  • Restart

  • Open App and go to the Actions screen inside companion App settings

bgoncal avatar Aug 05 '24 09:08 bgoncal

@bgoncal you're right, the iOs integration had been disabled by me for a different reason much before the issue happened and I think when i updated HA core it reset the actions.

Perhaps the docs for the companion app should be updated to reflect this as that would have definitely helped here, I can push up something to https://companion.home-assistant.io/docs/core/actions/

Also would it make sense to have the companion app show the above error or a message that the integration is required for actions ?

wtangofoxtrot avatar Aug 05 '24 18:08 wtangofoxtrot

Happy to hear that we found the root causes, is it working for you now?

Indeed that's something iOS App could alert the user, I'll add to the backlog.

bgoncal avatar Aug 05 '24 18:08 bgoncal

Just want to say that I've had the exact same problem for the past week or so and this thread has been super helpful in getting my issue fixed.

I had also disabled the iOS integration - what threw me off was that I had upgraded my phone recently, and when I was doing some housekeeping tidying up my integrations, I saw only a couple of entities relating to my old phone inside the Home Assistant iOS integration. Seeing that my new phone was showing up inside the Mobile App integration, I assumed the iOS integration wasn't needed anymore and disabled it, and I had no issues until a week later when I updated my actions in configuration.yaml and tried to sync on the companion app and all the actions were gone.

I think right now maybe it's not super obvious in what the iOS integration and the Mobile App integration are each responsible for, and extra error messages would have definitely helped here!

pw1124 avatar Aug 05 '24 22:08 pw1124

Closing this issue for now, let me know in case it needs to be reopened.

bgoncal avatar Aug 06 '24 13:08 bgoncal

Yes looks like all users have their actions synced now

wtangofoxtrot avatar Aug 06 '24 16:08 wtangofoxtrot