Custom icon for text device

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Custom icon for text device

Post 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...
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Custom icon for text device

Post 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

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Custom icon for text device

Post 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.
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Custom icon for text device

Post by heggink »



Sent from my SM-G980F using Tapatalk

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Filip
Posts: 110
Joined: Thursday 03 November 2016 10:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Custom icon for text device

Post by Filip »

+1
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest