Closed sparky672 closed 8 years ago
It works fine for me. My last 10 days show both cooling and heating:
Make sure you use the latest version of the class; it was updated recently because Nest made changes to the API (more throttling), and the previous versions of the class had issues because of that.
Make sure you use the latest version of the class; it was updated recently because Nest made changes to the API (more throttling), and the previous versions of the class had issues because of that.
Okay, mine was out of date so I updated to the latest version of the API Class and simply loaded the examples.php
file along with my username/password... but I am seeing the same results. My 10-day energy report is showing absolutely nothing after October 4, 2016!
echo "Last 10 days energy report:\n";
$energy_report = $nest->getEnergyLatest();
jlog($energy_report);
is giving me....
Last 10 days energy report:
{
"objects": [
{
"object_revision": 1,
"object_timestamp": 1475648281126,
"object_key": "energy_latest.xxxxxxxx",
"value": {
"days": [
{
"day": "2016-10-03",
"device_timezone_offset": -18000,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
],
"events": [
{
"start": 0,
"end": 86399,
"type": 5,
"continuation": true,
"event_touched_by": 0,
"event_touched_where": 0
}
],
"rates": [
],
"system_capabilities": 1,
"incomplete_fields": 0
},
{
"day": "2016-10-04",
"device_timezone_offset": -18000,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
],
"events": [
{
"start": 0,
"end": 86399,
"type": 5,
"continuation": true,
"event_touched_by": 0,
"event_touched_where": 0
}
],
"rates": [
],
"system_capabilities": 1,
"incomplete_fields": 0
}
],
"recent_max_used": 0
}
}
]
}
----------
I don't understand why this would be.
Ah, I'm not using getEnergyLatest()
, I'm just querying periodically, and saving the result in my own database. My 10-days History on the web is definitely showing both heating and cooling; let me test with the example script.
Works fine for me; receiving results:
Last 10 days energy report:
{
"objects": [
{
"object_revision": 1,
"object_timestamp": 1476162089803,
"object_key": "energy_latest.xxxxxxxx",
"value": {
"days": [
{
"day": "2016-10-01",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 0,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
{
"start": 0,
"duration": 1406,
"type": 65536
},
{
"start": 3204,
"duration": 1801,
"type": 65536
},
{
"start": 6812,
"duration": 1807,
"type": 65536
},
{
"start": 10447,
"duration": 1829,
"type": 65536
},
{
"start": 14105,
"duration": 1829,
"type": 65536
},
{
"start": 17763,
"duration": 1828,
"type": 65536
},
{
"start": 21420,
"duration": 240,
"type": 65536
},
{
"start": 22558,
"duration": 719,
"type": 65536
},
{
"start": 25106,
"duration": 208,
"type": 65536
},
{
"start": 26213,
"duration": 719,
"type": 65536
},
{
"start": 28760,
"duration": 209,
"type": 65536
},
{
"start": 29868,
"duration": 718,
"type": 65536
},
{
"start": 32415,
"duration": 209,
"type": 65536
},
{
"start": 33523,
"duration": 719,
"type": 65536
},
{
"start": 36009,
"duration": 208,
"type": 65536
},
{
"start": 37116,
"duration": 704,
"type": 65536
},
{
"start": 39627,
"duration": 238,
"type": 65536
},
{
"start": 40794,
"duration": 688,
"type": 65536
},
{
"start": 43281,
"duration": 239,
"type": 65536
},
{
"start": 44409,
"duration": 689,
"type": 65536
},
{
"start": 46927,
"duration": 239,
"type": 65536
},
{
"start": 48065,
"duration": 689,
"type": 65536
},
{
"start": 50582,
"duration": 238,
"type": 65536
},
{
"start": 51719,
"duration": 688,
"type": 65536
},
{
"start": 54266,
"duration": 239,
"type": 65536
},
{
"start": 55374,
"duration": 688,
"type": 65536
},
{
"start": 57921,
"duration": 239,
"type": 65536
},
{
"start": 59029,
"duration": 689,
"type": 65536
},
{
"start": 61577,
"duration": 240,
"type": 65536
},
{
"start": 62690,
"duration": 688,
"type": 65536
},
{
"start": 65238,
"duration": 235,
"type": 65536
},
{
"start": 66343,
"duration": 688,
"type": 65536
},
{
"start": 68891,
"duration": 239,
"type": 65536
},
{
"start": 69999,
"duration": 690,
"type": 65536
},
{
"start": 72552,
"duration": 239,
"type": 65536
},
{
"start": 73661,
"duration": 689,
"type": 65536
},
{
"start": 76209,
"duration": 239,
"type": 65536
},
{
"start": 77318,
"duration": 689,
"type": 65536
},
{
"start": 79831,
"duration": 1829,
"type": 65536
},
{
"start": 83490,
"duration": 1830,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 39625,
"type": 2,
"touched_by": 4,
"touched_when": 1474209133,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 39626,
"end": 43208,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 43209,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209133,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-02",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 0,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
{
"start": 1829,
"duration": 1828,
"type": 65536
},
{
"start": 5438,
"duration": 1828,
"type": 65536
},
{
"start": 9094,
"duration": 1829,
"type": 65536
},
{
"start": 12751,
"duration": 12487,
"type": 65536
},
{
"start": 27967,
"duration": 928,
"type": 65536
},
{
"start": 31624,
"duration": 929,
"type": 65536
},
{
"start": 35282,
"duration": 929,
"type": 65536
},
{
"start": 38940,
"duration": 929,
"type": 65536
},
{
"start": 42598,
"duration": 930,
"type": 65536
},
{
"start": 46229,
"duration": 929,
"type": 65536
},
{
"start": 49887,
"duration": 929,
"type": 65536
},
{
"start": 53545,
"duration": 928,
"type": 65536
},
{
"start": 57171,
"duration": 929,
"type": 65536
},
{
"start": 60793,
"duration": 929,
"type": 65536
},
{
"start": 64451,
"duration": 929,
"type": 65536
},
{
"start": 68109,
"duration": 920,
"type": 65536
},
{
"start": 71757,
"duration": 928,
"type": 65536
},
{
"start": 75414,
"duration": 925,
"type": 65536
},
{
"start": 79068,
"duration": 2006,
"type": 65536
},
{
"start": 82875,
"duration": 1799,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 38699,
"type": 2,
"touched_by": 4,
"touched_when": 1474209133,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 38700,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209128,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-03",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
{
"start": 792,
"duration": 1828,
"type": 65536
},
{
"start": 4452,
"duration": 1828,
"type": 65536
},
{
"start": 8109,
"duration": 1829,
"type": 65536
},
{
"start": 11767,
"duration": 1828,
"type": 65536
},
{
"start": 15423,
"duration": 1828,
"type": 65536
},
{
"start": 19080,
"duration": 1829,
"type": 65536
},
{
"start": 24075,
"duration": 928,
"type": 65536
},
{
"start": 27731,
"duration": 929,
"type": 65536
},
{
"start": 31388,
"duration": 929,
"type": 65536
},
{
"start": 35046,
"duration": 928,
"type": 65536
},
{
"start": 38703,
"duration": 929,
"type": 65536
},
{
"start": 42360,
"duration": 909,
"type": 65536
},
{
"start": 45998,
"duration": 928,
"type": 65536
},
{
"start": 49655,
"duration": 914,
"type": 65536
},
{
"start": 53299,
"duration": 929,
"type": 65536
},
{
"start": 56957,
"duration": 925,
"type": 65536
},
{
"start": 60611,
"duration": 928,
"type": 65536
},
{
"start": 64265,
"duration": 929,
"type": 65536
},
{
"start": 67923,
"duration": 12020,
"type": 65536
},
{
"start": 81772,
"duration": 1833,
"type": 65536
},
{
"start": 85433,
"duration": 967,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 35099,
"type": 2,
"touched_by": 4,
"touched_when": 1474209128,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 35100,
"end": 37271,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 37272,
"end": 54066,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 54067,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209067,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-04",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
{
"start": 0,
"duration": 1239,
"type": 65536
},
{
"start": 3067,
"duration": 1824,
"type": 65536
},
{
"start": 6720,
"duration": 1829,
"type": 65536
},
{
"start": 10378,
"duration": 1830,
"type": 65536
},
{
"start": 14041,
"duration": 1829,
"type": 65536
},
{
"start": 17697,
"duration": 1828,
"type": 65536
},
{
"start": 21353,
"duration": 321,
"type": 65536
},
{
"start": 22573,
"duration": 599,
"type": 65536
},
{
"start": 25000,
"duration": 327,
"type": 65536
},
{
"start": 26227,
"duration": 2647,
"type": 65536
},
{
"start": 31603,
"duration": 929,
"type": 65536
},
{
"start": 35260,
"duration": 929,
"type": 65536
},
{
"start": 38918,
"duration": 928,
"type": 65536
},
{
"start": 42574,
"duration": 928,
"type": 65536
},
{
"start": 46231,
"duration": 929,
"type": 65536
},
{
"start": 49862,
"duration": 929,
"type": 65536
},
{
"start": 53520,
"duration": 929,
"type": 65536
},
{
"start": 57135,
"duration": 929,
"type": 65536
},
{
"start": 60792,
"duration": 929,
"type": 65536
},
{
"start": 64450,
"duration": 933,
"type": 65536
},
{
"start": 68112,
"duration": 904,
"type": 65536
},
{
"start": 69017,
"duration": 4801,
"type": 65536
},
{
"start": 74423,
"duration": 1195,
"type": 65536
},
{
"start": 78346,
"duration": 929,
"type": 65536
},
{
"start": 79818,
"duration": 895,
"type": 65536
},
{
"start": 82001,
"duration": 929,
"type": 65536
},
{
"start": 83469,
"duration": 898,
"type": 65536
},
{
"start": 85657,
"duration": 743,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 35099,
"type": 2,
"touched_by": 4,
"touched_when": 1474209067,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 35100,
"end": 48069,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 48070,
"end": 54067,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 54068,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209141,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-05",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 0,
"cycles": [
{
"start": 0,
"duration": 457,
"type": 65536
},
{
"start": 996,
"duration": 629,
"type": 65536
},
{
"start": 2914,
"duration": 1199,
"type": 65536
},
{
"start": 4650,
"duration": 628,
"type": 65536
},
{
"start": 6597,
"duration": 1202,
"type": 65536
},
{
"start": 8280,
"duration": 628,
"type": 65536
},
{
"start": 10257,
"duration": 1201,
"type": 65536
},
{
"start": 11936,
"duration": 633,
"type": 65536
},
{
"start": 13918,
"duration": 1151,
"type": 65536
},
{
"start": 15547,
"duration": 660,
"type": 65536
},
{
"start": 17554,
"duration": 1169,
"type": 65536
},
{
"start": 19205,
"duration": 659,
"type": 65536
},
{
"start": 21209,
"duration": 462,
"type": 65536
},
{
"start": 23079,
"duration": 448,
"type": 65536
},
{
"start": 24845,
"duration": 478,
"type": 65536
},
{
"start": 26731,
"duration": 452,
"type": 65536
},
{
"start": 28501,
"duration": 478,
"type": 65536
},
{
"start": 30370,
"duration": 482,
"type": 65536
},
{
"start": 32170,
"duration": 451,
"type": 65536
},
{
"start": 34030,
"duration": 478,
"type": 65536
},
{
"start": 35826,
"duration": 452,
"type": 65536
},
{
"start": 37687,
"duration": 480,
"type": 65536
},
{
"start": 39485,
"duration": 448,
"type": 65536
},
{
"start": 41341,
"duration": 479,
"type": 65536
},
{
"start": 43134,
"duration": 448,
"type": 65536
},
{
"start": 45022,
"duration": 480,
"type": 65536
},
{
"start": 46791,
"duration": 448,
"type": 65536
},
{
"start": 48674,
"duration": 478,
"type": 65536
},
{
"start": 50426,
"duration": 449,
"type": 65536
},
{
"start": 52341,
"duration": 475,
"type": 65536
},
{
"start": 54075,
"duration": 449,
"type": 65536
},
{
"start": 55994,
"duration": 483,
"type": 65536
},
{
"start": 57734,
"duration": 452,
"type": 65536
},
{
"start": 59654,
"duration": 478,
"type": 65536
},
{
"start": 61391,
"duration": 434,
"type": 65536
},
{
"start": 63293,
"duration": 509,
"type": 65536
},
{
"start": 65060,
"duration": 418,
"type": 65536
},
{
"start": 66946,
"duration": 509,
"type": 65536
},
{
"start": 68643,
"duration": 5182,
"type": 65536
},
{
"start": 76554,
"duration": 892,
"type": 65536
},
{
"start": 79846,
"duration": 1800,
"type": 65536
},
{
"start": 83447,
"duration": 1799,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 35099,
"type": 2,
"touched_by": 4,
"touched_when": 1474209141,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 35100,
"end": 37216,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 37217,
"end": 54024,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 54025,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209138,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-06",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 1860,
"total_fan_cooling_time": 660,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 0,
"usage_over_avg": 1860,
"cycles": [
{
"start": 949,
"duration": 1804,
"type": 65536
},
{
"start": 4551,
"duration": 1804,
"type": 65536
},
{
"start": 8157,
"duration": 1797,
"type": 65536
},
{
"start": 11783,
"duration": 1825,
"type": 65536
},
{
"start": 15437,
"duration": 1823,
"type": 65536
},
{
"start": 19089,
"duration": 1828,
"type": 65536
},
{
"start": 24019,
"duration": 925,
"type": 65536
},
{
"start": 27646,
"duration": 928,
"type": 65536
},
{
"start": 31302,
"duration": 929,
"type": 65536
},
{
"start": 34959,
"duration": 920,
"type": 65536
},
{
"start": 38608,
"duration": 880,
"type": 65536
},
{
"start": 42219,
"duration": 928,
"type": 65536
},
{
"start": 45875,
"duration": 929,
"type": 65536
},
{
"start": 49533,
"duration": 3346,
"type": 65536
},
{
"start": 52879,
"duration": 900,
"type": 65792
},
{
"start": 53779,
"duration": 239,
"type": 66560
},
{
"start": 54018,
"duration": 2750,
"type": 65536
},
{
"start": 56768,
"duration": 970,
"type": 65792
},
{
"start": 57738,
"duration": 420,
"type": 66560
},
{
"start": 58158,
"duration": 1322,
"type": 65536
},
{
"start": 60081,
"duration": 1201,
"type": 65536
},
{
"start": 63986,
"duration": 899,
"type": 65536
},
{
"start": 79259,
"duration": 5397,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 35099,
"type": 2,
"touched_by": 4,
"touched_when": 1474209138,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 35100,
"end": 37588,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 37589,
"end": 49458,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 49459,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209136,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-07",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 4920,
"total_fan_cooling_time": 690,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 1,
"whodunit": -1,
"recent_avg_used": 310,
"usage_over_avg": 4610,
"cycles": [
{
"start": 603,
"duration": 1833,
"type": 65536
},
{
"start": 4263,
"duration": 1828,
"type": 65536
},
{
"start": 7921,
"duration": 1828,
"type": 65536
},
{
"start": 11582,
"duration": 1828,
"type": 65536
},
{
"start": 15239,
"duration": 1828,
"type": 65536
},
{
"start": 18895,
"duration": 1828,
"type": 65536
},
{
"start": 23451,
"duration": 929,
"type": 65536
},
{
"start": 27109,
"duration": 928,
"type": 65536
},
{
"start": 30766,
"duration": 929,
"type": 65536
},
{
"start": 34424,
"duration": 929,
"type": 65536
},
{
"start": 38082,
"duration": 925,
"type": 65536
},
{
"start": 41736,
"duration": 929,
"type": 65536
},
{
"start": 45394,
"duration": 929,
"type": 65536
},
{
"start": 48133,
"duration": 1710,
"type": 65792
},
{
"start": 49843,
"duration": 481,
"type": 66560
},
{
"start": 50324,
"duration": 1618,
"type": 65536
},
{
"start": 51942,
"duration": 2410,
"type": 65792
},
{
"start": 54352,
"duration": 209,
"type": 66560
},
{
"start": 54561,
"duration": 4046,
"type": 65536
},
{
"start": 58607,
"duration": 815,
"type": 65792
},
{
"start": 59422,
"duration": 36,
"type": 65536
},
{
"start": 60054,
"duration": 2399,
"type": 65536
},
{
"start": 65182,
"duration": 925,
"type": 65536
},
{
"start": 68835,
"duration": 17565,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 35099,
"type": 2,
"touched_by": 4,
"touched_when": 1474209136,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 35100,
"end": 43960,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 43961,
"end": 48132,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 48133,
"end": 59421,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 59422,
"end": 59457,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 59458,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209133,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-08",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 0,
"whodunit": -1,
"recent_avg_used": 1130,
"usage_over_avg": -1130,
"cycles": [
{
"start": 0,
"duration": 12673,
"type": 65536
},
{
"start": 14473,
"duration": 1800,
"type": 65536
},
{
"start": 17473,
"duration": 599,
"type": 65536
},
{
"start": 18671,
"duration": 1201,
"type": 65536
},
{
"start": 21101,
"duration": 573,
"type": 65536
},
{
"start": 23174,
"duration": 358,
"type": 65536
},
{
"start": 24763,
"duration": 570,
"type": 65536
},
{
"start": 26830,
"duration": 17029,
"type": 65536
},
{
"start": 46589,
"duration": 883,
"type": 65536
},
{
"start": 50201,
"duration": 928,
"type": 65536
},
{
"start": 53856,
"duration": 929,
"type": 65536
},
{
"start": 55859,
"duration": 601,
"type": 65536
},
{
"start": 58139,
"duration": 299,
"type": 65536
},
{
"start": 61794,
"duration": 2413,
"type": 65536
},
{
"start": 65406,
"duration": 600,
"type": 65536
},
{
"start": 66607,
"duration": 7199,
"type": 65536
},
{
"start": 75006,
"duration": 1201,
"type": 65536
},
{
"start": 77481,
"duration": 2401,
"type": 65536
},
{
"start": 81084,
"duration": 596,
"type": 65536
},
{
"start": 82281,
"duration": 1229,
"type": 65536
},
{
"start": 84739,
"duration": 599,
"type": 65536
},
{
"start": 85937,
"duration": 463,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209133,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-09",
"device_timezone_offset": -14400,
"total_heating_time": 0,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 0,
"whodunit": -1,
"recent_avg_used": 1130,
"usage_over_avg": -1130,
"cycles": [
{
"start": 0,
"duration": 981,
"type": 65536
},
{
"start": 2210,
"duration": 388,
"type": 65536
},
{
"start": 3197,
"duration": 1438,
"type": 65536
},
{
"start": 5863,
"duration": 388,
"type": 65536
},
{
"start": 6850,
"duration": 1438,
"type": 65536
},
{
"start": 9516,
"duration": 389,
"type": 65536
},
{
"start": 10504,
"duration": 1438,
"type": 65536
},
{
"start": 13170,
"duration": 390,
"type": 65536
},
{
"start": 14159,
"duration": 1439,
"type": 65536
},
{
"start": 16857,
"duration": 389,
"type": 65536
},
{
"start": 17815,
"duration": 1443,
"type": 65536
},
{
"start": 20481,
"duration": 389,
"type": 65536
},
{
"start": 21468,
"duration": 216,
"type": 65536
},
{
"start": 22581,
"duration": 300,
"type": 65536
},
{
"start": 24081,
"duration": 419,
"type": 65536
},
{
"start": 25130,
"duration": 210,
"type": 65536
},
{
"start": 26239,
"duration": 302,
"type": 65536
},
{
"start": 27740,
"duration": 419,
"type": 65536
},
{
"start": 28788,
"duration": 210,
"type": 65536
},
{
"start": 29895,
"duration": 295,
"type": 65536
},
{
"start": 31392,
"duration": 418,
"type": 65536
},
{
"start": 32439,
"duration": 208,
"type": 65536
},
{
"start": 33547,
"duration": 297,
"type": 65536
},
{
"start": 35042,
"duration": 406,
"type": 65536
},
{
"start": 36046,
"duration": 238,
"type": 65536
},
{
"start": 37212,
"duration": 298,
"type": 65536
},
{
"start": 38698,
"duration": 347,
"type": 65536
},
{
"start": 39646,
"duration": 264,
"type": 65536
},
{
"start": 40845,
"duration": 298,
"type": 65536
},
{
"start": 42343,
"duration": 357,
"type": 65536
},
{
"start": 43298,
"duration": 268,
"type": 65536
},
{
"start": 44491,
"duration": 303,
"type": 65536
},
{
"start": 45996,
"duration": 357,
"type": 65536
},
{
"start": 46953,
"duration": 269,
"type": 65536
},
{
"start": 48125,
"duration": 299,
"type": 65536
},
{
"start": 49652,
"duration": 358,
"type": 65536
},
{
"start": 50608,
"duration": 268,
"type": 65536
},
{
"start": 51798,
"duration": 298,
"type": 65536
},
{
"start": 53325,
"duration": 325,
"type": 65536
},
{
"start": 54219,
"duration": 299,
"type": 65536
},
{
"start": 55447,
"duration": 270,
"type": 65536
},
{
"start": 56946,
"duration": 359,
"type": 65536
},
{
"start": 57874,
"duration": 299,
"type": 65536
},
{
"start": 59102,
"duration": 269,
"type": 65536
},
{
"start": 60599,
"duration": 359,
"type": 65536
},
{
"start": 61557,
"duration": 288,
"type": 65536
},
{
"start": 62774,
"duration": 268,
"type": 65536
},
{
"start": 64241,
"duration": 358,
"type": 65536
},
{
"start": 65196,
"duration": 300,
"type": 65536
},
{
"start": 66423,
"duration": 268,
"type": 65536
},
{
"start": 67891,
"duration": 359,
"type": 65536
},
{
"start": 68844,
"duration": 302,
"type": 65536
},
{
"start": 70106,
"duration": 267,
"type": 65536
},
{
"start": 71573,
"duration": 357,
"type": 65536
},
{
"start": 72498,
"duration": 295,
"type": 65536
},
{
"start": 73751,
"duration": 268,
"type": 65536
},
{
"start": 75217,
"duration": 354,
"type": 65536
},
{
"start": 76140,
"duration": 303,
"type": 65536
},
{
"start": 77397,
"duration": 269,
"type": 65536
},
{
"start": 78895,
"duration": 333,
"type": 65536
},
{
"start": 79795,
"duration": 1828,
"type": 65536
},
{
"start": 83424,
"duration": 1828,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 38699,
"type": 2,
"touched_by": 4,
"touched_when": 1474209133,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 38700,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209128,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
},
{
"day": "2016-10-10",
"device_timezone_offset": -14400,
"total_heating_time": 1680,
"total_cooling_time": 0,
"total_fan_cooling_time": 0,
"total_humidifier_time": 0,
"total_dehumidifier_time": 0,
"leafs": 0,
"whodunit": -1,
"recent_avg_used": 1130,
"usage_over_avg": 550,
"cycles": [
{
"start": 912,
"duration": 1828,
"type": 65536
},
{
"start": 4544,
"duration": 1830,
"type": 65536
},
{
"start": 8188,
"duration": 8661,
"type": 65536
},
{
"start": 16849,
"duration": 899,
"type": 65537
},
{
"start": 17748,
"duration": 4865,
"type": 65536
},
{
"start": 22613,
"duration": 782,
"type": 65537
},
{
"start": 23395,
"duration": 12055,
"type": 65536
},
{
"start": 38178,
"duration": 933,
"type": 65536
},
{
"start": 41840,
"duration": 888,
"type": 65536
},
{
"start": 45457,
"duration": 929,
"type": 65536
},
{
"start": 49115,
"duration": 929,
"type": 65536
},
{
"start": 52773,
"duration": 925,
"type": 65536
},
{
"start": 56427,
"duration": 928,
"type": 65536
},
{
"start": 60067,
"duration": 929,
"type": 65536
},
{
"start": 63724,
"duration": 929,
"type": 65536
},
{
"start": 67382,
"duration": 929,
"type": 65536
},
{
"start": 71040,
"duration": 929,
"type": 65536
},
{
"start": 74697,
"duration": 929,
"type": 65536
},
{
"start": 78351,
"duration": 852,
"type": 65536
},
{
"start": 79803,
"duration": 892,
"type": 65536
},
{
"start": 81002,
"duration": 5398,
"type": 65536
}
],
"events": [
{
"start": 0,
"end": 35099,
"type": 2,
"touched_by": 4,
"touched_when": 1474209128,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"continuation": true,
"event_touched_by": 0
},
{
"start": 35100,
"end": 61790,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"event_touched_by": 0
},
{
"start": 61791,
"end": 61868,
"type": 4,
"heat_temp": 20.5,
"cool_temp": 29,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 61869,
"end": 68399,
"type": 2,
"touched_by": 1,
"touched_when": 1474260646,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 22,
"cool_temp": 27,
"previous_type": 4,
"event_touched_by": 1,
"event_touched_where": 0
},
{
"start": 68400,
"end": 86399,
"type": 2,
"touched_by": 4,
"touched_when": 1474209067,
"touched_timezone_offset": -14400,
"touched_where": 1,
"heat_temp": 23,
"cool_temp": 26,
"event_touched_by": 0
}
],
"rates": [
],
"system_capabilities": 2977,
"incomplete_fields": 0
}
],
"recent_max_used": 17910
}
}
]
}
It's really odd since I've been using this for a few years, and even when my system was shut down, the API always showed the last 10 days.
Now I don't know what to make of this.
I'm thinking Nest changed something so now when there is no usage, the API reports nothing. I wish I could test this theory without having to power up the boiler.
Just an update:
This issue has nothing to do with your PHP class.
I checked the Nest App and website and they are also showing the same... no updates since October 4th. It's like the device has been offline since then, although it hasn't.
Luckily, I know a Level 2 contact person at Nest, and have already reported it to them.
I'll let you decide if you want to close this issue now or later; regardless, I intend on updating here with whatever the outcome. Thank you.
All was working great for last couple years.
Nest updated software on device to latest version on August 2, 2016. Maybe a coincidence, but the last ten days of data being returned by the API only contains August 3 & 4... nothing else.
I have not been using heat for last couple months, so maybe Nest API was updated to stop showing zeros for empty days. I don't really know and was wondering if somebody here is seeing the same thing.