bgoncal
(Bruno Pantaleão)
September 16, 2024, 11:47pm
21
Heads up:
I’m preparing v2024.9.1 with some fixes for scripts and scenes controls, tinted widgets and Assist on older Apple Watches.
Fixes:
opened 10:40PM - 16 Sep 24 UTC
closed 11:43PM - 16 Sep 24 UTC
bug
ios
<!-- Please READ THIS FIRST
If your issue relates to something not looking righ… t on Home Assistant within the Companion App, please check if the error is present in Safari on iOS too. If the issue is also seen in Safari, please open an issue on the frontend repo (https://github.com/home-assistant/frontend/issues/new?labels=bug&template=BUG_REPORT.md) instead -->
**iOS device model, version and app version**
Model Name: iPhone 12
Software Version: iOS 18 (22A3354)
App version: 2024.9
**Home Assistant Core Version**
Core 2024.9.1
Supervisor 2024.09.1
Operating System 13.1
Frontend 20240906.0
**Describe the bug**
Script control center action does not work. Home Assistant logs show an error.
**To Reproduce**
1. Create a script in Home Assistant
2. Add a new script trigger to the iOS control center and select the new script
3. Press the new button in control center
4. Script is not executed, error message in HA logs
**Expected behavior**
The script is executed.
**Additional context**
In Home Assistant log:
```py
2024-09-16 18:24:31.290 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Error when calling service during mobile_app webhook (device name: <redacted>): Action script.<redacted>-ios_control_center_test not found
2024-09-16 18:24:31.290 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook <redacted>
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 2694, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Action script.<redacted>-ios_control_center_test 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
```
opened 09:13PM - 16 Sep 24 UTC
closed 10:26PM - 16 Sep 24 UTC
bug
ios
<!-- Please READ THIS FIRST
If your issue relates to something not looking right… on Home Assistant within the Companion App, please check if the error is present in Safari on iOS too. If the issue is also seen in Safari, please open an issue on the frontend repo (https://github.com/home-assistant/frontend/issues/new?labels=bug&template=BUG_REPORT.md) instead -->
**iOS device model, version and app version**
Model Name: iPhone 14 Pro
Software Version: iOS 18
App version: 2024.848
**Home Assistant Core Version**
**Describe the bug**
With iOS 18 set to use tinted icons, the actions widget shows as a block colour. Suspect this is true for other sideways but not tested
**To Reproduce**
Set icon tint
**Expected behavior**
**Screenshots**
Dark icons:
![image](https://github.com/user-attachments/assets/3972f370-a395-4295-a712-55972572e1b0)
Tinted icons
![image](https://github.com/user-attachments/assets/68a3b3a0-27a3-4d1a-b76b-15936af4489f)
**Additional context**
opened 08:45PM - 16 Sep 24 UTC
closed 11:43PM - 16 Sep 24 UTC
bug
ios
<!-- Please READ THIS FIRST
If your issue relates to something not looking right… on Home Assistant within the Companion App, please check if the error is present in Safari on iOS too. If the issue is also seen in Safari, please open an issue on the frontend repo (https://github.com/home-assistant/frontend/issues/new?labels=bug&template=BUG_REPORT.md) instead -->
**iOS device model, version and app version**
Model Name: iPhone 15 pro
Software Version: iOS 18
App version: 2024.9.2
**Home Assistant Core Version**
Core 2024.9.2
Supervisor 2024.09.1
Operating System 13.1
**Describe the bug**
Added 2 HA scenes to control center. Activating the buttons does not work. The log shows "Called service: scene.turn_on" with this payload:
{
"entity_id" : "2cd6808431db49878c66a22327e78243-scene.godnat"
}
I have a scene named "godnat".
**To Reproduce**
Add scene to control center. Tap new scene button.
**Expected behavior**
Scene is activated
**Screenshots**
**Additional context**
1 Like
Please this is important
Do permission for not admin user.
Because now if user is not admin he can get all scripts and automation, its not good.
Like CarPlay user not admin can do all on the system.
Please please fixing that issues.
Thanks for your great job
1 Like
arganto
September 17, 2024, 5:41am
24
iOS and iPadOS. Different Versions (17.6.1 and below), different devices (Phone 11, 13, 15 and Pad 2021, 2023 and older Pro).
parautenbach
(Pieter Rautenbach)
September 17, 2024, 5:49am
25
It’s not only a client feature to build.
WTH is there no proper RBAC a year later?
golles
(golles)
September 17, 2024, 7:41am
26
Thanks for your quick response!
ah now I get it. Now I have an issue that the color of the control doesn’t match the actual state of the light. It seems long tap is causing this inconsistency.
in the screenshot I see it should show in the right top, but I see the time there. But would be good indeed to clarify that.
Three items are defined here: Home-Assistant-Config/packages/ios/zonnescherm.yaml at 0be6486e4e66b9683947b76e8670686ebbb01f8a · golles/Home-Assistant-Config · GitHub
On the widgets, they show correctly (except the extra large one on Mac), on the watch the text color is always white.
simon-bd
(Simonbach)
September 17, 2024, 7:46am
27
Please make the modular widget available for the Modular Ultra so the users of the ultra watches can have home assistant on their home screen as well!
wgumaa
(Waleed)
September 17, 2024, 7:52am
28
Thanks for this! I like the idea of moving away from iOS actions to scripts. Naturally I tired that but run into a little problem. The customisation of icon colour and background doesn’t want to work. I want brown icon which I select from the menu and black background with white text. I save but the icon reverts to black. Anyone else experience that on apple watch.
1 Like
bgoncal
(Bruno Pantaleão)
September 17, 2024, 9:13am
29
This PR has a screenshot with minimum font size, default font size and max font size using Apple watch text size picker. Let me know if this is an improvement to you.
home-assistant:master
← home-assistant:fix-watch-textcolor
opened 09:12AM - 17 Sep 24 UTC
## Summary
## Screenshots
![CleanShot 2024-09-17 at 11 11 08@2x](https:/… /github.com/user-attachments/assets/692a0f46-556b-4c4e-8287-7929e6ea3e5b)
## Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
## Any other notes
1 Like
bgoncal
(Bruno Pantaleão)
September 17, 2024, 9:14am
30
My PR above will also solve this issue
2 Likes
netmikey
(Mike)
September 17, 2024, 11:31am
31
I don’t own an Apple watch (precisely because of its tiny text sizes), I was talking about the lack of dynamic type in the HA iOS App.
But to answer your question: Yes, this sure looks like a big improvement, it would be great to see this make its way into the iOS App!
bgoncal
(Bruno Pantaleão)
September 17, 2024, 11:33am
32
The iOS App is mainly a webview presenting the HA web UI, so the App can’t control font sizes inside of it, you can try “page zoom” as an alternative solution (Companion app settings >> general >> page zoom)
khuntop
(KhunTop)
September 17, 2024, 11:39am
33
Yeah I have the same issue. really annoying.
1 Like
bgoncal
(Bruno Pantaleão)
September 17, 2024, 12:51pm
34
Can one of you send a quick screen recording showing the behavior?
1 Like
wgumaa
(Waleed)
September 17, 2024, 1:10pm
35
Sure! But it won’t allow me to upload a video. Maybe DM a location to upload the video.
bgoncal
(Bruno Pantaleão)
September 17, 2024, 1:11pm
36
You can host anywhere you prefer, like google drive
wgumaa
(Waleed)
September 17, 2024, 1:14pm
37
wgumaa
(Waleed)
September 17, 2024, 1:16pm
38
Forgot that I was listening to music at the same time.
netmikey
(Mike)
September 17, 2024, 1:23pm
39
Ok, it’d be up to the page loaded into the Webview (the HA-Core UI I guess?) to set the appropriate CSS. I did this myself in the past with an app that was also just a Webview and it worked great. Any chance you could pass the message to the appropriate team at Nabu Casa?
See e.g.: How to support Apple's dynamic type in your web content with CSS - DEV Community
bgoncal
(Bruno Pantaleão)
September 17, 2024, 1:49pm
40
Wow, I should have read your second message and turned my speaker volume down hahaha
Quick question, did you hit save or back after changing the icon color? Does any other color works?
bgoncal
(Bruno Pantaleão)
September 17, 2024, 1:51pm
41
Please open a feature request to frontend, I could forward your request but this can easily lost track, please use home assistant community for the feature request and follow up.
If you want you can send me the link of your feature request and I can forward to frontend devs.