I have make a dial with three devices but one data is always zero.
This device is of a type Humidity see the json file
Code: Select all
{
"ActTime" : 1654421561,
"AstrTwilightEnd" : "00:00",
"AstrTwilightStart" : "00:00",
"CivTwilightEnd" : "22:48",
"CivTwilightStart" : "04:22",
"DayLength" : "16:46",
"NautTwilightEnd" : "00:11",
"NautTwilightStart" : "03:00",
"ServerTime" : "2022-06-05 11:32:41",
"SunAtSouth" : "13:35",
"Sunrise" : "05:13",
"Sunset" : "21:58",
"app_version" : "2022.1",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 100,
"CustomImage" : 0,
"Data" : "Humidity 54 %",
"Description" : "",
"Favorite" : 1,
"HardwareDisabled" : false,
"HardwareID" : 7,
"HardwareName" : "Sensorgateway",
"HardwareType" : "deCONZ plugin",
"HardwareTypeVal" : 94,
"HaveTimeout" : false,
"Humidity" : 54,
"HumidityStatus" : "Comfortable",
"ID" : "00:15:8d:00:07:e2:40:6e-01-0405",
"LastUpdate" : "2022-06-05 11:30:10",
"Name" : "Luchtvochtigheid Woonkamer",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "LaCrosse TX3",
"Timers" : "false",
"Type" : "Humidity",
"TypeImg" : "temperature",
"Unit" : 3,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "45"
}
],
"status" : "OK",
"title" : "Devices"
}
Code: Select all
blocks['klimaat_woonkamer'] = {
idx: 46,
title: 'Woonkamer',
type: 'dial',
setpoint: 20.5,
min: 5,
max: 40,
width: 10,
last_update: false, // disabling last update to allow for more room
values : [
{
idx: 45,
unit: '(%)'
},
{
idx: 47,
unit: 'hPa'
},
]
}