NEWS
Test Adapter Energiefluss-erweitert v0.6.2
-
@merlin123 Ja, das geht.
Ist hier beschrieben:
https://forum.iobroker.net/post/1132453Werde ich aber noch als Beitrag ins Wiki aufnehmen.
-
@skb Dank Dir! Schau ich mir mal an
-
@merlin123 Gerne. Falls Probleme mit der Syntax sind, einfach Bescheid geben.
Habe den Artikel im Wiki mal ergänzt:
https://github.com/SKB-CGN/ioBroker.energiefluss-erweitert/wiki/Custom-Overrides-for-elements#beispiel-für-animationslinien -
@skb Funktioniert
Gleich noch eine Frage:
Eine Verbindung soll folgendes machen:- Immer animiert
- Immer in die gleiche Richtung animiert
- Wenn Wert >0 Farbe 1, sonst Farbe 2
Ich finde aber jetzt nichts, das er immer animiert
-
"default": { "display":"inline" }
Dies in die Überschreibung der Animation.
Damit ist die Animation immer sichtbar.Dann noch die jeweiligen Operator < oder > für die Farbe und gut
-
@skb
Ah cool.Falls es jemand mal komplett sucht (musste wegen dem Syntax kurz überlegen:
{ "default": { "display": "inline" }, "<0": { "stroke": "rgba(255, 0, 0,1)" }, ">0": { "stroke": "rgba(0, 255, 0,1)" } }
Und gleich noch ein Problem....
Ich habe das gestern eingerichtet, da hatte er z.B. richtig "650" als Wert angezeigt.
Heute morgen macht er plötzlich überall Faktor 1000 rein und zeigt dann "0.65". Und zwar bei allen Werten. In den Datenquelle steht aber überall Faktor 1, in den Datenpunkten steht auch korrekterweise "650" -
@merlin123 wie sind sie denn in den Datenquellen eingestellt?
Ist die automatische Berechnung im erweitert Tab aktiv?
-
@skb Berechnungen ist nichts aktiv. Hab die Werte quasi fertig.
Sieht so aus: -
@merlin123 Kannst du den Inhalt vom configuration Datenpunkt einmal Code Tags einstellen?
-
@skb Ich glaub, ich hab grad nicht wirklich ne Idee, was Du meinst... (also welchen DP du meinst)
-
Da ich die Möglichkeiten der Formatierung noch nicht so durchsteige... (blick die SVG Optionen noch nicht ganz)
Wenn man eine Linie unsichtbar machen will, was muss da in den Override (und was um es wieder sichtbar zu machen)?Die Verbindung soll nur sichtbar sein, wenn ein DP >0 ist. bei 0 unsichtbar
Noch optimaler wäre es, wenn man die Sichtbarkeit an einen anderen DP koppeln könnte.
Auto angeschlossen: Linie sichtbar
Auto läd: Linie animiert
Auto nicht angeschlossen: Keine Linie -
@merlin123 configuration Datenpunkt des Adapters meine ich.
-
@merlin123 wenn ein display inline etwas sichtbar macht, könnte ein display none vielleicht etwas nicht sichtbar machen
Eine 10 fache Kopplung an Daten-Punkte ist nicht vorgesehen. Würde es wohl unnötig kompliziert machen.
-
@skb Hier der Datenpunkt:
{ "_id": "energiefluss-erweitert.0.configuration", "type": "state", "common": { "name": "Parameters for HTML Output", "type": "json", "role": "state", "read": true, "write": false, "def": "{}" }, "native": {}, "from": "system.adapter.energiefluss-erweitert.0", "ts": 1712935296182, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "user": "system.user.admin" }
-
@skb sagte in Test Adapter Energiefluss-erweitert v0.3.x GitHub/Latest:
@merlin123 wenn ein display inline etwas sichtbar macht, könnte ein display none vielleicht etwas nicht sichtbar machen
Hmmmm....
Hab das als Überschreiben für die Line jetzt mal so definiert:{ "=0": { "display": "none" }, ">0": { "display": "inline" } }
So geht es mal nicht.....
Eine 10 fache Kopplung an Daten-Punkte ist nicht vorgesehen. Würde es wohl unnötig kompliziert machen.
Vermutlich
-
@merlin123 wie der Datenpunkt aussieht weiß ich
Der Inhalt ist interessanter. Den weiss ich leider nicht
-
@merlin123 Versuch mal statt =0 ein <1.
Weiss aus dem Kopf gerade nicht, ob der Operant = gultig ist.
-
@skb sagte in Test Adapter Energiefluss-erweitert v0.3.x GitHub/Latest:
@merlin123 wie der Datenpunkt aussieht weiß ich
Der Inhalt ist interessanter. Den weiss ich leider nicht
Ups... Sorry
{"basic":{"enable_grid":true,"enable_animation":true,"enable_area_catch":true,"enable_config_icon":true,"enable_last_id":false,"enable_icon_proxy":false,"enable_low_performance":false,"height":305,"width":718,"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":"#FFFFFFC9"},"calculation":{"battery":{"dod":0,"capacity":0,"percent":-1,"charge":-1,"charge_prop":false,"charge_kw":false,"discharge":-1,"discharge_prop":false,"discharge_kw":false},"consumption":{"production":[-1],"production_kw":false,"gridFeed":-1,"gridFeed_kw":false,"gridFeed_prop":false,"gridConsume":-1,"gridConsume_kw":false,"gridConsume_prop":false,"batteryCharge":-1,"batteryCharge_kw":false,"batteryCharge_prop":false,"batteryDischarge":-1,"batteryDischarge_kw":false,"batteryDischarge_prop":false}},"animation":{"stroke":"#ffce4a","stroke_dasharray":"10 17 10 17 10 72","stroke_width":"6","animation_duration":"2000","stroke_linecap":"round","animation_timing_function":"linear"},"animation_configuration":{"dots":"3","distance":"17","length":"10"},"line":{"stroke_width":"8","stroke":"#000000"},"elements":{"2":{"position":9,"type":"text","subType":"datasource","id":2,"pos_x":452,"pos_y":59,"color":"none","fill":"rgb(50, 163, 2)","font_family":"Arial, sans-serif","font_size":18,"align":"middle","text":"ID 2","unit":"W","source":0,"source_option":-1,"source_display":"value","shadow":"","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":400,"pos_y":1,"fill":"none","color":"rgb(23, 255, 15)","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},"6":{"position":5,"type":"icon","id":"6","icon":"mdi:solar-panel","width":24,"height":24,"color":"rgba(0, 0, 0, 0.7)","pos_x":"440","pos_y":"14","shadow":"","source":-1,"threshold":0,"frame":"_overlay","action":"none"},"7":{"position":4,"type":"rect","id":7,"rx":10,"height":100,"width":100,"pos_x":200,"pos_y":200,"fill":"none","color":"rgb(0, 181, 221)","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},"9":{"position":8,"type":"text","subType":"datasource","id":9,"pos_x":246,"pos_y":257,"color":"none","fill":"rgb(5, 106, 221)","font_family":"Arial, sans-serif","font_size":18,"align":"middle","text":"ID 9","unit":"W","source":2,"source_option":-1,"source_display":"value","shadow":"","threshold":0,"calculate_kw":"calc","counter_animation":false,"convert":false,"decimal_places":2,"action":"none","subtract":[-1],"add":[-1],"frame":"_overlay"},"10":{"position":7,"type":"text","id":10,"pos_x":451,"pos_y":82,"color":"none","fill":"rgba(0, 0, 0, 0.7)","font_family":"Arial, sans-serif","font_size":14,"align":"middle","text":"Produktion","shadow":"","frame":"_overlay"},"11":{"position":6,"type":"text","id":11,"pos_x":245,"pos_y":279,"color":"none","fill":"rgba(0, 0, 0, 0.7)","font_family":"Arial, sans-serif","font_size":14,"align":"middle","text":"Verbrauch","shadow":"","frame":"_overlay"},"12":{"position":4,"type":"icon","id":"12","icon":"mdi:house-city","width":24,"height":24,"color":"rgba(0, 0, 0, 0.7)","pos_x":"233","pos_y":"218","shadow":"","source":-1,"threshold":0,"frame":"_overlay","action":"none"},"14":{"position":3,"type":"rect","id":14,"rx":10,"height":100,"width":100,"pos_x":600,"pos_y":200,"fill":"none","color":"rgba(97, 104, 122, 0.7)","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},"19":{"position":5,"type":"text","subType":"datasource","id":19,"pos_x":650,"pos_y":259,"color":"none","fill":"rgb(97, 104, 122)","font_family":"Arial, sans-serif","font_size":18,"align":"middle","text":"ID 19","unit":"W","source":1,"source_option":-1,"source_display":"value","shadow":"","threshold":0,"calculate_kw":"calc","counter_animation":false,"convert":true,"decimal_places":2,"action":"none","subtract":[-1],"add":[-1],"frame":"_overlay"},"20":{"position":3,"type":"icon","id":"20","icon":"mdi:electricity-from-grid","width":24,"height":24,"color":"rgba(0, 0, 0, 0.7)","pos_x":"638","pos_y":"217","shadow":"","source":-1,"threshold":0,"frame":"_overlay","action":"none"},"21":{"position":4,"type":"text","id":21,"pos_x":650,"pos_y":282,"color":"none","fill":"rgba(0, 0, 0, 0.7)","font_family":"Arial, sans-serif","font_size":14,"align":"middle","text":"Netz","shadow":"","frame":"_overlay"},"22":{"position":2,"type":"rect","id":22,"rx":10,"height":100,"width":100,"pos_x":20,"pos_y":3,"fill":"none","color":"rgb(197, 144, 46)","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},"23":{"position":2,"type":"icon","id":"23","icon":"material-symbols:electric-car","width":24,"height":24,"color":"rgba(0, 0, 0, 0.7)","pos_x":"55","pos_y":"14","shadow":"","source":-1,"threshold":0,"frame":"_overlay","action":"none"},"24":{"position":3,"type":"text","id":24,"pos_x":65,"pos_y":82,"color":"none","fill":"rgba(0, 0, 0, 0.7)","font_family":"Arial, sans-serif","font_size":14,"align":"middle","text":"Auto","shadow":"","frame":"_overlay"},"27":{"position":2,"type":"text","subType":"datasource","id":27,"pos_x":69,"pos_y":60,"color":"none","fill":"rgb(197, 144, 46)","font_family":"Arial, sans-serif","font_size":18,"align":"middle","text":"ID 27","unit":"%","source":4,"source_option":-1,"source_display":"value","shadow":"","threshold":0,"calculate_kw":"none","counter_animation":false,"convert":false,"decimal_places":0,"action":"none","subtract":[-1],"add":[-1],"frame":"_overlay"},"28":{"position":1,"type":"rect","id":28,"rx":10,"height":100,"width":100,"pos_x":400,"pos_y":200,"fill":"none","color":"rgb(107, 96, 54)","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},"29":{"position":1,"type":"icon","id":"29","icon":"cbi:huawei-solar-inverter","width":50,"height":50,"color":"rgb(12, 76, 107)","pos_x":"427","pos_y":"223","shadow":"","source":-1,"threshold":0,"frame":"_overlay","action":"none"},"30":{"position":0,"type":"rect","id":30,"rx":10,"height":100,"width":100,"pos_x":201,"pos_y":3,"fill":"none","color":"rgb(37, 167, 95)","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},"31":{"position":1,"type":"text","id":31,"pos_x":250,"pos_y":82,"color":"none","fill":"rgb(0, 0, 0)","font_family":"Arial, sans-serif","font_size":14,"align":"middle","text":"Wallbox","shadow":"","frame":"_overlay"},"32":{"position":0,"type":"icon","id":"32","icon":"mdi:wallbox","width":24,"height":24,"color":"rgb(78, 27, 79)","pos_x":"239","pos_y":"14","shadow":"","source":-1,"threshold":0,"frame":"_overlay","action":"none"},"34":{"position":0,"type":"text","subType":"datasource","id":34,"pos_x":253,"pos_y":59,"color":"none","fill":"rgb(242, 14, 64)","font_family":"Arial, sans-serif","font_size":18,"align":"middle","text":"ID 34","unit":"W","source":3,"source_option":-1,"source_display":"value","shadow":"","threshold":0,"calculate_kw":"calc","counter_animation":false,"convert":false,"decimal_places":2,"action":"none","subtract":[-1],"add":[-1],"frame":"_overlay"}},"defs":{"path_5_28":{"type":"def","id":"path_5_28","d":"M450 102 V 197.5","startSlot":"bottom","endSlot":"top"},"path_28_14":{"type":"def","id":"path_28_14","d":"M502.5 250 H 599","startSlot":"right","endSlot":"left"},"path_28_7":{"type":"def","id":"path_28_7","d":"M397.5 250 H 301","startSlot":"left","endSlot":"right"},"path_28_30":{"type":"def","id":"path_28_30","d":"M397.5 230 H 378.7 A 15 15 0 0 1 363.7 215 V 68 A 15 15 0 0 0 348.7 53 H 303.5","startSlot":"left_top","endSlot":"right"},"path_30_22":{"type":"def","id":"path_30_22","d":"M198.5 53 H 121","startSlot":"left","endSlot":"right"}},"lines":{"line_path_5_28":{"type":"line","id":"line_path_5_28","href":"#path_5_28","color":"rgb(0, 0, 0)","shadow":""},"line_path_28_14":{"type":"line","id":"line_path_28_14","href":"#path_28_14","color":"rgb(0, 0, 0)","shadow":""},"line_path_28_7":{"type":"line","id":"line_path_28_7","href":"#path_28_7","color":"rgb(0, 0, 0)","shadow":""},"line_path_28_30":{"type":"line","id":"line_path_28_30","href":"#path_28_30","color":"rgb(0, 0, 0)","shadow":""},"line_path_30_22":{"type":"line","id":"line_path_30_22","href":"#path_30_22","color":"rgb(0, 0, 0)","shadow":"","override":{"=0":{"display":"none"},">0":{"display":"inline"}}}},"animations":{"anim_path_5_28":{"type":"animation","id":"anim_path_5_28","href":"#path_5_28","color":"rgb(0, 255, 0)","source":0,"threshold":0,"animation_properties":"positive","animation_option":false,"dots":0,"duration":0,"power":0,"animation_type":-1},"anim_path_28_14":{"type":"animation","id":"anim_path_28_14","href":"#path_28_14","color":"rgb(0, 255, 7)","source":1,"threshold":0,"animation_properties":"positive","animation_option":true,"dots":0,"duration":0,"power":0,"animation_type":-1,"override":{"<0":{"stroke":"rgba(255, 0, 0,1)"},">0":{"stroke":"rgba(0, 255, 0,1)"}}},"anim_path_28_7":{"type":"animation","id":"anim_path_28_7","href":"#path_28_7","color":"rgb(255, 0, 0)","source":1,"threshold":0,"animation_properties":"positive","animation_option":false,"dots":0,"duration":0,"power":0,"animation_type":-1,"override":{"default":{"display":"inline"},"<0":{"stroke":"rgba(255, 0, 0,1)","display":"inline"},">0":{"stroke":"rgba(0, 255, 0,1)","display":"inline"}}},"anim_path_28_30":{"type":"animation","id":"anim_path_28_30","href":"#path_28_30","color":"rgb(255, 0, 0)","source":3,"threshold":0,"animation_properties":"positive","animation_option":false,"dots":0,"duration":0,"power":0,"animation_type":-1},"anim_path_30_22":{"type":"animation","id":"anim_path_30_22","href":"#path_30_22","color":"rgb(255, 0, 0)","source":3,"threshold":0,"animation_properties":"positive","animation_option":false,"dots":0,"duration":0,"power":0,"animation_type":-1}},"datasources":{"0":{"source":"0_userdata.0.PV_Produktion","alias":"PV_Produktion","factor":1},"1":{"source":"0_userdata.0.PV_Einspeisung","alias":"PV_Einspeisung","factor":1},"2":{"source":"0_userdata.0.PV_Eigenverbrauch_ohne_WB","alias":"Verbrauch Haus","factor":1},"3":{"source":"0_userdata.0.PV_Wallbox","alias":"Wallbox","factor":1},"4":{"source":"vw-connect.0.TMBJC9NY9PF053043.status.charging.status.battery.stateOfChargeInPercent","alias":"SOC","factor":1}}}
-
@skb sagte in Test Adapter Energiefluss-erweitert v0.3.x GitHub/Latest:
@merlin123 Versuch mal statt =0 ein <1.
Weiss aus dem Kopf gerade nicht, ob der Operant = gultig ist.
Mit
{ "<1": { "display": "none" }, ">1": { "display": "inline" } }
verschwindet sie mal
Rest schau ich, wenn ich wieder laden muss. Danke erstmal! -
@merlin123 OK, dann weiss ich jetzt, das der Operant = vielleicht noch rein sollte. Schaue mal.