lewisb79
(Lewis)
August 11, 2024, 8:51pm
1
Hi, I understand that ‘service calls’ are going away and being replaced by actions.
When I add an action in “Then Do” to an automation, select ‘Switch’ and pick the action (e.g. Turn On, Turn Off or Toggle), I cannot pick which switch to take the action on. If I edit the YAML code, I can, but not in the GUI.
GUI:
YAML:
Is this intentional or a bug? If it’s a bug, what’s the ‘proper’ way to report it?
Thanks,
Lewis.
You may select any action from this dropdown, and all of them may use own set of arguments.
This one particular “toggle” action (formerly “service”) needs a ”target”.
The Editor may not care about a particular action’s arguments - i.e. they are supposed to be defined by a user.
In short - not a bug.
lewisb79
(Lewis)
August 12, 2024, 5:56am
3
So how do I set a target from the gui, without editing the YAML?
I think Lldar is confused by your question.
Do you not see the GUI looking like this?
Clicking on the button I circled lets you choose the entity, which is a better way to do than ‘device’.
Perhaps you need to refresh your browser cache.
lewisb79
(Lewis)
August 12, 2024, 7:26am
5
Hi, no I don’t see the targets selection at all since upgrading to 2024.8 in an automation.
Tried multiple browsers on multiple PCs.
No errors showing in the browser dev tools console.
Tried restarting HA.
Nick4
(Nick)
August 12, 2024, 7:29am
6
Chiming in, should be there (2024.8 here)
If you tried multiple browsers/clients, refreshing your browser/deleting cache will most likely not help either.
lewisb79
(Lewis)
August 12, 2024, 7:31am
7
Sadly not working for me in Edge or Chrome on multiple PCs.
Are bugs reported on GitHub or in this forum?
Worth saying that it works if I use YAML code. It’s also showing the buttons in a Blueprint.
lewisb79:
GitHub
However maybe your update to HA 2024.8.x didn’t complete properly…?
lewisb79
(Lewis)
August 12, 2024, 7:35am
9
How can I tell? Everything seems to be fine?
Nick4
(Nick)
August 12, 2024, 7:35am
10
Edge & Chrome use the same browser engine.
Maybe try Firefox or LibreWolf
Offtopic: if you got it working, have a look at Why and how to avoid device_ids in automations and scripts
lewisb79
(Lewis)
August 12, 2024, 7:38am
11
True, but sometimes there are differences in behaviour. Anyway, not working in Firefox either.
lewisb79:
How can I tell?
Not sure how to tell to be honest, but it might pay to run a rebuild via the CLI
In safe mode?
Other commands to try:
ha core check
ha core rebuild
ha core update --version 2024.7.1
None of these will wipe your config.
lewisb79
(Lewis)
August 12, 2024, 8:05am
13
I restarted in Safe mode. The target buttons appeared for switches in automations ‘then do’ targets.
Restarted out of safe mode. Buttons continue to show (including after clearing cache).
Odd. I had previous restarted HA and the server itself!
1 Like