"Reduce this value by" wird ignoriert
Closed this issue · 5 comments
Ich möchte bei der Anzeige der Leistung die ins Haus fließt den Wert der aktuellen Ladeleistung für das Auto substrahieren.
Also habe ich bei "reduce this value by" die Ladeleistung der Ladestation ausgewählt. Es ändert sich aber am dargestellten Wert nichts. Sie Substraktion wird also nicht durchgeführt.
Ich habe auch versucht mit den verschiedenen Einheiten (W/kW) zu testen, also mal die Datasource in kW umgewandelt, mal nicht. Dann habe ich auch andere Datasources versucht zur Subtraktion zu nutzen, aber auch diese werden ignoriert.
Auch ein Neuanlegen der beteiligten Datasources hat nicht zum Erfolg geeführt.
Ich habe die JSON-Config, als auch die Config der beiden relevanten ioBroker-Objekte beigefügt.
Problem ist, dass bei ID36 eigentlich der Wert aus dem Substraktionsergebnis Dataesource0 - Datasource9 angezeigt werden sollte. Es wird aber immer nur der Wert aus Datasource0 angezeigt.
{
"basic": {
"enable_grid": true,
"enable_animation": false,
"enable_area_catch": true,
"enable_config_icon": false,
"enable_last_id": false,
"enable_icon_proxy": false,
"enable_low_performance": false,
"height": 391,
"width": 320,
"styles": "",
"font": {
"family": "\"Arial\", sans-serif",
"size": "20",
"color": "",
"fill": "",
"align": "middle"
},
"rect": {
"height": 100,
"width": 100,
"corners": 10
},
"circle": {
"radius": 50
},
"elm": {
"stroke_width": 5,
"color": "",
"fill": "",
"pos_x": 50,
"pos_y": 50
},
"icon": {
"height": 24,
"width": 24,
"color": ""
},
"background_color": "#1A1A1A00"
},
"calculation": {
"battery": {
"dod": -1,
"capacity": -1,
"percent": -1,
"charge": -1,
"charge_prop": false,
"charge_kw": false,
"discharge": -1,
"discharge_prop": false,
"discharge_kw": false
},
"consumption": {
"production": [
"6"
],
"production_kw": false,
"gridFeed": 3,
"gridFeed_kw": false,
"gridFeed_prop": false,
"gridConsume": 2,
"gridConsume_kw": false,
"gridConsume_prop": false,
"batteryCharge": 4,
"batteryCharge_kw": false,
"batteryCharge_prop": false,
"batteryDischarge": 4,
"batteryDischarge_kw": false,
"batteryDischarge_prop": false
}
},
"animation": {
"stroke": "#ffce4a",
"stroke_dasharray": "2 12 2 12 2 12 2 12 2 12 2 12 2 12 2 36",
"stroke_width": 5,
"animation_duration": 4000,
"stroke_linecap": "round",
"animation_timing_function": "linear"
},
"animation_configuration": {
"dots": 8,
"distance": 12,
"length": 2
},
"line": {
"stroke_width": 8,
"stroke": "#000000"
},
"elements": {
"2": {
"position": 11,
"type": "text",
"subType": "datasource",
"id": 2,
"pos_x": 54,
"pos_y": 49,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 18,
"align": "middle",
"text": "ID 2",
"unit": "kW",
"source": 6,
"source_option": -1,
"source_display": "value",
"shadow": "rgb(0, 0, 0)",
"threshold": 0,
"calculate_kw": "calc",
"counter_animation": false,
"convert": false,
"decimal_places": 2,
"action": "none",
"subtract": [
-1
],
"add": [
-1
],
"frame": "_overlay"
},
"5": {
"position": 5,
"type": "rect",
"id": 5,
"rx": 10,
"height": 100,
"width": 100,
"pos_x": 4,
"pos_y": 5,
"fill": "none",
"color": "rgb(255, 255, 255)",
"stroke": 2,
"shadow": "rgba(0, 0, 0, 0.7)",
"frame": "_overlay",
"fill_value": "#A1D343",
"fill_type": "value",
"fill_direction": 90,
"fill_max": 15000,
"border_type": -1,
"border_direction": "cw",
"border_style": "round",
"border_reverse": false,
"border_start": null,
"source": 6,
"threshold": 0
},
"6": {
"position": 5,
"type": "icon",
"id": "6",
"icon": "mdi:solar-panel",
"width": 24,
"height": 24,
"color": "rgb(255, 255, 255)",
"pos_x": "42",
"pos_y": "12",
"shadow": "rgb(0, 0, 0)",
"source": -1,
"threshold": 0,
"frame": "_overlay",
"action": "none"
},
"7": {
"position": 4,
"type": "rect",
"id": 7,
"rx": 10,
"height": 100,
"width": 100,
"pos_x": 216,
"pos_y": 285,
"fill": "none",
"color": "rgb(255, 255, 255)",
"stroke": 2,
"shadow": "rgba(0, 0, 0, 0.7)",
"frame": "_overlay",
"fill_type": "percent",
"fill_direction": 90,
"border_type": -1,
"border_direction": "cw",
"border_style": "round",
"border_reverse": false,
"border_start": null,
"source": -1,
"threshold": 0
},
"11": {
"position": 10,
"type": "text",
"id": 11,
"pos_x": 268,
"pos_y": 370,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 14,
"align": "middle",
"text": "Haus",
"shadow": "rgb(0, 0, 0)",
"frame": "_overlay"
},
"12": {
"position": 4,
"type": "icon",
"id": "12",
"icon": "mdi:house-city",
"width": 24,
"height": 24,
"color": "rgb(255, 255, 255)",
"pos_x": "250",
"pos_y": "291",
"shadow": "rgb(0, 0, 0)",
"source": -1,
"threshold": 0,
"frame": "_overlay",
"action": "none"
},
"13": {
"position": 3,
"type": "rect",
"id": 13,
"rx": 10,
"height": 100,
"width": 100,
"pos_x": 3,
"pos_y": 285,
"fill": "none",
"color": "rgb(255, 255, 255)",
"stroke": 2,
"shadow": "rgb(255, 255, 255)",
"frame": "_overlay",
"fill_value": "#A1D343",
"fill_type": "percent",
"fill_direction": 90,
"border_type": -1,
"border_direction": "cw",
"border_style": "round",
"border_reverse": false,
"border_start": null,
"source": 8,
"threshold": 0
},
"14": {
"position": 2,
"type": "rect",
"id": 14,
"rx": 10,
"height": 100,
"width": 100,
"pos_x": 206,
"pos_y": 5,
"fill": "none",
"color": "rgb(255, 255, 255)",
"stroke": 2,
"shadow": "rgba(0, 0, 0, 0.7)",
"frame": "_overlay",
"fill_type": "percent",
"fill_direction": 90,
"border_type": -1,
"border_direction": "cw",
"border_style": "round",
"border_reverse": false,
"border_start": null,
"source": -1,
"threshold": 0
},
"15": {
"position": 9,
"type": "text",
"id": 15,
"pos_x": 52,
"pos_y": 370,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 15,
"align": "middle",
"text": "Batterie",
"shadow": "rgb(0, 0, 0)",
"frame": "_overlay"
},
"16": {
"position": 8,
"type": "text",
"subType": "datasource",
"id": 16,
"pos_x": 53,
"pos_y": 350,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 20,
"align": "middle",
"text": "ID 16",
"unit": "%",
"source": 8,
"source_option": -1,
"source_display": "text",
"shadow": "rgb(0, 0, 0)",
"threshold": 0,
"calculate_kw": "calc",
"counter_animation": false,
"convert": true,
"decimal_places": 2,
"action": "none",
"subtract": [
-1
],
"add": [
-1
],
"frame": "_overlay"
},
"19": {
"position": 7,
"type": "text",
"subType": "datasource",
"id": 19,
"pos_x": 256,
"pos_y": 49,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 18,
"align": "middle",
"text": "ID 19",
"unit": "kW",
"source": 2,
"source_option": -1,
"source_display": "value",
"shadow": "rgb(0, 0, 0)",
"threshold": 0,
"calculate_kw": "calc",
"counter_animation": false,
"convert": true,
"decimal_places": 2,
"action": "none",
"subtract": [
-1
],
"add": [
"3"
],
"frame": "_overlay"
},
"20": {
"position": 3,
"type": "icon",
"id": "20",
"icon": "mdi:electricity-from-grid",
"width": 24,
"height": 24,
"color": "rgb(255, 255, 255)",
"pos_x": "248",
"pos_y": "12",
"shadow": "rgb(0, 0, 0)",
"source": -1,
"threshold": 0,
"frame": "_overlay",
"action": "none"
},
"21": {
"position": 6,
"type": "text",
"id": 21,
"pos_x": 255,
"pos_y": 90,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 14,
"align": "middle",
"text": "Netz",
"shadow": "rgb(0, 0, 0)",
"frame": "_overlay"
},
"22": {
"position": 1,
"type": "rect",
"id": 22,
"rx": 10,
"height": 100,
"width": 100,
"pos_x": 109,
"pos_y": 152,
"fill": "rgb(0, 0, 0)",
"color": "rgb(255, 255, 255)",
"stroke": 5,
"shadow": "",
"frame": "_overlay",
"fill_type": -1,
"fill_direction": 90,
"border_type": -1,
"border_direction": "cw",
"border_style": "round",
"border_reverse": false,
"border_start": 180,
"source": -1,
"threshold": 0
},
"23": {
"position": 5,
"type": "text",
"id": 23,
"pos_x": 155,
"pos_y": 210,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 14,
"align": "middle",
"text": "Kostal\nPlenticore",
"shadow": "rgb(0, 0, 0)",
"frame": "_overlay"
},
"25": {
"position": 2,
"type": "icon",
"id": "25",
"icon": "mdi:battery-charging-10",
"width": 24,
"height": 24,
"color": "rgb(255, 255, 255)",
"pos_x": "45",
"pos_y": "290",
"shadow": "rgb(0, 0, 0)",
"source": -1,
"threshold": 0,
"frame": "_overlay",
"action": "none"
},
"26": {
"position": 1,
"type": "icon",
"id": "26",
"icon": "cbi:fronius-inverter-gen24",
"width": 24,
"height": 24,
"color": "rgb(255, 255, 255)",
"pos_x": "143",
"pos_y": "168",
"shadow": "rgb(0, 0, 0)",
"source": -1,
"threshold": 0,
"frame": "_overlay",
"action": "none"
},
"30": {
"position": 4,
"type": "text",
"subType": "datasource",
"id": 30,
"pos_x": 55,
"pos_y": 328,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 18,
"align": "middle",
"text": "ID 30",
"unit": "kW",
"source": 4,
"source_option": -1,
"source_display": "value",
"shadow": "rgb(0, 0, 0)",
"threshold": 0,
"calculate_kw": "calc",
"counter_animation": false,
"convert": false,
"decimal_places": 2,
"action": "none",
"subtract": [
"5"
],
"add": [
-1
],
"frame": "_overlay"
},
"31": {
"position": 3,
"type": "text",
"id": 31,
"pos_x": 54,
"pos_y": 91,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 14,
"align": "middle",
"text": "PV-Anlage",
"shadow": "rgb(0, 0, 0)",
"frame": "_overlay"
},
"32": {
"position": 0,
"type": "rect",
"id": 32,
"rx": 10,
"height": 100,
"width": 100,
"pos_x": 109,
"pos_y": 285,
"fill": "none",
"color": "rgb(255, 255, 255)",
"stroke": 2,
"shadow": "",
"frame": "_overlay",
"fill_type": -1,
"fill_direction": 90,
"border_type": -1,
"border_direction": "cw",
"border_style": "round",
"border_reverse": false,
"border_start": 180,
"source": -1,
"threshold": 0
},
"33": {
"position": 0,
"type": "icon",
"id": "33",
"icon": "mdi:car-electric",
"width": 24,
"height": 24,
"color": "rgb(255, 255, 255)",
"pos_x": "147",
"pos_y": "293",
"shadow": "rgb(0, 0, 0)",
"source": -1,
"threshold": 0,
"frame": "_overlay",
"action": "none"
},
"34": {
"position": 2,
"type": "text",
"subType": "datasource",
"id": 34,
"pos_x": 159,
"pos_y": 328,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 18,
"align": "middle",
"text": "ID 34",
"unit": "kW",
"source": 9,
"source_option": -1,
"source_display": "value",
"shadow": "rgb(0, 0, 0)",
"threshold": 0,
"calculate_kw": "none",
"counter_animation": false,
"convert": false,
"decimal_places": 2,
"action": "none",
"subtract": [
-1
],
"add": [
-1
],
"frame": "_overlay"
},
"35": {
"position": 1,
"type": "text",
"id": 35,
"pos_x": 158,
"pos_y": 370,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 14,
"align": "middle",
"text": "Auto",
"shadow": "rgb(0, 0, 0)",
"frame": "_overlay"
},
"36": {
"position": 0,
"type": "text",
"subType": "datasource",
"id": 36,
"pos_x": 268,
"pos_y": 328,
"color": "none",
"fill": "rgb(255, 255, 255)",
"font_family": "\"Arial\", sans-serif",
"font_size": 18,
"align": "middle",
"text": "ID 36",
"unit": "kW",
"source": "0",
"source_option": "-1",
"source_display": "value",
"shadow": "rgb(0, 0, 0)",
"threshold": 0,
"calculate_kw": "calc",
"counter_animation": false,
"convert": false,
"decimal_places": 2,
"action": "none",
"subtract": [
"9"
],
"add": [
-1
],
"frame": "_overlay"
}
},
"defs": {
"path_22_14": {
"type": "def",
"id": "path_22_14",
"d": "M179 149.5 V 140.9 A 15 15 0 0 1 194 125.9 H 241 A 15 15 0 0 0 256 110.9 V 106",
"startSlot": "top_right",
"endSlot": "bottom"
},
"path_5_22": {
"type": "def",
"id": "path_5_22",
"d": "M54 106 V 114.6 A 15 15 0 0 0 69 129.6 H 124 A 15 15 0 0 1 139 144.6 V 149.5",
"startSlot": "bottom",
"endSlot": "top_left"
},
"path_22_13": {
"type": "def",
"id": "path_22_13",
"d": "M106.5 222 H 99.9 H 88 A 15 15 0 0 0 73 237 V 284",
"startSlot": "left_bottom",
"endSlot": "top_right"
},
"path_13_22": {
"type": "def",
"id": "path_13_22",
"d": "M33 284 V 263.6 V 197 A 15 15 0 0 1 48 182 H 106.5",
"startSlot": "top_left",
"endSlot": "left_top"
},
"path_22_7": {
"type": "def",
"id": "path_22_7",
"d": "M211.5 202 H 222.3 H 251 A 15 15 0 0 1 266 217 V 284",
"startSlot": "right",
"endSlot": "top"
},
"path_22_32": {
"type": "def",
"id": "path_22_32",
"d": "M159 254.5 V 284",
"startSlot": "bottom",
"endSlot": "top"
}
},
"lines": {
"line_path_22_14": {
"type": "line",
"id": "line_path_22_14",
"href": "#path_22_14",
"color": "rgb(200, 200, 200)",
"shadow": ""
},
"line_path_5_22": {
"type": "line",
"id": "line_path_5_22",
"href": "#path_5_22",
"color": "rgb(200, 200, 200)",
"shadow": ""
},
"line_path_22_13": {
"type": "line",
"id": "line_path_22_13",
"href": "#path_22_13",
"color": "rgb(200, 200, 200)",
"shadow": ""
},
"line_path_13_22": {
"type": "line",
"id": "line_path_13_22",
"href": "#path_13_22",
"color": "rgb(200, 200, 200)",
"shadow": ""
},
"line_path_22_7": {
"type": "line",
"id": "line_path_22_7",
"href": "#path_22_7",
"color": "rgb(200, 200, 200)",
"shadow": ""
},
"line_path_22_32": {
"type": "line",
"id": "line_path_22_32",
"href": "#path_22_32",
"color": "rgb(200, 200, 200)",
"shadow": ""
}
},
"animations": {
"anim_path_22_14": {
"type": "animation",
"id": "anim_path_22_14",
"href": "#path_22_14",
"color": "rgb(0, 0, 0)",
"source": 7,
"threshold": 0,
"animation_properties": "negative",
"animation_option": true,
"dots": 0,
"duration": 0,
"power": 0,
"animation_type": -1
},
"anim_path_5_22": {
"type": "animation",
"id": "anim_path_5_22",
"href": "#path_5_22",
"color": "rgb(0, 0, 0)",
"source": 6,
"threshold": 0,
"animation_properties": "positive",
"animation_option": false,
"dots": 0,
"duration": 0,
"power": 0,
"animation_type": -1
},
"anim_path_22_13": {
"type": "animation",
"id": "anim_path_22_13",
"href": "#path_22_13",
"color": "rgb(0, 0, 0)",
"source": 4,
"threshold": 0,
"animation_properties": "positive",
"animation_option": false,
"dots": 0,
"duration": 0,
"power": 0,
"animation_type": -1
},
"anim_path_13_22": {
"type": "animation",
"id": "anim_path_13_22",
"href": "#path_13_22",
"color": "rgb(0, 0, 0)",
"source": 5,
"threshold": 0,
"animation_properties": "positive",
"animation_option": false,
"dots": 0,
"duration": 0,
"power": 0,
"animation_type": -1
},
"anim_path_22_7": {
"type": "animation",
"id": "anim_path_22_7",
"href": "#path_22_7",
"color": "rgb(0, 0, 0)",
"source": 0,
"threshold": 0,
"animation_properties": "positive",
"animation_option": false,
"dots": 0,
"duration": 0,
"power": 0,
"animation_type": -1
},
"anim_path_22_32": {
"type": "animation",
"id": "anim_path_22_32",
"href": "#path_22_32",
"color": "rgb(0, 0, 0)",
"source": 9,
"threshold": 0,
"animation_properties": "positive",
"animation_option": false,
"dots": 0,
"duration": 0,
"power": 0,
"animation_type": -1
}
},
"datasources": {
"0": {
"source": "plenticore.0.devices.local.Home_P",
"alias": "HomePowerTotal",
"factor": 1
},
"2": {
"source": "plenticore.0.devices.local.HomeGrid_P",
"alias": "Grid-From",
"factor": 1
},
"3": {
"source": "plenticore.0.devices.local.ToGrid_P",
"alias": "Grid-To",
"factor": 1
},
"4": {
"source": "plenticore.0.devices.local.battery.Charge_P",
"alias": "Battery-To",
"factor": 1
},
"5": {
"source": "plenticore.0.devices.local.battery.Discharge_P",
"alias": "Battery-From",
"factor": 1
},
"6": {
"source": "plenticore.0.devices.local.Pv_P",
"alias": "PV-From",
"factor": 1
},
"7": {
"source": "smartmeter.0.1-0:16_7_0__255.value",
"alias": "Netzbezug/Einspeisung",
"factor": 1
},
"8": {
"source": "plenticore.0.devices.local.battery.SoC",
"alias": "SoC",
"factor": 1
},
"9": {
"source": "go-e.0.energy.power",
"alias": "Car-To",
"factor": 1000
}
}
}
{
"_id": "go-e.0.energy.power",
"type": "state",
"common": {
"name": "Leistung gesamt in kW (nrg[11])",
"type": "number",
"role": "value.power.consumption",
"read": true,
"write": false,
"unit": "kW",
"custom": {
"sql.0": {
"enabled": true,
"storageType": "",
"counter": false,
"aliasId": "",
"debounceTime": 0,
"blockTime": 0,
"changesOnly": false,
"changesRelogInterval": 0,
"changesMinDelta": 0,
"ignoreBelowNumber": "",
"disableSkippedValueLogging": false,
"retention": 31536000,
"customRetentionDuration": 365,
"maxLength": 0,
"enableDebugLogs": false,
"debounce": 1000
}
}
},
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
},
"from": "system.adapter.go-e.0",
"user": "system.user.admin",
"ts": 1719596598855
}
{
"type": "state",
"common": {
"name": "Home Power total",
"type": "number",
"role": "value.power",
"unit": "W",
"read": true,
"write": false,
"custom": {
"sql.0": {
"enabled": true,
"storageType": "",
"counter": false,
"aliasId": "",
"debounceTime": 0,
"blockTime": 0,
"changesOnly": true,
"changesRelogInterval": 0,
"changesMinDelta": 0,
"ignoreBelowNumber": "",
"disableSkippedValueLogging": false,
"retention": 31536000,
"customRetentionDuration": 365,
"maxLength": 0,
"enableDebugLogs": false,
"debounce": 1000
}
}
},
"native": {},
"_id": "plenticore.0.devices.local.Home_P",
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
},
"from": "system.adapter.admin.0",
"user": "system.user.admin",
"ts": 1720429701372
}
Bei dem Element mit der ID36 steht auch nur die Daten-Quelle mit der ID 9 drin (Property subtract).
Sind die anderen Abzüge nicht angehakt?
Wie sieht der Erweitert Tab bei der Konfiguration des Elements 36 aus?
Welche Version wird verwendet? Offizielle 0.4.1 oder eine der Alpha Versionen?
Erst einmal Danke für die schnelle Antwort!
Eventuell verstehe ich etwas falsch: Ich möchte das bei der ID36 der Wert der Datenquelle 0 abzüglich des Wertes der Datenquelle 9 angezeigt wird. Daher habe ich bei ID36 beim Property substract die ID 9 ausgewählt. Ist dies nicht korrekt? Andere Abzüge hatte ich nur testweise angehakt, um zu sehen, ob dann etwas substrahiert wird, was aber auch nicht der Fall war.
Sorry, hatte vergessen zu erwähnen, dass ich V0.4.1 nutze. Hatte mir das Changelog zu den Alpha-Versionen angeschaut und nichts gefunden, was in die Richtung meines Problems zeigte.
Bekommen wir alles hin. Kein Problem.
Soweit ich das sehe, ist es eigentlich richtig eingestellt.
Dem Element selbst ist wahrscheinlich der Hausverbrauch als Anzeige zugewiesen und der Wert des Autos soll abgezogen werden.
Dies passiert wohl aktuell nicht.
Der Wert des Autos wird aber aktualisiert, nehme ich an? Dieser ist auch in den Datenquellen hinterlegt?
Ich sehe bei der Datenquelle 9 den Faktor 1000 - ist dieser korrekt?
Wie schauen die aktuellen Werte der beiden Datenpunkte Auto und Verbrauch aus? Sind beide vom Typ Integer (Zahl)?
Es funktioniert doch!
Sorry, ich hatte mich auf die Anzeigen im Konfigurationseditor verlassen. Hier werden nicht die korrekten Werte angezeigt. Im reinen Anzeige-Modus funktioniert dann aber alles korrekt.
Danke für Deinen Support!
Na, prima 👍
Genau, der Editor hat keine Live Anzeige, damit sich die Elemente nicht stark verändert, wenn man diese bearbeitet.
Wenn dann tatsächlich alles geht, kannst Du das Issue ja schließen.