Dashticz Dial for power setpoint

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
heggink
Posts: 979
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Dashticz Dial for power setpoint

Post by heggink »

Hey Sander,

Rob added incremental functionality for setpoints a while back since I was looking for a setpoint device for my (self built) home battery (after which, he decided to also build one :-)).

As such, I have a need for an updown type dial using the unit that is defined in the device (Watt in my case). I have tried all sorts of combinations but the device keeps showing as a Celcius device instead of using Watts... Am I doing something wrong or is that functionality that does not exist (yet)? I think I am on the latest beta.

Here's what I have defined:
blocks['ess_setpoint'] = {
idx: 9538,
type: 'dial',
subtype: 'updown',
values: [
{
value: 'setpoint',
unit: 'W',
},
],
width: 4,
showring: true,
min: -12000,
max: 12000,
decimals: 0,
showunit: false,
shownumbers: false,
graph: false,
last_update: false
}

Thx!

Herman
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Dial for power setpoint

Post by Lokonli »

What kind of device type is 9538?
Please post the output of http://[domoticz ip:port]/json.htm?type=command&param=getdevices&rid=9538
User avatar
heggink
Posts: 979
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Dashticz Dial for power setpoint

Post by heggink »

{
"ActTime" : 1703959939,
"AstrTwilightEnd" : "18:39",
"AstrTwilightStart" : "06:42",
"CivTwilightEnd" : "17:13",
"CivTwilightStart" : "08:08",
"DayLength" : "07:43",
"NautTwilightEnd" : "17:58",
"NautTwilightStart" : "07:24",
"ServerTime" : "2023-12-30 19:12:19",
"SunAtSouth" : "12:41",
"Sunrise" : "08:49",
"Sunset" : "16:32",
"app_version" : "2023.2 (build 15760)",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "-10000",
"Description" : "",
"Favorite" : 1,
"HardwareDisabled" : false,
"HardwareID" : 136,
"HardwareName" : "Victron",
"HardwareType" : "MQTT Auto Discovery Client Gateway with LAN interface",
"HardwareTypeVal" : 125,
"HaveTimeout" : false,
"ID" : "0x8000000002",
"LastUpdate" : "2023-12-30 19:12:04",
"Name" : "ESS Setpoint",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"SetPoint" : "-10000",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "SetPoint",
"Timers" : "false",
"Type" : "Setpoint",
"TypeImg" : "override_mini",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "9538",
"max" : 12000.0,
"min" : -12000.0,
"step" : 10.0,
"vunit" : "Watt"
}
],
"status" : "OK",
"title" : "Devices"
}
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Dial for power setpoint

Post by Lokonli »

I've made some changes. Can you try latest beta?

The following now should work:

Code: Select all

blocks['ess_setpoint'] = {
    idx: 9538,
    type: 'dial',
    subtype: 'updown',
    width: 4,
    decimals: 0,
 }
If needed, you can set the following block parameters: max, min, unit, step
User avatar
heggink
Posts: 979
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Dashticz Dial for power setpoint

Post by heggink »

Works like a charm! Thx!
Best wishes.
Herman
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest