03-10-2020, 10:48 PM
voici tout ce que l'API peut retourner, il faut faire son shopping :
Citation :/* strucutre de $infos
[current_state] => stdClass Object
[mode] => heat | off | heat,auto-eco,away
[temperature] => 20.73999
[backplate_temperature] => 20.73999
[humidity] => 42
[ac] =>
[heat] => | 1 (""|1 if is heating)
[alt_heat] =>
[fan] =>
[hot_water] =>
[auto_away] => -1
[manual_away] => | 1
[structure_away] => | 1
[leaf] =>
[battery_level] => 3.954
[active_stages] => stdClass Object
[heat] => stdClass Object
[stage1] => 1
[stage2] =>
[stage3] =>
[alt] =>
[alt_stage2] =>
[aux] =>
[emergency] =>
[cool] => stdClass Object
[stage1] =>
[stage2] =>
[stage3] =>
[eco_mode] => schedule
[eco_temperatures_assist_enabled] => 1
[eco_temperatures] => stdClass Object
[low] => 16.15352
[high] =>
[target] => stdClass Object
[mode] => heat | off
[temperature] => 21
[time_to_target] => 0
[sensors] => stdClass Object
[all] => Array ( )
[active] => Array ( )
[active_temperatures] => Array ( )
[serial_number] => xxxxxxxxxxxxxxxx
[scale] => C
[location] => df915920-c2a3-11e4-9221-22000b4b8cc7
[network] => stdClass Object
[online] => 1
[last_connection] => 2020-02-15 18:39:32
[last_connection_UTC] => 2020-02-15 17:39:32
[wan_ip] => /xxx.xxx.xxx.xxx
[local_ip] => xxx.xxx.xxx.xxx
[mac_address] => xxxxxxxxxxxx
[name] => Nest Living
[auto_cool] =>
[auto_heat] => 19