GithubHelp home page GithubHelp logo

skb-cgn / iobroker.energiefluss-erweitert Goto Github PK

View Code? Open in Web Editor NEW
35.0 7.0 2.0 8.35 MB

This ioBroker adapter is the next Version of the energiefluss with the attribute 'erweitert' and allows to display an energyflow animation inside an iframe or HTML DIV.

License: MIT License

HTML 60.83% JavaScript 21.93% CSS 17.24%
energy energy-consumption energy-monitor home-automation iobroker iobroker-adapter photovoltaics smarthome

iobroker.energiefluss-erweitert's Introduction

Logo

ioBroker.energiefluss-erweitert

NPM version Downloads Number of Installations

GitHub GitHub repo size GitHub commit activity GitHub last commit GitHub issues

NPM

Test and Release

energiefluss-erweitert adapter for ioBroker

It provides an animated energyflow for all elements, you add. This could be: photovoltaics, battery, house-consumption, grid-feed-in (grid-consumption), car charge etc.

Documentation

Changelog

0.5.1-alpha.2 (2024-07-09)

  • Added: Support for https via Web-Adapter (own certificates necessary)
  • Added: Icon-Proxy is removed from the adapter settings and runs on the extension of the Web-Adapter (If you use it or not - no changes are required)
  • Added: 2 new override parameter "pos_x" and "pos_y" are available, to position text and datasource elements depending on their value
  • Added: Energiefluss-erweitert is now available through the welcome screen of the Web-Adapter
  • Added: Energiefluss-erweitert is now reachable via iobroker.net through the ioBroker-cloud adapter (No pro license required)
  • Added: If the Web-Adapter is configured to use valid certificates, the view of Energiefluss-erweitert can be installed as PWA (progressive Web App) on Android and iOS Explained here
  • FIX: Sometimes, the object-browser could not load states and crashed

0.5.1-alpha.1 (2024-07-04)

  • Added: The image gallery has now a filter function which helps you to find the images more easily
  • Added: The datasource object-browser has now a filter function which helps you to find the datasource more easily
  • FIX: Added some crash-handler, which might throw an error, when the associated state is not found
  • FIX: Linebreak was not working correctly (Delimiter was ignored)
  • FIX: Under some circumstances a datasource could not be modified
  • FIX: Text prepend was not working correctly if source is displayed as text

0.5.1-alpha.0 (2024-06-28)

  • FIX: The coordinates and size of an added icon could not be changed
  • FIX: Cursor as Pointer (hand) did not appear on elements with action
  • FIX: NPM dependency for gallery was not fetched properly
  • FIX: Newly added Text didnt save text (was empty instead)
  • FIX: Under some circumstances an element could not be deleted (Error: Existing connection!)
  • Added: Text-Elements can now be used as date and time element
  • Added: Icons can now be rotated and flipped (even when using overrides for them)
  • Added: New overrides parameter 'icon' available to change icons (Explained in Wiki)

0.5.0-alpha.0 (2024-06-24)

!!! Please note, this currently an Alpha-Version, because many things are changed and needed to be tested!!!
The core of the adapter keeps running on the same 0.4.1 version like before, but the configuration page has many improvements. See the list below!

Note: save content of the state 'configuration' inside the instance as text on your disk to be able, to restore it, it case needed or downgrading to the official version again!

After downloading the BETA Version, please manually proceed with uploading the adapter (this has to be done, after adapters are installed via Github) described here: https://www.iobroker.net/#de/documentation/tutorial/adapter.md?#uploadvonadapterdateien

  • Added: Support for Websockets is now integrated. Adapter uses the faster Websockets if available. If not, the connection falls back to socket polling
  • Added: Better Darkmode Support (including Log, Overrides and CSS Styles layout)
  • Added: New option "Manual value change" for click options of datasources. With this you can directly modify the associated state inside ioBroker. Also predefined value(s) for quick accesses are possible.
  • Added: Automatic line-break after x characters for datasources, which provide longer text (e.g. weather forecasts)
  • Added: Define one Datasource as display and choose an other one to control (e.g. display the energy of a wallsocket, but switch it on or off with a different state via click-option)
  • Added: Language and dependencies are updated
  • Added: Better support for iOS devices as the values are not calculated via the objects itself anymore (should work for thickness and alignments)
  • Added: Autocomplete when adding or modifying sources inside datasources (if active)
  • Added: Import and Exports elements (e.g. for sharing a nice designed element with others)
  • Added: Preview elements (circle and rect) with their fill or outline layout
  • Added: Image gallery and query via web implementation of ioBroker
  • Added: Select datasources which contain image paths for images (e.g. WeatherAdapter)
  • Added: Improved workspace (better adding of elements, when scrolled, many design and element improvements etc.)
  • FIX: Some bugs or routines where not working as they should
  • FIX: Battery-Discharge was wrongly calculated, if the DoD should discharge till 0%
  • FIX: Removed kW settings in calculation tab as they are already set as factor inside the datasource area

0.4.1 (2024-04-18)

  • Hotfix: After uprading the Adapter, it could happen, that the first datasource was not updated properly

0.4.0 (2024-04-15)

  • Added: The adapter provides 3 new states. charging_grid (battery charged via grid), charging_solar (battery charged via solar) and production (overall production) (#173, #152, #148)
  • Added: Datasources for the battery calculation now need to be provided via the datasources tab and selected in the calculation tab (!!! Important: !!! This is a major change)
  • Added: A Milliseconds Timestamp for Values can be selected (This can be used for custom overrides, to display what ever the user likes)
  • Added: Object browser now provides the names of channels and devices and is more responsive
  • Added: Better support inside configuration area for smaller devices like mobilephones and tablets
  • Added: A new override property (img_url) has been added, to change pictures addresses for picture elements
  • Added: Overrides can now contain states from iobroker, to directly read and for example calculate a value with an additional state. Please provide the name in curly braces.
  • FIX: Wrong alignment of rectangle with border-fill if height and width are different (#172)
  • FIX: The adapter could crash if the data source inside calculation was missing or deleted (#178)

0.3.0 (2024-03-12)

  • Added: Up to 50% faster performance on saving data to the "data" datapoint due to removing unnecessary stuff
  • Added: Support for light and dark theme manual selection with URL parameter "theme=dark" or "theme=light" for overwriting the system darkmode (if applicable)
  • Added: Code optimization during start-up and releasing memory cause of not using start-up stuff during runtime anymore
  • Added: When duplicating an element, the override properties are also duplicated
  • Added: Elements can now be selected while holding ctrl key
  • Added: New override features for all elements added. The override features are explained inside the Wiki of the adapter (#153)
  • FIX: Datasource could not be deleted (#145)
  • FIX: If there is more power on a line than configured, the maximum amount of dots was ignored (#160)
  • FIX: If image URL from datapoint is empty or NULL - remove the displayed image (useful for weather datapoints)
  • FIX: If icon or svg was duplicated, the defined color was not adopted

0.2.2 (2024-02-15)

  • Added: if using datasource as an image URL, in some cases the picture url is empty (for forecasts e.g.) - Chrome displayed a broken image
  • Added: current active element receives a dashed border. This helps, to identify a picture element with empty url (if served via datasource)
  • Added: Changed the previous added "unit" column for watts and kilowatts inside datasources into "factor" with a description
  • Added: A new button inside datsources is able to check which datasources are in use
  • Added: New translations and some code optimizations
  • FIX: Broken SVG corrected

0.2.1 (2024-01-25)

  • Added: Support for datasources as image URL's (explanation is given via question mark)
  • Added: Background for workspace can now be set in basic settings (CSS still works as well)
  • FIX: SVG element was not correctly saved after saving the workspace

0.2.0 (2024-01-11)

  • Added: Control for not deleting sources, if they are in use as source, addition or subtraction (elements which use this one, will be displayed with additional information)
  • Added: IDs for datasources will be displayed inside configuration bar, to better find the ID the element for reason mentioned before
  • Added: Control for not adding duplicate datasources from ioBroker as this will lead into crashes cause of duplicate keys
  • Added: Form on datasources configuration page will be deactivated during the time a datasource is edited
  • Added: A unit for the datasource is selectable - this makes it easier to use those values for addition&subtraction without using Auxiliary data points
  • Added: New translations, design modifcations and various code optimizations
  • FIX: Crash Handler for missing datasources extended (if datasource from ioBroker was deleted and used as source, addition or subtraction in any element)

0.1.0 (2023-11-15)

  • FIX: Alignment of texts and group movement was not possible, after changing to new multiline texts
  • FIX: Saved default fill and outline colors were not applied if adding new text or datasource to workspace
  • Added: Extended the auto calculation to W, kW, MW and GW

0.0.2-alpha.24 (2023-11-14)

  • Added: Lacy loading for Object-Browser. The Object-Browser will not be loaded on configuration start. It will load necessary objects on request, to not block UI anymore
  • Added: Support for line-breaks inside Text or Datasource elements. Line break can be done via
    or \n. (#10)
  • Added: Overrides can now handle 'text', 'unit', 'append' and 'prepend' values to be replaced
  • Added: Check for Datasources - inside Datasources is a button, which is able to check you sources
  • Added: Faster loading due to code optimizations
  • FIX: Convert Value to positiv was not working. If value is positiv, it was displayed as negative
  • FIX: After waking up displaying device (phone/tablet) from standby, datasources were not refreshed anymore (#99)
  • FIX: If shadow color was entered in hex instead of rgb(a) it was not saved correctly (#90)
  • FIX: Alias values without acknowledge were not updating (#96)
  • FIX: Border-Fill on element was not showing, if value has changed the sign and should be displayed in the other direction
  • FIX: Removed javascript warnings for some icons

0.0.2-alpha.23 (2023-10-25)

  • Added: Extended the value calculation 'Calculate Value from W to kW' to: deactivated, Calculate Value from W to kW, Automatic calculation including unit (W, kW)
  • Added: Some crash-handler if states were deleted
  • FIX: Font face was not applied if changed
  • FIX: When a state inside the "alias" environment was deleted and not removed from the workspace, the adapter could crash unexpectedly

0.0.2-alpha.22 (2023-10-20)

  • Added: Support for boolean states to apply CSS Class, if their value is true/false
  • Added: Refresh Button for object browser - if a new state was added through objects, the configuration needed a complete refresh to receive the new state
  • Added: Support for own Text inside a datasource element. Useful, if you want to style text depending on the value of the datasource
  • FIX: Overrides were not correctly loaded when adapter starts

0.0.2-alpha.21 (2023-10-17)

  • Added: Using left over space in configbar, to display wider text/number boxes and more text without using more space
  • Added: Static navigation in config bar for easier switching between basic and extended settings of the element
  • Added: Better handling of boxes in tab menu. Now we use flex views to grow or shrink boxes. Some boxes a re-aligned to use the available space in a more efficient way.
  • Added: ACE-Editor with syntax highlighting, autocompletion for properties and error notification while using in CSS tab (more user friendly when applying styles). Style of Log output is also formated with syntax highlighting
  • Added: Override function for elements with datasources. Its now possible to add overrides to any element which uses a datasource. With this function, you are able to style the element depending on the value of the datasource
  • FIX: Alignment of elements was not working correctly for text append, text prepend and grouped icons
  • FIX: When using animation depencies with dots, it could be the case that an icorrect amount of dots was displayed
  • FIX: When using subtraction or addition on a datasource, the displayed value was not updated if one of the subtraction or addition values were changed
  • FIX: Thresholds were only possible for Integers - now decimal numbers are also possible
  • FIX: If values were set to be animated, they stopped being updated after some time
  • FIX: Some layout fixes

0.0.2-alpha.20 (2023-09-22)

  • FIX: states in user environment (userdata and javascript) do not need ACK flags anymore
  • FIX: Darkmode cleanups and some layout improvements
  • FIX: Changed some CSS styles to be consistent
  • Added: Version Checker to check the version on Github and inform the user

0.0.2-alpha.19 (2023-09-14)

  • FIX: Since number animation, it could occur, that decimal places got cut off on initial values
  • FIX: Save & Exit was not working correctly, if an high amount of data should be saved
  • Added: Made previously count up/down Animation for numbers configurable for each datasource element
  • Added: Low power mode for animations (can be enabled generaly or via URL parameter on each device)
  • Added: If Element is filled depending on value, it is now possible, to use the basic color as fill for the remaining space or none as transparent

0.0.2-alpha.18 (2023-09-11)

  • Added: Count up/down Animation for numbers added. Instead of directly changing numbers, they are animated.

0.0.2-alpha.17 (2023-09-07)

  • FIX: Object browser did not show all states - especially not the ones in Channel or Folders

0.0.2-alpha.16 (2023-08-31)

  • FIX: Adapter crashed sometimes, due to accessing invalid ids
  • Added: Possibility to addition values to other values
  • Added: Directly display animations and values after startup instead of waiting till first value changes
  • Added: Adapter depencies and stability
  • Added: New Translations for new functions

0.0.2-alpha.15 (2023-08-10)

  • FIX: Under some circumstances symbols, texts and images could run out off workspace
  • FIX: consumption calculation produced high CPU load on some systems (#43)
  • FIX: Crash-Handler for animations optimized - if animation is present before value is updated, the adapter could crash
  • Added: Better duplication of items
  • Added: Actions for Datasources and Icons (on, off, toggle) - State can be display in Datasource as well
  • Added: Consumption calculation - Added states if battery charge/discharge and public grid-feed/grid-consumption are not the same
  • Added: Backup moved from states to ioBroker folder instead (saving Redis power and states loading)
  • Added: Loading information for object browser (if not loaded already)
  • Added: Darkmode for Layout

0.0.2-alpha.14 (2023-08-04)

  • Added: Support for SVG elements. SVG will be an area inside the workspace and allows to paste pure SVG data (#31)
  • Added: Support for own images. The user is responsible how to upload the image to ioBroker, as the adapter has no upload possibility
  • Added: Support to arrange pictures and elements in levels. They can now be moved to fore- or background
  • Added: Consumption calculation - Currently, only single-mode (positive and negative) states are supported. Different states for battery charge/discharge and public grid-feed/grid-consumption will be added in next version
  • Added: Some error handling improved

0.0.2-alpha.13 (2023-07-26)

  • FIX: Icon-Proxy was not showing icons under some circumstances
  • FIX: Reverse steps for alignment was in the wrong order (#37)
  • Added: Build-in Object Browser for faster loading and saving bandwith (get rid of the default one)
  • Added: Autocomplete for Datasources Boxes - Datasource will be fetched during typing
  • Added: Language for some boxes were missing
  • Added: Disable all other Datasources in list while editing to prevent layout mix
  • Added: New states for 'battery_remaining_target', which shows the target time in Unixtime and 'battery_remaining_target_DT', which shows the time in human readable format

0.0.2-alpha.12 (2023-07-18)

  • Added: Improved Icon - Proxy, to serve icons for all symbols (if enabled)
  • Added: Language translations for live-view variables

0.0.2-alpha.11 (2023-07-17)

  • Added: Configuration Bar can be swapped from right to left (better handling, if elements are behind bar)
  • Added: Icon-Proxy-Server (if some of your devices inside the network do not have an internet connection, Energiefluss-erweitert will serve those icons and cache them as well)
  • Added: Better Help-Center when hitting the question mark icon
  • Added: Language translation into: english, german, espanol, french, italian, netherlands, polish language, portuguese, russian, ukrainian, chinese
  • Added: Previous outline fill extended for filling reverse

0.0.2-alpha.10 (2023-07-10)

  • FIX: Basic icon color was not applied correctly
  • FIX: Fill placeholders for elements were created in error in some circumstances
  • FIX: Subtract was not calculated correctly, if state value is negative
  • FIX: Better handling of positioning elements when entering coordinates
  • FIX: Icons sometimes got a faulty format if duplicated
  • Added: Circles and Rectangles can now have a fill border depending on the value
  • Added: Configuration backup for the last 10 versions

0.0.2-alpha.9 (2023-07-04)

  • FIX: CSS classes were causing color errors while being applied in config mode
  • FIX: Do not Load CSS class when adapter is starting - only when values change
  • FIX: Threshold was not calculated correctly, if element was substracted by other values
  • FIX: ID list in configbar was loosing event for choosing next element in drop-down
  • Added: Subtract values from other values
  • Added: Start coordinates can be specified in basic settings to better position new elements
  • Added: Threshold for rectangle and circle
  • Added: duplication of one or more element(s)
  • Added: Fill element according to value can now have different directions (bottom to top, top to bottom, right to left, left to right)

0.0.2-alpha.8 (2023-06-26)

  • FIX: Remaining Battery Calculation was not working if source has an ID 0 assigned
  • FIX: Animation timing improved. Better time-handling (#20)
  • FIX: Line could not be clicked/choosen (#19)
  • FIX: Threshold was not working correctly
  • Added: All elements can have CSS classes for their current state values. Active positive, Active negative, Inactive positive and Inactive negative
  • Added: Battery Remaining Time explanation improved
  • Added: Animation can run into opposite direction, if value has changed to positive/negative (#15, #18)
  • Added: Datasource text elements can now have a text before and after their value

0.0.2-alpha.7 (2023-05-25)

  • FIX: Some Icons were not moveable
  • FIX: Initial configuration was broken
  • Added: Existing Line can be modified as well

0.0.2-alpha.6 (2023-05-24)

  • FIX: Line could not be restored in some circumstances
  • FIX: Line was not editable anymore after modifying start and end

0.0.2-alpha.5 (2023-05-24)

  • Added: Calculation of battery runtime (charge & discharge) can be calculated and implemented via source
  • Added: Basic settings extended to colors of elements
  • Added: alignment of text is possible (right, middle, left)
  • Added: last change timestamp extended to more formats
  • Added: Line can be modified (new start and/or end position). Useful, if many settings applied and line needs to be moved

0.0.2-alpha.4 (2023-05-17)

  • Added: String Datasource can now be displayed

0.0.2-alpha.3 (2023-05-17)

  • FIX: Animations not running after adding each of them
  • Added: Elements can be chosen inside side-panel (useful, if element is not clickable anymore)

0.0.2-alpha.2 (2023-05-15)

  • FIX: Source missing after saving - fill of element not possible (fix #11)
  • FIX: Offset was not working
  • Added: admin menu - link recolored
  • Added: admin menu - access key table
  • Added: question-mark icon for config-wheel
  • Added: New animation-depencies added in advanced menu of animation. Choose dots or duration, to display power-amount on the line
  • Added: last change timestamp of the datasource can be displayed as option: relative to now, timestamp US or timestamp DE
  • Added: all elements can be moved with arrow keys for smoother alignment. Click icon and press arrow-key on keyboard to move it
  • Added: noscroll is added to the workspace, while moving elements. This prevents the page being scrolled up or down
  • Added: elements can be selected with the "lasso-function" - select more than one element with cursor
  • Added: "lasso-catched" elements can be moved with mouse or keyboard (arrow keys)
  • Added: Settings-menu has now basic settings for the elements. All values can be set as default values
  • Added: displayed values can be reduced by other values (selectable)

0.0.2-alpha.1 (2023-04-28)

  • FIX: removed local Test file, which does not belong to the project
  • Added: Settings Wheel can be disabled in Live-View
  • Added: Last selected Datasource can be "cached", for easier treeview (can be enabled/disabled in settings)
  • Added: Alignment functions do now have an undo function for all steps
  • Added: socket connection is monitored, shows a waiting screen, if instance is not started or restarted

0.0.2-alpha.0 (2023-04-28)

  • (SKB) initial release

License

MIT License

Copyright (c) 2024 SKB [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.energiefluss-erweitert's People

Contributors

dependabot[bot] avatar mcm1957 avatar skb-cgn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.energiefluss-erweitert's Issues

Vorschlag: Automatischer refresh der Seite

Nach einer weile ist die Seite nicht mehr aktuell. Es wird weiterhin animiert aber mit alten Werten. Wenn man dann über den Browser die Seite aktualisiert, werden die Werte und Animation aktualisiert. Ein automatischer refresh der Seite würde das Problem vermeiden.

Please consider renaming to english title

As IioBroker is an international software and this adapter seem to useable aoutside german speaking contries, please consioder renaming the adapter to an english title.

In addition evaluate if a shorter title is possible as the title is part of all (full) ids and hance tehy get eventually very long and harder to reead due to cutting of at several display fields / columns.

THANKS for evaluation

Symbol lässt sich nicht ändern

Hi,
ersteinmal ein großes Lob an die Entwickler, das ist wirklich eine super Arbeit!

Wenn ich versuche ein Symbol einzufügen, dann kann ich dieses nicht ändern, es bleibt Omega, egal was ich unter "Symbol" eintrage.
Selbst wenn ich den Wert eines Symbols eintrage, das schon im Standard da ist (wie z.B. "mdi:house-city") wird der Wert immer wieder auf "mdi:omega" zurück gesetzt.

Viele Grüße

THPS

Zwei Stromzähler (Checkboxen Verbrauch öffentliches Netz)

Hallo,

ich würde gerne meine beiden Zähler als Verbrauch öffentliches Netz einstellen (Allgemeinstrom + Strom Luft-Wärme-Pumpe).

Dazu müsste das Feld für "Verbrauch öffentliches Netz" genauso Multivalue sein wie "Produktion".
Screenshot 28 11 2023 um 08 48 03 AM

Ist dies möglich?

Oder hast du eine andere Idee, wie ich einen zweiten Zähler implementiere für eine Kaskadenschaltung, damit die Current Consumption auch stimmt?

Beste Grüße,
Tobias

jquery Errors since update to v0.0.2-alpha.21

Describe the bug
After Updateing to the 0.0.2-21 and also to the lastest -22 version, the frontend is not shown anymore and stuck in the loading screen:

image

The browser console show 2 jquery exceptions:
image

Versions:

  • Adapter version: v0.0.2-alpha.21
  • JS-Controller version: 5.0.14
  • Node version: v16.20.1
  • Operating system: Linux

Best Mirko

Datenquelle wird nicht gelöscht

Hallo.

Mir ist aufgefallen das wenn ich eine Datenquelle (die nicht mehr verwendet wird) lösche und dann auf "speichern und schließen" wird sie nicht gelöscht und taucht wieder auf.
Diese ist auch im Log ersichtlich.

Bild: Datenquellen vorher (click to expand)

Datenquellen_vorher

Bild: Datenquellen nach löschen (click to expand)

Datenquellen

Bild: Log nach speichern (click to expand)

Log

PV-Wert negativ führt zu Fehlern

Describe the bug
Wenn die PV keine Sonne mehr bekommt, gibt Sie den Wert -2147483648W aus

To Reproduce
Wert kommt vom IoBroker über Modbus, jeden Tag wenn die Sonne untergeht

Expected behavior
der Adapter sollte werte unter 0 aus der Erzeugung von PV ingnorieren

Screenshots & Logfiles
Alter Energieflussadapter V3.6.0
image
neuer Energeiflussadapter erweitert V0.1.0
image
alle beide greifen auf den gleich Datenpunkt zu
Die Berechnung der Verbrauches ist dann auch falsch und verbessert sich nicht, wenn die diese Datenpunkt aus der Berechnung herausnehme. Es schein so, das die Berechnung des Verbrauchs unbedingt einen Datenpunkt haben will

Animation + Berechnung für Netzbezug

Hallo!

Im "alten" Energiefluss-Adapter wurde der Pfad vom Netz zum Verbrauch automatisch generiert, wenn weder PV, noch Batterie Strom geliefert haben, oder zu wenig um den Verbrauch zu decken.
In der neuen Version ist das bei den Berechnungen nicht drin.
Könntest Du den Wert ebenfalls über Berechnung bereitstellen?
Wird es generell die Möglichkeit geben, selbst zusätzliche Berechnungen hinzuzufügen?

Ich weiß, dass ich die Werte im ioBroker berechnen und dann die Quelle nutzen kann, aber Du wirst den Reiter doch nicht für 2 Berechnungen erstellt haben :-)

Danke
-Paul

Verbesserungsvorschlag: Animation der Flussrichtung in Abhängigkeit des Wertes Ändern

Ja, ich weiss, dass es den Request schon gab. (#15)

(Kurzfassung: Ich fände das ein sinnvolles Feature.)

Du hast da geschrieben, dass Du das nicht sinnvoll findest, außer bei der Batterie, weil sonst ja nur ein Strom fließen oder eben nicht fließen würde. Das stimmt allerdings nur bedingt. Ich habe hier:

PV-Hybridwechselrichter (zwei PV-Stränge, eigene Batterie). Den kriege ich T-förmig sinnvoll abgebildet:

PV -> Wechselrichter -> Haus <=> Netz
        |    ^
        v    |
       Batterie

Wobei <=> für zwei animierte Linien steht für die beiden Richtungen.

Das Problem ist: Ich habe noch zwei weitere PV-Stränge an einem MPPT, der hängt an einem 48V Strang, an dem auch Batterie (die zweite) und ein Wechselrichter (eigentlich je einer pro Phase) hängt. Und der Wechselrichter wiederum kann sowohl ins Haus einspeisen als auch Strom von dort entnehmen (zum Laden der zweiten Batterie), falls der Hybridwechselrichter mehr Strom erzeugt (und nicht in die bereits volle Batterie einspeisen kann) als das Haus verbraucht. Nur diesen Anlagenteil würde ich dann also wohl so abbilden:

PV -> 48V <=> Batterie
      | ^
      v |
  Wechselrichter  <=> Haus <=> Netz

Klar kann ich das über jeweils parallele Linien abbilden. Das wird aber relativ unübersichtlich meiner Meinung nach und wäre mit einzelnen Linien, die jeweils in beide Richtungen animiert wären, irgendwie eleganter.

Um ehrlich zu sein, hatte ich schon geschaut, ob ich nicht einen Pull-Request hin bekomme, um das zu implementieren, aber ehrlich gesagt verstehe ich nicht, wie Du die Animationen erzeugst (und diverse andere Anteile des Codes - JavaScript/TypeScript ist eindeutig nicht meine Stärke).

Config

Wie kann ich den Adapter einstellen ? Wenn ich auf Instanzen gehe. Finde ich keine einstell Möglichkeiten.

Frage: Anzeige der Batterie und Restlaufzeit

Hallo,

Kannst du mir einen Tipp geben, wie ich die Batterie und die Restlaufzeit anzeigen kann?

Ist es auch möglich die Batterieanimation wie in deinem ersten Adapter anzuzeigen ?

Viele Grüße

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

host.iobroker 2023-05-18 06:59:37.209 error Caught by controller[0]: 12: 0x15d9e19 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.209 error Caught by controller[0]: 11: 0x11e58e5 v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.208 error Caught by controller[0]: 10: 0xe393c7 v8::internal::StackGuard::HandleInterrupts() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.208 error Caught by controller[0]: 9: 0xeabd25 v8::internal::Heap::HandleGCRequest() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.208 error Caught by controller[0]: 8: 0xea8e30 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.208 error Caught by controller[0]: 7: 0xea83ee [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.208 error Caught by controller[0]: 6: 0xe99ec6 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.207 error Caught by controller[0]: 5: 0xe993e5 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.207 error Caught by controller[0]: 4: 0xce1d77 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.207 error Caught by controller[0]: 3: 0xce19d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.207 error Caught by controller[0]: 2: 0xa1b70e [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.206 error Caught by controller[0]: 1: 0xb090e0 node::Abort() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:59:37.206 error Caught by controller[0]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
host.iobroker 2023-05-18 06:59:37.206 error Caught by controller[0]: <--- JS stacktrace --->
host.iobroker 2023-05-18 06:59:37.206 error Caught by controller[0]: [44301:0x576fbd0] 71414 ms: Scavenge 2028.3 (2067.9) -> 2028.1 (2078.9) MB, 11.0 / 0.0 ms (average mu = 0.166, current mu = 0.122) allocation failure
host.iobroker 2023-05-18 06:59:37.206 error Caught by controller[0]: [44301:0x576fbd0] 71402 ms: Scavenge 2027.3 (2066.9) -> 2027.6 (2067.9) MB, 10.5 / 0.0 ms (average mu = 0.166, current mu = 0.122) allocation failure
host.iobroker 2023-05-18 06:59:37.205 error Caught by controller[0]: [44301:0x576fbd0] 71388 ms: Scavenge 2024.5 (2062.2) -> 2024.5 (2066.9) MB, 7.8 / 0.0 ms (average mu = 0.166, current mu = 0.122) allocation failure
host.iobroker 2023-05-18 06:59:37.204 error Caught by controller[0]: <--- Last few GCs --->
host.iobroker 2023-05-18 06:57:52.514 error Caught by controller[0]: 12: 0x15d9e19 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.513 error Caught by controller[0]: 11: 0x11e58e5 v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.513 error Caught by controller[0]: 10: 0xe393c7 v8::internal::StackGuard::HandleInterrupts() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.513 error Caught by controller[0]: 9: 0xeabd25 v8::internal::Heap::HandleGCRequest() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.513 error Caught by controller[0]: 8: 0xea8e30 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.512 error Caught by controller[0]: 7: 0xea83ee [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.512 error Caught by controller[0]: 6: 0xe99ec6 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.512 error Caught by controller[0]: 5: 0xe993e5 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.512 error Caught by controller[0]: 4: 0xce1d77 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.512 error Caught by controller[0]: 3: 0xce19d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.511 error Caught by controller[0]: 2: 0xa1b70e [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.511 error Caught by controller[0]: 1: 0xb090e0 node::Abort() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:57:52.511 error Caught by controller[0]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
host.iobroker 2023-05-18 06:57:52.511 error Caught by controller[0]: <--- JS stacktrace --->
host.iobroker 2023-05-18 06:57:52.510 error Caught by controller[0]: [44282:0x5d05bd0] 29036 ms: Scavenge 2032.4 (2072.2) -> 2032.2 (2083.2) MB, 10.8 / 0.0 ms (average mu = 0.155, current mu = 0.111) allocation failure
host.iobroker 2023-05-18 06:57:52.510 error Caught by controller[0]: [44282:0x5d05bd0] 29025 ms: Scavenge 2031.4 (2071.2) -> 2031.6 (2072.2) MB, 10.7 / 0.0 ms (average mu = 0.155, current mu = 0.111) allocation failure
host.iobroker 2023-05-18 06:57:52.510 error Caught by controller[0]: [44282:0x5d05bd0] 29012 ms: Scavenge 2028.6 (2066.4) -> 2028.6 (2071.2) MB, 10.1 / 0.0 ms (average mu = 0.155, current mu = 0.111) allocation failure
host.iobroker 2023-05-18 06:57:52.510 error Caught by controller[0]: <--- Last few GCs --->
host.iobroker 2023-05-18 06:56:50.115 error Caught by controller[0]: 12: 0x15d9e19 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.114 error Caught by controller[0]: 11: 0x11e58e5 v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.114 error Caught by controller[0]: 10: 0xe393c7 v8::internal::StackGuard::HandleInterrupts() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.114 error Caught by controller[0]: 9: 0xeabd25 v8::internal::Heap::HandleGCRequest() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.114 error Caught by controller[0]: 8: 0xea8e30 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.114 error Caught by controller[0]: 7: 0xea83ee [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.114 error Caught by controller[0]: 6: 0xe99ec6 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.113 error Caught by controller[0]: 5: 0xe993e5 [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.113 error Caught by controller[0]: 4: 0xce1d77 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.113 error Caught by controller[0]: 3: 0xce19d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.113 error Caught by controller[0]: 2: 0xa1b70e [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.112 error Caught by controller[0]: 1: 0xb090e0 node::Abort() [io.energiefluss-erweitert.0]
host.iobroker 2023-05-18 06:56:50.112 error Caught by controller[0]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
host.iobroker 2023-05-18 06:56:50.111 error Caught by controller[0]: <--- JS stacktrace --->
host.iobroker 2023-05-18 06:56:50.111 error Caught by controller[0]: [44265:0x5672bd0] 38738 ms: Scavenge 2028.4 (2068.2) -> 2028.2 (2079.2) MB, 10.5 / 0.0 ms (average mu = 0.155, current mu = 0.121) allocation failure
host.iobroker 2023-05-18 06:56:50.110 error Caught by controller[0]: [44265:0x5672bd0] 38727 ms: Scavenge 2027.4 (2067.2) -> 2027.6 (2068.2) MB, 9.1 / 0.0 ms (average mu = 0.155, current mu = 0.121) allocation failure
host.iobroker 2023-05-18 06:56:50.110 error Caught by controller[0]: [44265:0x5672bd0] 38714 ms: Scavenge 2024.6 (2062.2) -> 2024.6 (2067.2) MB, 6.0 / 0.0 ms (average mu = 0.155, current mu = 0.121) allocation failure
host.iobroker 2023-05-18 06:56:50.110 error Caught by controller[0]: <--- Last few GCs --->
host.iobroker 2023-05-18 06:55:38.055 error Caught by controller[3]: 12: 0x15d9e19 [io.energiefluss-erweitert.0]

Symbol l

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Datenquelle Berechnungen Multiplizieren möglich?

Hi,

zunächst erstmal dickes Lob für den Adapter! Wirklich schick!
Einen Featurewunsch hätte ich:
Ist es möglich bei Berechnungen in den erweiterten Einstellungen einer Datenquelle das Multiplizieren zu ermöglichen?
Hintergrund: der Adapter für den PV Akku liefert nur Spannung und Stromstärke, ich müsste mir die Anzeige in Watt also berechnen.

Vielleicht ist das ja möglich.
Vielen Dank und Grüße!

Einbindung von HTLM-Seiten

Ich wollte unter dem Energieflussadapter eine HTML-Seite von Grafana anzeigen lassen, für den Verlauf der letzten 12 Stunden. Leider bekomme ich das nicht hin, eine Seite von Grafana anzuzeigen. Ist diese Funktion überhaupt möglich? in der VIS soll es gehten und der Adapter bassiert doch auf der VIS.

Transparent background

An option to make the background transparent would be great.
Right now the background color sticks out in the visualization.

image

Echt toll, aber ich hätte fragen

Erstmal gratulation, ein wirklich toller Adapter ,finde ihn echt Super.

Hätte dann 2 Fragen:
Wenn ich habe eine Anzeigefläche von 500px*500px eingerichte, worauf meine Elemente angeordnet sind ,wie bekomme ich diese
nun auf einem grosseren Bildschirm FHD zum Beispiel zentriert.

Dann wüsste ich noch gerne wie ich die background-color bei einzelnen Elementen setzen kann.

Undo (Ausrichtung) in falscher Reihenfolge

Ich habe gerade drei Elemente nacheinander an dem gleichen Referenzobjekt ausgerichtet. Ich wollte beim letzten wieder zur ursprünglichen Positionierung zurück, habe also auf Undo geklickt. Zu meiner Überraschung wurde das erste ausgerichtete Objekt wieder zurück auf die Ausgangsposition gesetzt, dann das zweite und als letztes das auch ursprünglich zuletzt ausgerichtete Objekt. Ablauf war also:

  • Click auf horizontale Zentrierung
  • Click auf Referenzobjekt
  • Click auf Objekt A
  • Click auf Objekt B
  • Click auf Objekt C
  • Click auf Undo -> A wieder auf Ausgangsposition
  • Click auf Undo -> B wieder zurück
  • Click auf Undo -> C wieder zurück

Erwartet hätte ich Undo in der Reihenfolge C, B, A.

Automatic conversion W to kWdies ist kein Fehler

Hello,
This is not a bug but a wish.
It would be good if the decimal places for the automatic conversion from W to kW could be set separately for both values to keep the display fields smaller.
We regularly have to deal with watt values in the hundreds, whereby decimal places are rather uninteresting. If, on the other hand, the kW numbers are rounded without decimal places, the display error is in the10 % to 50 % range.
Thank you in advance.

Ordner in Objekten als Datenpunkt anstatt Ordner

Wenn ich bei meinem Mercedes einen Datenpunkt „Ladestand“ erstellen will, bleibe ich mitten im Objektbaum hängen, da aus dem Ordner „mit der Fahrgestellnummer“ einen „Datenpunkt“ wird und ich dann nicht weiterkomme.
Bei meinem Mini ist das kein Problem

Ernergiefluss Mercedes
image

Iobroker mercedes
image

Energiefluss MINI
image

Textdrehung wird mit Chrome nicht gespeichert

Describe the bug
Wenn ich im Arbeitsbereich mit Google Chrome einen Text senkrecht drehe, dann speichere und in die LiveView wechsle, dann ist der Text wieder waagerecht.
Wenn ich das Ganze in Firefox mache, funktioniert das problemlos und der Text wir in der LiveView auch senkrecht dargestellt.

To Reproduce
Steps to reproduce the behavior:

  1. Text im Arbeitsbereich mit Google Chrome drehen.
  2. speichern und verlassen
  3. In der LiveVie ist der TExt wieder waagerecht

Versions:

  • Adapter version: 0.0.2 alpha15

Arbeitsbereich
LiveView

Hintergrund

Ist es möglich einen transparenten Hintergrund einzufügen

Some Alias not getting update

Describe the bug
Im using Aliases in my Sytem to have my UCI changes easier. But some of them are not getting refreshed in the "Energiefluss-Adapter"
If im using the Original Value it works fine. the reason i really like to use the alias is cause it can change my "wrong" value
(eg 100 ) by a math opteration to the right value without having to mess around (eg 10,0W).
To Reproduce
Steps to reproduce the behavior:
I´m not shure if it´s actually reproduceable cause i´seem to be only with a few Aliases
Those Aliases getting it’s Values out of a Script...
(Java-Script)

Expected behavior
I like to get the energiefluss to show Alias Values in realtime

Screenshots & Logfiles
Screenshot 2023-11-04 131228

Here you can see in RED the Alias not getting updated and in green the original value getting updated
no Error or Warning in LOG avaliable

Versions:

  • Adapter version: 0.0.2-alpha.23
  • JS-Controller version: Node.js: v20.5.1(20.9.0)
  • Node version: NPM: 9.8.0(9.8.1)
  • Operating system Plattform: linux

Additional context
This problem is annoying me a while ago and I initially thought it´s maybe my issue because it´s only with a few aliases.
I also tried to delete the Aliases and made new ones but the issue stay´s. I´m Using the same Aliases in History and statistics and on the VIS Interface. they are always live without issue only in Energiefluss they are only updating once if I restart the Instance or svae my config again.

There is no Error or Warning in the Log that i can provide

Verbesserungsvorschlag Manueller Umbruch in Text

Hallo,

erstmal wieder sehr geile Arbeit. Der neue Adapter ist jetzt schon der Hammer!!

Wäre es wie beim "alten" Energiesfluss-adapter möglich, einen manuellen Umbruch in den Text einzubauen?
hat leider nicht funktionert. Eilt aber nicht.

Vielen Dank!

Duplizieren nicht möglich

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Seid einigen Tagen kann ich keine Elemente mehr dublizieren zumindest ist mir das jetzt erst aufgefallen. ich habe 4 Instanzen erstellt.

Cpu use extremly high ( solved )

Since adding calculation usage extreme high cpu use on rpi 4 with Debian 12 Upgrade will try downgrade off OS and report

it happens with the v0.0.2-alpha.14

Versions:
Plattform
linux
Betriebssystem
linux
Architektur
arm64
CPUs
4
Geschwindigkeit
1800 MHz
Modell
Cortex-A72
RAM
7.63 GB
System-Betriebszeit
08:46:20
Node.js
v18.13.0 (Es gibt eine neuere Version: v18.17.0)
time
1691556230127
timeOffset
-120
Anzahl der Adapter
488
NPM
9.2.0
Datenträgergröße
219.77 GB
freier Festplattenspeicher
133.71 GB
Betriebszeit
08:49:08
Aktive Instanzen
18
Weg
/opt/iobroker/
Hostname
pihole

here the app without Calculation
image
here the app with Calculation

image

it goes so high that the Iobroker in not able to deliver infos to all other apps

Schattenfarbe wird nicht gespeichert

Describe the bug
In den Kreis- oder auch Rechteckformen wird die Schattenfarbe nicht gespeichert

To Reproduce
Steps to reproduce the behavior:
Element markieren, in den Eigenschaften unter Schattenfarbe über den Colorpicker eine Farbe wählen und danach erneut das Element auswählen - Schattenfarbe ist dann wieder leer. Egal ob der voreingestellte Hexwert drinnen steht oder ob ich wie in allen anderen Feldern den RGB Wert angebe, das Feld wird immer wieder geleert

Expected behavior
speichern der Farbe damit ein Schatten der Form angezeigt wird

Versions:

  • Adapter version: 0.0.2-alpha23

Alignment of elements

Describe the bug
The function for aligning a data field "Left" or "Right" are swapped!

Expected behavior
A clear and concise description of what you expected to happen.

2023-11-01_194416_right instead of left
2023-11-01_194436_left instead of right
2023-11-01_194352_center

  • Adapter version: v0.0.2-alpha.23
  • JS-Controller version: v18.18.2
  • Node version: 9.8.1
  • Operating system: Windows10

Greetings Luapsi

Verbesserungsvorschlag Animation der Flussrichtung in Abhängigkeit des Wertes Ändern

Erstmal ein Lob an den coolen Adapter !

Man könnte noch übersichtlichere Visualisierungen bauen, wenn die Flussrichtung der Animation in Abhängigkeit der Variable die Richtung ändern könnte.

zusätzlich wäre ein Grenzwert schick, ab wann die Visualisierung anfängt schön.

Beispiel Batterie:

P > Ogrenz (Laden) -> Flussrichtung zu Akku
P < -Ugrenz (Entladen) -> Flussrichtung von Akku weg

z.B. -30W < P < 30W -> keine Animation

z.B. die Victron Visualisierung finde ich ganz gelungen. Leider nicht so schon flexibel und in Echtzeit.

Victron

Viele Grüße!

Probleme beim Einfügen/Ändern von Icons

Vielen Dank für die Info, dass es einen neuen Adapter gibt, dies ging an mir vorbei. Ich habe mich gleich ans Werk gemacht und mir die neue VIS gebaut. Dabei viel mir aber ein Problem auf.

Fügt man ein Icon vom Typ "icon-park:solar-energy" ein und möchte dieses anschließend wieder auswählen, wird es nicht dunkel hinterlegt. Wenn man nun einen neuen Typ hinterlegen will oder es löschen, zerschießt es die komplette Ansicht.

Solar-Icon01 Solar-Icon02 Gesamtansicht

Dublicate elements doesn't work

I update to version 0.2.1.
I recognized that the duplicate elements function doesn't work any more.
Nothing happen if I click on button.
Getting this error:
image

Animation Geschwindigeit Unterschied zu gering

0.0.2-alpha.7

Einstellungen in jeder Linie:
Duration
Min Duration on the Line = 1000
Max Power on the Line = 1000
Quelle ist bei allen Linien vorhanden.

Die Animation läuft bei allen Linien dann zwischen 1 und 2 Sekunden.
Das heißt bei 1W sind es 2 Sekunden und bei 1000W 1 Sekunde.

Stelle ich Min Duration on the Line = 10000 ein erhalte ich folgende Animationsgeschwindigkeit:
1W = 11 Sekunden
1000W = 10 Sekunden

Man kann bei der Animation fast kein Unterschied erkennen.
War das so beabsichtigt ?
Oder mache ich was falsch?

Ausschnitt Datenpunkt Data im iob bei Min Duration on the Line = 10000 :

"animationProperties": {
"anim_path_14_7": {
"type": "duration",
"duration": 10135
},
"anim_path_7_40": {
"type": "duration",
"duration": 10999
}

Vorschlag: Berechnungen in die Datenquellen zu verlegen

Hi!

ich bin eben von der alpha1 auf die alpha20 gegangen. Da sind mir wohl ein paar updates durch gegangen. Dabei habe ich die neuen Berechnungen mit + & - gesehen. Super!

Aber es könnte besser sein, dass in die Datenquellen zu verlegen. Also einen virtuellen Datenpunkt zu haben, denn sich aus der Summe / Differenz von Punkten bestimmt.

Warum ist das besser? Dann könnte man das auch z.b. bei den Pfaden zur Animationssteuerung nutzen.

seit alpha 23

stürzt Energiefluss immer ab mit alpha 22 lief alles super hilfe

energiefluss-erweitert.0 333908 2023-11-03 16:27:06.150 error TypeError: Cannot read properties of undefined (reading 'source') at EnergieflussErweitert.getConfig (/opt/iobroker/node_modules/iobroker.energiefluss-erweitert/main.js:1211:77)
energiefluss-erweitert.0 333908 2023-11-03 16:27:06.149 error unhandled promise rejection: Cannot read properties of undefined (reading 'source')
energiefluss-erweitert.0 333908 2023-11-03 16:27:06.148 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which w

Hilfe zu Batterie Laufzeit

Describe the bug

image

es wird immer nur NaN % angezeigt

und das obwohl
image

eingestellt ist
image

aber müsste es hier nicht
energiefluss-erweitert.x.Calculation wie bei der Verbrachsberechnung ?

was nur komisch ist es erscheint hier kein Wert hmm (sieh grüne Schrift es werden aber werte übertragen
image

Probleme in der Responsive-Ansicht

In meiner Vis stelle ich das Energieflussdiagramm in einem iFrame dar. Nun ist mir aufgefallen dass in Responsive-Ansichten, also z.B. auf dem Handy, unterhalb des iFrames kein weiteres Element angezeigt wird. Es wird vom iFrame überdeckt, siehe 1. Screenshot. Bei größeren Bildschirmen, z.B. auf dem Desktop-PC wird das Element unterhalb richtig dargestellt, siehe 2. Screenshot. Um mein Vis (Jarvis) auszuschließen habe ich das Ganze mit einem anderen iFrame probiert in dem ich ein Video darstelle probiert, dort gab es keine Probleme.

  1. Screenshot
    image

  2. Screenshot
    image

Batteriekapazität und Batterie SoC via Datenpunkt berücksichtigen

Hello,
if you want to calculate the charging or discharging time correctly, the minimum SOC setting is used. However, this is not dependent on a data source but is permanently parameterized. If this is intentionally changed, it must be re-entered in the energy flow adapter. Here it would be better to refer to a data source.

Verbesserungsvorschlag: Runden von Werten ermöglichen

Grob gesagt: Nachkommastellen begrenzen.

Ich denke, das geht mit toFixed(<decimals>) in Javascript. In der Regel würde ich je nach Einheit wohl 1-3 Nachkommastellen sehen wollen. Und nicht wie im Augenblick gerade 8.

Material Design

Hi,
vielen Dank für's teilen. Echt klasse Arbeit!
Kein Bug, sondern eine Anregung.
Ich habe die meisten VIS Designs auf Material Design basiert, damit auch die Dark-Mode Umschaltung geht.
Hier könnte man sich vielleicht einige Arbeit in dem EnergieFluss Adapter sparen, indem man einfach auf das Material Design Schema verweist, anstelle Farben neu zu definieren. Dann würde auch die Dark-Mode Umschaltung konsistent funktionieren.
LG
Stefan

Zu viele Punkte im Element

Hallo,

das Element enthält trotz Begrenzung auf max. drei deutlich mehr Punkte auf der Linie.
Ich habe die Leistung bewusst niedrig eingestellt, um die Anzahl er Punkte bei ausgeschalteter Heizung zu reduzieren.

MfG

Element_value
Flussdiagramm

Units not shown after update to 0.0.2-alpha.2

I have updated to 0.0.2-alpha.2 today. After the update no units are displayed. Values are still shown as expected but without their units. Do I need to activate this somewhere? Units are still defined correctly in the "Source"-Configuration of the element.

Startprobleme bei Neuinstallation

Hallo SKB,
habe mit der letzten Version auch 2 Tage umhergespielt ohne Erfolg. Seit dem Update in der "12" heute Mittag funktioniert es auch in Termux auf einem Android Tablet. Ich habe auch mehrmals gelöscht und drüberinstalliert hat nicht funktioniert.
Das muss komplett aus den "Adaptern" gelöscht werden inclusive der Objekte zum Adapter. Danach per Katze über den Link neu installieren und dann den "neuen" Adapter aktivieren (install) . Danach ist alles ok. Habe im iob Forum mitgelesen habe da aber keinen Account daher hier die Info.

Linie selektieren mit Mausklick

0.0.2-alpha.7

Ich habe Schwierigkeiten die Linien mit der Maus auszuwählen.
Ich muß mehrmals die Linie anklicken bis Diese endlich selektiert wurde.
Alle anderen Objekte lassen sich mit einem Mausklick selektieren.
Hat das noch jemand ?

Verbesserungsvorschlag: Skalieren von Werten erlauben

Unsere diversen Geräte (Inverter, Stromzähler etc.) geben leider Werte auf verschiedenen Skalen aus.

Eine Konvertierung im ioBroker ist zwar machbar (über Scripts), ist aber nur für die Visualisierung nötig. Daher der Vorschlag:
Erlaube Skalierung von Werten (von kW zu MW oder W, also Multiplikation/Division mit/durch 1000).

Problem: Keine Datenanzeige

(Version gestern abend aktualisiert, iobroker zeigt version 0.0.2-alpha.10

Keine Ahnung, was genau schief läuft. Für Hinweise zum Debugging wäre ich dankbar. Irgendwie ist für mich "functions.min.js:1" nicht sonderlich hilfreich. Ein Javascript beautifier macht aus der einen Zeile mal eben 2492 Zeilen.

Hmm, ich habe es scheinbar bis in diesen Teiler einer anonymem function zurückverfolgt:

            if (null != t[objID[1]]) try {                                       
                console.log("Loading initial Data."), refreshData(JSON.parse(t[objID[1]].val))
            } catch (o) {                                                        
                console.log(o)                                                   
            }                    

(Im CallBack für e.emit("getStates", objID, function(...){...})

Das Javascript-Console-log in Chrome zeigt:

Using Instance: energiefluss-erweitert.0
about:blank:1 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
functions.min.js:1 Loading config for instance: 0
functions.min.js:1 Loading User Config ...
functions.min.js:1 [Socket] subscribed to: energiefluss-erweitert.0.configuration,energiefluss-erweitert.0.data,system.adapter.energiefluss-erweitert.0.alive,energiefluss-erweitert.0.backup at 7/13/2023, 11:40:36 AM
functions.min.js:1 Loading initial Data.
functions.min.js:1 TypeError: Cannot read properties of undefined (reading '0')
    at functions.min.js:1:6669
    at Array.forEach (<anonymous>)
    at refreshData (functions.min.js:1:6627)
    at r.<anonymous> (functions.min.js:1:9814)
    at r.onack (index.js:83:1)
    at r.onpacket (index.js:83:1)
    at r.<anonymous> (index.js:83:1)
    at r.emit (index.js:83:1)
    at r.ondecoded (index.js:83:1)
    at a.<anonymous> (index.js:83:1)
37functions.min.js:1 Error while parsing Values in JSON-Object!

Hier ist der Output wenn ich speichere, was ich aktuell konfiguriert habe (extra reduziert):

{
    "basic": {
        "enable_grid": true,
        "enable_animation": true,
        "enable_area_catch": true,
        "enable_config_icon": true,
        "enable_last_id": false,
        "height": 720,
        "width": 1280,
        "styles": "",
        "font": {
            "family": "\"Arial\", sans-serif",
            "size": "20",
            "color": "",
            "fill": "",
            "align": "end"
        },
        "rect": {
            "height": 100,
            "width": 100,
            "corners": 10
        },
        "circle": {
            "radius": 50
        },
        "elm": {
            "stroke_width": 5,
            "color": "",
            "fill": "",
            "pos_x": null,
            "pos_y": null
        },
        "icon": {
            "height": 24,
            "width": 24,
            "color": ""
        }
    },
    "calculation": {
        "battery": {
            "dod": 0,
            "capacity": 0,
            "percent": null,
            "charge": null,
            "charge_prop": false,
            "charge_kw": false,
            "discharge": null,
            "discharge_prop": false,
            "discharge_kw": 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": {
        "0": {
            "type": "text",
            "subType": "datasource",
            "id": 0,
            "pos_x": 109,
            "pos_y": 89,
            "color": "none",
            "fill": "rgb(53, 44, 26)",
            "font_family": "Arial, sans-serif",
            "font_size": 20,
            "degree": 0,
            "align": "start",
            "text": "ID 0",
            "unit": "kW",
            "append": "",
            "prepend": "",
            "source": 11,
            "source_option": "timestamp_de_short_wo_year",
            "source_display": "value",
            "shadow": "",
            "threshold": 0,
            "calculate_kw": false,
            "convert": false,
            "decimal_places": 0,
            "subtract": [
                -1
            ],
            "css_general": "",
            "css_active_positive": "",
            "css_inactive_positive": "",
            "css_active_negative": "",
            "css_inactive_negative": ""
        },
        "1": {
            "type": "text",
            "id": 1,
            "pos_x": 89,
            "pos_y": 59,
            "color": "none",
            "fill": "rgb(94, 6, 211)",
            "font_family": "Arial, sans-serif",
            "font_size": 20,
            "degree": 0,
            "align": "start",
            "text": "BYD consumption",
            "shadow": "",
            "css_general": ""
        }
    },
    "defs": {},
    "lines": {},
    "animations": {},
    "datasources": {
        "11": {
            "source": "loxone.2.1a12582e-02a7-e3a1-ffff112233445566.actual",
            "alias": "BYD_LVL_Consumption"
        }
    }
}

Update stable version in repo from 0.0.0 to 0.2.1

Think about adding version 0.2.1 to stable repository.

Version: stable=0.0.0 (0 days old) => latest=0.2.1 (30 days old)
Installs: stable=0 (0%), latest=195 (19.74%), total=988

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!
Do not close this issue manually as a new issue will be created if condition for update still exists
@mcm1957 for evidence

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.