Zu Content springen
Deutsch
  • Es gibt keine Vorschläge, da das Suchfeld leer ist.

Nyx Blueprint in JSON  

Suchen Sie den mioty Blueprint für den Nyx-Sensor?

Verwenden Sie das folgende JSON als mioty-Blueprint für Nyx – es definiert das Nutzlast-Layout, die Wertskalierung und die erforderlichen Feature-Flags für eine korrekte Dekodierung

{
  "component": {
    "bat_voltage": {
      "func": "$ / 1000",
      "littleEndian": false,
      "size": 16,
      "type": "uint",
      "unit": "V"
    },
    "temperature10": {
      "func": "$ / 10 - 100",
      "littleEndian": false,
      "size": 16,
      "type": "int",
      "unit": "°C"
    },
    "humidity": {
      "littleEndian": false,
      "size": 8,
      "type": "uint",
      "unit": "%RH"
    },
    "dewpt16": {
      "func": "$ / 10 - 100",
      "littleEndian": false,
      "size": 16,
      "type": "int",
      "unit": "°C"
    },
    "alarm": {
      "littleEndian": false,
      "size": 8,
      "type": "uint",
      "unit": ""
    },
    "lux_raw": {
      "littleEndian": false,
      "size": 16,
      "type": "uint",
      "unit": "raw"
    },
    "bme_status": {
      "littleEndian": false,
      "size": 8,
      "type": "uint",
      "unit": ""
    },
    "pressure": {
      "littleEndian": false,
      "size": 16,
      "type": "uint",
      "unit": "hPa"
    },
    "iaq_status": {
      "littleEndian": false,
      "size": 8,
      "type": "uint",
      "unit": ""
    },
    "iaq_index": {
      "littleEndian": false,
      "size": 16,
      "type": "uint",
      "unit": ""
    },
    "uplink_counter": {
      "littleEndian": false,
      "size": 8,
      "type": "uint",
      "unit": ""
    },
    "version": {
      "littleEndian": false,
      "size": 4,
      "type": "uint",
      "unit": ""
    }
  },
  "meta": {
    "firmwareVersion": "1.0",
    "hardwareVersion": "1.0",
    "name": "Nyx",
    "vendor": "Sentinum"
  },
  "typeEui": "FFFFFFFFFFFFFFFF",
  "uplink": [
    {
      "id": 0,
      "payload": [
        { "component": "version", "name": "Modulecode" },
        { "component": "version", "name": "Major_Version" },
        { "component": "version", "name": "Minor_Version" },
        { "component": "version", "name": "Product_Version" },
 
        { "component": "uplink_counter", "name": "Uplink_Counter" },
        { "component": "bat_voltage", "name": "Battery_Voltage" },
        { "component": "temperature10", "name": "Internal_Temperature" },
 
        /* major_version >= 1 block (all current Nyx variants) */
        { "component": "humidity", "name": "Humidity", "condition": "($Major_Version) >= 1" },
        { "component": "dewpt16", "name": "Dew_Point", "condition": "($Major_Version) >= 1" },
        { "component": "alarm", "name": "Alarm_Level", "condition": "($Major_Version) >= 1" },
 
        /* Lux sensor present if Product_Version bit0 set */
        { "component": "lux_raw", "name": "Lux_Raw", "condition": "($Product_Version & 0x01) == 0x01 && ($Major_Version) >= 1" },
 
        /* BME688 present if Product_Version bit2 set */
        { "component": "bme_status", "name": "BME_Status", "condition": "($Product_Version & 0x04) == 0x04 && ($Major_Version) >= 1" },
        { "component": "pressure", "name": "Pressure", "condition": "($Product_Version & 0x04) == 0x04 && ($Major_Version) >= 1" },
 
        /* IAQ subfeature present if both BME688 (bit2) and IAQ (bit1) are set */
        { "component": "iaq_status", "name": "IAQ_Status", "condition": "($Product_Version & 0x04) == 0x04 && ($Product_Version & 0x02) == 0x02 && ($Major_Version) >= 1" },
        { "component": "iaq_index",  "name": "IAQ_Index",  "condition": "($Product_Version & 0x04) == 0x04 && ($Product_Version & 0x02) == 0x02 && ($Major_Version) >= 1" }
      ]
    }
  ],
  "version": "1.0"
}

Technische Änderungen behalten wir uns ohne vorherige Ankündigung vor. Alle Angaben ohne Gewähr.