long chargeDuration = loadpoint.getChargeDuration();
channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_CHARGE_DURATION);
- updateState(channel, new QuantityType<>(chargeDuration, MetricPrefix.NANO(Units.SECOND)));
+ updateState(channel, new QuantityType<>(chargeDuration, Units.SECOND));
float chargePower = loadpoint.getChargePower();
channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_CHARGE_POWER);
long chargeRemainingDuration = loadpoint.getChargeRemainingDuration();
channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_CHARGE_REMAINING_DURATION);
- updateState(channel, new QuantityType<>(chargeRemainingDuration, MetricPrefix.NANO(Units.SECOND)));
+ updateState(channel, new QuantityType<>(chargeRemainingDuration, Units.SECOND));
float chargeRemainingEnergy = loadpoint.getChargeRemainingEnergy();
channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_CHARGE_REMAINING_ENERGY);
long connectedDuration = loadpoint.getConnectedDuration();
channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_CONNECTED_DURATION);
- updateState(channel, new QuantityType<>(connectedDuration, MetricPrefix.NANO(Units.SECOND)));
+ updateState(channel, new QuantityType<>(connectedDuration, Units.SECOND));
boolean enabled = loadpoint.getEnabled();
channel = new ChannelUID(uid, channelGroup, CHANNEL_LOADPOINT_ENABLED);