28.11.2017, 08:12
Hi everyone, I follow this forum since many month and it helps me every time, but today I've a problem and i dont find a similar post in this forum :
I want to check a nest smoke detector. Okay for communication, but the answer is :
* table:
[smoke_co_alarms]
* table:
[sgUHZf.....APJP7e2-z........Y]
* table:
[last_manual_test_time]
* string: 2017-11-24T19:47:51.000Z
[co_alarm_state]
* string: ok
[ui_color_state]
* string: green
[is_manual_test_active]
* bool: false
[where_id]
* string: gBtrRP2jzy1uqWVr.....s8yYloagGi61-wviuEzKpbe...JsA
[structure_id]
* string: OA-re4bF-UhfZGCAXXn6......4cMtcYTovEXfZGlY_BMyoipn6UA
[device_id]
* string: sgUHZf.....APJP7e2-z........Y
[battery_health]
* string: ok
[smoke_alarm_state]
* string: ok
[is_online]
* bool: true
[software_version]
* string: 3.1.3rc2
[name_long]
* string: Bedroom Nest Protect
[last_connection]
* string: 2017-11-27T14:02:52.906Z
[locale]
* string: fr-FR
[name]
* string: Bedroom
[where_name]
* string: Bedroom
But I don't know how to extract data to a group object (I think is very easy for you but my knowledge in Lua Langage is very low )
For example I want to read the data [co_alarm_state], and I'm forced to use this table, because nest product don't allow more of two http request/minute so I can't just ask direct http request.
Thanks for your help !
Adrien
Ps : I have a Schneider Spacelynk 2.0.1
I want to check a nest smoke detector. Okay for communication, but the answer is :
* table:
[smoke_co_alarms]
* table:
[sgUHZf.....APJP7e2-z........Y]
* table:
[last_manual_test_time]
* string: 2017-11-24T19:47:51.000Z
[co_alarm_state]
* string: ok
[ui_color_state]
* string: green
[is_manual_test_active]
* bool: false
[where_id]
* string: gBtrRP2jzy1uqWVr.....s8yYloagGi61-wviuEzKpbe...JsA
[structure_id]
* string: OA-re4bF-UhfZGCAXXn6......4cMtcYTovEXfZGlY_BMyoipn6UA
[device_id]
* string: sgUHZf.....APJP7e2-z........Y
[battery_health]
* string: ok
[smoke_alarm_state]
* string: ok
[is_online]
* bool: true
[software_version]
* string: 3.1.3rc2
[name_long]
* string: Bedroom Nest Protect
[last_connection]
* string: 2017-11-27T14:02:52.906Z
[locale]
* string: fr-FR
[name]
* string: Bedroom
[where_name]
* string: Bedroom
But I don't know how to extract data to a group object (I think is very easy for you but my knowledge in Lua Langage is very low )
For example I want to read the data [co_alarm_state], and I'm forced to use this table, because nest product don't allow more of two http request/minute so I can't just ask direct http request.
Thanks for your help !
Adrien
Ps : I have a Schneider Spacelynk 2.0.1