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
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

waltervl wrote: Wednesday 08 July 2026 16:32 I mean the report page (button top right in the log page)
Ah, I understand. No, calculation there is also wrong
Attachments
Screenshot_20260708-164641.png
Screenshot_20260708-164641.png (35.08 KiB) Viewed 1177 times
Last edited by imautohuttraeger on Wednesday 08 July 2026 17:05, edited 1 time in total.
Stop, look and listen.
User avatar
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

waltervl wrote: Wednesday 08 July 2026 16:36 What you can do is to get the json of the P1 device as the flow is:
- GetInitialDevices() calls: json.htm?type=command&param=getdevices&rid=...
- For the P1 device (idx == idP1), RefreshItem() calls handlePower(item).
- handlePower() reads item.price and stores it in $scope.p1Price

So what gives field price in the json from API call (change DomoIP, Port and IDXP1 to real values)

Code: Select all

http://DomoIP:Port/json.htm?type=command&param=getdevices&rid=IDXP1
Field "price" is also the wrong one (return kWh X 2 instead of X 1)

Code: Select all

{
	"ActTime" : 1783522317,
	"AstrTwilightEnd" : "00:00",
	"AstrTwilightStart" : "00:00",
	"CivTwilightEnd" : "22:33",
	"CivTwilightStart" : "04:29",
	"DayLength" : "16:30",
	"NautTwilightEnd" : "23:45",
	"NautTwilightStart" : "03:16",
	"ServerTime" : "2026-07-08 16:51:57",
	"SunAtSouth" : "13:31",
	"Sunrise" : "05:16",
	"Sunset" : "21:46",
	"app_version" : "2026.2 (build 18094)",
	"result" : 
	[
		{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"Color" : "[{\"from\":-10600,\"to\":0,\"color\":\"#66bb6a\"},{\"from\":0,\"to\":10600,\"color\":\"#ff0000\"}]",
			"Counter" : "0.213",
			"CounterDeliv" : "43.503",
			"CounterDelivToday" : "43.503 kWh",
			"CounterToday" : "0.212 kWh",
			"CustomImage" : 0,
			"Data" : "213.0;0;43503.0;0;0;7719.0",
			"Description" : "P1 Dummy mit den Hichi Werten.",
			"Favorite" : 1,
			"HardwareDisabled" : false,
			"HardwareID" : 2,
			"HardwareName" : "Dummy Hardware",
			"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
			"HardwareTypeVal" : 15,
			"HaveTimeout" : false,
			"ID" : "14262",
			"LastUpdate" : "2026-07-08 16:51:51",
			"Name" : "Stromz\u00e4hler P1",
			"Notifications" : "false",
			"PlanID" : "28",
			"PlanIDs" : 
			[
				28
			],
			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"SubType" : "Energy",
			"SwitchTypeVal" : 0,
			"Timers" : "false",
			"Type" : "P1 Smart Meter",
			"TypeImg" : "counter",
			"Unit" : 1,
			"Usage" : "0 Watt",
			"UsageDeliv" : "7719 Watt",
			"Used" : 1,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "530",
			"price" : "-86.1140"
		}
	],
	"status" : "OK",
	"title" : "Devices"
}

Stop, look and listen.
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

Looking at this screenshot you posted earlier you could try to change the P1Electricity report display to something else then Simple (Dynamic contract) as you do not have a dynamic contract.

Image
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
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

waltervl wrote: Wednesday 08 July 2026 17:21 Looking at this screenshot you posted earlier you could try to change the P1Electricity report display to something else then Simple (Dynamic contract) as you do not have a dynamic contract.

Image
I did that before without any result
Stop, look and listen.
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

Then it seems to be a deeper issue on energy cost calculation of P1 devices than just the energy dashboard ...
Perhaps start a new topic on this. Or make a GitHub issue.
Edit: seems to be a known issue viewtopic.php?t=42871
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
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

I have made a separate posting for P1 as you suggested.

https://forum.domoticz.com/viewtopic.p ... 0#p334680
Stop, look and listen.
User avatar
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

In the first posting two years ago, announcing this new energy dashboard, the screenshot includes 5 custom widget bubbles (instead of 3 like it is implemented now).

More custom widget bubbles would be quite useful for me and maybe other users, too.

Probably there is a reason for the reduction to only three, but I am not aware of it. However, according to design and space it seems to be feasible even for up to 7. Could it be re-established?
Stop, look and listen.
User avatar
gizmocuz
Posts: 3026
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard (Build in)

Post by gizmocuz »

imautohuttraeger wrote: Wednesday 29 July 2026 17:12 In the first posting two years ago, announcing this new energy dashboard, the screenshot includes 5 custom widget bubbles (instead of 3 like it is implemented now).

More custom widget bubbles would be quite useful for me and maybe other users, too.

Probably there is a reason for the reduction to only three, but I am not aware of it. However, according to design and space it seems to be feasible even for up to 7. Could it be re-established?
It's still 5... and working
Quality outlives Quantity!
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Energy Dashboard (Build in)

Post by waltervl »

@imautohuttraeger, there are 5: Gas, water and 3 free widgets.
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
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

Ah - now I understand 🥴. Sorry.

As I don't have gas and water meters in Domoticz, I never used it thus have never realized this correlation.

Would be great to have 4 or 5 custom widgets, if gas and/or water are not used. Idea: "Simply" deactivate (grey out) custom widget 4 and/or 5 if gas and/or water are used.

If you also think it is a good idea, I could make a GitHub feature request. But if not: Do you have any idea for a workaround so I could use it for electric meters?
Stop, look and listen.
User avatar
gizmocuz
Posts: 3026
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Energy Dashboard (Build in)

Post by gizmocuz »

This dashboard is meant for a overview of your consumption. (Grid Meter, Gas, Water, Battery), and you can have 3 additional meters.
That should be more than sufficient.
You can use it to display 3 additional kWh sensors already
Quality outlives Quantity!
User avatar
imautohuttraeger
Posts: 404
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Energy Dashboard (Build in)

Post by imautohuttraeger »

gizmocuz wrote: Thursday 30 July 2026 10:51 [...]
That should be more than sufficient.
You can use it to display 3 additional kWh sensors already
Got you, but that seems to be not valid for me 😉. I already have occupied it by three high consumers:
. heat pump 1 for heating
. car charger 1
. washing machine

Would like to see also e.g.
. heat pump 2 for hot water
. car charger 2
. cloths dryer
. ...

However, please interpret my wish just as a humble suggestion. I do highly appreciate all of your work and I am fully aware of the fact that the effords must be prioritized to feed most important things and broader needs.

::::smart-arse mode ON::::
BTW: I am taking the term "Energy Dashboard" obviously too literally. The volumes of gas and water don't show energy. And electric current beats gas as the future for heating both in terms of costs and environmental impact. 😜
::::smart-arse mode OFF::::
Stop, look and listen.
Post Reply