NEWS
MQTT und Tasmota
-
den mqtt adapter deinstallieren oder belassen?
-
Kannst Ihn ja auch nur deaktivieren , vielleicht brauchst du Ihn für andere Geräte .
-
Sodele. Habe nun den nodemcu mit Orignalsoftware geflasht und "nur" meine WLAN Daten geändert, SML Unterstützung aktiviert und den Zählertyp definiert.
Hier die Einstellungen von Tasmota:
Laut Konsole von Tasmota sendet dieser auch alle 10 Sekunden die aktuellen Werte.
Im Iobroker habe ich den sonoff und mqtt adapter deinstalliert und den sonoff neu installiert.
Das Problem nun ist, dass bis auf die Verbindungsparamter nix mehr übertragen wird.
-
Zeig mal bitte die Startseite mit den Werten und die Geräte Einstellung
-
Senden tut der tasmota ja, die erste Information wird wohl auch verarbeitet im Iobroker. nur die 2te Information mit den Zählerständen nicht.
 code_text
Tasmota Software habe ich von gemu2015 verwendet (Branch universal5)
-
-
das ganze unter iobroker:
Node.js: v10.16.2
NPM: 6.9.0 -
@ecki945
Warum so ne alte Tasmota und hast mal Dein Flashspeicher gesehen? 4MB, allerdings nur 3MB verfügbar, wobei ein Sonoff Basic normal eh nur 1MB hat. -
Hast du im Log kein STATE. ,
@ecki945 sagte in MQTT und Tasmota:
`
15:56:33 RSL: tele/IskraMT175/SENSOR = {"Time":"2019-08-11T15:56:33","SML":{"Total_in":1633.9575,"Total_out":17787.5186,"Power_curr":-551,"Meter_number":"0649534b011073747990"}})Zeig mal den gesamten Log vom ESP. Ab Neustart und wo ein paar daten gesendet werden .
-
@Jan1 said in MQTT und Tasmota:
@ecki945
Warum so ne alte Tasmota und hast mal Dein Flashspeicher gesehen? 4MB, allerdings nur 3MB verfügbar, wobei ein Sonoff Basic normal eh nur 1MB hat.Mit dieser Tasmota Version habe ich schon einige Projekte realisert. Die NodeMCU Lua Lolin V3 hat nun mal 4MByte Flasch Speicher. (Natürlich wird "nur" 1MByte verwendet)
-
@ecki945
eben nicht, es werden 3MB verwendet und warum auf Basic und nicht auf generic?
OK, wenn bei der 6.6.0.4 nichts für Dich relevant dabei istr kannst auch bei der 6.5 bleiben wobei da nach Changelog schon einige Bugfix drin sind.
-
00:00:00 CFG: Loaded from flash at 3F6, Count 6 00:00:00 Project sonoff Sonoff Version 6.5.0.16(sonoff)-2_5_2 00:00:00 SNS: Hardware Serial 00:00:00 WIF: Connecting to AP1 FRITZ!Box 7490 in mode 11N as sonoff-3209... 00:00:04 WIF: Connected 00:00:04 HTP: Web server active on sonoff-3209 with IP address 192.168.178.45 19:02:08 RSL: tele/sonoff/UPTIME = {"Time":"2019-08-11T19:02:08","Uptime":"0T00:00:05"} 19:02:09 MQT: Attempting connection... 19:02:09 MQT: Connected 19:02:09 MQT: tele/sonoff/LWT = Online (retained) 19:02:09 MQT: cmnd/sonoff/POWER = 19:02:09 RSL: tele/sonoff/INFO1 = {"Module":"Sonoff Basic","Version":"6.5.0.16(sonoff)","FallbackTopic":"cmnd/DVES_63AC89_fb/","GroupTopic":"sonoffs"} 19:02:09 MQT: tele/sonoff/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff-3209","IPAddress":"192.168.178.45"} 19:02:09 MQT: tele/sonoff/INFO3 = {"RestartReason":"Software/System restart"} 19:02:09 MQT: stat/sonoff/RESULT = {"POWER":"ON"} 19:02:09 MQT: stat/sonoff/POWER = ON 19:02:17 RSL: tele/sonoff/STATE = {"Time":"2019-08-11T19:02:17","Uptime":"0T00:00:14","Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"FRITZ!Box 7490","BSSId":"34:31:C4:38:A0:8B","Channel":11,"RSSI":66,"LinkCount":1,"Downtime":"0T00:00:04"}} 19:02:17 RSL: tele/sonoff/SENSOR = {"Time":"2019-08-11T19:02:17","SML":{"Total_in":1635.4017,"Total_out":17788.1531,"Power_curr":369,"Meter_number":"0649534b011073747990"}}
sonoff.0 2019-08-11 20:06:01.376 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:05:46.359 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:05:31.314 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:05:16.272 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:05:01.253 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:04:46.252 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:04:31.241 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:04:16.238 debug stateChange sonoff.0.DVES_63AC89.POWER: {"val":false,"ack":true,"ts":1565546656230,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565546656230} sonoff.0 2019-08-11 20:04:16.221 debug [DVES_63AC89] Received: cmnd/sonoff/POWER = sonoff.0 2019-08-11 20:04:16.212 debug stateChange sonoff.0.DVES_63AC89.alive: {"val":true,"ack":true,"ts":1565546656209,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565546656209} sonoff.0 2019-08-11 20:04:16.168 debug stateChange sonoff.0.info.connection: {"val":"DVES_63AC89","ack":true,"ts":1565546656155,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565546656155} sonoff.0 2019-08-11 20:04:16.002 info Client [DVES_63AC89] connected with secret 1565546655989_8845 sonoff.0 2019-08-11 20:04:07.536 debug stateChange sonoff.0.DVES_63AC89.alive: {"val":false,"ack":true,"ts":1565546647532,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565546643666} sonoff.0 2019-08-11 20:04:07.469 debug stateChange sonoff.0.info.connection: {"val":"","ack":true,"ts":1565546647461,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565546647461} sonoff.0 2019-08-11 20:04:07.429 info Starting MQTT authenticated server on port 1882 sonoff.0 2019-08-11 20:04:07.349 info starting. Version 2.2.2 in /opt/iobroker/node_modules/iobroker.sonoff, node: v10.16.2 sonoff.0 2019-08-11 20:04:07.306 debug statesDB connected sonoff.0 2019-08-11 20:04:07.258 debug objectDB connected host.ioBroker-RasPi4 2019-08-11 20:04:06.190 info instance system.adapter.sonoff.0 started with pid 22900
-
-
Hab ich. Leider hat sich nicht viel geändert.
00:00:00 CFG: Loaded from flash at 3FB, Count 17 00:00:00 Project sonoff Sonoff Version 6.5.0.16(sonoff)-2_5_2 00:00:00 SNS: Hardware Serial 00:00:00 WIF: Connecting to AP1 FRITZ!Box 7490 in mode 11N as sonoff-3209... 00:00:04 WIF: Connected 00:00:04 HTP: Web server active on sonoff-3209 with IP address 192.168.178.45 19:35:20 MQT: Attempting connection... 19:35:20 MQT: Connected 19:35:20 MQT: tele/sonoff/LWT = Online (retained) 19:35:20 MQT: cmnd/sonoff/POWER = 19:35:20 RSL: tele/sonoff/INFO1 = {"Module":"Generic","Version":"6.5.0.16(sonoff)","FallbackTopic":"cmnd/DVES_63AC89_fb/","GroupTopic":"sonoffs"} 19:35:20 MQT: tele/sonoff/INFO2 = {"WebServerMode":"Admin","Hostname":"sonoff-3209","IPAddress":"192.168.178.45"} 19:35:20 MQT: tele/sonoff/INFO3 = {"RestartReason":"Software/System restart"} 19:35:28 RSL: tele/sonoff/STATE = {"Time":"2019-08-11T19:35:28","Uptime":"0T00:00:14","Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":21,"Wifi":{"AP":1,"SSId":"FRITZ!Box 7490","BSSId":"34:31:C4:38:A0:8B","Channel":11,"RSSI":66,"LinkCount":1,"Downtime":"0T00:00:04"}} 19:35:28 RSL: tele/sonoff/SENSOR = {"Time":"2019-08-11T19:35:28","SML":{"Total_in":1635.5859,"Total_out":17788.1531,"Power_curr":308,"Meter_number":"0649534b011073747990"}} 19:35:38 RSL: tele/sonoff/STATE = {"Time":"2019-08-11T19:35:38","Uptime":"0T00:00:24","Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":1,"SSId":"FRITZ!Box 7490","BSSId":"34:31:C4:38:A0:8B","Channel":11,"RSSI":66,"LinkCount":1,"Downtime":"0T00:00:04"}} 19:35:38 RSL: tele/sonoff/SENSOR = {"Time":"2019-08-11T19:35:38","SML":{"Total_in":1635.5868,"Total_out":17788.1531,"Power_curr":308,"Meter_number":"0649534b011073747990"}} 19:35:48 RSL: tele/sonoff/STATE = {"Time":"2019-08-11T19:35:48","Uptime":"0T00:00:34","Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":1,"SSId":"FRITZ!Box 7490","BSSId":"34:31:C4:38:A0:8B","Channel":11,"RSSI":66,"LinkCount":1,"Downtime":"0T00:00:04"}} 19:35:48 RSL: tele/sonoff/SENSOR = {"Time":"2019-08-11T19:35:48","SML":{"Total_in":1635.5876,"Total_out":17788.1531,"Power_curr":308,"Meter_number":"0649534b011073747990"}} 19:35:58 RSL: tele/sonoff/STATE = {"Time":"2019-08-11T19:35:58","Uptime":"0T00:00:44","Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":1,"SSId":"FRITZ!Box 7490","BSSId":"34:31:C4:38:A0:8B","Channel":11,"RSSI":64,"LinkCount":1,"Downtime":"0T00:00:04"}} 19:35:58 RSL: tele/sonoff/SENSOR = {"Time":"2019-08-11T19:35:58","SML":{"Total_in":1635.5885,"Total_out":17788.1531,"Power_curr":317,"Meter_number":"0649534b011073747990"}}
sonoff.0 2019-08-11 20:37:08.521 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:37:05.395 debug system.adapter.admin.0: logging true sonoff.0 2019-08-11 20:36:56.038 debug system.adapter.admin.0: logging false sonoff.0 2019-08-11 20:36:53.487 debug Client [DVES_63AC89] pingreq sonoff.0 2019-08-11 20:36:38.487 debug stateChange sonoff.0.DVES_63AC89.POWER: {"val":false,"ack":true,"ts":1565548598480,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565546656230} sonoff.0 2019-08-11 20:36:38.471 debug [DVES_63AC89] Received: cmnd/sonoff/POWER = sonoff.0 2019-08-11 20:36:38.458 debug stateChange sonoff.0.DVES_63AC89.alive: {"val":true,"ack":true,"ts":1565548598455,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565548598455} sonoff.0 2019-08-11 20:36:38.429 debug stateChange sonoff.0.info.connection: {"val":"DVES_63AC89","ack":true,"ts":1565548598412,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565548598412} sonoff.0 2019-08-11 20:36:38.239 info Client [DVES_63AC89] connected with secret 1565548598211_1404 sonoff.0 2019-08-11 20:36:27.262 debug stateChange sonoff.0.DVES_63AC89.alive: {"val":false,"ack":true,"ts":1565548587259,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565548583399} sonoff.0 2019-08-11 20:36:27.220 debug stateChange sonoff.0.info.connection: {"val":"","ack":true,"ts":1565548587206,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1565548587206} sonoff.0 2019-08-11 20:36:27.191 info Starting MQTT authenticated server on port 1882 sonoff.0 2019-08-11 20:36:27.113 info starting. Version 2.2.2 in /opt/iobroker/node_modules/iobroker.sonoff, node: v10.16.2 sonoff.0 2019-08-11 20:36:27.067 debug statesDB connected sonoff.0 2019-08-11 20:36:27.015 debug objectDB connected
Ich glaube da hat sich grundsätzlich nicht viel geändert.
-
Hast du auch den Sonoff Adapter neu gestartet !?
-
@Jan1 Deine Angaben sind nicht ganz korrekt:
Nach dem Linken und Compilieren seh ich ja den "Speicherverbrauch":Der Sketch verwendet 585864 Bytes (56%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes. Globale Variablen verwenden 49864 Bytes (60%) des dynamischen Speichers, 32056 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.
-
Ja Natürlich. Beide neu gestartet.
-
Flash du ein fertige "bin " Datei ?
-
Nein. Selber compilieren. Aber wie schon geschrieben im original code nur die notwendigen defines anpassen.
-
Ahh .. schon mal ein ganz anderes Thema.
Habe es auch mal versucht , aber mit fertigen bin war ich immer auf der richtigen Seite ,
Da bin leider raus , aber Suche mal nach subscribe mqtt.