hi,
first of all, I want to thanks in advance, because I’m a very beginner.
I created one switch on my dashboard, and I need to change his name based on his state, if is true or false. It’s possible ?
Below is my code of switch created,
I want name: AM when is false, and PM when state is true.
I’m not quite sure what exactly you want to do, but you could edit the visibility based on the state. So you will have two tiles but only one will show on your dashboard at a time because of the state. Give that a try?
In order for it to work it needs to be done programmatically and the effect should also take effect without user interaction and hopefully without too much other interference with the system, like reloading that might reset automations and other stuff.