Page 14 of 15

Re: Energy Dashboard (Build in)

Posted: Saturday 08 February 2025 13:48
by mojso
rron wrote: Saturday 08 February 2025 13:35 There is some progress when I use your call. Only "Vandaag"is giving a value but not on top. Have I forgotten something?
Show me with a picture in espeasy what values ​​you get from the sensor.

Re: Energy Dashboard (Build in)

Posted: Saturday 08 February 2025 13:50
by rron
This one is from the espeasy.

Re: Energy Dashboard (Build in)

Posted: Saturday 08 February 2025 14:10
by mojso
on the device in Domoticz the value at the top is the current power W, the value below is the energy consumed for that day in KWh.

In your case, some script is needed because it is a pulse counter. For example, one pulse is equal to how many.

in my case I use this

Re: Energy Dashboard (Build in)

Posted: Saturday 08 February 2025 14:39
by mojso

Re: Energy Dashboard (Build in)

Posted: Saturday 08 February 2025 15:04
by rron
Thanks for your help I made a mistake with the setting.

Re: Energy Dashboard (Build in)

Posted: Sunday 09 February 2025 11:23
by FlyingDomotic
PZEM are definitively NOT pulse counters, but do return values on serial port, when asked to do so by driver.

You should use https://espeasy.readthedocs.io/en/lates ... /P102.html driver and declare it as PZEM instead of pulse counter.

Re: Energy Dashboard (Build in)

Posted: Sunday 09 February 2025 11:32
by rron
I have used this one.

Re: Energy Dashboard (Build in)

Posted: Sunday 09 February 2025 12:34
by rron
mojso wrote: Saturday 08 February 2025 13:22
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
Can you show me what settings you use for. Have you a different name or setting Count,Total and Time?

Re: Energy Dashboard (Build in)

Posted: Sunday 09 February 2025 18:33
by mojso
my electricity measurement is like here on this link
viewtopic.php?t=20820

NOT pulse counter

Re: Energy Dashboard (Build in)

Posted: Wednesday 19 February 2025 12:54
by jannl
The energy dashboard works fine if connected to a trusted network, however, when I log in remotely I only see zero's. Other variables display the correct values.

This looks like a security issue/setting, however looking through the settings and searching the forum hasn't given a solution (yet).

Anyone?

Re: Energy Dashboard (Build in)

Posted: Wednesday 19 February 2025 13:17
by gizmocuz
The user you use to login remotely, does it have rights to see the sensors used by the dashboard?

Re: Energy Dashboard (Build in)

Posted: Wednesday 19 February 2025 13:28
by jannl
As far as I can see. For instance, "pv power' has a value when I check in the utility tab, while it is zero in Dashboard, even no system time which I just enabled.

Re: Energy Dashboard (Build in)

Posted: Wednesday 19 February 2025 20:31
by waltervl
Are you on latest 2024.7 beta as there non admin users are enabled to see energy dashboard https://github.com/domoticz/domoticz/bl ... istory.txt

Re: Energy Dashboard (Build in)

Posted: Thursday 20 February 2025 7:44
by jannl
Yes I am on 2024.7 and yes I try with an admin user. A normal user does not show the menu indeed.

Re: Energy Dashboard (Build in)

Posted: Thursday 20 February 2025 22:12
by waltervl
jannl wrote: Thursday 20 February 2025 7:44 Yes I am on 2024.7 and yes I try with an admin user. A normal user does not show the menu indeed.
Perhaps update to latest beta and try again.

Re: Energy Dashboard (Build in)

Posted: Friday 21 February 2025 11:43
by jannl
hm, I will see if I can find time for that, propably needs some testing.

Re: Energy Dashboard (Build in)

Posted: Tuesday 25 March 2025 17:48
by turbotobbe
I cant get the energy dashboard showing anything, i have added p1 meter, pv, battery and battery soc but it just showing zeros, not even the system time is showing as for jannl.

I am logged in as administrator in local network.
Skärmbild 2025-03-25 174613.jpg
Skärmbild 2025-03-25 174613.jpg (84.27 KiB) Viewed 788 times

Re: Energy Dashboard (Build in)

Posted: Tuesday 25 March 2025 19:07
by waltervl
Are you behind a proxy? Did you clear your browser cache? Try it in an incognito/private browser session.

Re: Energy Dashboard (Build in)

Posted: Wednesday 26 March 2025 8:31
by gizmocuz
Also open your browsers development console (F12) dock it to the bottom, and open the console tab.
Maybe it displays some error messages?

Re: Energy Dashboard (Build in)

Posted: Sunday 30 March 2025 15:38
by turbotobbe
Yes, it is behind an Nginx Proxy Manager and it actually works when i browse directly to http://192.168.1.61:8081/#/Energy. I don't know why i didn't try that. :o

Development console said "angular-websocket.js:127 WebSocket connection to 'ws://xx.xx.xx/json' failed: " and when I enable Websocket Support in NPM it starts working.

Thank you both!