#Apple Watch action says script not found

1 messages · Page 1 of 1 (latest)

plain cape
#

Since maybe the November update I have two new Apple Watch actions that say script not found.

plain cape
#

More context, created the action with that new method selecting the actual script from the list.

#

Logger: homeassistant.components.mobile_app.webhook
Source: components/mobile_app/webhook.py:291
integration: Mobile App (documentation, issues)
First occurred: 3:38:13 PM (2 occurrences)
Last logged: 3:38:13 PM

Error when calling service during mobile_app webhook (device name: Legacy’s iPhone): Action script.start_legacys_car_heat not found

neat tendon
#

Weird, can you remove those scripts from watch configuration and add them back?

#

Do you have more than 1 server configured?

#

Which app version are you using?

plain cape
#

I have removed and added back with same result. Just one server using the Nabu casa remote.

neat tendon
#

I’ll check during the week

plain cape
#

Newest iOS app 2024.9.4

#

Home assistant 2024.11.2

#

Ok

#

Will do so first thing in morning when at pc. Thank you!

plain cape
#

Submitted!

#

BTW the script is actually robs car but wasnt going to publically share my name. Also in case the link in the google drive didn't work due to original sharing settings.

neat tendon
#

Looking at your app logs it doesnt look like anything went wrong in the app

plain cape
neat tendon
#

Could you try to trigger it right now? Then export app logs again and tell me if something comes up in HA logs as well

plain cape
#

Sure

#

Logger: homeassistant.components.webhook
Source: components/webhook/init.py:192
integration: Webhook (documentation, issues)
First occurred: November 17, 2024 at 8:59:47 AM (3 occurrences)
Last logged: 7:32:31 AM

Error processing webhook f6fa6ddfa0ef93d08f278b93b21fa30be30011a8d0d5d585008ac1e224262351
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 283, in webhook_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2735, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Action script.start_robs_car_heat not found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webhook/init.py", line 192, in async_handle_webhook
response: Response | None = await webhook["handler"](hass, webhook_id, request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 265, in handle_webhook
return await asyncio.shield(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 175, in validate_and_run
return await func(hass, config_entry, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 299, in webhook_call_service
raise HTTPBadRequest from ex
aiohttp.web_exceptions.HTTPBadRequest: Bad Request

neat tendon
#

Based on your screenshot script.start_robs_car_heat really doesn't exist right?

neat tendon
#

did you change it's ID?

plain cape
#

If I changed it it wasn’t recently

neat tendon
#

Can you try with one script that does show up in that list?

plain cape
#

Yeah some scripts do work

neat tendon
#

If it doesn't show up in the actions list then it will not work, the mistery is why they are not showing up there, perhaps open a github issue to Core, on the App side I can't fix it unfortunately

plain cape
#

Okay, what creates the actions piece?

#

Would deleting and recreating the script perhaps help?

neat tendon
#

It should, actions list should show all your scripts

plain cape
#

Is the action piece iOS only?

neat tendon
#

No, in the past "Actions" were named "Services" in home assistant and at that time we had "iOS Actions" (which has no relation to the one named services.)

plain cape
#

Ahhh. What is interesting we can fire these scripts via Google

#

Going to grab my cup of coffee and recreate and will report back shortly

neat tendon
#

Sounds good

plain cape
#

So recreating it fixed it

#

Pretty certain it was the november HA update that broke it

#

maybe october, but feel like i used it in october

neat tendon
#

Got it, I can't say for sure, but if it happens again I encorage you to open an issue to Core, so they can identify whats happening and fix it in future versions

plain cape
#

absolutely

#

do you do all companion stuff?

neat tendon
#

Only Apple platforms

plain cape
#

love the app, love the change in how apple watch stuff is created

#

the old method was a little tedious

#

only real feedback is would love to change the names of the watch buttons without a new script

#

since the display is so small the names are a bit odd on longer names

neat tendon
#

Thanks for the feedback, the goal is to keep making it simpler and more personal to each user instead of server level.
Indeed, customizing the display text is on the queue to be implemented

plain cape
#

sweet!

#

thank you Bruno, i hope you have a wonderful day!