[teleinfo] Use new apparent power unit (#9456)
* Use new apparent power unit * Apply spotless formatting Signed-off-by: Olivier Marceau <hollysaiqs@marceau.ovh>pull/9484/head
parent
74aef9beb8
commit
f5d5cd4b4c
|
@ -38,6 +38,6 @@ public abstract class TeleinfoAbstractCbemmEvoIccElectricityMeterHandler
|
||||||
|
|
||||||
protected void updateStatesForCommonCbemmEvolutionIccChannels(FrameCbemmEvolutionIcc frame) {
|
protected void updateStatesForCommonCbemmEvolutionIccChannels(FrameCbemmEvolutionIcc frame) {
|
||||||
updateStatesForCommonCbemmChannels(frame);
|
updateStatesForCommonCbemmChannels(frame);
|
||||||
updateState(CHANNEL_CBEMM_EVOLUTION_ICC_PAPP, QuantityType.valueOf(frame.getPapp(), Units.WATT));
|
updateState(CHANNEL_CBEMM_EVOLUTION_ICC_PAPP, QuantityType.valueOf(frame.getPapp(), Units.VOLT_AMPERE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ public abstract class TeleinfoAbstractCbetmElectricityMeterHandler extends Telei
|
||||||
}
|
}
|
||||||
|
|
||||||
updateState(CHANNEL_CBETM_LONG_PMAX, QuantityType.valueOf(frameCbetmLong.getPmax(), Units.WATT));
|
updateState(CHANNEL_CBETM_LONG_PMAX, QuantityType.valueOf(frameCbetmLong.getPmax(), Units.WATT));
|
||||||
updateState(CHANNEL_CBETM_LONG_PAPP, QuantityType.valueOf(frameCbetmLong.getPapp(), Units.WATT));
|
updateState(CHANNEL_CBETM_LONG_PAPP, QuantityType.valueOf(frameCbetmLong.getPapp(), Units.VOLT_AMPERE));
|
||||||
updateState(CHANNEL_CBETM_LONG_PPOT, new StringType(frameCbetmLong.getPpot()));
|
updateState(CHANNEL_CBETM_LONG_PPOT, new StringType(frameCbetmLong.getPpot()));
|
||||||
|
|
||||||
updateState(CHANNEL_CBETM_SHORT_ADIR1, UnDefType.NULL);
|
updateState(CHANNEL_CBETM_SHORT_ADIR1, UnDefType.NULL);
|
||||||
|
|
Loading…
Reference in New Issue