Dynamicly change dummy kWh counter icon state
Posted: Thursday 06 March 2025 0:25
Hello All.
I use a lot of dummy kWh counters in Domoticz, and for almost all counters i made some nice custom icons that have both ON and OFF states.
For example: on my dashboard i have a switch: and a kWh counter: So both devices use the same icon.
Now the issue:
At this moment there is nothing to count but the ON-icon is shown on the kWh counter, this is IMHO not correct visually..
It would be nice to see both states reflected in the counter: If counter-value is zero, the OFF-icon is shown. Any other value shows the ON-icon..
The only problem visually i can imagine is that, if there would be fast switching between zero and a value, this could be annoying..
But i think this could be resolved by fixing one of the icon-states to the device, or add a De-bounce time before the state is changed.
I use a lot of dummy kWh counters in Domoticz, and for almost all counters i made some nice custom icons that have both ON and OFF states.
For example: on my dashboard i have a switch: and a kWh counter: So both devices use the same icon.
Now the issue:
At this moment there is nothing to count but the ON-icon is shown on the kWh counter, this is IMHO not correct visually..
It would be nice to see both states reflected in the counter: If counter-value is zero, the OFF-icon is shown. Any other value shows the ON-icon..
The only problem visually i can imagine is that, if there would be fast switching between zero and a value, this could be annoying..
But i think this could be resolved by fixing one of the icon-states to the device, or add a De-bounce time before the state is changed.