Hi,
I am adding the Smart AC Controller device in the Netatmo integration. I can have it work on my local dev instance if I overwrite authentication token with my token (The one I got with my own netatmo application written in js). But If I use the token obtained through HA authentication, it works but it does not get the same answer from netatmo api. There are less devices in the answer. ANd there is no NAC device in it. Below are the answer of Netatmo api with my token and with ha token. Any help to undestand the problem ?
curl -X GET "https://api.netatmo.com/api/homestatus?home_id=652ac4ee1b353231dd049bc3" -H "accept: application/json" -H "Authorization: Bearer b4508278ef7-----------------|13ab80da6770d9b4-------------------"
"response": {
"status": "ok",
"time_server": 1739695743,
"body": {
"home": {
"id": "652ac4ee1b353231dd049bc3",
"modules": [
{
"type": "NAMain",
"firmware_revision": 204,
"wifi_strength": 66,
"last_status_store": 1739695327,
"co2_calibrating": false,
"hw_version": 202,
"id": "70:ee:50:a5:ad:6e",
"Temperature": 23.8,
"temperature": 23.8,
"CO2": 742,
"co2": 742,
"Humidity": 40,
"humidity": 40,
"Noise": 44,
"noise": 44,
"Pressure": 1014.1,
"pressure": 1014.1,
"AbsolutePressure": 1010.9,
"absolute_pressure": 1010.9,
"time_utc": 1739695742,
"ts": 1739695742,
"min_temp": 18.6,
"max_temp": 23.8,
"date_max_temp": 1739694722,
"date_min_temp": 1739684431,
"temp_trend": "up",
"pressure_trend": "down",
"homekit_status": "configured",
"wifi_state": "high"
},
{
"id": "02:00:00:a4:87:2c",
"type": "NAModule1",
"battery_level": 5382,
"last_message": 1739695737,
"last_seen": 1739695724,
"rf_strength": 58,
"firmware_revision": 53,
"reachable": true,
"Temperature": 10.2,
"temperature": 10.2,
"Humidity": 80,
"humidity": 80,
"time_utc": 1739695314,
"ts": 1739695314,
"min_temp": 7.3,
"max_temp": 10.2,
"date_max_temp": 1739695314,
"date_min_temp": 1739675320,
"temp_trend": "up",
"hw_version": 11,
"bridge": "70:ee:50:a5:ad:6e",
"battery_state": "medium",
"rf_state": "full"
},
{
"aps_key_pair_amount": 3,
"busy": false,
"configure": false,
"configured": true,
"connection": "wifi",
"firmware_revision": 901,
"firmware_revision_factory": 120,
"hardware_version": 218,
"id": "00:04:74:35:35:fc",
"last_configs_update": 1739695500,
"last_seen": 1739693236,
"local_ipv4": "192.168.1.15",
"local_ipv6": "FE80::204:74FF:FE35:35FC",
"offload": false,
"offload_meters": [],
"open_zigbee": false,
"otau_downloads": 0,
"packaging": "mobile",
"product_configuration": "no_configuration",
"reachable": true,
"sequence_id": 89618,
"spi_alive": true,
"subtype": "standalone",
"timestamp": 1739695742,
"type": "NLG",
"uptime": 7046071,
"use_pincode": false,
"wifi_strength": 20
},
{
"brightness": 100,
"configured": true,
"firmware_revision": 35087696,
"id": "f0:d1:b8:00:00:1d:3b:9f",
"last_seen": 1739695625,
"last_user_interaction": 1739658251,
"on": false,
"power": 0,
"power_source": "mains",
"reachable": true,
"type": "Z3L",
"uptime": 7046071,
"variant": "Z3L:generic_dimmable_light",
"bridge": "00:04:74:35:35:fc"
},
{
"battery_level": 2600,
"configured": false,
"firmware_revision": 77,
"id": "00:04:74:00:00:c4:38:68",
"last_seen": 1739658251,
"last_user_interaction": 1739658251,
"power_source": "battery",
"reachable": true,
"subtype": "on_off_remote",
"type": "NLT",
"uptime": 7046071,
"variant": "NLT:remote_control_on_off_dimmer",
"bridge": "00:04:74:35:35:fc",
"battery_state": "high"
},
{
"brand_id": 0,
"command_received": false,
"current_protocol": "92000",
"fan_end_time": null,
"fan_mode": "auto",
"fan_setpoint_from": "parent",
"firmware_revision": 1030,
"hardware_version": 223,
"id": "70:ee:50:ad:1d:06",
"operating_mode": "ready",
"protocol_list": ["70386", "92000", "36715", "2114"],
"protocol_validated": true,
"sequence_id": 82615,
"type": "NAC",
"vertical_fan_swing_mode": "auto",
"wifi_strength": 40
}
],
"rooms": [
{
"anticipating": false,
"humidity": 49,
"id": "4101059324",
"reachable": true,
"therm_measured_temperature": 21.2,
"therm_setpoint_end_time": null,
"therm_setpoint_mode": "home",
"therm_setpoint_start_time": 1739684504,
"therm_setpoint_temperature": 22
}
]
}
}
}
},
curl -X GET "https://api.netatmo.com/api/homestatus?home_id=652ac4ee1b3532----------" -H "accept: application/json" -H "Authorization: Bearer 6517be478e1--------------|43c1ff0b8f4abd4-----------"
"response": {
"status": "ok",
"time_server": 1739695762,
"body": {
"home": {
"id": "652ac4ee1b353231dd049bc3",
"modules": [
{
"id": "70:ee:50:a5:ad:6e",
"type": "NAMain",
"firmware_revision": 204,
"wifi_state": "high",
"wifi_strength": 63,
"ts": 1739695758,
"temperature": 23.8,
"co2": 726,
"humidity": 40,
"noise": 49,
"pressure": 1014.1,
"absolute_pressure": 1010.9
},
{
"id": "02:00:00:a4:87:2c",
"type": "NAModule1",
"battery_state": "medium",
"battery_level": 5382,
"firmware_revision": 53,
"rf_state": "full",
"rf_strength": 58,
"last_seen": 1739695724,
"reachable": true,
"bridge": "70:ee:50:a5:ad:6e",
"ts": 1739695314,
"temperature": 10.2,
"humidity": 80
},
{
"id": "00:04:74:35:35:fc",
"type": "NLG",
"offload": false,
"firmware_revision": 901,
"last_seen": 1739693236,
"wifi_strength": 20,
"reachable": true,
"use_pincode": false
},
{
"id": "f0:d1:b8:00:00:1d:3b:9f",
"type": "Z3L",
"on": false,
"brightness": 100,
"firmware_revision": 35087696,
"last_seen": 1739695625,
"power": 0,
"reachable": true,
"bridge": "00:04:74:35:35:fc"
},
{
"id": "00:04:74:00:00:c4:38:68",
"type": "NLT",
"battery_state": "high",
"battery_level": 2600,
"firmware_revision": 77,
"last_seen": 1739658251,
"reachable": true,
"bridge": "00:04:74:35:35:fc"
}
]
}
}