strange behavior: euro amount on counter

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
willemd
Posts: 795
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

strange behavior: euro amount on counter

Post by willemd »

Small issue.

If I define a counter device , type custom, unit Euro and then update it with for example 0.30, the displayed amount top right remains 0, while the amount shown under the title bar is shown correctly as 0.3 Euro. Also when I add more small amounts the top right amount remains 0.

If I add a divider of 100 and multiply the amount by 100, then it works correctly. So if I add 30 with a divider of 100, then both amounts on the icon shown 0.3 Euro

Is this a bug?
User avatar
waltervl
Posts: 7021
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: strange behavior: euro amount on counter

Post by waltervl »

Counters normally want integers as input. If you want to report on digits you indeed need a divider.
It is the same for water and electricity (they use default divider of 1000).

So it is not a bug, it is a feature.. :)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
willemd
Posts: 795
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: strange behavior: euro amount on counter

Post by willemd »

Maybe it could become a documented feature ? 😀
User avatar
waltervl
Posts: 7021
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: strange behavior: euro amount on counter

Post by waltervl »

It is already documented in the API wiki https://wiki.domoticz.com/Domoticz_API/ ... 7s#Counter
COUNTER = Integer of the overall total counter (Energy, Volume, Custom).
But I will make it more clear in the divider description.

Edit: In the Dummy virtual devices it was also already explained in more detail.
https://wiki.domoticz.com/Dummy_for_vir ... es#Counter
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
willemd
Posts: 795
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: strange behavior: euro amount on counter

Post by willemd »

waltervl wrote: Friday 26 June 2026 8:41 It is already documented in the API wiki https://wiki.domoticz.com/Domoticz_API/ ... 7s#Counter
COUNTER = Integer of the overall total counter (Energy, Volume, Custom).
But I will make it more clear in the divider description.

Edit: In the Dummy virtual devices it was also already explained in more detail.
https://wiki.domoticz.com/Dummy_for_vir ... es#Counter
thanks for your effort
Post Reply