You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to change button name when toggling #32
Hello and thanks for the suggestion. This is an interesting idea and could be done, but I'm wondering what is the use case for this? I don't think I've seen any other toggle buttons that have this behavior.
Hey ! Thanks for this extension
I was looking for a way to change the text of a button with a script return value and ended up here.
For my use case I'm trying to fetch data from home assistant sensors, thought it would be fun to have them here
Hello @Edexiel, thanks for the message. I will look into this a bit more when I have some time. I think it can done, but I also want to avoid making this extension too heavy. It is an interesting idea though.
Could you give an example of what the button name would change to or what your script output would be? Would it be the output of the check status command, or the output of the on and off commands depending on if the button is toggled on or off?
It would be the output of the status command, sensors do not have states, just values.
But lights do have states
With my script I can query a sensor and get a string output (ex 26.0c) , Might be interesting to have a templated string feature to only change part of the string : "Temperature living room : {status}" -> Temperature living room : 26.0c
Activity
StorageB commentedon Jul 2, 2026
Hello and thanks for the suggestion. This is an interesting idea and could be done, but I'm wondering what is the use case for this? I don't think I've seen any other toggle buttons that have this behavior.
Edexiel commentedon Aug 27, 2026
Hey ! Thanks for this extension
I was looking for a way to change the text of a button with a script return value and ended up here.
For my use case I'm trying to fetch data from home assistant sensors, thought it would be fun to have them here
StorageB commentedon Aug 29, 2026
Hello @Edexiel, thanks for the message. I will look into this a bit more when I have some time. I think it can done, but I also want to avoid making this extension too heavy. It is an interesting idea though.
Could you give an example of what the button name would change to or what your script output would be? Would it be the output of the check status command, or the output of the on and off commands depending on if the button is toggled on or off?
Edexiel commentedon Aug 30, 2026
It would be the output of the status command, sensors do not have states, just values.
But lights do have states
With my script I can query a sensor and get a string output (ex 26.0c) , Might be interesting to have a templated string feature to only change part of the string : "Temperature living room : {status}" -> Temperature living room : 26.0c