Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Support Adapter Energiefluss-erweitert v0.6.2

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Support Adapter Energiefluss-erweitert v0.6.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @micklafisch last edited by Homoran

      @micklafisch sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

      Was ich nicht hinbekommen habe: für den Hausakku die Animation des Icons beim laden/entladen. Das wäre dann das restliche 1% was fehlt um für meine Zwecke perfekt zu sein.

      was genau fehlt dir da?
      Eine Ladeanimation im Batterie-Icon?

      oder die (Ent-)ladeabhängige Änderung?

      letzteres mache ich im Moment mit dem Wert
      Screenshot_20231026-111120_Firefox.jpg
      Sonnengelb bei Ladung, rot bei Entladung.

      Im Netzbezug wechselt zusätzlich das Icon
      Screenshot_20230816-130006_Firefox.jpg Screenshot_20230816-125735_Firefox.jpg Screenshot_20230816-125801_Firefox.jpg

      M 1 Reply Last reply Reply Quote 0
      • M
        micklafisch @Homoran last edited by

        @homoran sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

        Eine Ladeanimation im Batterie-Icon?

        genau das. In der alten Version gabs das ja und ich wollte genau das umsetzen.

        Die Umsetzung von dir sieht sehr interessant aus, ggf. lasse ich mich davon noch etwas inspirieren.

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @micklafisch last edited by

          @micklafisch sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

          In der alten Version gabs das ja und ich wollte genau das umsetzen.

          ich auch!
          geht auch irgendwie

          Screenshot_20231026-125834_Firefox.jpg

          wollte ich @skb auch schon lange fragen, wie!

          SKB 1 Reply Last reply Reply Quote 0
          • SKB
            SKB Developer Most Active @Homoran last edited by SKB

            @homoran @micklafisch Animiertes Icon für die Batterie ist wie folgt:

            Standard-Icon für die Batterie z.B. "mdi:battery-high".

            Dann schauen, wie ge-/entladen wird. Bei mir ist laden negativ und entladen positiv.
            Die richtigen Klassen als CSS rein:

            2023-10-26 13_57_37-Energiefluss - erweitert Configuration – Mozilla Firefox.png

            Und als Stile folgendes:

            /* Icons for Battery */
            :root {
                --empty: 'M16,20H8V6H16M16.67,4H15V2H9V4H7.33A1.33,1.33 0 0,0 6,5.33V20.67C6,21.4 6.6,22 7.33,22H16.67A1.33,1.33 0 0,0 18,20.67V5.33C18,4.6 17.4,4 16.67,4Z';
                --low: 'M16 20H8V6H16M16.67 4H15V2H9V4H7.33C6.6 4 6 4.6 6 5.33V20.67C6 21.4 6.6 22 7.33 22H16.67C17.41 22 18 21.41 18 20.67V5.33C18 4.6 17.4 4 16.67 4M15 16H9V19H15V16';
                --medium: 'M16 20H8V6H16M16.67 4H15V2H9V4H7.33C6.6 4 6 4.6 6 5.33V20.67C6 21.4 6.6 22 7.33 22H16.67C17.41 22 18 21.41 18 20.67V5.33C18 4.6 17.4 4 16.67 4M15 16H9V19H15V16M15 11.5H9V14.5H15V11.5Z';
                --high: 'M16 20H8V6H16M16.67 4H15V2H9V4H7.33C6.6 4 6 4.6 6 5.33V20.67C6 21.4 6.6 22 7.33 22H16.67C17.41 22 18 21.41 18 20.67V5.33C18 4.6 17.4 4 16.67 4M15 16H9V19H15V16M15 7H9V10H15V7M15 11.5H9V14.5H15V11.5Z';
            }
            
            .battery_charge path {
                animation: charge 4s linear infinite;
            }
            
            .battery_discharge path {
                animation: discharge 4s linear infinite;
            }
            
            /* Animation for battery */
            @keyframes charge {
                0% {
                    d: path(var(--empty));
                }
            
                25% {
                    d: path(var(--low));
                }
            
                50% {
                    d: path(var(--medium));
                }
            
                75% {
                    d: path(var(--high));
                }
            }
            
            @keyframes discharge {
                0% {
                    d: path(var(--high));
                }
            
                25% {
                    d: path(var(--medium));
                }
            
                50% {
                    d: path(var(--low));
                }
            
                75% {
            
                    d: path(var(--empty));
                }
            }
            
            Homoran M Elektrofix-OL 3 Replies Last reply Reply Quote 2
            • Homoran
              Homoran Global Moderator Administrators @SKB last edited by Homoran

              @skb klappt bei mir leider nicht.

              Screenshot_20231026-151001_Firefox.jpg

              hab ein anderes icon für normal, ist das ok?

              bei mir ist laden positiv und entladen negativ
              quelle ist battery-power.

              edit
              sehe gerade, dass da Leerzeilen eingefügt wurden
              Screenshot_20231026-151400_Firefox.jpg

              darf das?

              SKB 1 Reply Last reply Reply Quote 0
              • SKB
                SKB Developer Most Active @Homoran last edited by

                @homoran Dem Icon hast Du aber schon eine Datenquelle zugewiesen?

                Ja, Leerpunkte/Leerzeilen dürfen sein.

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @SKB last edited by

                  @skb sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

                  Dem Icon hast Du aber schon eine Datenquelle zugewiesen?

                  ja

                  @homoran sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

                  quelle ist battery-power.

                  mit wechselndem Vorzeichen
                  positiv = laden
                  negativ = entladen

                  also umgekehrt zu deiner Batterie

                  SKB 1 Reply Last reply Reply Quote 0
                  • SKB
                    SKB Developer Most Active @Homoran last edited by

                    @homoran Ok, dann schau mal, das die Zeilen so aussehen - hatte ich eben nicht drauf geachtet:

                    2023-10-26 17_22_28-Energiefluss - erweitert Configuration – Mozilla Firefox.png

                    Sonst könnte es sein, das sie falsch interpretiert werden.

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @SKB last edited by

                      @skb worauf soll ich da achten?

                      hab die Leerzeilen entfernt und eingerückt
                      Screenshot_20231026-173907_Firefox.jpg

                      nutzt nix

                      SKB 1 Reply Last reply Reply Quote 0
                      • SKB
                        SKB Developer Most Active @Homoran last edited by

                        @homoran sind aber noch mehrzeilig oder geht das wegen der Box nicht anders?

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @SKB last edited by Homoran

                          @skb sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

                          geht das wegen der Box nicht anders?

                          denk ich mal!
                          wollte den Umbruch löschen, da wurde der erste Buchstabe in der nächsten Zeile gelöscht

                          edit
                          cool
                          Screenshot_20231026-175109_Firefox.jpg

                          wird auch im Querformat nicht breiter

                          SKB 1 Reply Last reply Reply Quote 0
                          • SKB
                            SKB Developer Most Active @Homoran last edited by

                            @homoran Gibt bei den nachfolgenden Versionen ja die neuen Boxen. Da klappt das 😉

                            Wechselt das Icon gar nicht, wenn die Batterie lädt oder entlädt?

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @SKB last edited by

                              @skb sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

                              Wechselt das Icon gar nicht, wenn die Batterie lädt oder entlädt?

                              richtig!

                              bleibt das Standardicon.
                              beim Netzbezug klappt es bei mir, dort allerdings ohne Animation

                              hab auch schon andere Browser versucht

                              SKB 1 Reply Last reply Reply Quote 0
                              • SKB
                                SKB Developer Most Active @Homoran last edited by

                                @homoran kannst du den kompletten CSS Stapel einmal einstellen?

                                Homoran 1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @SKB last edited by Homoran

                                  /* CSS funktioniert mit Klassen, die mit einem . (Punkt starten) und dann einen Namen besitzen, der frei wählbar ist. Das !important am Ende ist wichtig, damit die Farbe erneut zugewiesen werden kann */
                                  
                                  .test path {
                                  
                                      stroke: linear-gradient(to bottom-right, #ff0000 , #0000ff) !important; 
                                  
                                  }
                                  
                                   
                                  /* Text in fett */
                                  
                                  .text_bold {
                                  
                                      font-weight: bold !important;
                                  
                                  }
                                  
                                  
                                  /* Text in gruen */
                                  
                                  .text_gruen {
                                  
                                      fill: #64c60f !important;
                                  
                                  }
                                  
                                   
                                  /* Text sonnengelb */
                                  .text_gelb {
                                  
                                      fill: #ffb400 !important;
                                      font-weight: bold !important;
                                      font-family: serif !important;
                                  }
                                  
                                  
                                  /* Text in rot */
                                  
                                  .text_rot {
                                  
                                      fill: #c20b33 !important;
                                  }
                                  
                                  /* BACKGROUND */
                                  
                                  /* Background Heizung */
                                  
                                  .bg_heat {
                                      fill: #FFCc99 !important;
                                  }
                                  
                                  
                                  /* RAHMEN */
                                  
                                  /* Rahmen in rot */
                                  
                                  .border_rot {
                                  
                                      stroke: #c20b33 !important;
                                  
                                  }
                                   
                                  /* Rahmen in gruen */
                                  
                                  .border_gruen {
                                  
                                      stroke: #64c60f !important;
                                  
                                  }
                                  
                                  
                                  
                                  
                                  
                                  
                                  
                                  /* Icons */
                                  
                                  /* Icons von https://icon-sets.iconify.design/
                                  
                                  Icon suchen, anklicken, etwas weiter unten auf SVG klicken, dort den Text von "d" kopieren und im Beispiel einfuegen
                                  
                                  */
                                  
                                  
                                  .icon_rot path {
                                  
                                  /* oberhalb das Path ist wichtig */
                                  
                                  fill: #c20b33 !important;
                                  
                                  }
                                  
                                  .icon_gruen path {
                                  
                                  /* oberhalb das Path ist wichtig */
                                  
                                  fill: #64c60f !important;
                                  /* stroke: #000000 !important; */
                                  
                                  }
                                  
                                  
                                  .icon_tuerkis path {
                                  
                                  /* oberhalb das Path ist wichtig */
                                  
                                  fill: #2cccd7 !important;
                                  stroke: #000000 !important;
                                  
                                  }
                                  
                                   
                                  
                                  .grid_pos path {
                                  
                                      d: path("m5.18 5.45l-1.78-.9L4.66 2h8.47l1.27 2.55l-1.78.89L11.9 4h-6l-.72 1.45M15.5 8H11l-.8-3H7.6l-.79 3H2.28L1 10.55l1.79.89L3.5 10h10.78l.72 1.45l1.79-.89L15.5 8m-.83 14H12.6l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H3.13L6 11h2.09l-.36 1.35L8.9 14.1l1.16-1.75L9.71 11h2.07l2.89 11M8.3 15l-.9-1.35l-1.18 4.48L8.3 15m3.28 3.12l-1.18-4.48L9.5 15l2.08 3.12M23 16l-4-4v3h-4v2h4v3l4-4Z");
                                  
                                  fill: #c20b33 !important;
                                  
                                  }
                                  
                                   
                                  
                                  .grid_neg path {
                                  
                                      d: path("m11.39 5.45l-1.78-.9L10.87 2h8.47l1.27 2.55l-1.78.89L18.11 4h-6l-.72 1.45M21.73 8H17.2l-.79-3h-2.6L13 8H8.5l-1.29 2.55l1.79.89l.73-1.44H20.5l.71 1.45l1.79-.89L21.73 8m-.85 14h-2.07l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H9.34l2.89-11h2.07l-.36 1.35l1.17 1.75l1.16-1.75l-.35-1.35H18l2.88 11m-6.38-7l-.89-1.35l-1.18 4.48L14.5 15m3.29 3.12l-1.18-4.48l-.9 1.36l2.08 3.12M9 16l-4-4v3H1v2h4v3l4-4Z");
                                  
                                  fill: #64c60f !important;
                                  transform: translate(24px, 0px) scale(-1,1)!important;
                                  /*transform: rotateY(180deg) !important;*/
                                  
                                  }
                                  
                                  
                                  
                                  /* Icons for Battery */
                                  
                                  :root {
                                  
                                  --empty: 'M16,20H8V6H16M16.67,4H15V2H9V4H7.33A1.33,1.33 0 0,0 6,5.33V20.67C6,21.4 6.6,22 7.33,22H16.67A1.33,1.33 0 0,0 18,20.67V5.33C18,4.6 17.4,4 16.67,4Z';
                                  
                                  --low: 'M16 20H8V6H16M16.67 4H15V2H9V4H7.33C6.6 4 6 4.6 6 5.33V20.67C6 21.4 6.6 22 7.33 22H16.67C17.41 22 18 21.41 18 20.67V5.33C18 4.6 17.4 4 16.67 4M15 16H9V19H15V16';
                                  
                                  --medium: 'M16 20H8V6H16M16.67 4H15V2H9V4H7.33C6.6 4 6 4.6 6 5.33V20.67C6 21.4 6.6 22 7.33 22H16.67C17.41 22 18 21.41 18 20.67V5.33C18 4.6 17.4 4 16.67 4M15 16H9V19H15V16M15 11.5H9V14.5H15V11.5Z';
                                  
                                  --high: 'M16 20H8V6H16M16.67 4H15V2H9V4H7.33C6.6 4 6 4.6 6 5.33V20.67C6 21.4 6.6 22 7.33 22H16.67C17.41 22 18 21.41 18 20.67V5.33C18 4.6 17.4 4 16.67 4M15 16H9V19H15V16M15 7H9V10H15V7M15 11.5H9V14.5H15V11.5Z';
                                  
                                  }
                                  
                                  .battery_charge path {
                                  
                                  animation: charge 4s linear infinite;
                                  
                                  }
                                  
                                  .battery_discharge path {
                                  
                                  animation: discharge 4s linear infinite;
                                  
                                  }
                                  
                                  /* Animation for battery */
                                  
                                  @keyframes charge {
                                  
                                  0% {
                                  
                                  d: path(var(--empty));
                                  
                                  }
                                  
                                  25% {
                                  
                                  d: path(var(--low));
                                  
                                  }
                                  
                                  50% {
                                  
                                  d: path(var(--medium));
                                  
                                  }
                                  
                                  75% {
                                  
                                  d: path(var(--high));
                                  
                                  }
                                  
                                  }
                                  
                                  @keyframes discharge {
                                  
                                  0% {
                                  
                                  d: path(var(--high));
                                  
                                  }
                                  
                                  25% {
                                  
                                  d: path(var(--medium));
                                  
                                  }
                                  
                                  50% {
                                  
                                  d: path(var(--low));
                                  
                                  }
                                  
                                  75% {
                                  
                                  d: path(var(--empty));
                                  
                                  }
                                  
                                  }
                                  
                                  SKB 1 Reply Last reply Reply Quote 0
                                  • SKB
                                    SKB Developer Most Active @Homoran last edited by

                                    @homoran Zeile 132, 133, 134 weg und nur eine } (zu).

                                    Da ist bisschen Wirrwarr drin 🙂

                                    Homoran 2 Replies Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @SKB last edited by Homoran

                                      @skb sagte in Test Adapter Energiefluss-erweitert v0.0.x GitHub/Latest:

                                      Zeile 132, 133, 134 weg und nur eine } (zu).

                                      ääääh, wo kommen die denn her. momang!

                                      EDIT:
                                      Da is nix

                                      Screenshot_20231026-181932_Firefox.jpg

                                      und wo ist die } zuviel?

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        MCU @Homoran last edited by MCU

                                        @homoran Das muss */ sein
                                        fd013fc7-f1f0-4e09-a9b8-37512836cad6-image.png
                                        2x funktioniert nicht
                                        e5aeab2a-aae8-4262-84c8-0d51f2ff00ae-image.png

                                        SKB Homoran 2 Replies Last reply Reply Quote 1
                                        • SKB
                                          SKB Developer Most Active @MCU last edited by SKB

                                          @mcu korrekt. /* auf - */ zu

                                          Zeile 131 am Ende.

                                          1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @MCU last edited by

                                            @mcu wir reden vom auskommentieren

                                            /* weg damit */ ??

                                            SKB M 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            802
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            vis
                                            180
                                            4132
                                            3960627
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo