Energy Dashboard (Build in)

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

An incremental counter only monitors kWh and the energy dashboard needs the Watt value to calculate the current energy flows in watts in your environment.

Perhaps you have another Domoticz devices that shows the Watt value?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

It’s from a dummy device. I don’t know which device i should select for my S0 counter
For the other items the counter does appear
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

A solar inverter normally gives its total energy (In kWh or Wh) and its current generated Power (in Watt).
If these values are given by your inverter they normally should be supplied to an Electricity (Instand and counter) device
https://wiki.domoticz.com/Dummy_for_vir ... d_counter)

That device should be set to type Return so it can be used as solar input in the Energy dashboard
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

Walter,

I let you know when there’s solar to test it.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

waltervl wrote: Sunday 02 February 2025 23:40 A solar inverter normally gives its total energy (In kWh or Wh) and its current generated Power (in Watt).
If these values are given by your inverter they normally should be supplied to an Electricity (Instand and counter) device
https://wiki.domoticz.com/Dummy_for_vir ... d_counter)

That device should be set to type Return so it can be used as solar input in the Energy dashboard
I try to update the Electricity_(instant_and_counter) with the following command from my espeasy S0 device

Code: Select all

 SendToHTTP 192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&nvalue=0&svalue=%eventvalue1%
but that's not oke. It doesn't update the sensor.
If I try a different type sensor such as manage counter it does work. How must I adapt this call in a way that update the Electricity_(instant_and_counter)?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Energy Dashboard (Build in)

Post by Kedi »

Try

Code: Select all

 SendToHTTP 192.168.178.50:8080/json.htm?type=command&param=udevice&idx=915&nvalue=0&svalue=%eventvalue1%
I suppose %eventvalue1% is transleted to a value. B.t.w. what is that value? And is it a string?
Or should those comma's separate the values for the function?
Logic will get you from A to B. Imagination will take you everywhere.
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

The total count from my espeasy S0 I want to send to the Electricity_(instant_and_counter)
Attachments
espeasy S0
espeasy S0
Schermafdruk van 2025-02-07 15-59-35.png (27.51 KiB) Viewed 4440 times
rule for sending to Electricity_(instant_and_counter)
rule for sending to Electricity_(instant_and_counter)
Schermafdruk van 2025-02-07 15-59-15.png (39.96 KiB) Viewed 4440 times
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
waltervl
Posts: 5842
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

From the wiki
/json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=POWER;ENERGY
IDX = id of your device (This number can be found in the devices tab in the column "IDX")
POWER = current power (W)
ENERGY = Integer, total cumulative energy in Watt-hours (Wh)
So in your case %eventvalue1% should be a string POWER;ENERGY eg 123;54300
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

Code: Select all

SendToHTTP 192.168.178.50,8080,/json.htm?
This part is good, if I change it to

Code: Select all

SendToHTTP 192.168.178.50,8080,/json.htm?

I got a send error
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Energy Dashboard (Build in)

Post by Kedi »

The content of %eventvalue1% should be 2 values separated by a ;
See https://wiki.domoticz.com/Domoticz_API/ ... d_counter)
The doc of espeasy writes that there should be a comma between SentToHTTP and the first parameter.

@waltervl was quicker.
Logic will get you from A to B. Imagination will take you everywhere.
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

Thanks both for your help, you mean this?

I 'am not very good in this.
Attachments
Schermafdruk van 2025-02-07 16-27-24.png
Schermafdruk van 2025-02-07 16-27-24.png (27.73 KiB) Viewed 4430 times
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

If I test it with these values the sensor isn't update. If I try a different sensor then it works. My conclusion is that there is something wrong in this call.

Code: Select all

curl "http://192.168.178.50:8080/json.htm?type=command&param=udevice&idx=915&nvalue=0&svalue=1500;3500"
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
FireWizard
Posts: 1886
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Energy Dashboard (Build in)

Post by FireWizard »

Hi,

If I look to your IP address, I see: 192.168.178.50,8080. (a comma between 50 and 8080)
Is that correct?
Shouldn't that be: 192.168.178.50:8080 (a colon between 50 and 8080)
And what does the comma in front of the forward slash doing.
I do not know the ESPeasy, so sorry, if I'm wrong.

And I also see, that your values 1500;3500 are not a string. If it is not a string Domoticz will never update the value.

Regards
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

Yes the ipadres comma is good. I do not get any error. Do you have a example for a string to update electricity instand and counter because that is the problem. The string works for other devices and if you put a value like 1500 then it is updated.
If searched the wiki and the examples I have found don not work for the electricity instand and counter.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
mojso
Posts: 92
Joined: Friday 08 November 2019 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by mojso »

try this way
[S0#Total] - is the value that espeasy got from the sensor

SendToHTTP,192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Total]

Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Power];[S0#Total]
Last edited by mojso on Saturday 08 February 2025 0:09, edited 4 times in total.
User avatar
FireWizard
Posts: 1886
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Energy Dashboard (Build in)

Post by FireWizard »

Hi,

I very seldom use a HTTP JSON call to Domoticz, as I'm standardized on MQTT, so try the answer of @mojso first.

Regards
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

Thanks I will try this and let you know.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

mojso wrote: Friday 07 February 2025 18:11 try this way
[S0#Total] - is the value that espeasy got from the sensor

SendToHTTP,192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Total]

Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Power];[S0#Total]
This call works with every virtual device except the electricity (instant +counter) and that is the one I need for the S0 setting in my energy dashboard.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
mojso
Posts: 92
Joined: Friday 08 November 2019 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energy Dashboard (Build in)

Post by mojso »

rron wrote: Saturday 08 February 2025 12:25
mojso wrote: Friday 07 February 2025 18:11 try this way
[S0#Total] - is the value that espeasy got from the sensor

SendToHTTP,192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Total]

Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Power];[S0#Total]
This call works with every virtual device except the electricity (instant +counter) and that is the one I need for the S0 setting in my energy dashboard.
SendToHTTP,user:[email protected],8080,/json.htm?type=command&param=udevice&idx=915&svalue=[S0#Power];[S0#Total]

In my case work

but for p1 smart meter it will not work for that you need through a script
Attachments
Screenshot_20250208_130543_Chrome.jpg
Screenshot_20250208_130543_Chrome.jpg (76.85 KiB) Viewed 3177 times
Last edited by mojso on Saturday 08 February 2025 13:43, edited 1 time in total.
rron
Posts: 247
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Energy Dashboard (Build in)

Post by rron »

There is some progress when I use your call. Only "Vandaag"is giving a value but not on top. Have I forgotten something?
Attachments
Schermafdruk van 2025-02-08 13-31-16.png
Schermafdruk van 2025-02-08 13-31-16.png (71.66 KiB) Viewed 3165 times
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest