Page 1 of 1

Custom icon for text device

Posted: Tuesday 27 October 2020 8:54
by mariopeters
I have created my own python plugin and I would like to change the icon of a text device.
For some reason it isn't possible to changes icons of a text device.
It would be a nice feature...

Re: Custom icon for text device

Posted: Tuesday 27 October 2020 9:10
by heggink
Agree. There are s few more where this is not possible. %% is another one. Zigbee2mqtt plugin stores battery state. Love to change the icon to a coloured battery depending on the state but can't.

Sent from my SM-G980F using Tapatalk


Re: Custom icon for text device

Posted: Wednesday 28 October 2020 21:31
by mariopeters
Looks like I'm not the first to ask this either.
See the discussion starting in 2016 with the same name in \ General \ "Other questions and discussions".
I don't think it's that difficult either, namely an adjustment in UtilityController.js, namelijk

Code: Select all

xhtm += '<img src="images/text48.png" height="48" width="48"></td>\n';
moet worden

Code: Select all

xhtm += '<img src="images/' + item.Image + '48_On.png" height="48" width="48"></td>\n';
The EditUtilityDevice function must also be expanded with the combosensoricon option. And I think it should be ready by then.
This should be possible for any device.
I'm going to try and get this to work.

Re: Custom icon for text device

Posted: Wednesday 28 October 2020 22:13
by heggink


Sent from my SM-G980F using Tapatalk


Re: Custom icon for text device

Posted: Sunday 22 November 2020 13:25
by Filip
+1