fix creator entity md5

This commit is contained in:
JcDenis 2024-05-06 20:53:47 +02:00
parent 86dcc614e2
commit c86531a143
4 changed files with 508 additions and 11 deletions

File diff suppressed because one or more lines are too long

View file

@ -1030,7 +1030,8 @@
"a0599f25333072be", "a0599f25333072be",
"a405297eaa582a12", "a405297eaa582a12",
"8e7510f792d7e993", "8e7510f792d7e993",
"d8d03ddc7ce6b361" "d8d03ddc7ce6b361",
"5d02e59fc60d15bd"
], ],
"x": 1135, "x": 1135,
"y": 4420, "y": 4420,
@ -1084,7 +1085,8 @@
"b776ddbdb4b51028", "b776ddbdb4b51028",
"cd0939042b525b67", "cd0939042b525b67",
"366f7377fd513760", "366f7377fd513760",
"e3cb6f56cade1ab5" "e3cb6f56cade1ab5",
"937769a5cdaa76db"
], ],
"x": 955, "x": 955,
"y": 4360, "y": 4360,
@ -1470,7 +1472,8 @@
"4a66fcf836959d2c", "4a66fcf836959d2c",
"13a43ea0c63dc053", "13a43ea0c63dc053",
"5d76905ae805599d", "5d76905ae805599d",
"81d1299edeeec856" "81d1299edeeec856",
"a5360e4799f9e170"
], ],
"x": 1755, "x": 1755,
"y": 4060, "y": 4060,
@ -1774,7 +1777,8 @@
"63ccb5cc65d41db0", "63ccb5cc65d41db0",
"9c89f8ad918445b3", "9c89f8ad918445b3",
"2095d2a63909780c", "2095d2a63909780c",
"ddda7783f50a0db4" "ddda7783f50a0db4",
"b3091e70cd5211b4"
], ],
"x": 1575, "x": 1575,
"y": 4120, "y": 4120,
@ -2128,7 +2132,8 @@
"2a9e3b488590c435", "2a9e3b488590c435",
"73d4e0dc30041c36", "73d4e0dc30041c36",
"2ed136ebd92695c1", "2ed136ebd92695c1",
"22ef5d09e03d19e0" "22ef5d09e03d19e0",
"e20cf17770949369"
], ],
"x": 795, "x": 795,
"y": 3880, "y": 3880,
@ -2174,7 +2179,8 @@
"ea77f48c1d222cc2", "ea77f48c1d222cc2",
"ed3c5c95136138e9", "ed3c5c95136138e9",
"f2af422ed8da0c9f", "f2af422ed8da0c9f",
"fdbf3fd639e2816d" "fdbf3fd639e2816d",
"96341058baa9083b"
], ],
"x": 455, "x": 455,
"y": 3820, "y": 3820,
@ -6068,7 +6074,8 @@
"f4a990fd68343eba", "f4a990fd68343eba",
"cdd076b6b818d38f", "cdd076b6b818d38f",
"39e9e59dd42094bb", "39e9e59dd42094bb",
"b4066829ee5f163b" "b4066829ee5f163b",
"ff3a40b127910051"
], ],
"x": 455, "x": 455,
"y": 3520, "y": 3520,
@ -6108,7 +6115,8 @@
"3b8391f25d2d2849", "3b8391f25d2d2849",
"7dd6e99d1c259084", "7dd6e99d1c259084",
"b8e2db56d1fe5f75", "b8e2db56d1fe5f75",
"4ad7402573722786" "4ad7402573722786",
"fbe235d0cb60d161"
], ],
"x": 615, "x": 615,
"y": 3520, "y": 3520,

View file

@ -422,7 +422,7 @@
"t": "set", "t": "set",
"p": "tmp", "p": "tmp",
"pt": "msg", "pt": "msg",
"to": "{\t 'url':'url',\t 'detector':'detector',\t 'sensor':'sensor',\t 'sensor 2':'sensor 2',\t 'probe':'probe',\t 'ceiling':'ceiling',\t 'lamp':'lamp',\t 'socket':'socket',\t 'left socket':'left socket',\t 'right socket':'right socket',\t 'door':'door',\t 'window':'window',\t 'bay':'bay',\t 'left bay':'left bay',\t 'right bay':'right bay',\t 'balloon':'balloon',\t 'speaker':'speaker',\t 'desk':'desk',\t 'fire':'fire',\t 'remote':'remote',\t 'left remote':'left remote',\t 'right remote':'right remote',\t 'shutter':'shutter',\t 'pilot':'pilot',\t 'bedside':'bedside',\t 'left bedside':'left bedside',\t 'right bedside':'right bedside',\t 'heat pump':'heat pump',\t 'cmv':'cmv',\t 'torus':'torus',\t 'relay':'relay'\t}", "to": "{\t 'url':'url',\t 'detector':'detector',\t 'sensor':'sensor',\t 'sensor 2':'sensor 2',\t 'probe':'probe',\t 'ceiling':'ceiling',\t 'lamp':'lamp',\t 'socket':'socket',\t 'left socket':'left socket',\t 'right socket':'right socket',\t 'door':'door',\t 'window':'window',\t 'bay':'bay',\t 'left bay':'left bay',\t 'right bay':'right bay',\t 'balloon':'balloon',\t 'speaker':'speaker',\t 'desk':'desk',\t 'fire':'fire',\t 'remote':'remote',\t 'left remote':'left remote',\t 'right remote':'right remote',\t 'shutter':'shutter',\t 'pilot':'pilot',\t 'bedside':'bedside',\t 'left bedside':'left bedside',\t 'right bedside':'right bedside',\t 'heat pump':'heat pump',\t 'cmv':'cmv',\t 'torus':'torus',\t 'relay':'relay',\t 'power production':'power production'\t}",
"tot": "jsonata" "tot": "jsonata"
}, },
{ {
@ -949,7 +949,7 @@
"t": "set", "t": "set",
"p": "tmp", "p": "tmp",
"pt": "msg", "pt": "msg",
"to": "{\t 'url':'url',\t 'detector':'détecteur',\t 'sensor':'capteur',\t 'sensor 2':'capteur 2',\t 'probe':'sonde',\t 'ceiling':'plafonnier',\t 'lamp':'lampe',\t 'socket':'sortie',\t 'left socket':'sortie gauche',\t 'right socket':'sortie droite',\t 'door':'porte',\t 'window':'fenêtre',\t 'bay':'baie',\t 'left bay':'baie gauche',\t 'right bay':'baie droite',\t 'balloon':'ballon',\t 'speaker':'haut parleur',\t 'desk':'bureau',\t 'fire':'incendie',\t 'remote':'télécommande',\t 'left remote':'télécommande gauche',\t 'right remote':'télécommande droite',\t 'shutter':'volet',\t 'pilot':'pilote',\t 'bedside':'chevet',\t 'left bedside':'chevet gauche',\t 'right bedside':'chevet droite',\t 'heat pump':'pompe à chaleur',\t 'cmv':'vmc',\t 'torus':'tore',\t 'relay':'relais'\t}", "to": "{\t 'url':'url',\t 'detector':'détecteur',\t 'sensor':'capteur',\t 'sensor 2':'capteur 2',\t 'probe':'sonde',\t 'ceiling':'plafonnier',\t 'lamp':'lampe',\t 'socket':'sortie',\t 'left socket':'sortie gauche',\t 'right socket':'sortie droite',\t 'door':'porte',\t 'window':'fenêtre',\t 'bay':'baie',\t 'left bay':'baie gauche',\t 'right bay':'baie droite',\t 'balloon':'ballon',\t 'speaker':'haut parleur',\t 'desk':'bureau',\t 'fire':'incendie',\t 'remote':'télécommande',\t 'left remote':'télécommande gauche',\t 'right remote':'télécommande droite',\t 'shutter':'volet',\t 'pilot':'pilote',\t 'bedside':'chevet',\t 'left bedside':'chevet gauche',\t 'right bedside':'chevet droite',\t 'heat pump':'pompe à chaleur',\t 'cmv':'vmc',\t 'torus':'tore',\t 'relay':'relais',\t 'power production':\"production d'énergie\"\t}",
"tot": "jsonata" "tot": "jsonata"
}, },
{ {

View file

@ -930,6 +930,95 @@
"w": 342, "w": 342,
"h": 82 "h": 82
}, },
{
"id": "b3a54f494cdd0908",
"type": "group",
"z": "0cd436e03cba5cb6",
"name": "Legrand - 412015",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"af4ed7f5e6452fe2",
"8e3558d0fd29e787",
"f560c75cc0e86a48",
"4fcc72c14eaab8bb"
],
"x": 68,
"y": 1733,
"w": 2254,
"h": 248
},
{
"id": "af4ed7f5e6452fe2",
"type": "group",
"z": "0cd436e03cba5cb6",
"g": "b3a54f494cdd0908",
"name": "zigbee - 412015 - device",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"548e7018cac831bd",
"de267bb0a5ee01a3",
"96341058baa9083b",
"a26b411c2e416297",
"aca4e6e7d14bc594",
"e20cf17770949369"
],
"x": 534,
"y": 1759,
"w": 962,
"h": 142
},
{
"id": "8e3558d0fd29e787",
"type": "group",
"z": "0cd436e03cba5cb6",
"g": "b3a54f494cdd0908",
"name": "zigbee - 412015 - source",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"66467fdc455dc868",
"b3091e70cd5211b4",
"0d1a308fe2b59338",
"b1746f0094fd6091",
"a5360e4799f9e170"
],
"x": 1594,
"y": 1759,
"w": 702,
"h": 82
},
{
"id": "f560c75cc0e86a48",
"type": "group",
"z": "0cd436e03cba5cb6",
"g": "b3a54f494cdd0908",
"name": "zigbee - 412015 - model",
"style": {
"fill": "#001f60",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"ff3a40b127910051",
"e285295f66b2b90f",
"fbe235d0cb60d161"
],
"x": 94,
"y": 1759,
"w": 342,
"h": 82
},
{ {
"id": "19b13887fb6925d7", "id": "19b13887fb6925d7",
"type": "switch", "type": "switch",
@ -6148,5 +6237,405 @@
"x": 395, "x": 395,
"y": 1500, "y": 1500,
"wires": [] "wires": []
},
{
"id": "548e7018cac831bd",
"type": "switch",
"z": "0cd436e03cba5cb6",
"g": "af4ed7f5e6452fe2",
"name": "model",
"property": "model",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "412015",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 710,
"y": 1800,
"wires": [
[
"de267bb0a5ee01a3",
"a26b411c2e416297"
]
]
},
{
"id": "de267bb0a5ee01a3",
"type": "change",
"z": "0cd436e03cba5cb6",
"g": "af4ed7f5e6452fe2",
"name": "photovoltaic* / power production* / number / 0*",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "msg.measurement?msg.measurement:'photovoltaic'",
"tot": "jsonata"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "msg.field?msg.field:'power production'",
"tot": "jsonata"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "msg.default?msg.default:0",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1000,
"y": 1860,
"wires": [
[
"aca4e6e7d14bc594"
]
]
},
{
"id": "96341058baa9083b",
"type": "link in",
"z": "0cd436e03cba5cb6",
"g": "af4ed7f5e6452fe2",
"name": "zigbee - 412015 - device",
"links": [
"546f190f3ec0c90d"
],
"x": 575,
"y": 1800,
"wires": [
[
"548e7018cac831bd"
]
]
},
{
"id": "a26b411c2e416297",
"type": "change",
"z": "0cd436e03cba5cb6",
"g": "af4ed7f5e6452fe2",
"name": "brand: legrand / photovoltaic* / power production*",
"rules": [
{
"t": "set",
"p": "brand",
"pt": "msg",
"to": "legrand",
"tot": "str"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "msg.measurement?msg.measurement:'photovoltaic'",
"tot": "jsonata"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "msg.field?msg.field:'power production'",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1010,
"y": 1800,
"wires": [
[
"aca4e6e7d14bc594"
]
]
},
{
"id": "aca4e6e7d14bc594",
"type": "change",
"z": "0cd436e03cba5cb6",
"g": "af4ed7f5e6452fe2",
"name": "protocol",
"rules": [
{
"t": "set",
"p": "protocol",
"pt": "msg",
"to": "zigbee",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1320,
"y": 1800,
"wires": [
[
"e20cf17770949369"
]
]
},
{
"id": "e20cf17770949369",
"type": "link out",
"z": "0cd436e03cba5cb6",
"g": "af4ed7f5e6452fe2",
"name": "zigbee - 412015 - device",
"mode": "link",
"links": [
"3e1b4213132404be"
],
"x": 1455,
"y": 1800,
"wires": []
},
{
"id": "66467fdc455dc868",
"type": "change",
"z": "0cd436e03cba5cb6",
"g": "8e3558d0fd29e787",
"name": "photovoltaic*",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.power",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2110,
"y": 1800,
"wires": [
[
"a5360e4799f9e170"
]
]
},
{
"id": "b3091e70cd5211b4",
"type": "link in",
"z": "0cd436e03cba5cb6",
"g": "8e3558d0fd29e787",
"name": "zigbee - 412015 - source",
"links": [
"24058eec92534b27"
],
"x": 1635,
"y": 1800,
"wires": [
[
"0d1a308fe2b59338"
]
]
},
{
"id": "0d1a308fe2b59338",
"type": "switch",
"z": "0cd436e03cba5cb6",
"g": "8e3558d0fd29e787",
"name": "model",
"property": "model",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "412015",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1770,
"y": 1800,
"wires": [
[
"b1746f0094fd6091"
]
]
},
{
"id": "b1746f0094fd6091",
"type": "switch",
"z": "0cd436e03cba5cb6",
"g": "8e3558d0fd29e787",
"name": "topic",
"property": "topic",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "prefix",
"vt": "msg"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1930,
"y": 1800,
"wires": [
[
"66467fdc455dc868"
]
]
},
{
"id": "a5360e4799f9e170",
"type": "link out",
"z": "0cd436e03cba5cb6",
"g": "8e3558d0fd29e787",
"name": "zigbee - 412015 - source",
"mode": "link",
"links": [
"14a0a0839924964f"
],
"x": 2255,
"y": 1800,
"wires": []
},
{
"id": "ff3a40b127910051",
"type": "link in",
"z": "0cd436e03cba5cb6",
"g": "f560c75cc0e86a48",
"name": "zigbee - 412015 - model",
"links": [
"9cb906bf8066d37e"
],
"x": 135,
"y": 1800,
"wires": [
[
"e285295f66b2b90f"
]
]
},
{
"id": "e285295f66b2b90f",
"type": "change",
"z": "0cd436e03cba5cb6",
"g": "f560c75cc0e86a48",
"name": "model",
"rules": [
{
"t": "set",
"p": "brand",
"pt": "msg",
"to": "legrand",
"tot": "str"
},
{
"t": "set",
"p": "model",
"pt": "msg",
"to": "412015",
"tot": "str"
},
{
"t": "set",
"p": "protocol",
"pt": "msg",
"to": "zigbee",
"tot": "str"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "photovoltaic",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "power production",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 1800,
"wires": [
[
"fbe235d0cb60d161"
]
]
},
{
"id": "fbe235d0cb60d161",
"type": "link out",
"z": "0cd436e03cba5cb6",
"g": "f560c75cc0e86a48",
"name": "zigbee - 412015 - model",
"mode": "link",
"links": [
"94aa726ce8973d2c"
],
"x": 395,
"y": 1800,
"wires": []
},
{
"id": "4fcc72c14eaab8bb",
"type": "comment",
"z": "0cd436e03cba5cb6",
"g": "b3a54f494cdd0908",
"name": "photovoltaic / power production",
"info": "",
"x": 250,
"y": 1940,
"wires": []
} }
] ]