Have found usefull information on the doc
The Device supports commands On/Off Cluster as Server to allow the control of the Fil Pilote Heater wired to the Device, in a deprecated mode, when the Gateway does not integrate the Fil Pilote Cluster.
When controlled with the On/Off Cluster, the SIN-4-FP acts as:
Comfort when receiving a On Command,
No-Frost when receiving a Off Command.
So the light entry is useless. But you can use it to force a no-frost/Comfort and see if the device return the value after you send the request, can need to set a bind.
{
"schema": "devcap1.schema.json",
"ddfvalidate": false,
"manufacturername": "NodOn",
"modelid": "SIN-4-FP-21",
"vendor": "NodOn",
"product": "Cable outlet",
"sleeper": false,
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_THERMOSTAT",
"restapi": "/sensors",
"uuid": [
"$address.ext",
"0x01",
"0x0201"
],
"meta": {
"values": {
"config/mode": {"confort": 1, "confort-1": 4, "confort-2": 5, "eco": 2, "hors gel": 3, "off": 0}
}
},
"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": "0x0000",
"cl": "0xfc00",
"ep": "0x01",
"fn": "zcl:attr"
},
"parse": {
"at": "0x0000",
"cl": "0xfc00",
"ep": "0x01",
"eval": "if (Attr.val == 0) { Item.val = 'off'; } else if (Attr.val == 1) { Item.val = 'confort'; } else if (Attr.val == 2) { Item.val = 'eco'; } else if (Attr.val == 3) { Item.val = 'hors gel';} else if (Attr.val == 4) { Item.val = 'confort-1'; } else if (Attr.val == 5) { Item.val = 'confort-2'; }",
"fn": "zcl:attr"
},
"write": {
"cl": "0xfc00",
"ep": "0x01",
"cmd": "0x00",
"eval": "if (Item.val == 'off') { 0 } else if (Item.val == 'confort') { 1 } else if (Item.val == 'eco') { 2 } else if (Item.val == 'hors gel') { 3 } else if (Item.val == 'confort-1') { 4 } else if (Item.val == 'confort-2') { 5 }",
"fn": "zcl:cmd"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
{
"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/lastupdated"
},
{
"name": "state/consumption"
}
]
},
{
"type": "$TYPE_LEVEL_CONTROL_SWITCH",
"restapi": "/lights",
"uuid": [
"$address.ext",
"0x01"
],
"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": "state/on",
"refresh.interval": 5
},
{
"name": "state/reachable"
}
]
}
],
"bindings": [
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0x0702",
"report": [
{
"at": "0x0000",
"dt": "0x25",
"min": 1,
"max": 300,
"change": "0x00000001"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"cl": "0xfc00",
"report": [
{
"at": "0x0000",
"dt": "0x20",
"min": 1,
"max": 3600,
"change": "0x00000001"
}
]
}
]
}