Better handling for single phase meters

This commit is contained in:
Simon Stürz 2021-08-26 12:45:20 +02:00
parent d15234f086
commit 32cec935b4

View File

@ -1,5 +1,5 @@
{ {
"description": "Energy meters measure electric power consumption/production on 1, 2 or 3 phases. Often used as root measurements.", "description": "Energy meters measure electric power consumption/production on 1, 2 or 3 phases. Often used as root measurements. If a meter uses more than 1 phase, as many states as possible for each phase shall be implemented. If there is only one phase, the total energy, total current etc. including voltage and current for phase A should be implemented.",
"extends": [ "smartmeter" ], "extends": [ "smartmeter" ],
"states": [ "states": [
{ {
@ -23,7 +23,8 @@
{ {
"name": "energyConsumedPhaseA", "name": "energyConsumedPhaseA",
"type": "double", "type": "double",
"unit": "KiloWattHour" "unit": "KiloWattHour",
"optional": true
}, },
{ {
"name": "energyConsumedPhaseB", "name": "energyConsumedPhaseB",
@ -40,7 +41,8 @@
{ {
"name": "energyProducedPhaseA", "name": "energyProducedPhaseA",
"type": "double", "type": "double",
"unit": "KiloWattHour" "unit": "KiloWattHour",
"optional": true
}, },
{ {
"name": "energyProducedPhaseB", "name": "energyProducedPhaseB",
@ -57,7 +59,8 @@
{ {
"name": "currentPowerPhaseA", "name": "currentPowerPhaseA",
"type": "double", "type": "double",
"unit": "Watt" "unit": "Watt",
"optional": true
}, },
{ {
"name": "currentPowerPhaseB", "name": "currentPowerPhaseB",