Si j’isole les log de tileset et que je regarde le contenue, on voit que la freebox envoie null a la valeur de batterie
[2019-12-03 06:17:10][DEBUG] : Connexion GET sur la l'adresse mafreebox.free.fr/api/v6/home/tileset/8([])
[2019-12-03 06:17:10][DEBUG] : {
"result" : [ {
"data" : [ {
"ep_id" : 6,
"history" : [ {
"timestamp" : 1575228734,
"value" : "0" },
{
"timestamp" : 1575228811,
"value" : "1" },
{
"timestamp" : 1575230858,
"value" : "0" },
{
"timestamp" : 1575230973,
"value" : "1" },
{
"timestamp" : 1575231008,
"value" : "0" },
{
"timestamp" : 1575231074,
"value" : "1" },
{
"timestamp" : 1575231338,
"value" : "0" },
{
"timestamp" : 1575231523,
"value" : "1" },
{
"timestamp" : 1575233418,
"value" : "0" },
{
"timestamp" : 1575233516,
"value" : "1" },
{
"timestamp" : 1575233550,
"value" : "0" },
{
"timestamp" : 1575233678,
"value" : "1" },
{
"timestamp" : 1575236312,
"value" : "0" },
{
"timestamp" : 1575236372,
"value" : "1" },
{
"timestamp" : 1575264070,
"value" : "0" },
{
"timestamp" : 1575264153,
"value" : "1" },
{
"timestamp" : 1575264432,
"value" : "0" },
{
"timestamp" : 1575264555,
"value" : "1" },
{
"timestamp" : 1575266448,
"value" : "0" },
{
"timestamp" : 1575266617,
"value" : "1" },
{
"timestamp" : 1575266850,
"value" : "0" },
{
"timestamp" : 1575266919,
"value" : "1" },
{
"timestamp" : 1575266922,
"value" : "0" },
{
"timestamp" : 1575266982,
"value" : "1" },
{
"timestamp" : 1575267165,
"value" : "0" },
{
"timestamp" : 1575267225,
"value" : "1" },
{
"timestamp" : 1575268098,
"value" : "0" },
{
"timestamp" : 1575268331,
"value" : "1" },
{
"timestamp" : 1575302615,
"value" : "0" },
{
"timestamp" : 1575302807,
"value" : "1" },
{
"timestamp" : 1575302808,
"value" : "0" },
{
"timestamp" : 1575302960,
"value" : "1" },
{
"timestamp" : 1575302962,
"value" : "0" },
{
"timestamp" : 1575303040,
"value" : "1" },
{
"timestamp" : 1575304496,
"value" : "0" },
{
"timestamp" : 1575304970,
"value" : "1" },
{
"timestamp" : 1575304976,
"value" : "0" },
{
"timestamp" : 1575305036,
"value" : "1" },
{
"timestamp" : 1575306473,
"value" : "0" },
{
"timestamp" : 1575314427,
"value" : "1" },
{
"timestamp" : 1575314437,
"value" : "0" },
{
"timestamp" : 1575314516,
"value" : "1" },
{
"timestamp" : 1575314616,
"value" : "0" },
{
"timestamp" : 1575314941,
"value" : "1" },
{
"timestamp" : 1575315184,
"value" : "0" },
{
"timestamp" : 1575315324,
"value" : "1" },
{
"timestamp" : 1575315563,
"value" : "0" },
{
"timestamp" : 1575315637,
"value" : "1" },
{
"timestamp" : 1575316390,
"value" : "0" },
{
"timestamp" : 1575316580,
"value" : "1" } ],
"label" : "Détection",
"name" : "trigger",
"refresh" : 2000,
"signal_id" : 6,
"ui" : {
"access" : "r",
"display" : "text",
"icon_url" : "/resources/images/home/pictos/mouvement.png",
"status_text_range" : [ "Mouvement détecté",
"Aucun mouvement" ] },
"value" : true,
"value_type" : "bool" },
{
"ep_id" : 7,
"history" : [ {
"timestamp" : 1550766625,
"value" : "0" },
{
"timestamp" : 1550766411,
"value" : "1" },
{
"timestamp" : 1574953786,
"value" : "1" },
{
"timestamp" : 1574953787,
"value" : "1" },
{
"timestamp" : 1574953826,
"value" : "0" },
{
"timestamp" : 1574955609,
"value" : "1" },
{
"timestamp" : 1574955615,
"value" : "0" },
{
"timestamp" : 1574956183,
"value" : "1" },
{
"timestamp" : 1574956184,
"value" : "1" },
{
"timestamp" : 1574956196,
"value" : "0" },
{
"timestamp" : 1574956339,
"value" : "1" },
{
"timestamp" : 1574956345,
"value" : "0" },
{
"timestamp" : 1575304588,
"value" : "1" },
{
"timestamp" : 1575304906,
"value" : "0" } ],
"label" : "Couvercle",
"name" : "cover",
"refresh" : 2000,
"signal_id" : 7,
"ui" : {
"access" : "r",
"display" : "warning",
"icon_url" : "/resources/images/home/pictos/warning.png",
"status_text_range" : [ "Fermé",
"Ouvert" ],
"unit" : "" },
"value" : false,
"value_type" : "bool" },
{
"ep_id" : 9,
"label" : "Batterie faible",
"name" : "battery_warning",
"signal_id" : 9,
"ui" : {
"access" : "r",
"display" : "warning",
"icon_url" : "/resources/images/home/pictos/batt_0.png",
"range" : [ 0,
10 ],
"status_text_range" : [ "Batterie critique",
"Batterie faible" ],
"unit" : "%" },
"value" : null,
"value_type" : "int" },
{
"ep_id" : 0,
"label" : "",
"name" : "alarm1",
"refresh" : 2000,
"signal_id" : 3,
"slot_id" : 0,
"ui" : null,
"value" : true,
"value_type" : "bool" },
{
"ep_id" : 1,
"label" : "",
"name" : "alarm2",
"refresh" : 2000,
"signal_id" : 4,
"slot_id" : 1,
"ui" : null,
"value" : false,
"value_type" : "bool" } ],
"ep_type" : "signal",
"group" : {
"icon_url" : "",
"label" : "Salon" },
"icon_url" : "/resources/images/home/pictos/detecteur_mouvement.png",
"label" : "Détecteur de mouvements",
"node_id" : 8,
"type" : "alarm_sensor" } ],
"success" : true }
[2019-12-03 06:17:28][DEBUG] : Connexion GET sur la l'adresse mafreebox.free.fr/api/v6/home/tileset/12([])
[2019-12-03 06:17:28][DEBUG] : {
"result" : [ {
"data" : [ {
"ep_id" : 6,
"history" : [ {
"timestamp" : 1574318141,
"value" : "0" },
{
"timestamp" : 1574318146,
"value" : "1" },
{
"timestamp" : 1574343683,
"value" : "0" },
{
"timestamp" : 1574343690,
"value" : "1" },
{
"timestamp" : 1574366377,
"value" : "0" },
{
"timestamp" : 1574366382,
"value" : "1" },
{
"timestamp" : 1574366575,
"value" : "0" },
{
"timestamp" : 1574366581,
"value" : "1" },
{
"timestamp" : 1574439212,
"value" : "0" },
{
"timestamp" : 1574439220,
"value" : "1" },
{
"timestamp" : 1574440363,
"value" : "0" },
{
"timestamp" : 1574440369,
"value" : "1" },
{
"timestamp" : 1574440393,
"value" : "0" },
{
"timestamp" : 1574440399,
"value" : "1" },
{
"timestamp" : 1574442480,
"value" : "0" },
{
"timestamp" : 1574442486,
"value" : "1" },
{
"timestamp" : 1574467856,
"value" : "0" },
{
"timestamp" : 1574467859,
"value" : "1" },
{
"timestamp" : 1574531760,
"value" : "0" },
{
"timestamp" : 1574531766,
"value" : "1" },
{
"timestamp" : 1574533218,
"value" : "0" },
{
"timestamp" : 1574533229,
"value" : "1" },
{
"timestamp" : 1574617010,
"value" : "0" },
{
"timestamp" : 1574617012,
"value" : "1" },
{
"timestamp" : 1574669367,
"value" : "0" },
{
"timestamp" : 1574669371,
"value" : "1" },
{
"timestamp" : 1574699688,
"value" : "0" },
{
"timestamp" : 1574699693,
"value" : "1" },
{
"timestamp" : 1574892977,
"value" : "0" },
{
"timestamp" : 1574892985,
"value" : "1" },
{
"timestamp" : 1574906804,
"value" : "0" },
{
"timestamp" : 1574906813,
"value" : "1" },
{
"timestamp" : 1574957282,
"value" : "0" },
{
"timestamp" : 1574957284,
"value" : "1" },
{
"timestamp" : 1575043711,
"value" : "0" },
{
"timestamp" : 1575043717,
"value" : "1" },
{
"timestamp" : 1575047609,
"value" : "0" },
{
"timestamp" : 1575047614,
"value" : "1" },
{
"timestamp" : 1575069769,
"value" : "0" },
{
"timestamp" : 1575069775,
"value" : "1" },
{
"timestamp" : 1575081637,
"value" : "0" },
{
"timestamp" : 1575081642,
"value" : "1" },
{
"timestamp" : 1575268309,
"value" : "0" },
{
"timestamp" : 1575268313,
"value" : "1" },
{
"timestamp" : 1575302595,
"value" : "0" },
{
"timestamp" : 1575302600,
"value" : "1" },
{
"timestamp" : 1575304827,
"value" : "0" },
{
"timestamp" : 1575304829,
"value" : "1" },
{
"timestamp" : 1575304865,
"value" : "0" },
{
"timestamp" : 1575304866,
"value" : "1" } ],
"label" : "État",
"name" : "trigger",
"refresh" : 2000,
"signal_id" : 6,
"ui" : {
"access" : "r",
"display" : "icon",
"icon_url" : "/resources/images/home/pictos/porte_%.png",
"status_text_range" : [ "Ouvert",
"Fermé" ] },
"value" : true,
"value_type" : "bool" },
{
"ep_id" : 7,
"history" : [ {
"timestamp" : 1550767223,
"value" : "0" },
{
"timestamp" : 1574958960,
"value" : "1" },
{
"timestamp" : 1574958961,
"value" : "0" },
{
"timestamp" : 1574958962,
"value" : "0" },
{
"timestamp" : 1574958962,
"value" : "1" },
{
"timestamp" : 1574958974,
"value" : "0" },
{
"timestamp" : 1575304500,
"value" : "1" },
{
"timestamp" : 1575304543,
"value" : "0" },
{
"timestamp" : 1575304729,
"value" : "1" },
{
"timestamp" : 1575304784,
"value" : "0" } ],
"label" : "Couvercle",
"name" : "cover",
"refresh" : 2000,
"signal_id" : 7,
"ui" : {
"access" : "r",
"display" : "warning",
"icon_url" : "/resources/images/home/pictos/warning.png",
"status_text_range" : [ "Fermé",
"Ouvert" ] },
"value" : false,
"value_type" : "bool" },
{
"ep_id" : 9,
"label" : "Batterie faible",
"name" : "battery_warning",
"refresh" : 2000,
"signal_id" : 9,
"ui" : {
"access" : "r",
"display" : "warning",
"icon_url" : "/resources/images/home/pictos/batt_0.png",
"range" : [ 0,
10 ],
"status_text_range" : [ "Batterie critique",
"Batterie faible" ],
"unit" : "%" },
"value" : 100,
"value_type" : "int" },
{
"ep_id" : 0,
"label" : "",
"name" : "alarm1",
"refresh" : 2000,
"signal_id" : 3,
"slot_id" : 0,
"ui" : null,
"value" : true,
"value_type" : "bool" },
{
"ep_id" : 1,
"label" : "",
"name" : "alarm2",
"refresh" : 2000,
"signal_id" : 4,
"slot_id" : 1,
"ui" : null,
"value" : true,
"value_type" : "bool" } ],
"ep_type" : "signal",
"group" : {
"icon_url" : "",
"label" : "Salon" },
"icon_url" : "/resources/images/home/pictos/detecteur_ouverture.png",
"label" : "Détecteur d'ouvertures",
"node_id" : 12,
"type" : "alarm_sensor" } ],
"success" : true }
[2019-12-03 06:17:50][DEBUG] : Connexion GET sur la l'adresse mafreebox.free.fr/api/v6/home/tileset/14([])
[2019-12-03 06:17:50][DEBUG] : {
"result" : [ {
"data" : [ {
"ep_id" : 5,
"label" : "Batterie faible",
"name" : "battery_warning",
"signal_id" : 5,
"ui" : {
"access" : "r",
"display" : "warning",
"icon_range" : [ 0,
10 ],
"icon_url" : "/resources/images/home/pictos/batt_0.png",
"status_text_range" : [ "Batterie critique",
"Batterie faible" ],
"unit" : "%" },
"value" : null,
"value_type" : "int" },
{
"ep_id" : 2,
"history" : [ {
"timestamp" : 1566225876,
"value" : "2" },
{
"timestamp" : 1571933437,
"value" : "2" },
{
"timestamp" : 1574614532,
"value" : "2" },
{
"timestamp" : 1574614547,
"value" : "3" },
{
"timestamp" : 1575054045,
"value" : "2" },
{
"timestamp" : 1575054130,
"value" : "3" },
{
"timestamp" : 1575069682,
"value" : "2" },
{
"timestamp" : 1575304988,
"value" : "3" },
{
"timestamp" : 1575305032,
"value" : "2" },
{
"timestamp" : 1575305039,
"value" : "3" },
{
"timestamp" : 1575305043,
"value" : "2" },
{
"timestamp" : 1575305054,
"value" : "3" },
{
"timestamp" : 1575305080,
"value" : "2" },
{
"timestamp" : 1575305131,
"value" : "2" },
{
"timestamp" : 1575305141,
"value" : "3" },
{
"timestamp" : 1575305170,
"value" : "2" },
{
"timestamp" : 1575305180,
"value" : "3" },
{
"timestamp" : 1575305342,
"value" : "2" },
{
"timestamp" : 1575305783,
"value" : "2" } ],
"label" : "Bouton appuyé",
"name" : "pushed",
"signal_id" : 2,
"ui" : {
"access" : "r",
"display" : "none",
"icon_range" : [ 1,
2,
3,
4 ],
"icon_url" : "/resources/images/home/pictos/kfb_button_%.png",
"range" : [ 0,
1,
2,
3 ],
"status_text_range" : [ null,
"Alarme principale",
"Désactivation",
"Alarme secondaire" ] },
"value" : null,
"value_type" : "int" } ],
"ep_type" : "slot",
"group" : {
"icon_url" : "",
"label" : "" },
"icon_url" : "/resources/images/home/pictos/telecommande.png",
"label" : "Télécommande d'alarme",
"node_id" : 14,
"type" : "alarm_remote" } ],
"success" : true }