From 28c5cc186eb14da7cbaac6a8f1c3d3bd4fdee573 Mon Sep 17 00:00:00 2001 From: simatec Date: Sun, 14 Jan 2024 19:20:03 +0100 Subject: [PATCH] (simatec) Fix X3-Hybrid-G4 data --- lib/inverterData.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/inverterData.js b/lib/inverterData.js index 4ee2c46..45f38ef 100644 --- a/lib/inverterData.js +++ b/lib/inverterData.js @@ -181,26 +181,27 @@ class inverterData { 47: { name: 'data.powerConsumer', description: 'Consumer power', type: 'number', maxValue: 32768, unit: 'W', role: 'value.power' }, // 'Consumer Power , 54: { name: 'data.inverterTemperature', description: 'Inverter temperature', type: 'number', unit: '°C', role: 'value.temperature' }, // 'Inverter Temperature, 68: { name: 'data.yieldtotal', description: 'Inverter AC-Energy out total', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Energy': (19, 'kWh'), - 69: { name: 'data.yieldtotalOverflow', description: 'Inverter AC-Energy out total Overflow', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Energy': (19, 'kWh'), + 69: { name: 'data.yieldtotalOverflow', description: 'Inverter AC-Energy out total Overflow', type: 'number', role: 'indicator.state' }, 70: { name: 'data.yieldtoday', description: 'Inverter AC-Energy out Daily', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // 'Today's Energy': (21, 'kWh'), 71: { name: 'data.totalBatteryInputFromGrid', description: 'Total Battery Input from Grid', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Total Battery Input from Grid, + 72: { name: 'data.totalBatteryInputFromGridOverflow', description: 'Total Battery Input from Grid Overflow', type: 'number', role: 'indicator.state' }, 74: { name: 'data.totalBatteryDischargeEnergy', description: 'Total Battery Discharge Energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Total Battery Discharge Energy - 75: { name: 'data.totalBatteryDischargeEnergyOverflow', description: 'Total Battery Discharge Energy Overflow', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Total Battery Discharge Energy + 75: { name: 'data.totalBatteryDischargeEnergyOverflow', description: 'Total Battery Discharge Energy Overflow', type: 'number', role: 'indicator.state' }, 76: { name: 'data.totalBatteryChargeEnergy', description: 'Total Battery Charge Energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Total Battery Charge Energy - 77: { name: 'data.totalBatteryChargeEnergyOverfow', description: 'Total Battery Charge Energy Overflow', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Total Battery Charge Energy + 77: { name: 'data.totalBatteryChargeEnergyOverflow', description: 'Total Battery Charge Energy Overflow', type: 'number', role: 'indicator.state' }, 78: { name: 'data.todaysBatteryDischargeEnergy', description: 'Todays Battery Discharge Energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Todays Battery Discharge Energy 79: { name: 'data.todaysBatteryChargeEnergy', description: 'Todays Battery Charge Energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Todays Battery Charge Energy 80: { name: 'data.totalpvenergy', description: 'Total PV Energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Consumption': (42, 'kWh'), - 81: { name: 'data.totalpvenergyOverflow', description: 'Total PV Energy Overflow', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Consumption': (42, 'kWh'), + 81: { name: 'data.totalpvenergyOverflow', description: 'Total PV Energy Overflow', type: 'number', role: 'indicator.state' }, 82: { name: 'data.pvenergy', description: 'PV Energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Consumption': (42, 'kWh'), 86: { name: 'data.totalFeed', description: 'Total Feed-in Energy', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Feed-in Energy': (41, 'kWh'), - 87: { name: 'data.totalFeedOverfow', description: 'Total Feed-in Energy Overfow', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Feed-in Energy': (41, 'kWh'), + 87: { name: 'data.totalFeedOverflow', description: 'Total Feed-in Energy Overflow', type: 'number', role: 'indicator.state' }, 88: { name: 'data.totalconsumption', description: 'Total Consumption', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Consumption': (42, 'kWh'), - 89: { name: 'data.totalconsumption', description: 'Total Consumption', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power.consumption' }, // 'Total Consumption': (42, 'kWh'), + 89: { name: 'data.totalConsumptionOverflow', description: 'Total Consumption Overflow', type: 'number', role: 'indicator.state' }, 90: { name: 'data.feedinenergy', description: 'Feed in Energy', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power' }, // Feed in Energy: (12.2,'kWh'), - 91: { name: 'data.feedinenergyOverflow', description: 'Feed in Energy Overflow', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power' }, // Feed in Energy: (12.2,'kWh'), + 91: { name: 'data.feedinenergyOverflow', description: 'Feed in Energy Overflow', type: 'number', role: 'indicator.state' }, 92: { name: 'data.consumeenergy', description: 'Consume Energy', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power' }, // Consume Energy: (7.8,'kWh'), - 93: { name: 'data.consumeenergyOverfow', description: 'Consume Energy Overfow', type: 'number', multiplier: 0.01, unit: 'kWh', role: 'value.power' }, // Consume Energy: (7.8,'kWh'), + 93: { name: 'data.consumeenergyOverfow', description: 'Consume Energy Overflow', type: 'number', role: 'indicator.state' }, 103: { name: 'data.batteryCapacityRemainig', description: 'battery capacity remainig', type: 'number', unit: '%', role: 'value.power' }, // 'Battery Capacity Remainig, 105: { name: 'data.batteryTemperature', description: 'battery temperature', type: 'number', unit: '°C', role: 'value.temperature' }, // 'Battery Temperature, 106: { name: 'data.batteryRemainingEnergy', description: 'Battery remaining energy', type: 'number', multiplier: 0.1, unit: 'kWh', role: 'value.power.consumption' }, // Battery remaining energy