LiXee ZLinky_TIC DDF File

And if you make a try with “ostring”, perhaps a problem with null character.

From here Couleur du lendemain non disponible (Z2M sur HA) · Issue #139 · fairecasoimeme/Zlinky_TIC · GitHub
The value need to be in STGE for standard mode, when you mean nothing visible, it’s an ampty result, a zero value, or the attribute is grayed ?

Hello everyone,

I just got my ZLinky. I tried to get connected with my Conbee II connected on my Syno NAS, running dezcon/phoscon app & HA through Container.
From Phoscon app, there is nothing popping when scanning sensor.
From VNC setup, I can see the ZLinky node but it seems to be initialized with HPHC_triphase while I’m on historique_mono_base.
I tried to load the json file from Dezcon/Devices folder, but it fails to load it.

See VNC screeshot attached.

I’m stuck here. Do you have any advice to move forward and get my ZLinky visible in Phoscon app & HA ?
@Smanar maybe ? :wink:

Thanks for your help.
R2

Probably, first your DDF is not used, still on “draft”, for the linky you need to select the DDF you want (there is different one in the Lixee folder) and switch the Status to “Gold”.
Now a problem if you have 1 DDF in “Gold” and 5 DDF in “Draft” deconz can use a random one, so the better solution is deleting all others DDF, not possible on HA.
So if just changing the status is not working, if I rememeber the solution is creating a new DDF (or just copy/paste the one you want, with the “Gold” Status) in the HA docker persistant folder /data/.local/share/dresden-elektronik/deCONZ/devices/

CF How to add/edit a DDF on Home assistant using text editor? - #19 by Smanar

1 Like

Indeed, once I deleted 4 others lixee config and restarted the pairing, got the good one, then set it to Gold, hot reload and save the file made it available then in Phoscon app and in HA!
Big thanks to you @Smanar! :hugs:

R2

But how you have done that on HA ? It’s not possible on docker, because on next restart, the folder is restored at previous sate, or all files are in the persistent folder ?

Hello, I’m new to this forum, I’ve had a Conbee III for a few days, in docker on my Synology. I’m interested in this TIC module. I’ve had one that works in USB for several years and I made a PHP that records my consumption. I’ve gone through the Base, HpHc and Tempo tariffs for over a year. I’m thinking of equipping myself with this Zigbee module because my USB module can sometimes interfere with the Conbee III on the USB port.

Hello,
Is there a DDF file for Lixee Linky zigbee module with the Tempo Edf option please?
I’m currently in historical mode.
Thanks in advance

I tested with the tempo mono json. I only recover 3 devices. What should I do to get all the linky information? I had to delete the ZHAALARM part which asked me for an additional zhaalarm.json file which I do not have
here are the 3 devices that I have when doing a curl get command:

        "config": {
            "on": true,
            "reachable": true
        },
        "etag": "35e197e8d8b193ba2e585fd5950ad496",
        "lastannounced": null,
        "lastseen": "2025-01-21T18:47Z",
        "manufacturername": "LiXee",
        "modelid": "ZLinky_TIC",
        "name": "Power 63",
        "state": {
            "current": 6,
            "lastupdated": "2025-01-21T18:47:53.585",
            "power": 710,
            "voltage": 0
        },
        "swversion": "4000-0014",
        "type": "ZHAPower",
        "uniqueid": "00:15:8d:00:06:20:57:06-01-0b04"
    },
    "64": {
        "config": {
            "on": true,
            "reachable": true
        },
        "etag": "f136bed40a528437bd2a894bf0cf673d",
        "lastannounced": null,
        "lastseen": "2025-01-21T18:47Z",
        "manufacturername": "LiXee",
        "modelid": "ZLinky_TIC",
        "name": "Consumption 64",
        "state": {
            "consumption": 874261,
            "consumption_2": 489488,
            "lastupdated": "2025-01-21T18:47:53.601"
        },
        "swversion": "4000-0014",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:06:20:57:06-01-0702"
    },
    "65": {
        "config": {
            "on": true,
            "reachable": true
        },
        "etag": "e6542a3fb80402e8a77920a5c90c6a34",
        "lastannounced": null,
        "lastseen": "2025-01-21T18:47Z",
        "manufacturername": "LiXee",
        "modelid": "ZLinky_TIC",
        "name": "Consumption 65",
        "state": {
            "consumption": 870077,
            "consumption_2": 2319210,
            "lastupdated": "2025-01-21T18:47:52.675"
        },
        "swversion": "4000-0014",
        "type": "ZHAConsumption",
        "uniqueid": "00:15:8d:00:06:20:57:06-02-0702"
    }

64 is red day and 65 white day, i don’t have blue day, and all other parameters :frowning:

I think this post can help you Consommations Tempo Jour Rouge non remontées · Issue #222 · fairecasoimeme/Zlinky_TIC · GitHub
And this one for correspondance Surr Tempo: HCHP n'est pas le total the HP ni est HCHC le total HC, c'est que jours blanc · Issue #221 · fairecasoimeme/Zlinky_TIC · GitHub

You need to use for consumption on Cluster 0x0702, attributes 0x0100 0x0102 0x0104 0x106 0x0108 0x010A

But natively you have only “consumption” and “consumption_2”, so 2 solutions :

  • Create “consumption_3” and “consumption_4” and use it on the same sensor
  • I think it’s that you are trying to do, create 6 sensors with only “consumption”

If you can share the DDF and say what you want, I can try to help you.

I’m in HISTORICAL and SINGLE PHASE mode.
Since 2019, I have been managing the TIC socket with a USB teleinfo module. Téléinfo 1 compteur USB
I went through the Base, then HPHC and TEMPO for two years.
my module teleinfo reads the complete frame, including the power indexes.
the Lixee module must have 6 clusters to monitor consumption.
the first goes up Base, HCHC and BBRHCJB following the subscription.
Another goes up HCHP and BBRHPJB. and the other 4 in the order BBRHCJW, BBRHPJW, BBRHCJR, BBRHPJR.
There is also the EJP subscription but in all cases there are only 6 indexes.

I find it quite simple to process the frame of a USB module, and find the indexes and values. It’s more complicated for me to work on clusters and the Zigbee standard, because I don’t know the Deconz tools and I have little time to devote to being able to understand more quickly.
I therefore need:
-the 6 consumption indexes
-OPTARIF index
-PTEC index
-DEMAIN index
-ADPS index

Not all indexes exist with all subscriptions and all situations, but I assume that the clusters are all existing since the Lixee zigbee module is Enedis ready.
There are also other indexes, which necessarily have an associated index, but I have no use actually for them.

I would therefore like to have the returns of the indexes that I have listed, which would easily allow me with a single DDF (json) to make my statements according to my subscriptions, in BASE, HPHC and TEMPO.
Here is the Json that I tried to which must be added two power consumption indexes and the other state indexes.
The ADPS was blocking my DDF, I don’t know for what reason. So I did some tests by removing the part in the JSON. May. I need this overrun alert.
Below is the sound that I recovered in this discussion thread which can perhaps serve as a starting point.
I always have my USB module plugged into my TIC socket as well as the Lixee zigbee module, which allows me to compare the two at the same time and easily test the DDF.
I would like your help to make this DDF, because I have no skills in the zigbee protocol.
Thank you very much!

{
  "schema": "devcap1.schema.json",
  "manufacturername": "LiXee",
  "modelid": "ZLinky_TIC",
  "vendor": "LiXee",
  "product": "ZLinky_TIC historique+HPHC",
  "sleeper": false,
  "status": "Draft",
  "subdevices": [
    {
      "type": "$TYPE_POWER_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0b04"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 365,
          "read": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 0,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/current",
          "refresh.interval": 365,
          "read": {
            "at": "0x0508",
            "cl": "0x0b04",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0508",
            "cl": "0x0b04",
            "ep": 1,
            "eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
          }
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/power",
          "refresh.interval": 365,
          "read": {
            "at": "0x050f",
            "cl": "0x0b04",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x050f",
            "cl": "0x0b04",
            "ep": 1,
            "eval": "if (Attr.val != -32768) { Item.val = Attr.val; }"
          }
        },
        {
          "name": "state/voltage",
          "refresh.interval": 365
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 365,
          "read": {
            "at": "0x0102",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0102",
            "cl": "0x0702",
            "ep": 0,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_ALARM_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0xff66"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/alarm",
          "refresh.interval": 365,
          "read": {
            "at": "0x0005",
            "cl": "0xff66",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0005",
            "cl": "0xff66",
            "ep": 1,
            "eval": "Item.val = Attr.val > 0 ? true : false",
            "fn": "zcl:attr"
          },
          "default": false
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x02",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 365,
          "read": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0702",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x25",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0B04",
      "report": [
        {
          "at": "0x0505",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x0508",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x050F",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0xFF66",
      "report": [
        {
          "at": "0x0005",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ],
  "uuid": "fab6029b-542c-4972-a56f-fe2944f6ac6b",
  "version_deconz": ">2.19.3"
}

I don’t know if this is the right DDF to use as a reference. I think it is not correct.

So first your DDF is not used, you need to switch the “status” to “Gold”.
BTW IDK what is your OS, but if you can remove all other lixee DDF, will be easier, in some situation Deconz can take a “Draft” one.

{
  "schema": "devcap1.schema.json",
  "manufacturername": "LiXee",
  "modelid": "ZLinky_TIC",
  "vendor": "LiXee",
  "product": "ZLinky_TIC historique+Tempo",
  "sleeper": false,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_POWER_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0b04"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/current",
          "refresh.interval": 365,
          "read": {
            "at": "0x0508",
            "cl": "0x0b04",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0508",
            "cl": "0x0b04",
            "ep": 1,
            "eval": "if (Attr.val != 65535) { Item.val = Attr.val; }"
          }
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/power",
          "refresh.interval": 365,
          "read": {
            "at": "0x050f",
            "cl": "0x0b04",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x050f",
            "cl": "0x0b04",
            "ep": 1,
            "eval": "if (Attr.val != -32768) { Item.val = Attr.val; }"
          }
        },
        {
          "name": "state/voltage",
          "refresh.interval": 365
        }
      ]
    },
    {
      "type": "$TYPE_ALARM_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0xff66"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/alarm",
          "refresh.interval": 365,
          "read": {
            "at": "0x0005",
            "cl": "0xff66",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0005",
            "cl": "0xff66",
            "ep": 1,
            "eval": "Item.val = Attr.val > 0 ? true : false",
            "fn": "zcl:attr"
          },
          "default": false
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x02",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0102",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0102",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x03",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0104",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0104",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x04",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0106",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0106",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x05",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0108",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0108",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x06",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x010A",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x010A",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "cl": "0x0702",
      "src.ep": 1,
      "report": [
        {
          "at": "0x0100",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0102",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0104",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0106",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0108",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x010A",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0B04",
      "report": [
        {
          "at": "0x0505",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x0508",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x050F",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0xFF66",
      "report": [
        {
          "at": "0x0005",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ]
}

Have made some change:

  • status set to “gold”
  • remove consumption in the ZHAPOwer
  • create 6 sensors ZHAConsumption
  • have doubled the reporting time (for consumption, not for power and current), I don’t think the device can support so much data in so short time.

OK thanks.
I’ll take a closer look at the structure. I had started to do the ‘bindings’ part. I understood that it corresponds to the cluster and attributes of the module that I want to read. I will complete.
I will then look at the first part of the json and understand the relationship with the ‘bindings’.
I’m reposting your json with my modifications, I want to understand a little more and not just use a DDF.

Here is the part I use and it works perfectly. THANKS

{
  "schema": "devcap1.schema.json",
  "manufacturername": "LiXee",
  "modelid": "ZLinky_TIC",
  "vendor": "LiXee",
  "product": "ZLinky_TIC historique+Tempo",
  "sleeper": false,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0100",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x02",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0102",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0102",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x03",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0104",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0104",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x04",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0106",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0106",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x05",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x0108",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0108",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
    {
      "type": "$TYPE_CONSUMPTION_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x06",
        "0x0702"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/consumption",
          "refresh.interval": 730,
          "read": {
            "at": "0x010A",
            "cl": "0x0702",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x010A",
            "cl": "0x0702",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          }
        },
        {
          "name": "state/lastupdated"
        }
      ]
    },
	{
      "type": "$TYPE_ALARM_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0xff66"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/alarm",
          "refresh.interval": 365,
          "read": {
            "at": "0x0005",
            "cl": "0xff66",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0005",
            "cl": "0xff66",
            "ep": 1,
            "eval": "Item.val = Attr.val > 0 ? true : false",
            "fn": "zcl:attr"
          },
          "default": false
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "cl": "0x0702",
      "src.ep": 1,
      "report": [
        {
          "at": "0x0100",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0102",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0104",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0106",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x0108",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        },
        {
          "at": "0x010A",
          "change": "0x00000001",
          "dt": "0x25",
          "max": 600,
          "min": 120
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0xFF66",
      "report": [
        {
          "at": "0x0005",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ]
}

Now I want to add:
PTEC clust: 0x0702 attr: 0x0020 (string)
OPTARIF clust: 0xFF66 attr: 0x0000 (string)
DEMAIN clust: 0xFF66 attr: 0x0001 (string)
I don’t really know how to do it.

OPTARIF is something fixed, no ? We can add it, with a 24h pooling, as it never move, but do you think it’s something usefull for automation ?

I don’t see what is PTEC, “Periode tarifaire en cours”, it 's not the same thing than the color ? or it’s HP / HC by color ?

To not create a new sensor (I think you have enought ^^) can re-use the ZHAAlarm and use the “coloritem” used for color bulb

        {
          "name": "state/colormode",
          "refresh.interval": 730,
          "read": {
            "at": "0x0001",
            "cl": "0xff66",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0001",
            "cl": "0xff66",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "default": false
        },

IDK how is the value in the GUI, will see if it works.
If the value is never updated, but updated when you read it using the GUI, it mean it miss the report, I haven’t set it because the post from the other guy, it don’t use it on his sample, if you need it (only 6 more line, not the whole code)

    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0xFF66",
      "report": [
        {
          "at": "0x0005",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000001"
        },
        {
          "at": "0x0001",
          "dt": "0x42",
          "min": 120,
          "max": 600
        },
      ]
    }

And BTW I m seeing we miss it in the general.xml file (to have it in the GUI)


        <attribute id="0x0000" type="cstring" name="Option tarifaire" access="r" required="m"/>
        <attribute id="0x0001" type="cstring" name="Couleur de demain" access="r" required="m"/>
        <attribute id="0x0002" type="u8" name="Horaire HP-HC" access="r" required="m" default="0x00"/>

(The line in the center)

The Tempo tariff has 6 values.
The base rate only uses the 1st value and the HPHC rate uses the first two values.
I change rates following changes in rates, almost every year, or even every two years. When I request the tariff change, OPTARIF changes, and my php program, depending on the value of OPTARIF knows whether it should read one consumption, or two or 6. So I have my exact readings with a single DDF, to which I I combine the right prices and I have my consumption valued in euros which is accurate. I have been doing this for years, and I see my gains in heating according to my programming and the prices. Everything is done automatically because the necessary information is transmitted by the linky.

PTEC changes precisely at the time of change from HP to HC and HC to HP.
It’s often 6 a.m. and 10 p.m., or other times because we can have two changes per day. It is therefore the PTEC reading that I take into account to activate the water heater or the charging of my electric vehicle, and my price calculations. because everything cannot be connected to the HP/HC meter contactor. In tempo rate, this is what turns off my heating. It’s much more reliable than a timer or the time. These are the main reasons why I need this index. I use it with my USB teleinfo module. I want to adapt my current program with the lixee module without breaking my functions.

What is refresh.interval used for?
Doesn’t it have any influence when I do a Curl get?

For what index do you offer me coloritem? because it only has two states true and false?
If it’s for the value of ‘demain’, it’s not good, state is ‘bleu’ ‘blan’ ‘roug’ or ‘----’. At 6 p.m. (now), there must be a defined color. I don’t use the graphical interface, with cURL the response is always false ‘----’
It doesn’t work I think

thanks

I m using state/colormode and this field is a string too, so need to be compatible with your need …
If you have ‘----’ at result can be fine, if I remember Enedis send the color only 1 time by day, perhaps need to wait 24h ? And '----’ don’t mean false.

OPTARIF and PTEC are exaclty same thing, string to, 4 bytes, so they will work same, if the color work, the other will work too, but will need to create fields.

“refresh.interval” is a security, dangerous for this kind of device, the DDF set a reporting for the device send naturaly report (when and if it want), in case the device don’t make report during the “refresh.interval” period, deconz will make a pool, more aggresive. It’s for that delay in “refresh.interval” are > at report timer.

Doesn’t it have any influence when I do a Curl get?

Nope.

I completed your json and added ‘PTEC’ and ‘OPTARIF’. I didn’t change ‘DEMAIN’, I’ll check if it works as you defined it.
I used “$TYPE_ALARM_SENSOR” for ‘PTEC’ and ‘OPTARIF’. This may not be the most suitable $type, tell me if there is something better because I don’t know enough.
These two added labels make it possible to manage all subscriptions with a linky in historical mode, BASE, HPHC, TEMPO and EJP.
I have questions to optimize:
what does “max”:600 and “min”:120 correspond to in “bindings”? and same question for “refresh.interval”?
In my case I only need the values ​​to be refreshed when I do a GET of the sensors concerned, at 00h00mn, 00h30mn, 01h00mn, 01h30mn… 23h00mn, 23h30mn.
But the data must be very precise, ideally updated instantly, 48 times a day and the first time at 00:00

{
    "schema": "devcap1.schema.json",
    "manufacturername": "LiXee",
    "modelid": "ZLinky_TIC",
    "vendor": "LiXee",
    "product": "linky historique_tout tarif_monophase_sans production",
    "sleeper": false,
    "status": "Gold",
    "subdevices": [
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x01",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0100",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0100",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x02",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0102",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0102",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x03",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0104",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0104",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x04",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0106",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0106",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x05",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0108",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0108",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_CONSUMPTION_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x06",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/consumption",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x010A",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x010A",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_ALARM_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x07",
                "0x0702"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/colormode",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0020",
                        "cl": "0x0702",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0020",
                        "cl": "0x0702",
                        "ep": 1,
                        "eval": "Item.val = Attr.val",
                        "fn": "zcl:attr"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_ALARM_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x01",
                "0xff66"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/alarm",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0005",
                        "cl": "0xff66",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0005",
                        "cl": "0xff66",
                        "ep": 1,
                        "eval": "Item.val = Attr.val > 0 ? true : false",
                        "fn": "zcl:attr"
                    },
                    "default": false
                },
                {
                    "name": "state/colormode",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0001",
                        "cl": "0xff66",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0001",
                        "cl": "0xff66",
                        "ep": 1,
                        "eval": "Item.val = Attr.val",
                        "fn": "zcl:attr"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        },
        {
            "type": "$TYPE_ALARM_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x02",
                "0xff66"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/colormode",
                    "refresh.interval": 360,
                    "read": {
                        "at": "0x0000",
                        "cl": "0xff66",
                        "ep": 1,
                        "fn": "zcl:attr"
                    },
                    "parse": {
                        "at": "0x0000",
                        "cl": "0xff66",
                        "ep": 1,
                        "eval": "Item.val = Attr.val",
                        "fn": "zcl:attr"
                    }
                },
                {
                    "name": "state/lastupdated"
                }
            ]
        }
    ],
    "bindings": [
        {
            "bind": "unicast",
            "cl": "0x0702",
            "src.ep": 1,
            "report": [
                {
                    "at": "0x0100",
                    "change": "0x00000001",
                    "dt": "0x25",
                    "max": 600,
                    "min": 120
                },
                {
                    "at": "0x0102",
                    "change": "0x00000001",
                    "dt": "0x25",
                    "max": 600,
                    "min": 120
                },
                {
                    "at": "0x0104",
                    "change": "0x00000001",
                    "dt": "0x25",
                    "max": 600,
                    "min": 120
                },
                {
                    "at": "0x0106",
                    "change": "0x00000001",
                    "dt": "0x25",
                    "max": 600,
                    "min": 120
                },
                {
                    "at": "0x0108",
                    "change": "0x00000001",
                    "dt": "0x25",
                    "max": 600,
                    "min": 120
                },
                {
                    "at": "0x010A",
                    "change": "0x00000001",
                    "dt": "0x25",
                    "max": 600,
                    "min": 120
                },
                {
                    "at": "0x0020",
                    "dt": "0x42",
                    "max": 600,
                    "min": 120
                }
            ]
        },
        {
            "bind": "unicast",
            "src.ep": 1,
            "cl": "0xFF66",
            "report": [
                {
                    "at": "0x0005",
                    "dt": "0x21",
                    "min": 60,
                    "max": 300,
                    "change": "0x00000001"
                },
                {
                    "at": "0x0001",
                    "dt": "0x42",
                    "min": 120,
                    "max": 600
                },
                {
                    "at": "0x0000",
                    "dt": "0x42",
                    "min": 120,
                    "max": 600
                }
            ]
        }
    ]
}

No it’s not the same, yes 4 bytes but not same information.

So I can extend the refresh interval, to avoid creating reports, when I do a GET of the sensors, it will be updated, is that right?

No it don’t work like that, you make request to the API, not at the zigbee network.
On report, max is the maximum delay without report, min is the minimum delay between report, you need to let the device make his life, it make report when it want.

When enedis update the value, the device see it, and make request to deconz, and deconz will update the API, after that you can make request when you want to the API without disturb the device.

I have explained on the previous post, “refresh.interval” is a security, if all is working fine, it will be NEVER used.

For the rest there is 2 solutions:

I don’t understand, the linky sends a frame every 2 seconds. when I query the API, I see in ‘lastupdate’ that the update is done every minute. In my case in one minute the consumption changed several times, it is in Wh so changes very quickly. And when I compare at the same time with my teleinfo USB module, the teleinfo measurement is up to date compared to that of the API.

Ok, I think it’s better to create state/optarif and state/ptec in the same zhalarm.
Can you explain to me or give me the lines that allow me to create these two state/optarif and state/ptec in the same sensor ZHAAlarm

The Zliny don’t know when you query the API, it decide alone when update value in the API (according the reporting setting). you make request to the API, not to the Zlinky.

You need to create 2 more json in the devices\generic\items folder.
for exemple a file called state_ptec_item.json
with this contain

{
  "schema": "resourceitem1.schema.json",
  "id": "state/ptec",
  "datatype": "String",
  "access": "R",
  "public": true
}

Then restart deconz, but better to wait for state/colormode is working first, after just need to copy/paste.