Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. positiver und negativer Wert addieren (PV-Anlage)

    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

    positiver und negativer Wert addieren (PV-Anlage)

    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      OliWit82 last edited by

      Hallo zusammen,
      ich steh aktuell etwas auf dem Schlauch.

      Ich versuche den Hausverbrauch zu errechnen nur hab ich mal einen positiven und mal einen negativen wert.

      Beispeil 1

      1000W kommt vom Dach
      500W wird verkauft
      also rechen ich 1000-500=500 und habe somit den Wert der mein Haus gerade verbraucht.

      Beispeil 2
      1000W kommt vom Dach
      -500W wird dazugekauft (beim Einkauf wird der Wert leider negativ angezeigt)
      also müsste hier die Rechnung 1000+(-)500=1500 sein
      aber da es ein ein negative Wert ist aktuell das Ergebnis 500

      Wie muss ich das im Blockly entsprechend rechnen??

      Vielen Dank

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @OliWit82 last edited by paul53

        @oliwit82 sagte: beim Einkauf wird der Wert leider negativ angezeigt

        Wenn die Einspeisung (Überschuss) positiv und der Netzbezug negativ ist, passt eine Subtraktion Verbrauch = PV - Einspeisung, denn Minus mal Minus ergibt Plus (Netzbezug).

        O 1 Reply Last reply Reply Quote 0
        • O
          OliWit82 @paul53 last edited by

          @paul53

          Danke. Stimmt jetzt gehts auch.
          Keine Ahnung warum ich eben ein falsches Ergebnis hatte.
          Ich stand wohl auf dem Schlauch 😞

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

          Support us

          ioBroker
          Community Adapters
          Donate

          924
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          2
          3
          198
          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