mirror of https://github.com/nymea/nymea.git
change unit
parent
bdc85b1179
commit
3cd49f8930
|
|
@ -291,7 +291,7 @@ void DevicePluginAwattar::processPriceData(Device *device, const QVariantMap &da
|
|||
minPrice = price;
|
||||
|
||||
//qCDebug(dcAwattar) << startTime.toString() << " -> " << endTime.toString();
|
||||
device->setStateValue(currentMarketPriceStateTypeId, currentPrice);
|
||||
device->setStateValue(currentMarketPriceStateTypeId, currentPrice / 10.0);
|
||||
device->setStateValue(validUntilStateTypeId, endTime.toLocalTime().toTime_t());
|
||||
}
|
||||
}
|
||||
|
|
@ -311,9 +311,9 @@ void DevicePluginAwattar::processPriceData(Device *device, const QVariantMap &da
|
|||
// qCDebug(dcAwattar) << " min :" << minPrice << "Eur/MWh";
|
||||
// qCDebug(dcAwattar) << " max :" << maxPrice << "Eur/MWh";
|
||||
|
||||
device->setStateValue(averagePriceStateTypeId, averagePrice);
|
||||
device->setStateValue(lowestPriceStateTypeId, minPrice);
|
||||
device->setStateValue(highestPriceStateTypeId, maxPrice);
|
||||
device->setStateValue(averagePriceStateTypeId, averagePrice / 10.0);
|
||||
device->setStateValue(lowestPriceStateTypeId, minPrice / 10.0);
|
||||
device->setStateValue(highestPriceStateTypeId, maxPrice / 10.0);
|
||||
device->setStateValue(averageDeviationStateTypeId, deviation);
|
||||
|
||||
if (fromSetup)
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
"idName": "currentMarketPrice",
|
||||
"name": "current market price",
|
||||
"type": "double",
|
||||
"unit": "EuroPerMegaWattHour",
|
||||
"unit": "UnitEuroCentPerKiloWattHour",
|
||||
"defaultValue": 0
|
||||
},
|
||||
{
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
"idName": "averagePrice",
|
||||
"name": "average market price [± 12 h]",
|
||||
"type": "double",
|
||||
"unit": "EuroPerMegaWattHour",
|
||||
"unit": "UnitEuroCentPerKiloWattHour",
|
||||
"defaultValue": 0
|
||||
},
|
||||
{
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
"idName": "lowestPrice",
|
||||
"name": "lowest market price [± 12 h]",
|
||||
"type": "double",
|
||||
"unit": "EuroPerMegaWattHour",
|
||||
"unit": "UnitEuroCentPerKiloWattHour",
|
||||
"defaultValue": 0
|
||||
},
|
||||
{
|
||||
|
|
@ -90,7 +90,7 @@
|
|||
"idName": "highestPrice",
|
||||
"name": "highest market price [± 12 h]",
|
||||
"type": "double",
|
||||
"unit": "EuroPerMegaWattHour",
|
||||
"unit": "UnitEuroCentPerKiloWattHour",
|
||||
"defaultValue": 0
|
||||
},
|
||||
{
|
||||
|
|
@ -135,6 +135,7 @@
|
|||
{
|
||||
"name": "sg-mode",
|
||||
"type": "QString",
|
||||
"defaultValue": "1",
|
||||
"allowedValues": [
|
||||
"1",
|
||||
"2",
|
||||
|
|
|
|||
Loading…
Reference in New Issue