Bonjour/Bonsoir François02,
Désolé de la réponse tardive, ci-dessous le Json complet pour MeterInstantData (non tronqué comme plus haut dans le fil de discussion, mais vide car pas en prod pour le moment):
{
"MeterInstantData": [
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 205,
"channel": 5
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 205,
"channel": 0
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 205,
"channel": 1
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 205,
"channel": 2
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 205,
"channel": 3
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 205,
"channel": 4
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 201,
"channel": 0
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 201,
"channel": 1
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 201,
"channel": 2
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 201,
"channel": 3
},
{
"currentA": 0,
"currentB": 0,
"currentC": 0,
"voltageAB": 0,
"voltageBC": 0,
"voltageCA": 0,
"voltageAN": 0,
"voltageBN": 0,
"voltageCN": 0,
"powerA": 0,
"powerB": 0,
"powerC": 0,
"powerTActive": 0,
"powerTReactive": 0,
"powerTApparent": 0,
"powerFactorT": 0,
"frequency": 0,
"slaveId": 201,
"channel": 4
}
]
}
C’est pas très lisible à première vu mais avec https://jsonpathfinder.com/ par exemple, on peut facilement créer ses « value_template: »
Bonne journée/nuit.
++
PS: UsageMeters aide à identifier les « consommateurs »
{
"UsageMeters": [
{
"slaveId": 205,
"channel": 5,
"usage": "Main_Incomer",
"unitEnergy": "ElectricWh"
},
{
"slaveId": 205,
"channel": 0,
"usage": "Heating",
"unitEnergy": "ElectricWh"
},
{
"slaveId": 205,
"channel": 1,
"usage": "Cooling",
"unitEnergy": "ElectricWh"
},
{
"slaveId": 205,
"channel": 2,
"usage": "SanitaryHotWater",
"unitEnergy": "ElectricWh"
},
{
"slaveId": 205,
"channel": 3,
"usage": "Sockets",
"unitEnergy": "ElectricWh"
},
{
"slaveId": 205,
"channel": 4,
"usage": "Others",
"unitEnergy": "ElectricWh"
}
]
}