Bonjour à tous,
J'aurais une autre question concernant l'affichage. Je n'ai pas les unités (W et KW) qui s'affichent. Lorsque j'interroge l'idx j'ai bien les unités.
Code : Tout sélectionner
"ActTime" : 1444669428,
"ServerTime" : "Oct 12 2015 19:03:48",
"Sunrise" : "08:07:00",
"Sunset" : "19:03:00",
"result" : [
{
"BatteryLevel" : 100,
"CounterToday" : "6.021 kWh",
"CustomImage" : 0,
"Data" : "1128.892 kWh",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "Transmetteur",
"HaveTimeout" : false,
"ID" : "8072",
"LastUpdate" : "2015-10-12 19:02:47",
"Name" : "Electricité",
"Notifications" : "true",
"PlanID" : "0",
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 7,
"SubType" : "CM180",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "Energy",
"TypeImg" : "current",
"Unit" : 0,
"Usage" : "643 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "77"
}
],
"status" : "OK",
"title" : "Device