When developing my dashticz dashboards I often have great difficulty finding the correct identification/naming of the fields to use.
For example I want to add a customHeader to a graph with data from 2 sensors:
1) One is a kWH device and therefore I include "devices[3].Usage" (with capital) in the header definition and this works fine (the domoticz field is "usage" without a capital)
2) The other is a custom sensor and therefore I try "devices[106].SensorValue" (since the domoticz field is sensorValue) but this results in "undefined" to be displayed. I have tried many other variations........ The only solution I have found is to use "devices[106].Data" but this then also includes the unit of measure.
In custom graphs I can use d.v_3 but then this is not working in custom headers.
What is the logic for conversion from domoticz to dashticz naming? Where can I find this in the documentation?
dashticz field naming?
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 2290
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dashticz field naming?
For device field names Dashticz uses the names as obtained via the Domoticz json interface:
(Replace 123 with your Domoticz device is)
The block parameter and config parameter naming is a bit messy.
(Personally I prefer camelCase, so maybe I'll change all parameters to that, someday.)
Code: Select all
http://domoticz ip:port/json.htm?type=devices&rid=123
The block parameter and config parameter naming is a bit messy.
(Personally I prefer camelCase, so maybe I'll change all parameters to that, someday.)
-
- Posts: 649
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: dashticz field naming?
Thanks, that json hint takes out the guesswork. Very useful and saving lots of time 

Who is online
Users browsing this forum: No registered users and 1 guest