Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. PV Überschuss zum betreiben von 1 Heizstab

    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

    PV Überschuss zum betreiben von 1 Heizstab

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Spidermike @Spidermike last edited by

      @spidermike

      bekomme jetzt viele Log
      was ist das denn jetzt

      hs100.0
      	2022-07-24 17:01:03.310	warn	This object will not be created in future versions. Please report this to the developer.
      hs100.0
      	2022-07-24 17:01:03.309	warn	Object 192_168_178_94.ledState is invalid: Default value has to be type "string" but received type "boolean"
      hs100.0
      	2022-07-24 17:01:03.306	warn	This object will not be created in future versions. Please report this to the developer.
      hs100.0
      	2022-07-24 17:01:03.304	warn	Object 192_168_178_94.last_update is invalid: Default value has to be type "string" but received type "number"
      hs100.0
      	2022-07-24 17:01:03.198	info	Start with IP : 192.168.178.94
      hs100.0
      	2022-07-24 17:01:03.196	warn	This object will not be created in future versions. Please report this to the developer.
      hs100.0
      	2022-07-24 17:01:03.196	warn	Object 192_168_178_38.last_update is invalid: Default value has to be type "string" but received type "number"
      hs100.0
      	2022-07-24 17:01:02.934	info	Start with IP : 192.168.178.38
      hs100.0
      	2022-07-24 17:01:02.931	warn	This object will not be created in future versions. Please report this to the developer.
      hs100.0
      	2022-07-24 17:01:02.931	warn	Object 192_168_178_95.ledState is invalid: Default value has to be type "string" but received type "boolean"
      hs100.0
      	2022-07-24 17:01:02.929	warn	This object will not be created in future versions. Please report this to the developer.
      hs100.0
      	2022-07-24 17:01:02.928	warn	Object 192_168_178_95.last_update is invalid: Default value has to be type "string" but received type "number"
      hs100.0
      	2022-07-24 17:01:02.870	info	Start with IP : 192.168.178.95
      hs100.0
      	2022-07-24 17:01:02.820	info	starting. Version 2.0.7 in /opt/iobroker/node_modules/iobroker.hs100, node: v14.20.0, js-controller: 4.0.23
      host.raspberrypi4-iobroker
      	2022-07-24 17:01:00.691	info	instance system.adapter.hs100.0 started with pid 14007
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.614	info	Restart adapter system.adapter.hs100.0 because enabled
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.614	error	instance system.adapter.hs100.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.613	error	Caught by controller[7]: }
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.613	error	Caught by controller[7]: port: 9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.613	error	Caught by controller[7]: address: '192.168.178.94',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.613	error	Caught by controller[7]: syscall: 'connect',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.613	error	Caught by controller[7]: code: 'ECONNREFUSED',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.613	error	Caught by controller[7]: errno: -111,
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.612	error	Caught by controller[7]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.612	error	Caught by controller[7]: [3kw Heizstab] device.send() Error: connect ECONNREFUSED 192.168.178.94:9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.612	error	Caught by controller[6]: }
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.612	error	Caught by controller[6]: port: 9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.612	error	Caught by controller[6]: address: '192.168.178.94',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.612	error	Caught by controller[6]: syscall: 'connect',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.611	error	Caught by controller[6]: code: 'ECONNREFUSED',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.611	error	Caught by controller[6]: errno: -111,
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.611	error	Caught by controller[6]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.611	error	Caught by controller[6]: TCP 192.168.178.94:9999 Error: connect ECONNREFUSED 192.168.178.94:9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.611	error	Caught by controller[5]: }
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.611	error	Caught by controller[5]: port: 9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.610	error	Caught by controller[5]: address: '192.168.178.94',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.610	error	Caught by controller[5]: syscall: 'connect',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.610	error	Caught by controller[5]: code: 'ECONNREFUSED',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.610	error	Caught by controller[5]: errno: -111,
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.610	error	Caught by controller[5]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.610	error	Caught by controller[5]: [3kw Heizstab] device.send() Error: connect ECONNREFUSED 192.168.178.94:9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.609	error	Caught by controller[4]: }
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.609	error	Caught by controller[4]: port: 9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.609	error	Caught by controller[4]: address: '192.168.178.94',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.609	error	Caught by controller[4]: syscall: 'connect',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.609	error	Caught by controller[4]: code: 'ECONNREFUSED',
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.609	error	Caught by controller[4]: errno: -111,
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.608	error	Caught by controller[4]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.608	error	Caught by controller[4]: TCP 192.168.178.94:9999 Error: connect ECONNREFUSED 192.168.178.94:9999
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.608	error	Caught by controller[3]: at processTimers (internal/timers.js:500:7)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.608	error	Caught by controller[3]: at listOnTimeout (internal/timers.js:557:17)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.608	error	Caught by controller[3]: at Timeout._onTimeout (/opt/iobroker/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:59:36)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.607	error	Caught by controller[3]: 192.168.178.94:9999 {"system":{"get_sysinfo":{}}}
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.607	error	Caught by controller[3]: TCP 192.168.178.94:9999 Error: TCP Timeout after 10000ms
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.607	error	Caught by controller[2]: at processTimers (internal/timers.js:500:7)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.607	error	Caught by controller[2]: at listOnTimeout (internal/timers.js:557:17)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.607	error	Caught by controller[2]: at Timeout._onTimeout (/opt/iobroker/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:59:36)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.607	error	Caught by controller[2]: 192.168.178.94:9999 {"emeter":{"get_realtime":{}}}
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.606	error	Caught by controller[2]: [3kw Heizstab] device.send() Error: TCP Timeout after 10000ms
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.606	error	Caught by controller[1]: at processTimers (internal/timers.js:500:7)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.606	error	Caught by controller[1]: at listOnTimeout (internal/timers.js:557:17)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.606	error	Caught by controller[1]: at Timeout._onTimeout (/opt/iobroker/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:59:36)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.606	error	Caught by controller[1]: 192.168.178.94:9999 {"emeter":{"get_realtime":{}}}
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.606	error	Caught by controller[1]: TCP 192.168.178.94:9999 Error: TCP Timeout after 10000ms
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.605	error	Caught by controller[0]: at processTimers (internal/timers.js:500:7)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.605	error	Caught by controller[0]: at listOnTimeout (internal/timers.js:557:17)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.605	error	Caught by controller[0]: at Timeout._onTimeout (/opt/iobroker/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:59:36)
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.605	error	Caught by controller[0]: 192.168.178.94:9999 {"system":{"get_sysinfo":{}}}
      host.raspberrypi4-iobroker
      	2022-07-24 17:00:30.604	error	Caught by controller[0]: TCP 192.168.178.94:9999 Error: TCP Timeout after 10000ms
      hs100.0
      	2022-07-24 17:00:30.132	error	Exception-Code: ECONNREFUSED: connect ECONNREFUSED 192.168.178.94:9999
      hs100.0
      	2022-07-24 17:00:30.131	error	Error: connect ECONNREFUSED 192.168.178.94:9999 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
      hs100.0
      	2022-07-24 17:00:30.131	error	unhandled promise rejection: connect ECONNREFUSED 192.168.178.94:9999
      hs100.0
      	2022-07-24 17:00:30.130	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 was not handled with .catch().
      hs100.0
      	2022-07-24 17:00:30.049	error	Exception-Code: ECONNREFUSED: connect ECONNREFUSED 192.168.178.94:9999
      hs100.0
      	2022-07-24 17:00:30.048	error	Error: connect ECONNREFUSED 192.168.178.94:9999 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
      hs100.0
      	2022-07-24 17:00:30.047	error	unhandled promise rejection: connect ECONNREFUSED 192.168.178.94:9999
      hs100.0
      	2022-07-24 17:00:30.046	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 was not handled with .catch().
      hs100.0
      	2022-07-24 17:00:30.033	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
      hs100.0
      	2022-07-24 17:00:30.031	info	terminating
      hs100.0
      	2022-07-24 17:00:30.030	info	cleaned everything up...
      hs100.0
      	2022-07-24 17:00:30.027	warn	Info Message setDevice: Error: TCP Timeout after 10000ms192.168.178.94:9999 {"system":{"get_sysinfo":{}}} at Timeout._onTimeout (/opt/iobroker/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:59:36) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7)
      hs100.0
      	2022-07-24 17:00:30.020	error	TCP Timeout after 10000ms192.168.178.94:9999 {"emeter":{"get_realtime":{}}}
      hs100.0
      	2022-07-24 17:00:30.020	error	Error: TCP Timeout after 10000ms192.168.178.94:9999 {"emeter":{"get_realtime":{}}} at Timeout._onTimeout (/opt/iobroker/node_modules/tplink-smarthome-api/lib/network/tcp-socket.js:59:36) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7)
      hs100.0
      	2022-07-24 17:00:30.019	error	unhandled promise rejection: TCP Timeout after 10000ms192.168.178.94:9999 {"emeter":{"get_realtime":{}}}
      hs100.0
      	2022-07-24 17:00:30.018	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 was not handled with .catch().
      
      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Spidermike last edited by

        @spidermike was soll das mit dem bisherigen Thema zu tun haben?

        S D 2 Replies Last reply Reply Quote 0
        • D
          Diamand2k22 @Homoran last edited by Diamand2k22

          @paul53

          finde das Blockly Klasse und habe es erfolgreich bei mir im Einsatz.
          Konstellation ist 2x E-Heizkörper die je nach Heizstufe zuschalten.
          Beide Geräte haben eine Leistung von 800W. Somit funktioniert das ganze recht gut.
          Frage von meiner Seite wäre, wie kann ich das Skript um eine 3. Heizstufe aufbohren, aber wenn der Verbraucher dann nicht 800 W hat sondern 2400W hat ?

          Grüße

          Diamand

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

            @diamand2k22 sagte: wie kann ich das Skript um eine 3. Heizstufe aufbohren, aber wenn der Verbraucher dann nicht 800 W hat sondern 2400W hat ?

            Wieso nur 3 Stufen?

            1. Stufe: Stab 1
            2. Stufe: Stab 1+2
            3. Stufe: Stab 3
            4. Stufe: Stab 3 + 1
            5. Stufe: Stab 3 + 1 + 2

            Jede Stufe unterscheidet sich um 800 W, also ist es wohl nicht so schwierig, das anzupassen?

            D 1 Reply Last reply Reply Quote 1
            • D
              Diamand2k22 @paul53 last edited by

              @paul53 said in PV Überschuss zum betreiben von 1 Heizstab:

              @diamand2k22 sagte: wie kann ich das Skript um eine 3. Heizstufe aufbohren, aber wenn der Verbraucher dann nicht 800 W hat sondern 2400W hat ?

              Wieso nur 3 Stufen?

              1. Stufe: Stab 1
              2. Stufe: Stab 1+2
              3. Stufe: Stab 3
              4. Stufe: Stab 3 + 1
              5. Stufe: Stab 3 + 1 + 2

              Jede Stufe unterscheidet sich um 800 W, also ist es wohl nicht so schwierig, das anzupassen?

              ok, dann ist Stufe 5 die 2400W

              2022-09-26 17_39_57-javascript - pi4b.png

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

                @diamand2k22 sagte: dann ist Stufe 5 die 2400W

                Nein, Stufe 5 ist 4000 W.

                Bild_2022-09-26_174939947.png

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

                  @paul53

                  stimmt, zu blöd zum Rechnen 😄 ....

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Diamand2k22 @Diamand2k22 last edited by

                    @paul53

                    aber ich glaube wir haben aneinander vorbei geredet 😄 der Ablauf soll folgender sein:

                    Überschuss >800W -> Heistab 1 ein (Heistufe 1)
                    Danach Überschuss wieder > 800W Heizstab 2 ein (Heizstufe 2)
                    danach Überschuss >2400 W Poolheizung ein (Heizstufe 3)

                    aber Heizstab 1 und Heizstab 2 sollen weiterlaufen und der Pool schaltet sich bei Überschuss >2400W noch dazu.
                    Wenn der Überschuss wieder weniger wird, schaltet sich alles in umgekehrter Reihenfolge wieder ab.

                    paul53 2 Replies Last reply Reply Quote 0
                    • paul53
                      paul53 @Diamand2k22 last edited by paul53

                      @diamand2k22 sagte: aber Heizstab 1 und Heizstab 2 sollen weiterlaufen

                      Dann gibt es einen Leistungssprung von 2400 W (1600 auf 4000 W), der nicht mehr per einfacher Stufenschaltung zu behandeln ist.

                      Übrigens: Wie hast Du mit zwei 800 W Heizungen 3 Stufen gebildet?

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

                        @diamand2k22 sagte:

                        Überschuss >800W -> Heistab 1 ein (Heistufe 1)
                        Danach Überschuss wieder > 800W Heizstab 2 ein (Heizstufe 2)
                        danach Überschuss >2400 W Poolheizung ein (Heizstufe 3)

                        Bild_2022-09-26_192646505.png

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

                          @paul53

                          hier mal das aktuelle Blockly

                          9f46b0f6-e667-4b8a-9c72-8a43ae9bd99c-image.png

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

                            @diamand2k22 sagte: das aktuelle Blockly

                            Das funktioniert so nicht. Ändere bei Skriptstart die Ermittlung der Leistungsstufe so wie hier gezeigt.

                            Außerdem wird, wenn die Leistungsstufe 2 erreicht ist, ein höherer Grenzwert (-2400) für weiteres Hochschalten benötigt.

                            Bild_2022-09-26_201146441.png

                            Wozu dienen cntEin und cntAus, die nirgends ausgewertet werden?

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

                              @paul53

                              ich habe es wie von dir beschrieben angepasst.

                              8b07024c-7948-4d50-bda2-4bc742e9bb3a-image.png

                              cnt werden ausgewertet, siehe Markierung!

                              jetzt habe ich noch das Thema mit der Leistungsstufe 2400W.
                              Muss ich mal sehen wie ich das hin bekomm...

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

                                @diamand2k22 sagte: Thema mit der Leistungsstufe 2400W.
                                Muss ich mal sehen wie ich das hin bekomm...

                                Wie gezeigt.

                                @diamand2k22 sagte in PV Überschuss zum betreiben von 1 Heizstab:

                                cnt werden ausgewertet, siehe Markierung!

                                Ach ja, das dient zur Verzögerung (Anpassung an das Verhalten des Smartmeters).

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

                                  @paul53

                                  danke das funktioniert!

                                  2fc0be58-b5d5-488c-979d-b0fae63f2b60-image.png

                                  Wie müsste ich das Blockly noch anpassen, wenn die Leistungsstufe 3 nochmal eine E-Heizung mit 600W sind und dann die Leistungsstufe 4 der Pool mit den 2400W.
                                  Wie sieht dann das setzten des Startwertes oben aus?

                                  Danke und
                                  Grüße

                                  paul53 A 2 Replies Last reply Reply Quote 0
                                  • paul53
                                    paul53 @Diamand2k22 last edited by

                                    @diamand2k22 sagte: Leistungsstufe 3 nochmal eine E-Heizung mit 600W sind und dann die Leistungsstufe 4 der Pool mit den 2400W.
                                    Wie sieht dann das setzten des Startwertes oben aus?

                                    Bild_2022-09-27_194640483.png

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

                                      @paul53

                                      Danke dir, jetzt kann ich beliebig viele Verbraucher der Reihe nach dazu oder abschalten am Überschuss orientiert, das ist perfekt.

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

                                        @spidermike Hi Mike, mein Heizstab ist gerade im Anflug. Du hast da genau das schon aufgebaut was ich in den nächsten Wochen schaffen will. Wärst du bitte so nett und wüdest deinen finalen code posten?👏 Das würde mich und bestimmt einige andere um Tage beschleunigen. 🚀
                                        Meine 18.5 kWp Anlage mit 2 SMA WR und einem HM 2 liefert mir schon alles was man an Daten braucht (über Modbus) in den IoB. Das nutze ich in meiner Hausbussteurung (Beckhoff Cx9010) bereits als Anzeigeoption.
                                        Danke für die coole Vorarbeit.
                                        Hodde

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

                                          @hodde sagte: mein Heizstab

                                          Leistung? Eine Stufe oder 3 Stufen?
                                          Messwerte: Bezug - Überschuss (negativ bei Überschuss) oder Bezug und Überschuss getrennt (beide positiv)?

                                          @hodde sagte in PV Überschuss zum betreiben von 1 Heizstab:

                                          code posten?

                                          Hier eine Version für Überschuss (positiv) und 3 mal 1 kW:

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                           <variables>
                                             <variable id="0yCRj*O9QX1#dhgtI-o5">grenzwertEin</variable>
                                             <variable id="k5G]U.qWO4-lc^#fGv0R">grenzwertAus</variable>
                                             <variable type="timeout" id="delayOn">delayOn</variable>
                                             <variable type="timeout" id="delayOff">delayOff</variable>
                                           </variables>
                                           <block type="variables_set" id="zo);,rK_T+=a,mP%]Wg." x="12" y="-62">
                                             <field name="VAR" id="0yCRj*O9QX1#dhgtI-o5">grenzwertEin</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="7%K@1T{#I/I|Lk};-m.l">
                                                 <field name="NUM">1400</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id="I7I-F_#:#J)(O0wL4Aih">
                                                 <field name="VAR" id="k5G]U.qWO4-lc^#fGv0R">grenzwertAus</field>
                                                 <value name="VALUE">
                                                   <block type="math_arithmetic" id="d=rJR%ogfy#lFSNUW#06">
                                                     <field name="OP">MINUS</field>
                                                     <value name="A">
                                                       <shadow type="math_number" id="b+alG`6e;V6Rycn#})9|">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                       <block type="variables_get" id="YHi/ucvd~zJOaY27ffQX">
                                                         <field name="VAR" id="0yCRj*O9QX1#dhgtI-o5">grenzwertEin</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <shadow type="math_number" id="BrB|~i^$qYCE5dc,z}(J">
                                                         <field name="NUM">1200</field>
                                                       </shadow>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="on_ext" id="^=k13pGi`kMjtE||vY.J">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                     <field name="CONDITION">ne</field>
                                                     <field name="ACK_CONDITION"></field>
                                                     <value name="OID0">
                                                       <shadow type="field_oid" id="n:wY~I3GQO$7,0:+.oY=">
                                                         <field name="oid">0_userdata.0.Blockly.PV_Ueberschuss</field>
                                                       </shadow>
                                                     </value>
                                                     <statement name="STATEMENT">
                                                       <block type="controls_if" id="?{[99~rn+X@-!776Gil$">
                                                         <mutation elseif="1"></mutation>
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="d%IZlzT50i(a7nefKk6]">
                                                             <field name="OP">LTE</field>
                                                             <value name="A">
                                                               <block type="on_source" id="f=2?mi+jttya*Yya7dG.">
                                                                 <field name="ATTR">state.val</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="variables_get" id="q{]f~,LPED4*s[Rqru9L">
                                                                 <field name="VAR" id="0yCRj*O9QX1#dhgtI-o5">grenzwertEin</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="timeouts_cleartimeout" id="|#WysqWLOkMz:?pQ*-CZ">
                                                             <field name="NAME">delayOn</field>
                                                           </block>
                                                         </statement>
                                                         <value name="IF1">
                                                           <block type="logic_negate" id="dch2(fx(/ykyn#X-R`9x">
                                                             <value name="BOOL">
                                                               <block type="timeouts_gettimeout" id="xJVx:Mi5[U_(t*bw(Yq$">
                                                                 <field name="NAME">delayOn</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO1">
                                                           <block type="timeouts_settimeout" id="=EI:`22NaF],y?uV^b1B">
                                                             <field name="NAME">delayOn</field>
                                                             <field name="DELAY">10</field>
                                                             <field name="UNIT">min</field>
                                                             <statement name="STATEMENT">
                                                               <block type="controls_if" id="i.:l;5vs?$}^L}N-R(^T">
                                                                 <mutation elseif="2"></mutation>
                                                                 <value name="IF0">
                                                                   <block type="logic_negate" id="R(_3jAG`Md_w[,(|^wr/">
                                                                     <value name="BOOL">
                                                                       <block type="get_value" id="NG3*!?gfl8{k3cP;uW1`">
                                                                         <field name="ATTR">val</field>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch1</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <statement name="DO0">
                                                                   <block type="control" id="qYesRpdij9z`93JQ2~w%">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                     <field name="OID">0_userdata.0.Blockly.Switch1</field>
                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                     <value name="VALUE">
                                                                       <block type="logic_boolean" id="ndh[{X~M{gFV,0p.u?49">
                                                                         <field name="BOOL">TRUE</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </statement>
                                                                 <value name="IF1">
                                                                   <block type="logic_negate" id="r:ak[AbR=(fM06(!MiNq">
                                                                     <value name="BOOL">
                                                                       <block type="get_value" id="Wk#V-l{Fi[!?`_6`Qj_b">
                                                                         <field name="ATTR">val</field>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch2</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <statement name="DO1">
                                                                   <block type="control" id="S(zYFzv^}$AcCYB-`Q`e">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                     <field name="OID">0_userdata.0.Blockly.Switch2</field>
                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                     <value name="VALUE">
                                                                       <block type="logic_boolean" id="r_?O8H8QBzI#o|3X!Q%#">
                                                                         <field name="BOOL">TRUE</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </statement>
                                                                 <value name="IF2">
                                                                   <block type="logic_negate" id="jM5~.3jyY`N/(9mGWI:O">
                                                                     <value name="BOOL">
                                                                       <block type="get_value" id="*guxu@lyFFjMcgr}bL4V">
                                                                         <field name="ATTR">val</field>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch3</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <statement name="DO2">
                                                                   <block type="control" id="XXUi|!^XGmi4z|s+a-/j">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                     <field name="OID">0_userdata.0.Blockly.Switch3</field>
                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                     <value name="VALUE">
                                                                       <block type="logic_boolean" id="J{N8i(G2CBr~GS95U1P5">
                                                                         <field name="BOOL">TRUE</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </statement>
                                                                 <next>
                                                                   <block type="timeouts_wait" id="6xiZ%Mi^9lNm4OO$#|4N">
                                                                     <field name="DELAY">10</field>
                                                                     <field name="UNIT">sec</field>
                                                                     <next>
                                                                       <block type="timeouts_cleartimeout" id="WJ?t^mxt0H|jM5A2zX=v">
                                                                         <field name="NAME">delayOn</field>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </statement>
                                                           </block>
                                                         </statement>
                                                         <next>
                                                           <block type="controls_if" id="U^YFuAk{|bn.*b{Ep;B=">
                                                             <mutation elseif="1"></mutation>
                                                             <value name="IF0">
                                                               <block type="logic_compare" id="GddE`U/xj*}WZ:OC-j_5">
                                                                 <field name="OP">GTE</field>
                                                                 <value name="A">
                                                                   <block type="on_source" id="7p.M-{Jv;0@=Z(ul53Sv">
                                                                     <field name="ATTR">state.val</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <block type="variables_get" id="-t@cJFEI+*?5ME9yFOuZ">
                                                                     <field name="VAR" id="k5G]U.qWO4-lc^#fGv0R">grenzwertAus</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <statement name="DO0">
                                                               <block type="timeouts_cleartimeout" id="_N.QOqsujv5EzF,e1:^`">
                                                                 <field name="NAME">delayOff</field>
                                                               </block>
                                                             </statement>
                                                             <value name="IF1">
                                                               <block type="logic_negate" id="0(6[M7amQ.RY*S4wPkX3">
                                                                 <value name="BOOL">
                                                                   <block type="timeouts_gettimeout" id="pTQJfLPne.dmqq!4K#Q.">
                                                                     <field name="NAME">delayOff</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <statement name="DO1">
                                                               <block type="timeouts_settimeout" id="b(4T]c7c@_xcR0^(IJQ#">
                                                                 <field name="NAME">delayOff</field>
                                                                 <field name="DELAY">10</field>
                                                                 <field name="UNIT">min</field>
                                                                 <statement name="STATEMENT">
                                                                   <block type="controls_if" id="?qIetfb=Y~enZP|MFl{L">
                                                                     <mutation elseif="2"></mutation>
                                                                     <value name="IF0">
                                                                       <block type="get_value" id="Gfj4~P(NGH1)wmLG*_5i">
                                                                         <field name="ATTR">val</field>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch3</field>
                                                                       </block>
                                                                     </value>
                                                                     <statement name="DO0">
                                                                       <block type="control" id="+}7@V!ZV,:MdpdXzwfQM">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch3</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="logic_boolean" id="7]gwCTD%n]L)8L{d}UV;">
                                                                             <field name="BOOL">FALSE</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </statement>
                                                                     <value name="IF1">
                                                                       <block type="get_value" id="c5)cE;gpnkQiW1,[Z~lq">
                                                                         <field name="ATTR">val</field>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch2</field>
                                                                       </block>
                                                                     </value>
                                                                     <statement name="DO1">
                                                                       <block type="control" id="mz4KPZXji[VtQd%D^Q)G">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch2</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="logic_boolean" id="aHm,f%vDaSf!ndb?Gy^;">
                                                                             <field name="BOOL">FALSE</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </statement>
                                                                     <value name="IF2">
                                                                       <block type="get_value" id="qiL4rv;pF_`rhwPjnuos">
                                                                         <field name="ATTR">val</field>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch1</field>
                                                                       </block>
                                                                     </value>
                                                                     <statement name="DO2">
                                                                       <block type="control" id="1)T#:T-4fP9.161U$Ox!">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                         <field name="OID">0_userdata.0.Blockly.Switch1</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="logic_boolean" id="EpsV1@;P~LvEiJ]XiL]D">
                                                                             <field name="BOOL">FALSE</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </statement>
                                                                     <next>
                                                                       <block type="timeouts_wait" id="L_G?=s-{iS/.+04Ro9ln">
                                                                         <field name="DELAY">10</field>
                                                                         <field name="UNIT">sec</field>
                                                                         <next>
                                                                           <block type="timeouts_cleartimeout" id="NWZqJ:pmXfkR7B(bD,.L">
                                                                             <field name="NAME">delayOff</field>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </statement>
                                                               </block>
                                                             </statement>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                          </xml>
                                          

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

                                            @paul53 Gerne gebe ich hier auch etwas zurück. Da ich einen Heizstab habe, der ein eingebautes Thermostat hat, kann es sein dass theoretisch zwar geladen werden könnte, aber der Heizstab intern abgeschaltet hat.
                                            Der Heizstab hat 3 Stufen, die ich über einen RasPI und dessen GPIOs mit einer SSR Platine und dann 3 Leistungs SSRs schalte. Eine Temperaturerfassung mit DS18B20 habe ich gerade angefangen. Ziel ist es dass die Gastherme nur noch dann WW aufbereitet, wenn die PV das nicht schafft. Hier ist mein Skript soweit ich es fertig habe. Kommetare willkommen.
                                            Gruß Hodde
                                            PV_ÜL_HeizSt.txt

                                            T.Spooner 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            549
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            144
                                            12193
                                            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