Bar charts of energy consumption

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: Bar charts of energy consumption

Post by Daro1003 »

I ran the sudo git pull command and then restarted Domoticz.

1. Stop domoticz
2. Go to plugin folder and pull new version
cd domoticz/plugins/Tasmoticz
git pull
3. Start domoticz
4 sudo reboot

I removed the sensor and after a while it was added again without any changes:
Attachments
sensor.jpg
sensor.jpg (8.63 KiB) Viewed 2654 times
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Re: Bar charts of energy consumption

Post by joba1 »

I miss the step where you switch to the test branch:

3. git checkout energy-totals-as-counters
...


edit:
and just in case you are not familiar with this: to go back to the main version you would do

git checkout master
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: Bar charts of energy consumption

Post by Daro1003 »

Can someone post instructions on how to update Tasmoticz to this test version?
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bar charts of energy consumption

Post by waltervl »

0. Remove the incorrect sensor (from menu setup - devices)
1. Stop domoticz
2. Go to plugin folder and pull new version
cd domoticz/plugins/Tasmoticz
git pull
git checkout energy-totals-as-counters
3. Start domoticz
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: Bar charts of energy consumption

Post by Daro1003 »

Thank you.
I followed the instructions for the effect in the attached photo.
Looks like it worked. Is this how it's supposed to look in Domoticz?+

Thank you all for your help and for taking me seriously even though I am not a specialist and do not know programming.
I will insert charts from domoticz and Dashticz.

P.S What does the number zero in the right corner mean in my case? Below is the indication of total consumption.

In Dashticz, two separate bars are displayed for one block from Domoticz. This can be confusing.

Is it possible to somehow change the description of these blocks into two different descriptions?
Attachments
Dashticz.jpg
Dashticz.jpg (7.2 KiB) Viewed 2579 times
efekt.jpg
efekt.jpg (7.02 KiB) Viewed 2586 times
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: Bar charts of energy consumption

Post by Daro1003 »

On the desktop, dashticz is still a bar chart, why not a bar chart like in domoticz?
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Re: Bar charts of energy consumption

Post by joba1 »

Ok, some values should have come in by now to actually see charts.

Since I have never used these kind of sensors/bar charts before, it is hard to tell if they are ok.
Can anyone who has already used them manually before confirm the values/diagrams are as expected?
Then I would take the feature into the main branch for general use.

Thanks!

P.S: I don't know Dashticz, so can't comment on that...
User avatar
psubiaco
Posts: 222
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Bar charts of energy consumption

Post by psubiaco »

Maybe you can try the new PZEM plugin that permits to connect up to 51 PZEM meters to the same bus, using a cheap RS485/USB adapter or RS485/net/wifi module: https://github.com/CreasolTech/domoticz-pzem-016

Actually it was tested with PZEM-004T, PZEM-014 and PZEM-016.

Device names can be translated in your preferred language: if you write here the translated device names and language code, I can add that language in the plugin.

Many thanks for any feedback / suggestion / translation !
domoticz-pzem-016-screenshot1.png
domoticz-pzem-016-screenshot1.png (59.64 KiB) Viewed 2373 times
domoticz-pzem-016-hardware.png
domoticz-pzem-016-hardware.png (71.65 KiB) Viewed 2373 times
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

Re: Bar charts of energy consumption

Post by Daro1003 »

Friend @joba1, can you split this block in domoticz into two separate ones? Because in dashticz two blocks are shown but their name and order cannot be changed, only both blocks are under the same name because in domoticz there is one block. This block shows the total energy and the energy of yesterday. In the previous version there were two separate blocks in domoticz energy yesterday and total energy.
Please update the plugin.
Attachments
Energia całkowita11.jpg
Energia całkowita11.jpg (7.86 KiB) Viewed 2345 times
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Re: Bar charts of energy consumption

Post by joba1 »

Tasmoticz only creates domoticz devices. How it is displayed is up to domoticz. If you know a device type / subtype that works better, I can use that.

I have not yet merged the pull request with the changed energy meter type because I see strange reports. Not sure what to do about it:
domoticz-power-graph.png
domoticz-power-graph.png (128.56 KiB) Viewed 1958 times
I see positive and negative energy consumption bars in the 7 days hourly diagram (one big negative each day at 0:00, then all positive).
The daily total in the weekly/monthly/year overviews then sometimes is negative and sometimes positive. I do not produce power (and the used energy meter would report it positive anyways). So negative values are definitively wrong. Tasmota does not report them.
Any ideas where these come from - or how to get rid of them? The charts are nice, but only if correct... :)
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Re: Bar charts of energy consumption

Post by joba1 »

Nevermind. This is the daily total value from tasmota. This and the yesterday total don't work as energy counter, since domoticz expects an ever increasing value, not one that counts from zero every day.
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bar charts of energy consumption

Post by waltervl »

joba1 wrote: Monday 15 January 2024 13:24 Nevermind. This is the daily total value from tasmota. This and the yesterday total don't work as energy counter, since domoticz expects an ever increasing value, not one that counts from zero every day.
Then tasmoticz should create an incremental counter device and send only the delta.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Re: Bar charts of energy consumption

Post by joba1 »

I just undid the change for energy today and yesterday, back to "normal" custom counters in the pr.
The energy total looks very good - all values as expected, including calculated daily values.
Maybe someone else wants to test the PR before I commit (probably in a few days...)?
See waltervl's post from oct 17th for a howto...
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Re: Bar charts of energy consumption

Post by joba1 »

waltervl wrote: Monday 15 January 2024 13:27
joba1 wrote: Monday 15 January 2024 13:24 Nevermind. This is the daily total value from tasmota. This and the yesterday total don't work as energy counter, since domoticz expects an ever increasing value, not one that counts from zero every day.
Then tasmoticz should create an incremental counter device and send only the delta.
not sure if handling this special case is worth the effort. I even considered to ignore these entirely since everything is already calculated from the total by domoticz. Have to think about it... For now I'll keep the custom counter.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest