> For the complete documentation index, see [llms.txt](https://enless.gitbook.io/centre-aide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enless.gitbook.io/centre-aide/ressources/gateway-lorawan/decodeurs-capteurs-tiers/ecoadapt-power-elec-3-and-6.md).

# EcoAdapt Power Elec 3 & 6

{% hint style="info" %}
Les codecs et mappings suivants couvrent toutes les configuration des Power-Elec 3 & 6. Il y aura donc des registres Modbus qui ne seront jamais utilisés et il est possible de modifier facilement le mapping afin de ne conserver que les registres utiles pour vos usages.
{% endhint %}

## EcoAdapt Power Elec 3

### Codec

{% code title="eco-adapt\_power-elec-3.codec.js" lineNumbers="true" expandable="true" %}

```js
const CHANNEL_MODES = {
  1: 'Mono-phase',
  2: 'Three-phase with neutral',
  3: 'Balanced three-phase with neutral',
  4: 'Three-phase without neutral',
  5: 'Balanced three-phase without neutral',
}

function decodeUplink(input) {
  const buffer = new Uint8Array(input.bytes).buffer;
  const dataView = new DataView(buffer);
  const data = {};

  const header = dataView.getInt8(0);
  const modes = {
    1: "active_energy",
    2: "reactive_energy"
  };
  const mode = modes[header] || "unknown_mode"; 

  const CHUNK_SIZE = 5; // Chaque mesure fait 5 octets (1 octet ID + 4 octets Float)
  const numChunks = Math.floor((buffer.byteLength - 1) / CHUNK_SIZE);

  for (let i = 0; i < numChunks; i++) {
    const offset = 1 + i * CHUNK_SIZE; 
    
    const channelId = dataView.getUint8(offset);
    const channel = (channelId >> 3) & 0x03;
    const connector = channelId >> 5;
    

    const floatValue = dataView.getFloat32(offset + 1, true);
    const value = Math.round(floatValue * 1000);

    const phase = channel === 0 ? "three-phase" : "mono-phase";

    if (channel === 0) {
      data[`connector${connector}-${phase}-${mode}`] = value;
    } else {
      data[`connector${connector}-channel${channel}-${phase}-${mode}`] = value;
    }
  }

  return { data };
}
```

{% endcode %}

### Mapping

{% code title="eco-adapt\_power-elec-3.codec.js" lineNumbers="true" expandable="true" %}

```json
{
  "uplink": {
    "fields": [
      {
        "name": "connector1-three-phase-active_energy",
        "description": "Connector 1 : Three-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-three-phase-active_energy",
        "description": "Connector 2 : Three-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-three-phase-active_energy",
        "description": "Connector 3 : Three-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-three-phase-reactive_energy",
        "description": "Connector 1 : Three-phase reactive_energy energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "VArh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-three-phase-reactive_energy",
        "description": "Connector 2 : Three-phase reactive_energy energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "VArh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-three-phase-reactive_energy",
        "description": "Connector 3 : Three-phase reactive_energy energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "VArh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-channel1-mono-phase-active_energy",
        "description": "Connector 1 / channel 1 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-channel2-mono-phase-active_energy",
        "description": "Connector 1 / channel 2 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-channel3-mono-phase-active_energy",
        "description": "Connector 1 / channel 3 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-channel1-mono-phase-active_energy",
        "description": "Connector 2 / channel 1 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-channel2-mono-phase-active_energy",
        "description": "Connector 2 / channel 2 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-channel3-mono-phase-active_energy",
        "description": "Connector 2 / channel 3 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-channel1-mono-phase-active_energy",
        "description": "Connector 3 / channel 1 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-channel2-mono-phase-active_energy",
        "description": "Connector 3 / channel 2 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-channel3-mono-phase-active_energy",
        "description": "Connector 3 / channel 3 : mono-phase active energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-channel1-mono-phase-reactive_energy",
        "description": "Connector 1 / channel 1 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-channel2-mono-phase-reactive_energy",
        "description": "Connector 1 / channel 2 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector1-channel3-mono-phase-reactive_energy",
        "description": "Connector 1 / channel 3 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-channel1-mono-phase-reactive_energy",
        "description": "Connector 2 / channel 1 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-channel2-mono-phase-reactive_energy",
        "description": "Connector 2 / channel 2 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector2-channel3-mono-phase-reactive_energy",
        "description": "Connector 2 / channel 3 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-channel1-mono-phase-reactive_energy",
        "description": "Connector 3 / channel 1 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-channel2-mono-phase-reactive_energy",
        "description": "Connector 3 / channel 2 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      },
      {
        "name": "connector3-channel3-mono-phase-reactive_energy",
        "description": "Connector 3 / channel 3 : mono-phase reactive energy (Wh)",
        "data_type": "NUMBER",
        "numeric_type": "UINT32",
        "access_mode": "R",
        "unit": "Wh",
        "protocol_specific": {
          "modbus": { "register_type": "input", "factor": 1 }
        }
      }
    ]
  },
  "lns_metadata":{
    "fields":[
      {
        "name":"rssi",
        "description":"Received RSSI",
        "data_type":"NUMBER",
        "numeric_type":"INT16",
        "access_mode":"R",
        "unit":"dBm",
        "protocol_specific":{
          "modbus":{
            "register_type":"input",
            "offset":1,
            "factor":1
          }
        }
      },
      {
        "name":"snr",
        "description":"Received SNR",
        "data_type":"NUMBER",
        "numeric_type":"INT16",
        "access_mode":"R",
        "unit":"dB",
        "protocol_specific":{
          "modbus":{
            "register_type":"input",
            "offset":2,
            "factor":1
          }
        }
      },
      {
        "name":"sf",
        "description":"Spreading Factor",
        "data_type":"NUMBER",
        "numeric_type":"UINT8",
        "access_mode":"R",
        "protocol_specific":{
          "modbus":{
            "register_type":"input",
            "offset":3,
            "factor":1
          }
        }
      },
      {
        "name":"minutesSinceLastRx",
        "description":"Minutes since last reception",
        "data_type":"NUMBER",
        "numeric_type":"UINT16",
        "access_mode":"R",
        "unit":"min",
        "protocol_specific":{
          "modbus":{
            "register_type":"input",
            "offset":4,
            "factor":1
          }
        }
      }
    ]
  }
}
```

{% endcode %}

## EcoAdapt Power Elec 6

### Codec

{% code title="eco-adapt\_power-elec-6.codec.js" lineNumbers="true" expandable="true" %}

```apex
const CHANNEL_MODES = {
  1: 'Mono-phase',
  2: 'Three-phase with neutral',
  3: 'Balanced three-phase with neutral',
  4: 'Three-phase without neutral',
  5: 'Balanced three-phase without neutral',
}

function decodeUplink(input) {
  const buffer = new Uint8Array(input.bytes).buffer;
  const dataView = new DataView(buffer);
  const data = {};

  const header = dataView.getInt8(0);
  const modes = {
    1: "active_energy",
    2: "reactive_energy"
  };
  const mode = modes[header] || "unknown_mode"; 

  const CHUNK_SIZE = 5; // Chaque mesure fait 5 octets (1 octet ID + 4 octets Float)
  const numChunks = Math.floor((buffer.byteLength - 1) / CHUNK_SIZE);

  for (let i = 0; i < numChunks; i++) {
    const offset = 1 + i * CHUNK_SIZE; 
    
    const channelId = dataView.getUint8(offset);
    const channel = (channelId >> 3) & 0x03;
    const connector = channelId >> 5;
    

    const floatValue = dataView.getFloat32(offset + 1, true);
    const value = Math.round(floatValue * 1000);

    const phase = channel === 0 ? "three-phase" : "mono-phase";

    if (channel === 0) {
      data[`connector${connector}-${phase}-${mode}`] = value;
    } else {
      data[`connector${connector}-channel${channel}-${phase}-${mode}`] = value;
    }
  }

  return { data };
}
```

{% endcode %}

### Mapping

{% code title="eco-adapt\_power-elec-6.mapping.json" lineNumbers="true" expandable="true" %}

```json
	{
	  "uplink": {
	    "fields": [
	      {
	        "name": "connector1-three-phase-active_energy",
	        "description": "Connector 1 : Three-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-three-phase-active_energy",
	        "description": "Connector 2 : Three-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-three-phase-active_energy",
	        "description": "Connector 3 : Three-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-three-phase-active_energy",
	        "description": "Connector 4 : Three-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-three-phase-active_energy",
	        "description": "Connector 5 : Three-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-three-phase-active_energy",
	        "description": "Connector 6 : Three-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector1-three-phase-reactive_energy",
	        "description": "Connector 1 : Three-phase reactive_energy energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "VArh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-three-phase-reactive_energy",
	        "description": "Connector 2 : Three-phase reactive_energy energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "VArh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-three-phase-reactive_energy",
	        "description": "Connector 3 : Three-phase reactive_energy energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "VArh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-three-phase-reactive_energy",
	        "description": "Connector 4 : Three-phase reactive_energy energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "VArh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-three-phase-reactive_energy",
	        "description": "Connector 5 : Three-phase reactive_energy energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "VArh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-three-phase-reactive_energy",
	        "description": "Connector 6 : Three-phase reactive_energy energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "VArh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector1-channel1-mono-phase-active_energy",
	        "description": "Connector 1 / channel 1 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector1-channel2-mono-phase-active_energy",
	        "description": "Connector 1 / channel 2 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector1-channel3-mono-phase-active_energy",
	        "description": "Connector 1 / channel 3 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-channel1-mono-phase-active_energy",
	        "description": "Connector 2 / channel 1 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-channel2-mono-phase-active_energy",
	        "description": "Connector 2 / channel 2 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-channel3-mono-phase-active_energy",
	        "description": "Connector 2 / channel 3 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-channel1-mono-phase-active_energy",
	        "description": "Connector 3 / channel 1 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-channel2-mono-phase-active_energy",
	        "description": "Connector 3 / channel 2 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-channel3-mono-phase-active_energy",
	        "description": "Connector 3 / channel 3 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-channel1-mono-phase-active_energy",
	        "description": "Connector 4 / channel 1 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-channel2-mono-phase-active_energy",
	        "description": "Connector 4 / channel 2 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-channel3-mono-phase-active_energy",
	        "description": "Connector 4 / channel 3 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-channel1-mono-phase-active_energy",
	        "description": "Connector 5 / channel 1 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-channel2-mono-phase-active_energy",
	        "description": "Connector 5 / channel 2 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-channel3-mono-phase-active_energy",
	        "description": "Connector 5 / channel 3 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-channel1-mono-phase-active_energy",
	        "description": "Connector 6 / channel 1 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-channel2-mono-phase-active_energy",
	        "description": "Connector 6 / channel 2 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-channel3-mono-phase-active_energy",
	        "description": "Connector 6 / channel 3 : mono-phase active energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	
	      {
	        "name": "connector1-channel1-mono-phase-reactive_energy",
	        "description": "Connector 1 / channel 1 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector1-channel2-mono-phase-reactive_energy",
	        "description": "Connector 1 / channel 2 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector1-channel3-mono-phase-reactive_energy",
	        "description": "Connector 1 / channel 3 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-channel1-mono-phase-reactive_energy",
	        "description": "Connector 2 / channel 1 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-channel2-mono-phase-reactive_energy",
	        "description": "Connector 2 / channel 2 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector2-channel3-mono-phase-reactive_energy",
	        "description": "Connector 2 / channel 3 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-channel1-mono-phase-reactive_energy",
	        "description": "Connector 3 / channel 1 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-channel2-mono-phase-reactive_energy",
	        "description": "Connector 3 / channel 2 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector3-channel3-mono-phase-reactive_energy",
	        "description": "Connector 3 / channel 3 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-channel1-mono-phase-reactive_energy",
	        "description": "Connector 4 / channel 1 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-channel2-mono-phase-reactive_energy",
	        "description": "Connector 4 / channel 2 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector4-channel3-mono-phase-reactive_energy",
	        "description": "Connector 4 / channel 3 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-channel1-mono-phase-reactive_energy",
	        "description": "Connector 5 / channel 1 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-channel2-mono-phase-reactive_energy",
	        "description": "Connector 5 / channel 2 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector5-channel3-mono-phase-reactive_energy",
	        "description": "Connector 5 / channel 3 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-channel1-mono-phase-reactive_energy",
	        "description": "Connector 6 / channel 1 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      },
	      {
	        "name": "connector6-channel2-mono-phase-reactive_energy",
	        "description": "Connector 6 / channel 2 : mono-phase reactive energy (Wh)",
	        "data_type": "NUMBER",
	        "numeric_type": "UINT32",
	        "access_mode": "R",
	        "unit": "Wh",
	        "protocol_specific": {
	          "modbus": { "register_type": "input", "factor": 1 }
	        }
	      }     
	    ]
	  },
	  "lns_metadata":{
	    "fields":[
	      {
	        "name":"rssi",
	        "description":"Received RSSI",
	        "data_type":"NUMBER",
	        "numeric_type":"INT16",
	        "access_mode":"R",
	        "unit":"dBm",
	        "protocol_specific":{
	          "modbus":{
	            "register_type":"input",
	            "offset":1,
	            "factor":1
	          }
	        }
	      },
	      {
	        "name":"snr",
	        "description":"Received SNR",
	        "data_type":"NUMBER",
	        "numeric_type":"INT16",
	        "access_mode":"R",
	        "unit":"dB",
	        "protocol_specific":{
	          "modbus":{
	            "register_type":"input",
	            "offset":2,
	            "factor":1
	          }
	        }
	      },
	      {
	        "name":"sf",
	        "description":"Spreading Factor",
	        "data_type":"NUMBER",
	        "numeric_type":"UINT8",
	        "access_mode":"R",
	        "protocol_specific":{
	          "modbus":{
	            "register_type":"input",
	            "offset":3,
	            "factor":1
	          }
	        }
	      },
	      {
	        "name":"minutesSinceLastRx",
	        "description":"Minutes since last reception",
	        "data_type":"NUMBER",
	        "numeric_type":"UINT16",
	        "access_mode":"R",
	        "unit":"min",
	        "protocol_specific":{
	          "modbus":{
	            "register_type":"input",
	            "offset":4,
	            "factor":1
	          }
	        }
	      }
	    ]
	  }
	}
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://enless.gitbook.io/centre-aide/ressources/gateway-lorawan/decodeurs-capteurs-tiers/ecoadapt-power-elec-3-and-6.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
