Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Adapter] Sonoff- Tasmota

    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

    [Adapter] Sonoff- Tasmota

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

      Ich habe auch lange gkämpft :evil:

      Nun funktioniert es schon seit 2Monaten stabil!

      Die genaue Ursache kenne ich auch nicht.

      Was habe ich gemacht?

      <list type="decimal">3. WLAN des Asus Router AC87 gegen eine UNIFI AP getauscht

      1. Powerlineadapter aus dem Netzwerk entfernt

      2. alle Sonoffs (und auch Wemos D1) mit leerem File überschrieben und neu geflasht

      3. Ping Adapter installiert und Module anpingen

      Aus meinen vorangegangenen Versuchen habe ich festgestellt, dass (mit dem AC87) wenn man das Wlan auf legacy umstellt alles prima läuft!

      Leider kann ich nicht sagen was wirklich den Erfolg gebracht hat - aber es ist zumindest ein Ansatzpunkt für weitere Versuche.

      1 Reply Last reply Reply Quote 0
      • T
        TimmBo last edited by

        Ich hab auch auch einiges versucht zum Schluss hatte ich 3 Wochen Ruhe nach dem ich ein leeres file geflasht habe und dann tasmota.

        Jetzt seit 3 Tagen aus dem Nichts heraus sind die sonoff wieder auf ner anderen Party. Langsam habe ich keinen Rat mehr. Es macht bei mir auch keinen Unterschied ob ich die dlan_wlan Adapter stecken habe oder nicht.

        @ schnubi

        Was bedeutet das wlan auf legacy stellen?

        1 Reply Last reply Reply Quote 0
        • A
          Arnulf last edited by

          ich hatte auch mal Probleme.

          So alle 2 Tage konnte ich mit Alexa dir Lampen nicht mehr erreichen

          Seit dem ( ca 1 Monat) keine probleme mehr.

          Ich habe an meiner Konfiguration nichts geändert.

          Habe auch Sonoffs, die ich nicht extra mit Leerdatei geflasht habe. (würde mich auch wirklich wundern)

          Sehr seltsam

          1 Reply Last reply Reply Quote 0
          • B
            Balu0127 last edited by

            @Bluefox

            Hab jetzt mal alles upgedatet (Iobroker Admin, Rednode, JS u. Sonoff)

            Hab auch Ping und Neustart des Sonoff.0 Adapter, alle Geräte, gelöscht neu geflasht.

            Brachte auch keinen Erfolg.

            Hab die 5.10,5.11,5.12 von arendst u. reloxx13 Probiert.

            Hab immer wieder die Fehler.

            sonoff.0	2018-03-06 11:27:04.239	info	Client [Wohnzimmer-Licht] connected
            sonoff.0	2018-03-06 11:27:03.816	info	Client [Wohnzimmer-Licht] closed
            sonoff.0	2018-03-06 11:27:03.815	error	Closed because of error
            sonoff.0	2018-03-06 11:27:03.814	warn	Client error [Wohnzimmer-Licht]: Error: This socket is closed
            sonoff.0	2018-03-06 11:27:03.813	warn	Client error [Wohnzimmer-Licht]: Error: read ECONNRESET
            sonoff.0	2018-03-06 11:17:14.704	info	Client [Stehlampe] connected
            sonoff.0	2018-03-06 10:59:46.114	info	Client [Coutch] closed
            sonoff.0	2018-03-06 10:59:46.113	error	Closed because of error
            sonoff.0	2018-03-06 10:59:46.112	warn	Client error [Coutch]: Error: This socket is closed
            sonoff.0	2018-03-06 10:59:46.111	warn	Client error [Coutch]: Error: read ECONNRESET
            sonoff.0	2018-03-06 10:59:33.099	info	Client [Coutch] connected
            sonoff.0	2018-03-06 10:55:52.976	info	Client [Nachttischlampe] connected
            sonoff.0	2018-03-06 10:48:06.728	info	Client [Nachttischlampe] connected
            sonoff.0	2018-03-06 10:12:48.232	info	Client [Stehlampe] connected
            sonoff.0	2018-03-06 10:09:46.997	info	Client [Stehlampe] connected
            sonoff.0	2018-03-06 08:46:30.615	info	Client [Stehlampe] connected
            sonoff.0	2018-03-06 08:05:32.297	info	Client [Coutch] closed
            sonoff.0	2018-03-06 08:05:32.297	error	Closed because of error
            sonoff.0	2018-03-06 08:05:32.296	warn	Client error [Coutch]: Error: This socket is closed
            sonoff.0	2018-03-06 08:05:32.295	warn	Client error [Coutch]: Error: read ECONNRESET
            sonoff.0	2018-03-06 08:05:32.191	info	Client [Coutch] connected
            sonoff.0	2018-03-06 07:40:35.976	info	Client [Nachttischlampe] closed
            sonoff.0	2018-03-06 07:40:35.976	error	Closed because of error
            sonoff.0	2018-03-06 07:40:35.974	warn	Client error [Nachttischlampe]: Error: This socket is closed
            sonoff.0	2018-03-06 07:40:35.973	warn	Client error [Nachttischlampe]: Error: read ECONNRESET
            sonoff.0	2018-03-06 07:40:28.581	info	Client [Nachttischlampe] connected
            sonoff.0	2018-03-06 06:43:40.168	info	Client [Vorraum] connected
            sonoff.0	2018-03-06 06:29:13.229	info	Client [Coutch] connected
            sonoff.0	2018-03-06 06:26:09.417	info	Client [Coutch] closed
            sonoff.0	2018-03-06 06:26:09.416	error	Closed because of error
            

            Hab das Gefühl es kann uns nur Bluefox annähernd erklären was da los ist?

            Wer kann ihn Kontaktieren?

            1 Reply Last reply Reply Quote 0
            • B
              Balu0127 last edited by

              So jetzt gibt der Sonoff Adapter komplett den geist auf!

              ` > sonoff.0 2018-03-07 09:36:24.007 info Client [Coutch] connected

              sonoff.0 2018-03-07 09:36:22.856 info Client [Versuch] connected

              sonoff.0 2018-03-07 09:36:12.329 info Client [Vorraum] connected

              sonoff.0 2018-03-07 09:36:12.025 info Client [Nachttischlampe] connected

              sonoff.0 2018-03-07 09:36:11.865 info Client [Jungs] connected

              sonoff.0 2018-03-07 09:36:11.828 info Client [Küche-Licht] connected

              sonoff.0 2018-03-07 09:36:11.828 info Client [Stehlampe] connected

              sonoff.0 2018-03-07 09:36:11.827 info Client [Esstisch] connected

              sonoff.0 2018-03-07 09:36:11.749 info Client [Wohnzimmer-Licht] connected

              sonoff.0 2018-03-07 09:36:03.423 info Starting MQTT authenticated server on port 1883

              sonoff.0 2018-03-07 09:36:03.352 info starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.sonoff, node: v6.13.0

              host.ioBroker-Pi 2018-03-07 09:36:01.286 info instance system.adapter.sonoff.0 started with pid 30726

              host.ioBroker-Pi 2018-03-07 09:36:00.223 info Restart adapter system.adapter.sonoff.0 because enabled

              host.ioBroker-Pi 2018-03-07 09:36:00.223 error instance system.adapter.sonoff.0 terminated with code 156 ()

              sonoff.0 2018-03-07 09:36:00.083 info Scheduled restart.

              sonoff.0 2018-03-07 09:35:23.697 info Client [Versuch] connected

              sonoff.0 2018-03-07 09:35:23.093 info Client [Coutch] connected

              sonoff.0 2018-03-07 09:35:12.198 info Client [Vorraum] connected

              sonoff.0 2018-03-07 09:35:12.150 info Client [Jungs] connected

              sonoff.0 2018-03-07 09:35:12.049 info Client [Nachttischlampe] connected

              sonoff.0 2018-03-07 09:35:12.048 info Client [Stehlampe] connected

              sonoff.0 2018-03-07 09:35:12.016 info Client [Küche-Licht] connected

              sonoff.0 2018-03-07 09:35:12.015 info Client [Esstisch] connected

              sonoff.0 2018-03-07 09:35:12.015 info Client [Wohnzimmer-Licht] connected

              sonoff.0 2018-03-07 09:35:03.322 info Starting MQTT authenticated server on port 1883

              sonoff.0 2018-03-07 09:35:03.268 info starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.sonoff, node: v6.13.0

              host.ioBroker-Pi 2018-03-07 09:35:01.198 info instance system.adapter.sonoff.0 started with pid 30680

              host.ioBroker-Pi 2018-03-07 09:35:00.170 info Restart adapter system.adapter.sonoff.0 because enabled

              host.ioBroker-Pi 2018-03-07 09:35:00.170 error instance system.adapter.sonoff.0 terminated with code 156 () `

              Hat jemand eine LÖSUNG für das Problem?

              1 Reply Last reply Reply Quote 0
              • A
                Arnulf last edited by

                ich vermute hier eher, dass es von einem zyklischen Restart des Adapters kommt.

                Ich meine, dass ich das auch bekommen habe, als ich Adapter per Cron restarten wollte.

                Schau auch mal hier:

                http://forum.iobroker.net/search.php?ke … bmit=Suche

                1 Reply Last reply Reply Quote 0
                • Schubi
                  Schubi last edited by

                  @TimmBo:

                  Der Legacy modus ist für uralt Geräte gedacht. Er sollte im allgemeinen auch nicht verwendet werden, da sich die Geschwindigkeit erheblich reduziert.

                  Nicht alle AP´s ermöglichen diese Einstellung!

                  Ich würde es auch begrüßen, wenn Bluefox mal seine Meinung zu dem Thema abgiebt.

                  1 Reply Last reply Reply Quote 0
                  • B
                    Balu0127 last edited by

                    Hallo

                    Den Code 156 hab ich jetzt wegbekommen, hab den Sonoff Adapter entfernt und wieder hinzugefügt und den Port geändert.

                    Hab aber trotzdem immer noch die Fehler.

                    onoff.0	2018-03-07 11:35:53.278	info	Client [Coutch] connected
                    web.0	2018-03-07 11:34:58.653	info	2018-03-07T10:34:58.652Z Connected system.user.admin
                    sonoff.0	2018-03-07 11:33:29.199	info	Client [Stehlampe] connected
                    web.0	2018-03-07 11:31:47.046	info	2018-03-07T10:31:47.046Z Connected system.user.admin
                    web.0	2018-03-07 11:31:02.717	info	2018-03-07T10:31:02.717Z Connected system.user.admin
                    web.0	2018-03-07 11:30:14.803	info	2018-03-07T10:30:14.803Z Connected system.user.admin
                    web.0	2018-03-07 11:29:58.565	info	2018-03-07T10:29:58.564Z Connected system.user.admin
                    web.0	2018-03-07 11:29:29.789	info	2018-03-07T10:29:29.788Z Connected system.user.admin
                    web.0	2018-03-07 11:28:14.201	info	2018-03-07T10:28:14.200Z Connected system.user.admin
                    sonoff.0	2018-03-07 11:11:33.071	info	Client [Nachttischlampe] connected
                    sonoff.0	2018-03-07 11:11:28.858	info	Client [Coutch] connected
                    sonoff.0	2018-03-07 11:11:27.326	warn	Client error [Coutch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:27.326	warn	Client error [Coutch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:27.325	warn	Client error [Coutch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:27.325	warn	Client error [Coutch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:27.324	warn	Client error [Coutch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:27.324	warn	Client error [Coutch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:27.323	info	Client [Coutch] closed
                    sonoff.0	2018-03-07 11:11:21.076	info	Client [Versuch] connected
                    sonoff.0	2018-03-07 11:11:20.961	info	Client [Wohnzimmer-Licht] connected
                    sonoff.0	2018-03-07 11:11:20.154	info	Client [Esstisch] connected
                    sonoff.0	2018-03-07 11:11:18.911	warn	Client error [Esstisch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.911	warn	Client error [Esstisch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.910	warn	Client error [Esstisch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.909	warn	Client error [Esstisch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.908	warn	Client error [Esstisch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.907	warn	Client error [Esstisch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.906	info	Client [Esstisch] closed
                    sonoff.0	2018-03-07 11:11:18.110	warn	Client error [Versuch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.109	warn	Client error [Versuch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.109	warn	Client error [Versuch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.109	warn	Client error [Versuch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.108	warn	Client error [Versuch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.107	warn	Client error [Versuch]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.106	info	Client [Versuch] closed
                    sonoff.0	2018-03-07 11:11:18.044	warn	Client error [Wohnzimmer-Licht]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.043	warn	Client error [Wohnzimmer-Licht]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.043	warn	Client error [Wohnzimmer-Licht]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.042	warn	Client error [Wohnzimmer-Licht]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.041	warn	Client error [Wohnzimmer-Licht]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.041	warn	Client error [Wohnzimmer-Licht]: Error: This socket has been ended by the other party
                    sonoff.0	2018-03-07 11:11:18.039	info	Client [Wohnzimmer-Licht] closed
                    sonoff.0	2018-03-07 11:10:43.660	info	Client [Stehlampe] connected
                    

                    Hab auch eine Pn an Bluefox geschrieben.

                    Gibt es solche Probleme in der Pro auch?

                    Bin am überlegen bei der nächsten Aktion auch die Pro zu kaufen?

                    1 Reply Last reply Reply Quote 0
                    • M
                      Master77 last edited by

                      Hallo zusammen

                      Ich habe zwar zur Zeit nur zwei Sonoff Basic in Betrieb.

                      Diese machen aber keinerlei Probleme.

                      Benutze die pro Cloud und es wurde die Tasmota Version 5.11 geflasht.

                      Gruß Markus

                      1 Reply Last reply Reply Quote 0
                      • Bluefox
                        Bluefox last edited by

                        @Master77:

                        Hallo zusammen

                        Ich habe zwar zur Zeit nur zwei Sonoff Basic in Betrieb.

                        Diese machen aber keinerlei Probleme.

                        Benutze die pro Cloud und es wurde die Tasmota Version 5.11 geflasht.

                        Gruß Markus `
                        Wie seid ihr auf Idee gekommen, dass es mit Cloud was zu tun hat?

                        Gegenseite schließt die Verbindung:

                        This socket has been ended by the other party

                        Was sagt wireshark?

                        1 Reply Last reply Reply Quote 0
                        • M
                          Master77 last edited by

                          Hi Bluefox

                          Ich wollte damit eigentlich nur die voran gegangene Frage

                          beantworten.

                          Es wurde ja gefragt ob es mit der pro Cloud Probleme gibt.

                          Gruß Markus

                          1 Reply Last reply Reply Quote 0
                          • B
                            Balu0127 last edited by

                            Hallo Bluefox

                            Was meinst du mit Wireshark?

                            Hab zwar das Programm auf dem PC aber was willst du wissen?

                            Bitte für Anfänger.

                            1 Reply Last reply Reply Quote 0
                            • T
                              TimmBo last edited by

                              Bei mir ist grad einer ausgestiegen.

                              Log Sonoff:

                              ! 13:44:48 MQT: tele/sonoff/STATE = {"Time":"2018.03.07 13:44:48","Uptime":"3 00:05:29","Vcc":3.510,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":62,"APMac":"AC:22:05:54:82:E1"}}
                              ! 13:44:48 MQT: tele/sonoff/SENSOR = {"Time":"2018.03.07 13:44:48","SI7021":{"Temperature":20.1,"Humidity":46.7},"TempUnit":"C"}
                              ! 13:48:42 MQT: Verbindungsversuch…
                              ! 13:48:47 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                              ! 13:48:58 MQT: Verbindungsversuch...
                              ! 13:49:03 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                              ! 13:49:14 MQT: Verbindungsversuch...
                              ! 13:49:19 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                              ! 13:49:30 MQT: Verbindungsversuch...
                              ! 13:49:30 MQT: verbunden
                              ! 13:49:30 MQT: tele/sonoff/LWT = online (beibehalten)
                              ! 13:49:30 MQT: cmnd/sonoff/POWER =
                              ! 13:50:02 MQT: tele/sonoff/STATE = {"Time":"2018.03.07 13:50:02","Uptime":"3 00:10:29","Vcc":3.510,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":62,"APMac":"AC:22:05:54:82:E1"}}
                              ! 13:50:02 MQT: tele/sonoff/SENSOR = {"Time":"2018.03.07 13:50:02","SI7021":{"Temperature":19.9,"Humidity":47.0},"TempUnit":"C"}

                              Log IO Broker:

                              ! sonoff.0 2018-03-07 13:49:37.517 warn Client error [Disco]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 13:49:37.517 warn Client error [Disco]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 13:49:37.516 warn Client error [Disco]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 13:49:37.516 warn Client error [Disco]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 13:49:37.516 warn Client error [Disco]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 13:49:37.516 warn Client error [Disco]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 13:49:37.516 info Client [Disco] closed
                              ! sonoff.0 2018-03-07 13:49:30.891 info Client [Disco] connected
                              ! sonoff.0 2018-03-07 13:49:10.954 info Client [Musik_Wohnzimmer] connected
                              ! sonoff.0 2018-03-07 13:49:10.209 info Client [Musik_Wohnzimmer] closed
                              ! sonoff.0 2018-03-07 13:49:10.209 error Closed because of error
                              ! sonoff.0 2018-03-07 13:49:10.208 warn Client error [Musik_Wohnzimmer]: Error: This socket is closed
                              ! sonoff.0 2018-03-07 13:49:10.207 warn Client error [Musik_Wohnzimmer]: Error: read ECONNRESET

                              Hatte Wireshark laufen aber keinen Plan was ich da raussuchen soll/kann. Habe ich eben das erste mal benutzt muss mich da noch einlesen.

                              Edit:

                              Noch einer

                              Log Sonoff:

                              ! 14:11:16 MQT: Attempting connection…
                              ! 14:11:16 MQT: Connect failed to 192.168.0.108:1883, rc -2. Retry in 10 sec
                              ! 14:11:27 MQT: Attempting connection...
                              ! 14:11:27 MQT: Connected
                              ! 14:11:27 MQT: tele/sonoff/LWT = Online (retained)
                              ! 14:11:32 RSL: cmnd/sonoff/POWER =
                              ! 14:11:58 MQT: Attempting connection...
                              ! 14:12:04 MQT: Connect failed to 192.168.0.108:1883, rc -2. Retry in 10 sec
                              ! 14:12:15 MQT: Attempting connection...
                              ! 14:12:20 MQT: Connected
                              ! 14:12:20 MQT: tele/sonoff/LWT = Online (retained)
                              ! 14:12:20 MQT: cmnd/sonoff/POWER =
                              ! 14:14:49 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T14:14:49","Uptime":"1T19:20:14","Vcc":3.242,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":100,"APMac":"AC:22:05:54:82:E1"}}
                              ! 14:14:49 MQT: tele/sonoff/SENSOR = {"Time":"2018-03-07T14:14:49","SI7021":{"Temperature":16.8,"Humidity":58.3},"TempUnit":"C"}

                              Log IO Broker

                              ! sonoff.0 2018-03-07 14:12:32.004 warn Client error [Musik_Wohnzimmer]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 14:12:32.003 warn Client error [Musik_Wohnzimmer]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 14:12:32.003 warn Client error [Musik_Wohnzimmer]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 14:12:32.002 warn Client error [Musik_Wohnzimmer]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 14:12:32.000 warn Client error [Musik_Wohnzimmer]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 14:12:31.997 warn Client error [Musik_Wohnzimmer]: Error: This socket has been ended by the other party
                              ! sonoff.0 2018-03-07 14:12:31.989 info Client [Musik_Wohnzimmer] closed
                              ! sonoff.0 2018-03-07 14:12:21.419 info Client [Musik_Wohnzimmer] connected
                              ! host.raspberrypi 2018-03-07 14:12:10.351 info instance system.adapter.weatherunderground.0 terminated with code 0 (OK)

                              Wenn ich "Musik Wohnzimmer" übern Broker ansteuer kommt im Sonoff :

                              ! 14:25:21 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T14:25:21","Uptime":"1T19:30:14","Vcc":3.242,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":100,"APMac":"AC:22:05:54:82:E1"}}
                              ! 14:25:21 MQT: tele/sonoff/SENSOR = {"Time":"2018-03-07T14:25:21","SI7021":{"Temperature":16.8,"Humidity":58.4},"TempUnit":"C"}
                              ! 14:30:38 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T14:30:38","Uptime":"1T19:35:14","Vcc":3.243,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":100,"APMac":"AC:22:05:54:82:E1"}}
                              ! 14:30:38 MQT: tele/sonoff/SENSOR = {"Time":"2018-03-07T14:30:38","SI7021":{"Temperature":16.8,"Humidity":58.5},"TempUnit":"C"}

                              im Broker einfach nur :

                              ! sonoff.0 2018-03-07 14:29:55.305 warn Client "Musik_Wohnzimmer" not connected

                              1 Reply Last reply Reply Quote 0
                              • T
                                TimmBo last edited by

                                Zur besseren Übersicht habe ich einen neuern Post gemacht.

                                Es ist wieder einer bzw. zwei kurz nacheinander ausgefallen.

                                Log Broker von Adapter neustart bis zum Ausfall:

                                ! x
                                ! host.raspberrypi 2018-03-07 15:15:04.837 info instance system.adapter.dwd.0 terminated with code 0 (OK)
                                ! host.raspberrypi 2018-03-07 15:15:00.051 info instance system.adapter.dwd.0 started with pid 7189
                                ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:41.419 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:41.419 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:41.419 info Client [Radio_Kueche] closed
                                ! sonoff.0 2018-03-07 15:13:40.821 warn Client error [Disco]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:40.819 warn Client error [Disco]: Error: This socket has been ended by the other party
                                ! sonoff.0 2018-03-07 15:13:40.818 info Client [Disco] closed
                                ! sonoff.0 2018-03-07 15:12:36.970 info Client [Disco] connected
                                ! sonoff.0 2018-03-07 15:12:31.739 info Client [Radio_Kueche] connected
                                ! host.raspberrypi 2018-03-07 15:12:09.371 info instance system.adapter.weatherunderground.0 terminated with code 0 (OK)
                                ! host.raspberrypi 2018-03-07 15:12:00.061 info instance system.adapter.weatherunderground.0 started with pid 7021
                                ! host.raspberrypi 2018-03-07 15:10:05.096 info instance system.adapter.dwd.0 terminated with code 0 (OK)
                                ! host.raspberrypi 2018-03-07 15:10:00.075 info instance system.adapter.dwd.0 started with pid 6921
                                ! sonoff.0 2018-03-07 15:09:24.570 info Client [Wandlampe_Kueche] connected
                                ! sonoff.0 2018-03-07 15:09:24.541 info Client [Radio_Bruno] connected
                                ! sonoff.0 2018-03-07 15:09:24.446 info Client [Radio_Kueche] connected
                                ! sonoff.0 2018-03-07 15:09:24.372 info Client [Disco] connected
                                ! sonoff.0 2018-03-07 15:09:24.214 info Client [Musik_Wohnzimmer] connected
                                ! sonoff.0 2018-03-07 15:09:24.106 info Client [Wandlampe_Wohnzimmer] connected
                                ! sonoff.0 2018-03-07 15:09:24.105 info Client [Toaster] connected
                                ! sonoff.0 2018-03-07 15:09:24.015 info Client [Terrasse_mitte] connected
                                ! sonoff.0 2018-03-07 15:09:17.768 info Starting MQTT authenticated server on port 1883
                                ! sonoff.0 2018-03-07 15:09:17.629 info starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.sonoff, node: v6.11.5
                                ! host.raspberrypi 2018-03-07 15:09:14.820 info instance system.adapter.sonoff.0 started with pid 6866
                                ! host.raspberrypi 2018-03-07 15:09:12.440 info instance system.adapter.sonoff.0 terminated with code 0 (OK)
                                ! sonoff.0 2018-03-07 15:09:12.373 info Client [Disco] closed
                                ! host.raspberrypi 2018-03-07 15:09:12.282 info stopInstance system.adapter.sonoff.0 killing pid 6856
                                ! host.raspberrypi 2018-03-07 15:09:12.282 info stopInstance system.adapter.sonoff.0

                                Log Sonoff " Disco" selber Zeitraum

                                ! 15:09:24 MQT: verbunden
                                ! 15:09:24 MQT: tele/sonoff/LWT = online (beibehalten)
                                ! 15:09:24 MQT: cmnd/sonoff/POWER =
                                ! 15:09:55 MQT: Verbindungsversuch…
                                ! 15:10:00 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:10:11 MQT: Verbindungsversuch...
                                ! 15:10:16 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:10:16 RSL: tele/sonoff/STATE = {"Time":"2018.03.07 15:10:16","Uptime":"3 01:30:29","Vcc":3.510,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":64,"APMac":"AC:22:05:54:82:E1"}}
                                ! 15:10:16 RSL: tele/sonoff/SENSOR = {"Time":"2018.03.07 15:10:16","SI7021":{"Temperature":20.1,"Humidity":48.1},"TempUnit":"C"}
                                ! 15:10:27 MQT: Verbindungsversuch...
                                ! 15:10:32 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:10:43 MQT: Verbindungsversuch...
                                ! 15:10:48 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:10:58 MQT: Verbindungsversuch...
                                ! 15:11:03 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:11:14 MQT: Verbindungsversuch...
                                ! 15:11:19 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:11:30 MQT: Verbindungsversuch...
                                ! 15:11:35 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:11:48 MQT: Verbindungsversuch...
                                ! 15:11:53 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:11:54 DNS: initialisiert
                                ! 15:12:04 MQT: Verbindungsversuch...
                                ! 15:12:09 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:12:20 MQT: Verbindungsversuch...
                                ! 15:12:25 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                ! 15:12:36 MQT: Verbindungsversuch...
                                ! 15:12:36 MQT: verbunden
                                ! 15:12:36 MQT: tele/sonoff/LWT = online (beibehalten)
                                ! 15:12:36 MQT: cmnd/sonoff/POWER =
                                ! 15:15:55 MQT: tele/sonoff/STATE = {"Time":"2018.03.07 15:15:55","Uptime":"3 01:35:29","Vcc":3.510,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":64,"APMac":"AC:22:05:54:82:E1"}}
                                ! 15:15:55 MQT: tele/sonoff/SENSOR = {"Time":"2018.03.07 15:15:55","SI7021":{"Temperature":20.1,"Humidity":48.3},"TempUnit":"C"}

                                Log vom anderen:

                                ! 15:12:18 MQT: Connect failed to 192.168.0.108:1883, rc -2. Retry in 10 sec
                                ! 15:12:29 MQT: Attempting connection…
                                ! 15:12:31 MQT: Connected
                                ! 15:12:31 MQT: tele/sonoff/LWT = Online (retained)
                                ! 15:12:31 MQT: cmnd/sonoff/POWER =
                                ! 15:15:25 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T15:15:25","Uptime":"1T22:20:14","Vcc":3.186,"POWER":"ON","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":82,"APMac":"AC:22:05:54:82:E1"}}
                                ! 15:20:25 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T15:20:25","Uptime":"1T22:25:14","Vcc":3.186,"POWER":"ON","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":82,"APMac":"AC:22:05:54:82:E1"}}

                                Wireshark habe ich auch an gehabt.

                                Wie kann nen log hier Posten?

                                Nachtrag : Fast 24 Stunden ohne Ausfall. Hab nix geändert :shock:

                                1 Reply Last reply Reply Quote 0
                                • Bluefox
                                  Bluefox last edited by

                                  @TimmBo:

                                  Zur besseren Übersicht habe ich einen neuern Post gemacht.

                                  Es ist wieder einer bzw. zwei kurz nacheinander ausgefallen.

                                  Log Broker von Adapter neustart bis zum Ausfall:

                                  ! x
                                  ! host.raspberrypi 2018-03-07 15:15:04.837 info instance system.adapter.dwd.0 terminated with code 0 (OK)
                                  ! host.raspberrypi 2018-03-07 15:15:00.051 info instance system.adapter.dwd.0 started with pid 7189
                                  ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:41.420 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:41.419 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:41.419 warn Client error [Radio_Kueche]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:41.419 info Client [Radio_Kueche] closed
                                  ! sonoff.0 2018-03-07 15:13:40.821 warn Client error [Disco]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:40.820 warn Client error [Disco]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:40.819 warn Client error [Disco]: Error: This socket has been ended by the other party
                                  ! sonoff.0 2018-03-07 15:13:40.818 info Client [Disco] closed
                                  ! sonoff.0 2018-03-07 15:12:36.970 info Client [Disco] connected
                                  ! sonoff.0 2018-03-07 15:12:31.739 info Client [Radio_Kueche] connected
                                  ! host.raspberrypi 2018-03-07 15:12:09.371 info instance system.adapter.weatherunderground.0 terminated with code 0 (OK)
                                  ! host.raspberrypi 2018-03-07 15:12:00.061 info instance system.adapter.weatherunderground.0 started with pid 7021
                                  ! host.raspberrypi 2018-03-07 15:10:05.096 info instance system.adapter.dwd.0 terminated with code 0 (OK)
                                  ! host.raspberrypi 2018-03-07 15:10:00.075 info instance system.adapter.dwd.0 started with pid 6921
                                  ! sonoff.0 2018-03-07 15:09:24.570 info Client [Wandlampe_Kueche] connected
                                  ! sonoff.0 2018-03-07 15:09:24.541 info Client [Radio_Bruno] connected
                                  ! sonoff.0 2018-03-07 15:09:24.446 info Client [Radio_Kueche] connected
                                  ! sonoff.0 2018-03-07 15:09:24.372 info Client [Disco] connected
                                  ! sonoff.0 2018-03-07 15:09:24.214 info Client [Musik_Wohnzimmer] connected
                                  ! sonoff.0 2018-03-07 15:09:24.106 info Client [Wandlampe_Wohnzimmer] connected
                                  ! sonoff.0 2018-03-07 15:09:24.105 info Client [Toaster] connected
                                  ! sonoff.0 2018-03-07 15:09:24.015 info Client [Terrasse_mitte] connected
                                  ! sonoff.0 2018-03-07 15:09:17.768 info Starting MQTT authenticated server on port 1883
                                  ! sonoff.0 2018-03-07 15:09:17.629 info starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.sonoff, node: v6.11.5
                                  ! host.raspberrypi 2018-03-07 15:09:14.820 info instance system.adapter.sonoff.0 started with pid 6866
                                  ! host.raspberrypi 2018-03-07 15:09:12.440 info instance system.adapter.sonoff.0 terminated with code 0 (OK)
                                  ! sonoff.0 2018-03-07 15:09:12.373 info Client [Disco] closed
                                  ! host.raspberrypi 2018-03-07 15:09:12.282 info stopInstance system.adapter.sonoff.0 killing pid 6856
                                  ! host.raspberrypi 2018-03-07 15:09:12.282 info stopInstance system.adapter.sonoff.0

                                  Log Sonoff " Disco" selber Zeitraum

                                  ! 15:09:24 MQT: verbunden
                                  ! 15:09:24 MQT: tele/sonoff/LWT = online (beibehalten)
                                  ! 15:09:24 MQT: cmnd/sonoff/POWER =
                                  ! 15:09:55 MQT: Verbindungsversuch…
                                  ! 15:10:00 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:10:11 MQT: Verbindungsversuch...
                                  ! 15:10:16 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:10:16 RSL: tele/sonoff/STATE = {"Time":"2018.03.07 15:10:16","Uptime":"3 01:30:29","Vcc":3.510,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":64,"APMac":"AC:22:05:54:82:E1"}}
                                  ! 15:10:16 RSL: tele/sonoff/SENSOR = {"Time":"2018.03.07 15:10:16","SI7021":{"Temperature":20.1,"Humidity":48.1},"TempUnit":"C"}
                                  ! 15:10:27 MQT: Verbindungsversuch...
                                  ! 15:10:32 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:10:43 MQT: Verbindungsversuch...
                                  ! 15:10:48 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:10:58 MQT: Verbindungsversuch...
                                  ! 15:11:03 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:11:14 MQT: Verbindungsversuch...
                                  ! 15:11:19 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:11:30 MQT: Verbindungsversuch...
                                  ! 15:11:35 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:11:48 MQT: Verbindungsversuch...
                                  ! 15:11:53 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:11:54 DNS: initialisiert
                                  ! 15:12:04 MQT: Verbindungsversuch...
                                  ! 15:12:09 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:12:20 MQT: Verbindungsversuch...
                                  ! 15:12:25 MQT: Verbindung fehlgeschlagen aufgrund von 192.168.0.108:1883, rc -2. Wiederversuch in 10 sek
                                  ! 15:12:36 MQT: Verbindungsversuch...
                                  ! 15:12:36 MQT: verbunden
                                  ! 15:12:36 MQT: tele/sonoff/LWT = online (beibehalten)
                                  ! 15:12:36 MQT: cmnd/sonoff/POWER =
                                  ! 15:15:55 MQT: tele/sonoff/STATE = {"Time":"2018.03.07 15:15:55","Uptime":"3 01:35:29","Vcc":3.510,"POWER":"OFF","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":64,"APMac":"AC:22:05:54:82:E1"}}
                                  ! 15:15:55 MQT: tele/sonoff/SENSOR = {"Time":"2018.03.07 15:15:55","SI7021":{"Temperature":20.1,"Humidity":48.3},"TempUnit":"C"}

                                  Log vom anderen:

                                  ! 15:12:18 MQT: Connect failed to 192.168.0.108:1883, rc -2. Retry in 10 sec
                                  ! 15:12:29 MQT: Attempting connection…
                                  ! 15:12:31 MQT: Connected
                                  ! 15:12:31 MQT: tele/sonoff/LWT = Online (retained)
                                  ! 15:12:31 MQT: cmnd/sonoff/POWER =
                                  ! 15:15:25 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T15:15:25","Uptime":"1T22:20:14","Vcc":3.186,"POWER":"ON","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":82,"APMac":"AC:22:05:54:82:E1"}}
                                  ! 15:20:25 MQT: tele/sonoff/STATE = {"Time":"2018-03-07T15:20:25","Uptime":"1T22:25:14","Vcc":3.186,"POWER":"ON","Wifi":{"AP":1,"SSId":"BND_EINSATZ#24","RSSI":82,"APMac":"AC:22:05:54:82:E1"}}

                                  Wireshark habe ich auch an gehabt.

                                  Wie kann nen log hier Posten?

                                  Nachtrag : Fast 24 Stunden ohne Ausfall. Hab nix geändert :shock: `
                                  Ich empfehle dir WiFi Qualität zu prüfen. Liegt oft daran.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    klassisch Most Active last edited by

                                    Bei mir gibt es derzeit ein reproduzierbares Szenario und ich habe in github einen report eingestellt.

                                    Bei mir lief alles über Wochen stabil. Dann habe ich einen Sonoff an ein remote location, die über Internet und VPN verbunden ist, verbracht. Hier kommt es durch die tägliche Zwangstrennung ab und an zu Verbindungsabbrüchen, die dann zu dem "connection ended by other party" Fehlerzustand führen. Ich habe die entsprechenden Logs eingesammelt und dukumentiert.

                                    Wenn die Verbindung zum Sonoff abbricht und wieder zurückkehrt und dabei der "connection ended by other party" Fehler aufgetreten ist, empfängt der ioBroker-Adapter den sonoff status weiter, sendet aber anscheinend nicht mehr an den Sonoff.

                                    Der Sonoff ist weiterhin ueber seine Website ansprechbar, ansteuerbar, auslesbar. Alles ganz normal.

                                    Wird dann der Sonoff-adapter im ioBroker neu gestartet, läuft alles wieder, auch das Senden vom ioBroker zum Sonoff.

                                    Aus meiner naiven Sicht könnte eine einfache mitigation des Problems so aussehen:

                                    Wenn ioBroker Adapter im Fehlermode nach einen "connection ended by other party" Fehler steckt, sollte er versuchen, die Verbindung wieder aufbauen. Spätestens aber wenn er vom Sonoff ein (zyklisch gesendetes) Datum empfängt. Dann hätte man im schlimmsten Fall eine Totzeit in der Größenordnung der zyklischen update rate des Sonoffs, die der user ja im Sonoff einstellen kann.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      TimmBo last edited by

                                      @ Bluefox

                                      Habe ich auch immer im Blick. Der eine sonoff "Musik Wohnzimmer" liegt neben dem Router. Habe die wlan Kanäle gewechselt. Ohne eine Änderung.

                                      Das Problem das "klassisch" festgestellt hat kann ich bestätigen. Die Sonoff sind nur über den Broker nicht mehr zu erreichen wenn die auf ner anderen Party sind.

                                      Übers web interface geht's ohne Probleme. Auch wenn ich die über die IP schalten lasse. Starte ich den Sonoff Adapter neu ohne was am sonoff zu machen ist alles wieder gut.

                                      Zur Zeit lasse ich den Adapter 1x in der Stunde neu starten. Ist aber auch keine ideale Lösung da die sonoff teilweise nach 5 min wieder weg sind.

                                      Wenn der Adapter sich wieder automatisch mit den Sonoff verbinden könnte wäre das mit Sicherheit eine bessere Lösung.

                                      Schönen Samstag Gruß Timm

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        consul58 last edited by

                                        @Bluefox:

                                        Ich empfehle dir WiFi Qualität zu prüfen. Liegt oft daran. `

                                        Das ist mir zu einfach. Wieso kann der Adapter nicht selbständig auf Erreichbarkeit prüfen und daraus seine Schlüsse ziehen? Oder soll er das schon können, aber es funktioniert nicht?

                                        Btw.: In FHEM laufen die Sonoffs ohne diese Probleme.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          Balu0127 last edited by

                                          @bluefox

                                          Am Wlan kann es auch nicht liegen.

                                          Der Pi hängt bei mir am Kabel.

                                          Wlan Signal meist bei 75 - 100%

                                          Und warum sollten die im Sonweb dan funktionieren?

                                          Hab mal Probiert die Aktualisierung bei Sonweb runter zu setzen auf 2 Sek. hatte dan im Sonweb immer wieder Fehler. Entweder Sonweb ist da noch nicht ausgereift oder die Sonoff können die schnellen Zugriffe nicht Verarbeiten.

                                          Könnte ja auch sein das die Zugriffe bei Iobroker teils zu oft kommen und der Sonoff dan nicht mehr alles abarbeiten kann.

                                          Kann das sein?

                                          1 Reply Last reply Reply Quote 0
                                          • modmax
                                            modmax last edited by

                                            Diese Fehler "Error: This socket has been ended by the other party" hatte ich auch eine zeitlang täglich im ioBroker log,

                                            jedoch seit 2 Wochen nicht mehr.

                                            Die Lösung war aber etwas kompliziert, da ich meine "eigene" Firmware geflasht habe.

                                            1.) Die Sonoffs per FTDI komoplett löschen mit einem leeren 1MB-bin-File.

                                            2.) Die letzte Firmware aus dem Tasmota-Repo geholt (war die 5.12d).

                                            3.) Diese Firmware dann in Atom.io/Platform.io eingebunden und die Datei

                                            user_config.h auf meine Bedürfnisse angepat (insbes. die Webeinstellungen).

                                            USE_DOMOTICZ und USE_HOME_ASSISTANT dabei auch auskommentiert.

                                            MY_LANGUAGE auf de_DE gesetzt, damit alles schön in deutsch daher kommt.

                                            In der IDE kann man nun alles bauen lassen.

                                            Oder eben einzeln per FTDI flashen.

                                            Seitdem hatte ich keinen einzigen dieser Fehler mehr.

                                            Wichtig ist eben nur Tasmota 5.12.d zu verwenden oder aber die 5.11.1,

                                            da es mit der 5.12.0 Probleme damit gibt.

                                            Jedoch kann es dann noch zu Problemen kommen, daß der Sonoff-Adapter irgendwann mal

                                            die Verbindung verliert und dann wieder kein Connect hinbekommt, obwohl der Sonoff selber

                                            noch fleißig schickt.

                                            Im Datenpunkt "sonoff.0.info.connection" kann man auch sehen, welche Sonoffs verbunden sind.

                                            Meist verbinden sich die Sonoffs dann gleich wieder; aber selten eben auch nicht mehr,

                                            obwohl der Sonoff noch funktioniert.

                                            Dafür habe ich dann ein Skript geschrieben, was mir dann einen Neustart ermöglich.

                                            Bei mir sieht das zwar anders aus als üblich, da ich virtuelle Geräte verwenden (Forum-Suche nach virtualDevice),

                                            aber vielleicht hilft das ja etwas.

                                            ! ```
                                            `// definierte Hosts
                                            var devices = [];
                                            devices.push({hostName: 'sonoff1', virtual: 'virtualDevice.Schalter.Sonoff1'});
                                            ! // bei Änderung an connections auslösen
                                            on('sonoff.0.info.connection', function (obj) {
                                            var connections = obj.state.val;
                                            ! // prüfe ob jedes Gerät noch verbunden ist
                                            for (var i = 0; i < devices.length; i++) {

                                                var hostName  = devices[i].hostName;
                                                var virtual = devices[i].virtual;
                                            

                                            ! if (connections.indexOf(hostName) == -1) {
                                            // CASE: Gerät nicht verbunden
                                            ! var delays = getStateDelayed(virtual+'.reconnects');
                                            if ((delays.length === 0) && (getState(virtual+'.reconnects').val === 0)) {
                                            // setze reconnects in 3 Minuten auf 1
                                            setStateDelayed(virtual+'.reconnects', 1, true, 180000);
                                            }
                                            } else {
                                            // CASE: Gerät verbunden

                                                    // lösche laufende schedules und counter
                                                    clearStateDelayed(virtual+'.reconnects')
                                                    setStateIfChanged(virtual+'.reconnects', 0, true);
                                                }
                                            }
                                            

                                            })

                                            ! // bei Skriptstart
                                            for (var i = 0; i < devices.length; i++) {
                                            var virtualDevice = devices[i].virtual;
                                            log('Create subscription for ' + virtualDevice, 'debug');
                                            ! on({id: 'javascript.'+instance+'.'+virtualDevice+'.reconnects', change: 'gt'}, function (obj) {
                                            var virtual = obj.id.replace('javascript.0.','').replace('.reconnects','');
                                            var reconnects = obj.state.val;

                                                if (reconnects === 4) {
                                                    // nach 3 erfolglosen Reconnect-Versuchen Push-Over-Nachrichten versenden
                                                    sendTo('pushover', {
                                                        title :  'Sonoff-Neustart erfolglos',
                                                        message: virtual
                                                    });
                                            
                                                } else if (reconnects < 4) {
                                                    log('Neustart von Sonoff: ' + virtual);
                                                    var ip = getState(virtual+'.ipAddress').val;
                                            

                                            ! request('http://'+ip+'/cm?cmnd=Restart 1', function(error, response, body) {
                                            if (error || response.statusCode !== 200) {
                                            log('Fehler beim Neustart von Sonoff: ' + virtual + ' (StatusCode = ' + response.statusCode + ')');
                                            }
                                            // erhöhe reconnects in 3 Minuten um 1
                                            setStateDelayed(virtual+'.reconnects', reconnects+1, true, 180000);
                                            });
                                            }
                                            });
                                            }`
                                            ! Aber im Grunde sehe ich das Problem beim Sonoff-Adaper, da er Meldungen vom Sonoff machmal anscheinend verschluckt.
                                            ! Genauso wie das "alive" auch nicht wirklich funktioniert.[/i][/i][/i]

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            606
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            75
                                            720
                                            198735
                                            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