Problem mit Sonoff Basic mit Tasmota: POWER State ändert sich OHNE physische Schaltung (3 von 30 Schalten haben dieses Problem).

  • Hallo zusammen,

    ich hoffe ihr könnt mir in dieser Angelegenheit helfen. Ich habe zu Hause ca. 30 Sonoffs verbaut, die meisten davon Touch, aber auch einige Basic und POW und TH10. Alle Schalter habe ich mit Tasmota geflasht, schon vor einiger Zeit - die aktuellste Version damals war: 5.13.0

    Nachdem die Sonoffs stationär sind, ist natürlich der Wifi-Empfang nicht überall gut und es kommt bei ein paar Schaltern regelmäßig zu MQTT-reconnects. Sollte doch aber nicht so tragisch sein oder?

    Nachdem einige Scripte nicht so funktionieren, wie geplant und sich die Schalter auch beim Schalten verselbstständigen, machbe ich angefangen die POWER-States zu überwachen.

    Simple in einem Java-Script mit Zeilen wie diesen:

    Jetzt ist folgendes auffällig:

    - Manche Schalter feuern ein Status-Change-Event und der Schalter schaltet gar nicht

    - Oft springt der Trigger on(...) 2 mal an, einmal mit einer Änderung auf false und gleich danach wieder auf true bzw. vice versa.

    - Im ioBroker Log sehe ich die Status-Änderung gar nicht

    Spoiler anzeigen

    sonoff.0 2018-09-06 10:18:45.042 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:18:30.005 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:18:20.287 debug stateChange sonoff.0.Licht_Aquarium.Wifi_RSSI: {"val":38,"ack":true,"ts":1536221900270,"q":0,"from":"system.adapter.sonoff.0","lc":1536220684977}

    sonoff.0 2018-09-06 10:18:20.286 debug stateChange sonoff.0.Licht_Aquarium.POWER: {"val":true,"ack":true,"ts":1536221900261,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900261}

    sonoff.0 2018-09-06 10:18:20.284 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Wifi_RSSI {"val":38,"ack":true,"ts":1536221900270,"q":0,"from":"system.adapter.sonoff.0","lc":1536220684977}

    sonoff.0 2018-09-06 10:18:20.283 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.POWER {"val":true,"ack":true,"ts":1536221900261,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900261}

    sonoff.0 2018-09-06 10:18:20.281 debug stateChange sonoff.0.Licht_Aquarium.Vcc: {"val":3.514,"ack":true,"ts":1536221900255,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900255}

    sonoff.0 2018-09-06 10:18:20.280 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Vcc {"val":3.514,"ack":true,"ts":1536221900255,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900255}

    sonoff.0 2018-09-06 10:18:20.258 debug stateChange sonoff.0.Licht_Aquarium.Uptime: {"val":"0T17:19:52","ack":true,"ts":1536221900251,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900251}

    sonoff.0 2018-09-06 10:18:20.258 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Uptime {"val":"0T17:19:52","ack":true,"ts":1536221900251,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900251}

    sonoff.0 2018-09-06 10:18:20.257 debug stateChange sonoff.0.Licht_Aquarium.Time: {"val":"2018-09-06T10:18:18","ack":true,"ts":1536221900246,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900246}

    sonoff.0 2018-09-06 10:18:20.256 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Time {"val":"2018-09-06T10:18:18","ack":true,"ts":1536221900246,"q":0,"from":"system.adapter.sonoff.0","lc":1536221900246}

    sonoff.0 2018-09-06 10:18:20.245 debug [Licht_Aquarium] Received: tele/Licht_Aquarium/STATE = {"Time":"2018-09-06T10:18:18","Uptime":"0T17:19:52","Vcc":3.514,"POWER":"ON","Wifi":{"AP":1,"SSId":"Smart.Alley","RSSI":38,"APMac":"78:11:DC:53:2

    sonoff.0 2018-09-06 10:18:14.914 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:17:59.871 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:17:44.843 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:17:29.811 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:17:14.775 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:16:59.767 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:16:44.733 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:16:29.751 debug stateChange sonoff.0.Licht_Aquarium.POWER: {"val":false,"ack":true,"ts":1536221789743,"q":0,"from":"system.adapter.sonoff.0","lc":1536221613524}

    sonoff.0 2018-09-06 10:16:29.750 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.POWER {"val":false,"ack":true,"ts":1536221789743,"q":0,"from":"system.adapter.sonoff.0","lc":1536221613524}

    sonoff.0 2018-09-06 10:16:29.744 debug [Licht_Aquarium] Received: cmnd/Licht_Aquarium/POWER =

    sonoff.0 2018-09-06 10:16:29.696 debug stateChange sonoff.0.info.connection: {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küche,Mining_POW,Licht_

    sonoff.0 2018-09-06 10:16:29.696 debug redis pmessage io.sonoff.0.* io.sonoff.0.info.connection {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küc

    sonoff.0 2018-09-06 10:16:29.690 info Client [Licht_Aquarium] reconnected. Old secret 1536221613465_3607. New secret 1536221789687_936

    sonoff.0 2018-09-06 10:16:20.455 debug stateChange sonoff.0.info.connection: {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küche,Mining_POW,Licht_

    sonoff.0 2018-09-06 10:16:20.455 debug redis pmessage io.sonoff.0.* io.sonoff.0.info.connection {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küc

    sonoff.0 2018-09-06 10:16:18.784 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:16:03.776 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:15:56.462 debug stateChange sonoff.0.info.connection: {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küche,Mining_POW,Licht_

    sonoff.0 2018-09-06 10:15:56.461 debug redis pmessage io.sonoff.0.* io.sonoff.0.info.connection {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küc

    sonoff.0 2018-09-06 10:15:48.736 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:15:33.715 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:15:18.704 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:15:03.674 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:14:48.637 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:14:33.609 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:14:18.578 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:14:03.552 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:13:58.498 debug stateChange sonoff.0.info.connection: {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küche,Mining_POW,Licht_

    sonoff.0 2018-09-06 10:13:58.497 debug redis pmessage io.sonoff.0.* io.sonoff.0.info.connection {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küc

    sonoff.0 2018-09-06 10:13:48.500 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:13:33.537 debug stateChange sonoff.0.Licht_Aquarium.POWER: {"val":false,"ack":true,"ts":1536221613524,"q":0,"from":"system.adapter.sonoff.0","lc":1536221613524}

    sonoff.0 2018-09-06 10:13:33.537 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.POWER {"val":false,"ack":true,"ts":1536221613524,"q":0,"from":"system.adapter.sonoff.0","lc":1536221613524}

    sonoff.0 2018-09-06 10:13:33.525 debug [Licht_Aquarium] Received: cmnd/Licht_Aquarium/POWER =

    sonoff.0 2018-09-06 10:13:33.477 debug stateChange sonoff.0.info.connection: {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küche,Mining_POW,Licht_

    sonoff.0 2018-09-06 10:13:33.476 debug redis pmessage io.sonoff.0.* io.sonoff.0.info.connection {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küc

    sonoff.0 2018-09-06 10:13:33.471 info Client [Licht_Aquarium] reconnected. Old secret 1536221486064_1722. New secret 1536221613465_3607

    sonoff.0 2018-09-06 10:13:26.304 debug Client [Licht_Aquarium] pingreq

    sonoff.0 2018-09-06 10:13:20.461 debug stateChange sonoff.0.info.connection: {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küche,Mining_POW,Licht_

    sonoff.0 2018-09-06 10:13:20.461 debug redis pmessage io.sonoff.0.* io.sonoff.0.info.connection {"val":"Licht_Vorzimmer_Stiege,Licht_Kochfeld,Licht_Kellerstiege_Oben,Licht_Stiege_Kinderzimmer,Licht_Vorzimmer_Klo,Licht-Badezimmer,Licht_Küc

    sonoff.0 2018-09-06 10:13:16.578 debug stateChange sonoff.0.Licht_Aquarium.Wifi_RSSI: {"val":38,"ack":true,"ts":1536221596570,"q":0,"from":"system.adapter.sonoff.0","lc":1536220684977}

    sonoff.0 2018-09-06 10:13:16.578 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Wifi_RSSI {"val":38,"ack":true,"ts":1536221596570,"q":0,"from":"system.adapter.sonoff.0","lc":1536220684977}

    sonoff.0 2018-09-06 10:13:16.577 debug stateChange sonoff.0.Licht_Aquarium.POWER: {"val":true,"ack":true,"ts":1536221596558,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596558}

    sonoff.0 2018-09-06 10:13:16.577 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.POWER {"val":true,"ack":true,"ts":1536221596558,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596558}

    sonoff.0 2018-09-06 10:13:16.563 debug stateChange sonoff.0.Licht_Aquarium.Vcc: {"val":3.517,"ack":true,"ts":1536221596555,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596555}

    sonoff.0 2018-09-06 10:13:16.562 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Vcc {"val":3.517,"ack":true,"ts":1536221596555,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596555}

    sonoff.0 2018-09-06 10:13:16.557 debug stateChange sonoff.0.Licht_Aquarium.Uptime: {"val":"0T17:14:48","ack":true,"ts":1536221596550,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596550}

    sonoff.0 2018-09-06 10:13:16.557 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Uptime {"val":"0T17:14:48","ack":true,"ts":1536221596550,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596550}

    sonoff.0 2018-09-06 10:13:16.552 debug stateChange sonoff.0.Licht_Aquarium.Time: {"val":"2018-09-06T10:13:14","ack":true,"ts":1536221596546,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596546}

    sonoff.0 2018-09-06 10:13:16.552 debug redis pmessage io.sonoff.0.* io.sonoff.0.Licht_Aquarium.Time {"val":"2018-09-06T10:13:14","ack":true,"ts":1536221596546,"q":0,"from":"system.adapter.sonoff.0","lc":1536221596546}

    sonoff.0 2018-09-06 10:13:16.545 debug [Licht_Aquarium] Received: tele/Licht_Aquarium/STATE = {"Time":"2018-09-06T10:13:14","Uptime":"0T17:14:48","Vcc":3.517,"POWER":"ON","Wifi":{"AP":1,"SSId":"Smart.Alley","RSSI":38,"APMac":"78:11:DC:53:2

    sonoff.0 2018-09-06 10:13:11.215 debug Client [Licht_Aquarium] pingreq

    - Im Log vom Sonoff steht auch nichts aufschlussreiches dazu:

    Spoiler anzeigen

    10:11:24 MQT: tele/Licht_Aquarium/LWT = Online (retained)

    10:11:24 MQT: cmnd/Licht_Aquarium/POWER =

    10:13:14 MQT: tele/Licht_Aquarium/STATE = {"Time":"2018-09-06T10:13:14","Uptime":"0T17:14:48","Vcc":3.517,"POWER":"ON","Wifi":{"AP":1,"SSId":"Smart.Alley","RSSI":38,"APMac":"78:11:DC:53:28:4B"}}

    10:13:31 DNS: Initialized

    10:13:31 MQT: Attempting connection...

    10:13:31 MQT: Connected

    10:13:31 MQT: tele/Licht_Aquarium/LWT = Online (retained)

    10:13:31 MQT: cmnd/Licht_Aquarium/POWER =

    10:16:27 DNS: Initialized

    10:16:28 MQT: Attempting connection...

    10:16:28 MQT: Connected

    10:16:28 MQT: tele/Licht_Aquarium/LWT = Online (retained)

    10:16:28 MQT: cmnd/Licht_Aquarium/POWER =

    10:18:18 MQT: tele/Licht_Aquarium/STATE = {"Time":"2018-09-06T10:18:18","Uptime":"0T17:19:52","Vcc":3.514,"POWER":"ON","Wifi":{"AP":1,"SSId":"Smart.Alley","RSSI":38,"APMac":"78:11:DC:53:28:4B"}}

    - Wenn ich den Schalter über Tasmota schalte, dann sieht das log OK aus: [Licht_Aquarium] Received: stat/Licht_Aquarium/POWER = OFF


    Einen Schalter trifft es besonders oft. Hier ein Auszug aus der Information von Tasmota:

    Spoiler anzeigen

    Program Version 5.13.0

    Build Date & Time 2018-04-29T21:44:16

    Core/SDK Version 2_4_1/2.2.1(cfd48f3)

    Uptime 0T17:25:24

    Flash write Count 12286 at F5000

    Boot Count 6641

    Restart Reason Hardware Watchdog

    Friendly Name 1 Sonoff

    AP1 SSId (RSSI) Smart.Alley (38%)

    Hostname Licht-Aquarium

    IP Address 10.0.0.182

    Gateway 10.0.0.100

    Subnet Mask 255.255.255.0

    DNS Server 10.0.0.100

    MAC Address 60:01:94:73:B3:EF

    MQTT Host 10.0.0.181

    MQTT Port 1883

    MQTT Client &

    Fallback Topic Licht_Aquarium

    MQTT User Sonoff

    MQTT Topic Licht_Aquarium

    MQTT Group Topic sonoffs

    MQTT Full Topic cmnd/Licht_Aquarium/

    Emulation None

    mDNS Discovery Enabled

    mDNS Advertise Web Server

    ESP Chip Id 7582703

    Flash Chip Id 1327198

    Flash Size 1024kB

    Program Flash Size 1024kB

    Program Size 534kB

    Free Program Space 468kB

    Free Memory 20kB

    Ich habe noch folgende Configs gesetzt:

    Spoiler anzeigen

    10:30:08 CMD: sleep

    10:30:08 MQT: stat/Licht_Aquarium/RESULT = {"Sleep":"50 (50)"}

    10:30:10 CMD: wificonfig

    10:30:10 MQT: stat/Licht_Aquarium/RESULT = {"WifiConfig":"5 (Wait)"}

    Liegt das Problem an den Reconnects?

    Habt ihr einen Tipp, was ich an meiner Konfiguration ändern könnte?

    LG,

    Lucky

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!