This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Read Data from Table
#1
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
Reply


Messages In This Thread
Read Data from Table - by Alphaplasti - 28.11.2017, 08:12
RE: Read Data from Table - by admin - 28.11.2017, 09:14
RE: Read Data from Table - by Alphaplasti - 28.11.2017, 10:53
RE: Read Data from Table - by admin - 28.11.2017, 11:45
RE: Read Data from Table - by Alphaplasti - 28.11.2017, 13:58
RE: Read Data from Table - by admin - 28.11.2017, 14:28
RE: Read Data from Table - by Alphaplasti - 28.11.2017, 15:10
RE: Read Data from Table - by toujour - 14.02.2020, 07:47
RE: Read Data from Table - by AlexD - 11.10.2022, 09:02
RE: Read Data from Table - by admin - 11.10.2022, 09:24

Forum Jump: