thanks
My deconz is in Synology docker. I put the json in docker\deconz\devices\generic\items folder
special in synology with docker maybe
That poses a problem. Detection of the start of HC is done with âPTECâ. But if deconz doesnât update the API exactly at HC (10 p.m.), nothing starts at 10 p.m., the water heater and my car charging. Thatâs a big problem. Same for HP (6h) if the day is red tempo, nothing stops immediately.
And âDEMAINâ never shows with ZHAalarm state/colormode
The teleinfo USB module works instantly, Linky sends a frame every 2 seconds, but deconz sends the information to the API whenever it wants. Itâs not reliable, itâs a huge problem.
Or the âreporting settingâ must be immediate on certain data.
but deconz sends the information to the API whenever it wants
Deconz send the information immediately, itâs the zigbee device that use report setting.
When Enedis make the change, the Zlinky see it immediately, according to reporting on the previous DDF, it wait maximum 600s (min 120, if there is a previous report for the same attribute or immediately if there is nothing before) before making the report to deconz, deconz update the API immediately, and make the websocket notification.
So you have a delay of 10mn maximum, or you can have immediately, if you have no report for DEMAIN since 120s.
And âDEMAINâ never shows with ZHAalarm state/colormode
Still having â----â ?
But without the GUI and on docker install will be a problem to check the issue. the event for âDEMAINâ is too rare to be logged.
Hello,
I made a DDF for the ZLinky. Version 16 of the module has been released, with a variable tariffPerid cluster(0x10) attribute with Lixee cluster (0xff66)
I updated the module with the deCONZ application.
I modified my DDF by adding this cluster/attribute, it doesnât work.
Checking, I have OPTARIF which seems not to work, corresponding lastseen is not updating.
Here is my DDF without tariffPeriod that I use:
{
"schema": "devcap1.schema.json",
"manufacturername": "LiXee",
"modelid": "ZLinky_TIC",
"vendor": "LiXee",
"product": "linky historique v16",
"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",
"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": 730,
"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": 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": ""
},
{
"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": 730,
"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
}
]
}
]
}
In the application I do not see the new attribute 0x10 in cluster 0xFF66
Can add the the file general.xml (the middle line)
<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"/>
And (the middle line too)
<attribute id="0x0008" type="u16" name="Avertissement de Dépassement D'intensité P3" access="r" required="m" default="0x00"/>
<attribute id="0x0010" type="u16" name="Tarif period" access="r" required="m" default="0x00"/>
<attribute id="0x0200" type="cstring" name="Libellé tarif fournisseur en cours" access="r" required="m"/>
But we miss information about this attribute, what is the type ? I m using u16, but itâs random. If you try to read it with the GUI the type can be corrected.
I modified my DDF by adding this cluster/attribute, it doesnât work.
I donât see a line with the attribute 0x0010 on your last DDF ?
Hello,
Yes I removed the json with 0x0010, it didnât work.
And I donât know where to find general.xml on docker synology.
If I do it on deconz windows it wonât change anything under docker? nothing to see I guess
the 0x0010 attribute is updated in ZLinky as soon as PTEC is modified. tariffPeriod goes up much faster than PTEC. like PTEC it is a 4 character text
My original general.xml:
<datatypes>
<!--Null-->
<datatype id="0x00" name="No data" shortname="ndat" length="0" ad="-"></datatype>
<!--General data -->
<datatype id="0x08" name="8-bit data" shortname="dat8" length="1" ad="D"></datatype>
<datatype id="0x09" name="16-bit data" shortname="dat16" length="2" ad="D"></datatype>
<datatype id="0x0a" name="24-bit data" shortname="dat24" length="3" ad="D"></datatype>
<datatype id="0x0b" name="32-bit data" shortname="dat32" length="4" ad="D"></datatype>
<datatype id="0x0c" name="40-bit data" shortname="dat40" length="5" ad="D"></datatype>
<datatype id="0x0d" name="48-bit data" shortname="dat48" length="6" ad="D"></datatype>
<datatype id="0x0e" name="56-bit data" shortname="dat56" length="7" ad="D"></datatype>
<datatype id="0x0f" name="64-bit data" shortname="dat64" length="8" ad="D"></datatype>
<!-- Logical -->
<datatype id="0x10" name="Boolean" shortname="bool" length="1" inval="0xff" ad="D"></datatype>
<!-- Bitmap -->
<datatype id="0x18" name="8-bit bitmap" shortname="bmp8" length="1" ad="D"></datatype>
<datatype id="0x19" name="16-bit bitmap" shortname="bmp16" length="2" ad="D"></datatype>
<datatype id="0x1a" name="24-bit bitmap" shortname="bmp24" length="3" ad="D"></datatype>
<datatype id="0x1b" name="32-bit bitmap" shortname="bmp32" length="4" ad="D"></datatype>
<datatype id="0x1c" name="40-bit bitmap" shortname="bmp40" length="5" ad="D"></datatype>
<datatype id="0x1d" name="48-bit bitmap" shortname="bmp48" length="6" ad="D"></datatype>
<datatype id="0x1e" name="56-bit bitmap" shortname="bmp56" length="7" ad="D"></datatype>
<datatype id="0x1f" name="64-bit bitmap" shortname="bmp64" length="8" ad="D"></datatype>
<!-- Unsigned integer -->
<datatype id="0x20" name="Unsigned 8-bit integer" shortname="u8" length="1" inval="0xff" ad="A"></datatype>
<datatype id="0x21" name="Unsigned 16-bit integer" shortname="u16" length="2" inval="0xffff" ad="A"></datatype>
<datatype id="0x22" name="Unsigned 24-bit integer" shortname="u24" length="3" inval="0xffffff" ad="A"></datatype>
<datatype id="0x23" name="Unsigned 32-bit integer" shortname="u32" length="4" inval="0xffffffff" ad="A"></datatype>
<datatype id="0x24" name="Unsigned 40-bit integer" shortname="u40" length="5" inval="0xffffffffff" ad="A"></datatype>
<datatype id="0x25" name="Unsigned 48-bit integer" shortname="u48" length="6" inval="0xffffffffffff" ad="A"></datatype>
<datatype id="0x26" name="Unsigned 56-bit integer" shortname="u56" length="7" inval="0xffffffffffffff" ad="A"></datatype>
<datatype id="0x27" name="Unsigned 64-bit integer" shortname="u64" length="8" inval="0xffffffffffffffff" ad="A"></datatype>
<!-- Signed integer -->
<datatype id="0x28" name="Signed 8-bit integer" shortname="s8" length="1" inval="0x80" ad="A"></datatype>
<datatype id="0x29" name="Signed 16-bit integer" shortname="s16" length="2" inval="0x8000" ad="A"></datatype>
<datatype id="0x2a" name="Signed 24-bit integer" shortname="s24" length="3" inval="0x800000" ad="A"></datatype>
<datatype id="0x2b" name="Signed 32-bit integer" shortname="s32" length="4" inval="0x80000000" ad="A"></datatype>
<datatype id="0x2c" name="Signed 40-bit integer" shortname="s40" length="5" inval="0x8000000000" ad="A"></datatype>
<datatype id="0x2d" name="Signed 48-bit integer" shortname="s48" length="6" inval="0x800000000000" ad="A"></datatype>
<datatype id="0x2e" name="Signed 56-bit integer" shortname="s56" length="7" inval="0x80000000000000" ad="A"></datatype>
<datatype id="0x2f" name="Signed 64-bit integer" shortname="s64" length="8" inval="0x8000000000000000" ad="A"></datatype>
<!-- Enumeration -->
<datatype id="0x30" name="8-bit enumeration" shortname="enum8" length="1" inval="0xff" ad="D"></datatype>
<datatype id="0x31" name="16-bit enumeration" shortname="enum16" length="2" inval="0xffff" ad="D"></datatype>
<!-- Floating point -->
<datatype id="0x38" name="Semi-precision" shortname="semi" length="2" inval="nan" ad="A"></datatype>
<datatype id="0x39" name="Single precision" shortname="float" length="4" inval="nan" ad="A"></datatype>
<datatype id="0x3a" name="Double precision" shortname="double" length="8" inval="nan" ad="A"></datatype>
<!-- String -->
<!-- oN, defined in first N octets -->
<datatype id="0x41" name="Octed string" shortname="ostring" length="o1" inval="0xff" ad="D"></datatype>
<datatype id="0x42" name="Character string" shortname="cstring" length="o1" inval="0xff" ad="D"></datatype>
<datatype id="0x43" name="Long octed string" shortname="lostring" length="o2" inval="0xffff" ad="D"></datatype>
<datatype id="0x44" name="Long character string" shortname="lcstring" length="o2" inval="0xffff" ad="D"></datatype>
<!-- Ordered sequence -->
<!-- sloc, sum of length of content -->
<datatype id="0x48" name="Array" shortname="array" length="2+sloc" inval="0xffff" ad="D"></datatype>
<datatype id="0x4c" name="Structure" shortname="struct" length="2+sloc" inval="0xffff" ad="D"></datatype>
<!-- Collection -->
<datatype id="0x50" name="Set" shortname="set" length="sloc" inval="0xffff" ad="D"></datatype>
is it the right file?
Ha yes, more complicated on docker.
Yes itâs the good file deconz-rest-plugin/general.xml at master · dresden-elektronik/deconz-rest-plugin · GitHub
But you can use a second xml to add feature to the original file, on deconz menu, edit > preferences > ZCLBD and you can add a file stored in a presistent folder on the docker.
I donât found sample but the procedure is here https://www.dresden-elektronik.de/funk/software/deconz.html?file=files/dresden-elektronik/content/downloads/dokumente/funktechnik/deCONZ-BHB-en.pdf > â10. Extending the ZCLDBâ
Does anyone know how to pass the text information from the linky into a json?
bringing up consumption indexes is quite simple using âtypeâ: â$TYPE_CONSUMPTION_SENSORâ, but how to bring up cstrings? if I use more than two Linky alarms, deCONZ never raises the following ones. This seems to create an error.
For me like you have done with the "state/colormode"
need to work, even itâs an hacky way, but for test no problem.
You have only "false"
as result ? what is the value in the GUI ?
I use two alarms in my ZLinky json. If I put a third one, it doesnât work. Something goes wrong because it is never updated. Iâve been trying to find a solution for three days. I also have a light that appears when it doesnât exist. Do you have a ZLinky module to test my complete json? FYI the tariffPeriod value comes back instantly. It corresponds to PTEC, current tariff period.
For information he use as DDF
{
"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/colormode",
"refresh.interval": 730,
"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"
},
"default": false
},
{
"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": 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
},
{
"name": "state/lastupdated"
}
]
},
{
"type": "$TYPE_ALARM_SENSOR",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x03",
"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": 730,
"read": {
"at": "0x0010",
"cl": "0xff66",
"ep": 1,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0010",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
},
"default": false
},
{
"name": "state/lastupdated"
}
]
}
But only 1 sensors on 3 have swversion
Here is the ZLINKY json in History mode which works for me, with the 6 Tempo consumption indexes, and the OPTARIF, DEMAIN and tariffPeriod values ââwhich allows PTEC to be quickly reported.
Of course it also works on BASE and HPHC tariffs. This Json works with deCONZ in docker on Synology. I had to use two fields âcolormodeâ and one âswversionâ field, because so far I donât have the solution to create json type state_ptec_item.json in devices\generic\items folder. I donât know where this folder is located under docker, and if it is not deleted by decONZ container updates.
{
"schema": "devcap1.schema.json",
"manufacturername": "LiXee",
"modelid": "ZLinky_TIC",
"vendor": "LiXee",
"product": "Linky Historique with datas in colormode & swverson",
"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",
"static": "index0"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 300,
"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",
"static": "index1"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 300,
"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",
"static": "index2"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 300,
"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",
"static": "index3"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 300,
"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",
"static": "index4"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 300,
"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",
"static": "index5"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/consumption",
"refresh.interval": 300,
"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",
"static": "tariffPeriod"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/colormode",
"refresh.interval": 730,
"read": {
"at": "0x0010",
"cl": "0xff66",
"ep": 1,
"fn": "zcl:attr"
},
"parse": {
"at": "0x0010",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl:attr"
},
"default": false
},
{
"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",
"static": "OPTARIF"
},
{
"name": "attr/swversion",
"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"
},
"refresh.interval": 900
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"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
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"cl": "0x0702",
"src.ep": 1,
"report": [
{
"at": "0x0100",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0102",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0104",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0106",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0108",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x010A",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
}
]
},
{
"bind": "unicast",
"cl": "0xFF66",
"src.ep": 1,
"report": [
{
"at": "0x0000",
"dt": "0x42",
"min": 1,
"max": 300
},
{
"at": "0x0001",
"dt": "0x42",
"min": 1,
"max": 600
},
{
"at": "0x0010",
"dt": "0x42",
"min": 1,
"max": 300
}
]
}
]
}
The min max values ââare low because I want to get the values ââas close as possible to the real values ââavailable on the Enedis site. Same for tariffPeriod (PTEC) which in my use must go up as soon as hour tariff changes: HPHC tariffs (HCâŠ/HPâŠ) and Tempo tariffs (HCJB/HPJB/HCJW/HPJW/HCJR/HPJR)
Is it possible to set the name as default device in the json?
I identify my devices by name, if the name is in the json, it saves me from having to rename the devices by hand after exclusion/inclusion so that everything works correctly.
I need a default name, with if possible the possibility of modifying it with a curl PUT.
Is the modification below correct?
{
"name": "attr/name",
"static": "nomdudevice"
},
Hi @Smanar,
I am testing a DDF for all Linky modes. It integrates the variables of prices, HC/HP changes, and the six indexes which increment according to Base, Hphc and Tempo. In the case of a Linky in standard mode, it must display the corresponding tariffs, and the production if current is injected into the network.
My Linky is single-phase Tempo.
It works with a few lines added in general.xml and json items.
Below are the files:
{
"schema": "devcap1.schema.json",
"manufacturername": "LiXee",
"modelid": "ZLinky_TIC",
"vendor": "LiXee",
"product": "zlinky_tic_all_mode",
"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": 300,
"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": 300,
"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": 300,
"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": 300,
"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": 300,
"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": 300,
"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/mode",
"refresh.interval": 3600,
"read": {
"at": "0x0300",
"cl": "0xFF66",
"ep": "0x01",
"fn": "zcl:attr"
},
"parse": {
"at": "0x0300",
"cl": "0xFF66",
"ep": "0x01",
"eval": "if (Attr.val == 0) { Item.val = 'historique monophase';} else if (Attr.val == 1) { Item.val = 'standard monophase';} else if (Attr.val == 2) { Item.val = 'historique triphase';} else if (Attr.val == 3) { Item.val = 'standard triphase';} else if (Attr.val == 5) { Item.val = 'standard monophase producteur';} else if (Attr.val == 7) { Item.val = 'standard triphase producteur';}",
"fn": "zcl:attr"
},
"write": {
"cl": "0xFF66",
"ep": "0x01",
"cmd": "0x00",
"mf": "0x128b",
"eval": "if (Item.val == 'historique monophase') {0} else if (Item.val == 'standard monophase') {1} else if (Item.val == 'historique triphase') {2} else if (Item.val == 'standard triphase') {3} else if (Item.val == 'standard monophase producteur') {5} else if (Item.val == 'standard triphase producteur') {7}",
"fn": "zcl:cmd"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"name": "state/alarm",
"refresh.interval": 30,
"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/tariffPeriod"
},
{
"name": "state/demain"
},
{
"name": "state/ngtf_optarif"
},
{
"name": "state/ltarf"
},
{
"name": "state/ntarf"
},
{
"name": "state/production"
},
{
"name": "state/stge"
},
{
"name": "state/lastupdated"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"cl": "0xFF66",
"src.ep": 1,
"report": [
{
"at": "0x0000",
"dt": "0x42",
"min": 0,
"max": 0
},
{
"at": "0x0001",
"dt": "0x42",
"min": 0,
"max": 0
},
{
"at": "0x0005",
"dt": "0x21",
"min": 1,
"max": 15,
"change": "0x00000001"
},
{
"at": "0x0010",
"dt": "0x42",
"min": 0,
"max": 0
},
{
"at": "0x0200",
"dt": "0x42",
"min": 0,
"max": 0
},
{
"at": "0x0201",
"dt": "0x20",
"min": 0,
"max": 0
},
{
"at": "0x0300",
"dt": "0x20",
"min": 0,
"max": 0
},
{
"at": "0x0217",
"dt": "0x42",
"min": 0,
"max": 0
}
]
},
{
"bind": "unicast",
"cl": "0x0702",
"src.ep": 1,
"report": [
{
"at": "0x0100",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0102",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0104",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0106",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0108",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x010A",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
},
{
"at": "0x0001",
"change": "0x00000001",
"dt": "0x25",
"min": 1,
"max": 120
}
]
}
]
}
{
"schema": "resourceitem1.schema.json",
"id": "state/demain",
"datatype": "String",
"access": "R",
"public": true,
"description": "ZLinky demain",
"read": {
"at": "0x0001",
"cl": "0xff66",
"ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0001",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl"
},
"refresh.interval": 730
}
{
"schema": "resourceitem1.schema.json",
"id": "state/ltarf",
"datatype": "String",
"access": "R",
"public": true,
"description": "ZLinky ltarf",
"read": {
"at": "0x0200",
"cl": "0xff66",
"ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0200",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl"
},
"refresh.interval": 730
}
{
"schema": "resourceitem1.schema.json",
"id": "state/ngtf_optarif",
"datatype": "String",
"access": "R",
"public": true,
"description": "ZLinky ngtf_optarif",
"read": {
"at": "0x0000",
"cl": "0xff66",
"ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0000",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl"
},
"refresh.interval": 730
}
{
"schema": "resourceitem1.schema.json",
"id": "state/ntarf",
"datatype": "UInt8",
"access": "R",
"public": true,
"description": "ZLinky ntarf",
"read": {
"at": "0x0201",
"cl": "0xff66",
"ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0201",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl"
},
"refresh.interval": 730
}
{
"schema": "resourceitem1.schema.json",
"id": "state/tariffPeriod",
"datatype": "String",
"access": "R",
"public": true,
"description": "ZLinky ptec use tariffPeriod",
"read": {
"at": "0x0010",
"cl": "0xff66",
"ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0010",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl"
},
"refresh.interval": 730
}
{
"schema": "resourceitem1.schema.json",
"id": "state/stge",
"datatype": "String",
"access": "R",
"public": true,
"description": "ZLinky stge",
"read": {
"at": "0x0217",
"cl": "0xff66",
"ep": 1,
"fn": "zcl"
},
"parse": {
"at": "0x0217",
"cl": "0xff66",
"ep": 1,
"eval": "Item.val = Attr.val",
"fn": "zcl"
},
"refresh.interval": 730
}
And here is the information that is returned, in addition to the 6 consumptions:
You find the Linky mode, and the titles corresponding to the historique mode and the standard mode, and the production which is the injection of solar panels into the network.
Of course, only the informations corresponding to the Linky mode are updated.
It works for all modes ? But for standard users, the index is 0x0000 and 0x0100/0x0102 for HP/HC.
But there is so usefull stuff, itâs a shame is so hard to include officialy new fields to use on DDF
I think x0100 is also the index for BASE.
in my opinion there is an error/oversight, but I cannot check because I am in tempo.
In fact on Enedis it was like this:
id1 base/hc/hcjb
id2 hp/hpjb
id3 hcjw
id4 hpjw
id5 hcjr
id6 hpjr
normally there are only 6 indexes in blue tariffs.
Also on the linky, when we go from hc/hp to base the increment of the base consumption is done on hc. base and hc, same counter which increments on the linky.
normally yes, it should work on all modes, I can retrieve the values ââof modes which are not mine, the values ââare 0 or null. If you are in Base or HPHC, that will take one more test. Iâm tempo.
I also looked at the json draft in /devices/lixee/ to verify.
If itâs really 0x000 only for Base, itâs complicated for nothing. I thought it was an oversight
And use consumption_2 on the first counter for Base for example
Ha, right, itâs possible, there is something strange, if you look the âsynthese developpeurâ
The attribute 0x0000 is no more used, its now 0x0100
Perfect. I didnât understand why it wasnât 0x100.
I assume that 0x0000 is used for the sum of all indexes, which corresponded to the Base index for the one that always stayed with a Base tariff. Otherwise following the change from 0x0000 to 0x0100, it would no longer have worked mysteriously for those who were in Base.
I use what you told me for the swversion problem, to directly name my devices in the json. No need to rename them manually anymore when delete/add devices to deCONZ.
To use the ZLinky device, I need a DDF, item.json files and lines in general.xml. Itâs a bit painful but it works.
Thank you for your help, I knew nothing about deCONZ and Zigbee, except the structure of json files.
{
"name": "attr/name",
"read": {
"fn": "none"
},
"static": "index0"
}
Ha yes, itâs a a good idea to put the index name in the DDF, better than the native incremental one.
But if you use
"static": "index0"
This one is locked after nope ?
Perhaps better to use
"default": "index0"
I tested with "static": "index0"
. Itâs not blocked, I can change the device name.
Maybe it does the same thing because there is "fn": "none"
Numbers may change, I search for devices by name. Once retrieved the json of all devices with a GET sensors in the $sensorsdatas
variable for exemple,
In PHP:
$tab = array_combine(array_column($sensorsdatas,ânameâ), array_keys($sensorsdatas));
And for the consumption of index0 it is:
$sensorsdatas[$tab[âindex0â]][âstateâ][âconsumptionâ];
Ok, so good to know, itâs probably a âbreakâ , because the âstaticâ is made to be fixed ^^