Display dial for P1 Smart Meter Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
langebroeck
Posts: 4
Joined: Wednesday 28 October 2015 10:19
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Display dial for P1 Smart Meter

Post by langebroeck »

Hello Forum,
Recently the Dashticz dashboard was introduced to me by family and now i expanded it with some features documented in the manual.
Now i am trying to make a dial view from the P1 smart meter, but i can't get it working as a dial.
I presented the same device [6] als as a graph and don't now if that is (part of) the problem.
I use the following code to present the device as dial:
blocks['p1'] = {
devices : [6],
title : 'P1 Smart Meter',
Type : 'dial',
width : 10,
min : -100,
max : 100,
showring : true,
showunit : true,
shownumbers: true,
last_update: false
}
I hope you can give me some tips to solve the problem.
Thank you in advance.
Frans
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Display dial for P1 Smart Meter

Post by Lokonli »

It's case sensitive.

Use 'type' not 'Type'
langebroeck
Posts: 4
Joined: Wednesday 28 October 2015 10:19
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Display dial for P1 Smart Meter

Post by langebroeck »

Thank you, that worked.
I better read better next time.
Reg Frans
User avatar
Bospieper
Posts: 166
Joined: Thursday 07 November 2019 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: NL
Contact:

Re: Display dial for P1 Smart Meter

Post by Bospieper »

Hi, I'm also trying to add the dial function to my dashticz dashboard, no luck sofar.
Need some advice in this.
The block config:

Code: Select all

blocks['Energie'] = {
     idx: [318],
     title: 'P1',
     type: 'dial',
     width: 2,
       min:   0,
       max:  2500,
       showring: true,
       showunit: true,
       shownumbers: true,
       showvalue: true
     
     
}
This is the result:
P1 dial.JPG
P1 dial.JPG (77.75 KiB) Viewed 1748 times
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Display dial for P1 Smart Meter

Post by Lokonli »

Bospieper wrote: Sunday 18 September 2022 22:29 Hi, I'm also trying to add the dial function to my dashticz dashboard, no luck sofar.
Need some advice in this.
The block config:

Code: Select all

blocks['Energie'] = {
     idx: [318],
     title: 'P1',
     type: 'dial',
     width: 2,
       min:   0,
       max:  2500,
       showring: true,
       showunit: true,
       shownumbers: true,
       showvalue: true
     
     
}
This is the result:
P1 dial.JPG
idx should not be an array, but just a number, like:

Code: Select all

  idx: 318,
 
User avatar
Bospieper
Posts: 166
Joined: Thursday 07 November 2019 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: NL
Contact:

Re: Display dial for P1 Smart Meter

Post by Bospieper »

Hi Lonkonli,
Unfortunately no change after adjusting the idx
Piet
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Display dial for P1 Smart Meter

Post by Lokonli »

How did you add the block to a column?
You should use 'Energie'



Verstuurd vanaf mijn SM-A526B met Tapatalk


User avatar
Bospieper
Posts: 166
Joined: Thursday 07 November 2019 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: NL
Contact:

Re: Display dial for P1 Smart Meter

Post by Bospieper »

Knipsel.JPG
Knipsel.JPG (17.42 KiB) Viewed 1681 times
Thanx :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest