Energy Dashboard (Build in)
Moderator: leecollings
- 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)
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?
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
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
For the other items the counter does appear
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
- 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)
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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
Walter,
I let you know when there’s solar to test it.
I let you know when there’s solar to test it.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
I try to update the Electricity_(instant_and_counter) with the following command from my espeasy S0 devicewaltervl 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
Code: Select all
SendToHTTP 192.168.178.50,8080,/json.htm?type=command¶m=udevice&idx=915&nvalue=0&svalue=%eventvalue1%
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
-
- 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)
Try
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?
Code: Select all
SendToHTTP 192.168.178.50:8080/json.htm?type=command¶m=udevice&idx=915&nvalue=0&svalue=%eventvalue1%
Or should those comma's separate the values for the function?
Logic will get you from A to B. Imagination will take you everywhere.
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
The total count from my espeasy S0 I want to send to the Electricity_(instant_and_counter)
- Attachments
-
- espeasy S0
- Schermafdruk van 2025-02-07 15-59-35.png (27.51 KiB) Viewed 4435 times
-
- rule for sending to Electricity_(instant_and_counter)
- Schermafdruk van 2025-02-07 15-59-15.png (39.96 KiB) Viewed 4435 times
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
- 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)
From the wiki
So in your case %eventvalue1% should be a string POWER;ENERGY eg 123;54300/json.htm?type=command¶m=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)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
Code: Select all
SendToHTTP 192.168.178.50,8080,/json.htm?
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
-
- 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)
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.
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.
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
Thanks both for your help, you mean this?
I 'am not very good in this.
I 'am not very good in this.
- Attachments
-
- Schermafdruk van 2025-02-07 16-27-24.png (27.73 KiB) Viewed 4425 times
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
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¶m=udevice&idx=915&nvalue=0&svalue=1500;3500"
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
- 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)
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
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
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
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.
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
-
- Posts: 92
- Joined: Friday 08 November 2019 23:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
try this way
[S0#Total] - is the value that espeasy got from the sensor
SendToHTTP,192.168.178.50,8080,/json.htm?type=command¶m=udevice&idx=915&svalue=[S0#Total]
Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command¶m=udevice&idx=915&svalue=[S0#Power];[S0#Total]
[S0#Total] - is the value that espeasy got from the sensor
SendToHTTP,192.168.178.50,8080,/json.htm?type=command¶m=udevice&idx=915&svalue=[S0#Total]
Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command¶m=udevice&idx=915&svalue=[S0#Power];[S0#Total]
Last edited by mojso on Saturday 08 February 2025 0:09, edited 4 times in total.
- 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)
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
I very seldom use a HTTP JSON call to Domoticz, as I'm standardized on MQTT, so try the answer of @mojso first.
Regards
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
Thanks I will try this and let you know.
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
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.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¶m=udevice&idx=915&svalue=[S0#Total]
Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command¶m=udevice&idx=915&svalue=[S0#Power];[S0#Total]
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 92
- Joined: Friday 08 November 2019 23:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Energy Dashboard (Build in)
SendToHTTP,user:[email protected],8080,/json.htm?type=command¶m=udevice&idx=915&svalue=[S0#Power];[S0#Total]rron wrote: ↑Saturday 08 February 2025 12:25This 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.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¶m=udevice&idx=915&svalue=[S0#Total]
Or this for Power and Energy
SendToHTTP,192.168.178.50,8080,/json.htm?type=command¶m=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 (76.85 KiB) Viewed 3172 times
Last edited by mojso on Saturday 08 February 2025 13:43, edited 1 time in total.
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: Energy Dashboard (Build in)
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 (71.66 KiB) Viewed 3160 times
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
Who is online
Users browsing this forum: No registered users and 1 guest