Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Energieanzeige (kWh) über HTML Tabelle - vis

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Energieanzeige (kWh) über HTML Tabelle - vis

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @Jautze last edited by

      @Jautze mach bitte nochmal ein bild mit offenen INFO ordner

      1 Reply Last reply Reply Quote 0
      • J
        Jautze last edited by

        @liv-in-sky sagte in Energieanzeige (kWh) über HTML Tabelle - vis:

        nie geseh

        Ganz normaler Sonoff TH10.

        Der Sonoff Adapter hat übrigends Version 2.3.3

        liv-in-sky 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Jautze last edited by

          @Jautze steht das auch in INFO.module

          1 Reply Last reply Reply Quote 0
          • J
            Jautze last edited by

            Sonoff2.png

            liv-in-sky 2 Replies Last reply Reply Quote 0
            • liv-in-sky
              liv-in-sky @Jautze last edited by

              @Jautze ist das mit tasmota geflasht oder irgendeinem "abglatsch" davon - ich hatte dir auch ein bild eines pows reingestellt - so sieht der aus - oder gibt es von tasmota eine sonderversion ?

              ich hatte auch mal einen th10 - der hat auch anders wie bei dir ausgesehen - das ist der mit dem tempfühler - aber selbst wenn du th10 im info.module drinstehen würde, mein script kann das so nicht - da musst du dir das script selbst ändern und dann nutzen - brauchst du da hilfe dabei ?

              1 Reply Last reply Reply Quote 0
              • J
                Jautze last edited by

                Hallo,

                sorry ich habe quatsch geschrieben.
                Natürlich ist das ein Sonoff POW. War verwirrt.

                Nein ist ganz normales Tasmota.

                Program Version 5.9.1
                Build Date & Time 2017-11-13T21:43:41

                Vielleicht ist das mittlerweile geändert.

                Nein brauche dabei keine Hilfe. Bei mir läuft es.

                Wie gesagt das einzige Problem das ich habe ist,
                das ich im Vis (ohne Material) keine Bilder angezeigt bekomme. Auch keine Platzhalter dafür.

                Viele Grüße
                Marcel

                1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @Jautze last edited by liv-in-sky

                  @Jautze ist das mit tasmota geflasht oder irgendeinem "abglatsch" davon - ich hatte dir auch ein bild eines pows reingestellt - so sieht der aus

                  ich hatte auch mal einen th10 - der hat auch anders wie bei dir ausgesehen - das ist der mit dem tempfühler

                  ok - du hast es ja selbst erkannt

                  ich habe nur verionen über

                  Image 4.png

                  vielleicht liegt es daran ????

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jautze last edited by

                    Wahrscheinlich.

                    Vielleicht baust du noch eine Abfrage ein. Wenn version <6.5 dann mit Punkt sonst mit Unterstrich.

                    Ist das die Weiterentwicklung des Scrips???

                    Sieht gut aus!

                    Danke und viele Grüße
                    Marcel

                    liv-in-sky 1 Reply Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @Jautze last edited by

                      @Jautze bei mir auch 2.3.3

                      1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @Jautze last edited by

                        @Jautze

                        hast du schon mal überlegt, deine sonoffs upzudaten ?

                        nein, das ist eine eigene sonoff tabelle - schaltbar und direkt aufruf der tasmota web admin seite - leider funktioniert das wohl nicht mit deiner version 😞

                        https://forum.iobroker.net/topic/28953/sonoff-geräte-als-html-tabelle-vis-iqontrol

                        1 Reply Last reply Reply Quote 0
                        • O
                          Oli @liv-in-sky last edited by

                          @liv-in-sky

                          sorry bin leider jetzt erst zu testen gekommen.

                          Ich bekomme folgende Logs angezeigt

                          javascript.0	2020-03-20 17:02:00.299	warn	(790) at Timer.processTimers (timers.js:223:10)
                          javascript.0	2020-03-20 17:02:00.299	warn	(790) at listOnTimeout (timers.js:263:5)
                          javascript.0	2020-03-20 17:02:00.299	warn	(790) at tryOnTimeout (timers.js:300:5)
                          javascript.0	2020-03-20 17:02:00.298	warn	(790) at ontimeout (timers.js:436:11)
                          javascript.0	2020-03-20 17:02:00.298	warn	(790) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:501:7)
                          javascript.0	2020-03-20 17:02:00.298	warn	(790) at /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:543:11
                          javascript.0	2020-03-20 17:02:00.298	warn	(790) at Job.invoke (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:173:10)
                          javascript.0	2020-03-20 17:02:00.298	warn	(790) at Job.nodeSchedule.scheduleJob [as job] (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1319:34)
                          javascript.0	2020-03-20 17:02:00.298	warn	(790) at Object.<anonymous> (script.js.Energiekosten.Test:1235:2)
                          javascript.0	2020-03-20 17:02:00.297	warn	(790) at writeHTML (script.js.Energiekosten.Test:1170:32)
                          javascript.0	2020-03-20 17:02:00.296	warn	(790) getState "javascript.1.Tabelle_EnergieRechnung.Gesamt.MonBeforekWh" not found (3)
                          javascript.0	2020-03-20 17:02:00.296	warn	(790) at Timer.processTimers (timers.js:223:10)
                          javascript.0	2020-03-20 17:02:00.296	warn	(790) at listOnTimeout (timers.js:263:5)
                          javascript.0	2020-03-20 17:02:00.296	warn	(790) at tryOnTimeout (timers.js:300:5)
                          javascript.0	2020-03-20 17:02:00.296	warn	(790) at ontimeout (timers.js:436:11)
                          javascript.0	2020-03-20 17:02:00.295	warn	(790) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:501:7)
                          javascript.0	2020-03-20 17:02:00.295	warn	(790) at /opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:543:11
                          javascript.0	2020-03-20 17:02:00.295	warn	(790) at Job.invoke (/opt/iobroker/node_modules/iobroker.javascript/node_modules/node-schedule/lib/schedule.js:173:10)
                          javascript.0	2020-03-20 17:02:00.295	warn	(790) at Job.nodeSchedule.scheduleJob [as job] (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1319:34)
                          javascript.0	2020-03-20 17:02:00.295	warn	(790) at Object.<anonymous> (script.js.Energiekosten.Test:1235:2)
                          javascript.0	2020-03-20 17:02:00.294	warn	(790) at writeHTML (script.js.Energiekosten.Test:1169:14)
                          javascript.0	2020-03-20 17:02:00.293	warn	(790) getState "javascript.1.Tabelle_EnergieRechnung.Gesamt.MonBeforekWh" not found (3)
                          

                          Folgende Datenpunkte werden angezeigt:


                          c832b1d9-7a3d-4434-b506-643ee4e28df2-image.png

                          liv-in-sky 1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @Oli last edited by

                            @Oli gibt es die möglichkeit fü teamviewer oder anydesk - wäre einfacher für mich, den fehler zu finden

                            O 1 Reply Last reply Reply Quote 0
                            • O
                              Oli @liv-in-sky last edited by

                              @liv-in-sky

                              habe mir anydesk gerade heruntergeladen, habe allerdings noch nie damit gearbeitet

                              liv-in-sky 3 Replies Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @Oli last edited by

                                @Oli musst du nur öffnen und mir im chat die nummer schreiben - dann rufe ich es auf und du musst bestätigen, dass ich "rein" darf

                                1 Reply Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @Oli last edited by

                                  @Oli hab dir im chat geschrieben

                                  1 Reply Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @Oli last edited by

                                    @Oli sorry - war bei deiner konfiguration ein fehler im script - konnte es nachstellen - ist jetzt behoben und im ersten post ist das ausgebesserte script

                                    du kannst deine settings alle kopieren - es ist keine neue variable dazugekommen - mußte nur 2 zeilen ändern

                                    O 1 Reply Last reply Reply Quote 1
                                    • O
                                      Oli @liv-in-sky last edited by

                                      @liv-in-sky

                                      super funktioniert jetzt, vielen Dank für deine geniale Hilfe.

                                      PS:
                                      Du hast beim Json vom Icon-List Widget vergessen den Vormonat mit zu pushen.

                                      mysubText =     `<div>Strom: ${vax3} A</div> 
                                                          <div>Spannung: ${vax4} V</div> 
                                                          <div>Leistung: ${vax5} W</div>
                                                          <div>&ensp; </div>
                                                          <div>Heute: ${vax7} kWh</div> 
                                                          <div>Monat: ${vax8} kWh</div>
                                                          <div>Vormonat: ${vaxMBefore} kWh</div>
                                                          <div>&ensp; </div>
                                                          <div>Heute: ${vax9} €</div> 
                                                          <div>Monat: ${vax10} €</div>
                                                          <div>Vormonat: ${vaxKostenBefore} €</div>
                                                          <div style="display: flex; flex: 1; text-align: left; align-items: center; position: relative;">
                                                          ${vax6}</font></div>`;
                                      
                                      liv-in-sky 1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @Oli last edited by

                                        @Oli eigentlich nicht vergessen - sondern mehr den anwendern überlassen, da es auch immer eine platzfrage ist. z.b. bei deiner einstellung und bei 20 sensoren muss man viel scrollen, um die info zu bekommen

                                        dummerweise ist dieses setting mitten im script und macht das updaten des scripts komplizierter

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          PatrickFro last edited by

                                          Moin zusammen,

                                          auch wir sind aktuell deutlich mehr zuhause als sonst, aber: ecdc6e06-6d59-4cb7-b3b3-1d15195b1b15-image.png kann nicht stimmen. Das Gerät ist ein virtuelles mit 24 KWh Maximalverbrauch. Die Werte sind absolut utopisch, letzten Monat hatten wir deutlich unter 0,10 € und entsprechend weniger KWh:
                                          163ee15e-3546-43f3-8bd2-97bcda6f7422-image.png

                                          Was könnte da schief gelaufen sein?

                                          liv-in-sky 1 Reply Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @PatrickFro last edited by

                                            @PatrickFro

                                            was steht den im virtPow als watt wert ? oder in der tabelle

                                            im javascript odner gibt es einen Tabelle-EnergieRechnungs ordner
                                            wie sieht der den für das gerät aus ?

                                            Image 1.png

                                            P 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            916
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript template
                                            37
                                            696
                                            129907
                                            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