klein0r / fhem-tasmota

DEPRECATED - PLEASE USE MQTT2_DEVICE INSTEAD
https://haus-automatisierung.com/
MIT License
22 stars 13 forks source link

Sonoff Basic - Tasmota 5.14.0 #17

Open stauraum opened 6 years ago

stauraum commented 6 years ago

Hallo Matthias,

mit Tasmota 5.14.0 funktionieren anscheinend die Readings in FHEM nicht mehr sauber. Zumindest bei "state" ist mir aufgefallen, das FHEM immer meint, der Sonoff wäre off. Schalten kann ich aber. Bei diesem und anderen mit 5.12.0 funktionierte das noch ohne Probleme.

Internals: DEF Kuechenlicht /SmartHome/Kueche/%topic%/%prefix% FULL_TOPIC /SmartHome/Kueche/Kuechenlicht/%prefix% IODev Mosquitto MODULE_VERSION 0.4 NAME Kueche_Licht NOTIFYDEV Kuechenlicht /SmartHome/Kueche/%topic%/%prefix% NR 69 READY 1 STATE off TOPIC Kuechenlicht TYPE TASMOTA_DEVICE Helper: DBLOG: lwt: DBLogging: TIME 1527237784.58985 VALUE Online transmission-state: DBLogging: TIME 1527237784.42786 VALUE incoming publish received READINGS: 2018-05-25 09:23:56 info1-fallbacktopic DVES_68CE8F 2018-05-25 09:23:56 info1-grouptopic sonoffs 2018-05-25 09:23:56 info1-module Sonoff Basic 2018-05-25 09:23:56 info1-version 5.14.0 2018-05-25 09:23:56 info2-hostname Kuechenlicht-3727 2018-05-25 09:23:56 info2-ipaddress 192.168.2.61 2018-05-25 09:23:56 info2-webservermode Admin 2018-05-25 09:23:57 info3-restartreason Software/System restart 2018-05-25 10:43:04 lwt Online 2018-02-23 08:37:03 result-color FFFFFF 2018-02-23 08:37:03 result-dimmer 100 2018-05-24 14:49:39 result-otaurl https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.14.0/sonoff-DE.bin 2018-05-24 14:58:49 result-power OFF 2018-05-25 09:23:57 result-power1 ON 2018-02-23 08:37:05 result-power2 OFF 2018-05-24 17:38:43 result-restart Restarting 2018-05-24 14:49:40 result-upgrade Version 5.12.0 from https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.14.0/sonoff-DE.bin 2018-05-25 07:13:51 result-wificonfig WifiManager selected 2018-05-24 14:58:49 state off 2018-02-23 08:36:59 state-color 191919 2018-02-23 08:36:59 state-dimmer 10 2018-02-23 08:36:59 state-fade OFF 2018-02-23 08:36:59 state-ledtable OFF 2018-05-24 15:05:43 state-power OFF 2018-05-25 10:42:14 state-power1 ON 2018-02-23 08:36:59 state-power2 OFF 2018-02-23 08:36:59 state-scheme 0 2018-02-23 08:36:59 state-speed 1 2018-05-25 10:42:14 state-time 2018-05-25T09:42:14 2018-05-25 10:42:14 state-uptime 0T01:24:59 2018-05-25 10:42:14 state-vcc 3.142 2018-02-23 08:36:59 state-width 1 2018-05-25 10:42:14 state-wifi-ap 1 2018-05-25 10:42:14 state-wifi-apmac F4:F2:6D:F8:E7:85 2018-05-25 10:42:14 state-wifi-rssi 68 2018-05-25 10:42:14 state-wifi-ssid tropho.bie 2018-05-25 08:12:38 status-status-buttonretain 0 2018-05-25 08:12:38 status-status-buttontopic 0 2018-05-07 11:45:11 status-status-friendlyname K�chenlicht 2018-05-25 08:12:38 status-status-ledstate 1 2018-05-25 08:12:38 status-status-module 1 2018-05-25 08:12:38 status-status-power 1 2018-05-25 08:12:38 status-status-poweronstate 3 2018-05-25 08:12:38 status-status-powerretain 0 2018-05-25 08:12:38 status-status-savedata 1 2018-05-25 08:12:38 status-status-savestate 1 2018-05-25 08:12:38 status-status-topic Kuechenlicht 2018-05-25 08:12:39 status1-statusprm-baudrate 115200 2018-05-25 08:12:39 status1-statusprm-bootcount 26 2018-05-25 08:12:39 status1-statusprm-grouptopic sonoffs 2018-05-25 08:12:39 status1-statusprm-otaurl https://github.com/arendst/Sonoff-Tasmota/releases/download/v5.14.0/sonoff-DE.bin 2018-05-25 08:12:39 status1-statusprm-restartreason Software/System restart 2018-05-25 08:12:39 status1-statusprm-saveaddress F6000 2018-05-25 08:12:39 status1-statusprm-savecount 407 2018-05-25 08:12:39 status1-statusprm-sleep 0 2018-05-25 08:12:39 status1-statusprm-startuputc 2018-05-25T05:32:49 2018-05-25 08:12:39 status1-statusprm-uptime 0T00:39:48 2018-05-25 08:12:45 status1-statussns-time 2018-05-25T07:12:38 2018-05-07 11:45:18 status11-statussts-power OFF 2018-05-25 08:12:45 status11-statussts-power1 ON 2018-05-25 08:12:45 status11-statussts-time 2018-05-25T07:12:38 2018-05-25 08:12:45 status11-statussts-uptime 0T00:39:49 2018-05-25 08:12:45 status11-statussts-vcc 3.149 2018-05-25 08:12:45 status11-statussts-wifi-ap 1 2018-05-25 08:12:45 status11-statussts-wifi-apmac F4:F2:6D:F8:E7:85 2018-05-25 08:12:45 status11-statussts-wifi-rssi 60 2018-05-25 08:12:45 status11-statussts-wifi-ssid tropho.bie 2018-05-25 08:12:39 status2-statusfwr-boot 31 2018-05-25 08:12:39 status2-statusfwr-builddatetime 2018-05-15T15:29:54 2018-05-25 08:12:39 status2-statusfwr-core 2_3_0 2018-05-25 08:12:39 status2-statusfwr-sdk 1.5.3(aec24ac9) 2018-05-25 08:12:39 status2-statusfwr-version 5.14.0 2018-05-25 08:12:40 status3-statuslog-loghost domus1 2018-05-25 08:12:40 status3-statuslog-logport 514 2018-05-25 08:12:40 status3-statuslog-seriallog 2 2018-05-07 11:45:16 status3-statuslog-setoption 55800009 2018-05-07 11:45:16 status3-statuslog-ssid1 tropho.bie 2018-05-07 11:45:16 status3-statuslog-ssid2 indebuurt2 2018-05-25 08:12:40 status3-statuslog-syslog 0 2018-05-25 08:12:40 status3-statuslog-teleperiod 300 2018-05-25 08:12:40 status3-statuslog-weblog 2 2018-05-25 08:12:40 status4-statusmem-flashmode 3 2018-05-25 08:12:40 status4-statusmem-flashsize 1024 2018-05-25 08:12:40 status4-statusmem-free 476 2018-05-25 08:12:40 status4-statusmem-heap 18 2018-05-25 08:12:40 status4-statusmem-programflashsize 1024 2018-05-25 08:12:40 status4-statusmem-programsize 526 2018-05-25 08:12:40 status5-statusnet-dnsserver 192.168.2.2 2018-05-25 08:12:40 status5-statusnet-gateway 192.168.2.1 2018-05-25 08:12:40 status5-statusnet-hostname Kuechenlicht-3727 2018-05-25 08:12:40 status5-statusnet-ipaddress 192.168.2.61 2018-05-25 08:12:40 status5-statusnet-mac 60:01:94:68:CE:8F 2018-05-25 08:12:40 status5-statusnet-subnetmask 255.255.255.0 2018-05-25 08:12:40 status5-statusnet-webserver 2 2018-05-25 08:12:40 status5-statusnet-wificonfig 5 2018-05-25 08:12:41 status6-statusmqt-keepalive 15 2018-05-25 08:12:41 status6-statusmqt-max_packet_size 1000 2018-05-25 08:12:41 status6-statusmqt-mqttclient DVES68CE8F 2018-05-25 08:12:41 status6-statusmqt-mqttclientmask DVES%06X 2018-05-25 08:12:41 status6-statusmqt-mqtthost 192.168.2.10 2018-05-25 08:12:41 status6-statusmqt-mqttport 1883 2018-05-25 08:12:41 status6-statusmqt-mqtttype 1 2018-05-25 08:12:41 status6-statusmqt-mqttuser DVES_USER 2018-05-25 08:12:45 status7-statustim-enddst Sun Oct 28 03:00:00 2018 2018-05-25 08:12:45 status7-statustim-local Fri May 25 07:12:38 2018 2018-05-25 08:12:45 status7-statustim-startdst Sun Mar 25 02:00:00 2018 2018-05-25 08:12:45 status7-statustim-sunrise 04:56 2018-05-25 08:12:45 status7-statustim-sunset 20:37 2018-05-25 08:12:45 status7-statustim-timezone 1 2018-05-25 08:12:45 status7-statustim-utc Fri May 25 06:12:38 2018 2018-05-25 10:43:04 transmission-state incoming publish received 2018-05-24 14:49:52 upgrade Failed HTTP error: connection refused 2018-05-25 10:02:01 uptime-time 2018-05-25T09:02:00 2018-05-25 10:02:01 uptime-uptime 0T00:44:45 message_ids: publishSets: : topic /SmartHome/Kueche/Kuechenlicht/cmnd/power values: on off toggle sets: off
on
toggle
subscribe: /SmartHome/Kueche/Kuechenlicht/stat/POWER /SmartHome/Kueche/Kuechenlicht/stat/UPGRADE /SmartHome/Kueche/Kuechenlicht/stat/RESULT /SmartHome/Kueche/Kuechenlicht/stat/STATUS /SmartHome/Kueche/Kuechenlicht/stat/STATUS1 /SmartHome/Kueche/Kuechenlicht/stat/STATUS2 /SmartHome/Kueche/Kuechenlicht/stat/STATUS3 /SmartHome/Kueche/Kuechenlicht/stat/STATUS4 /SmartHome/Kueche/Kuechenlicht/stat/STATUS5 /SmartHome/Kueche/Kuechenlicht/stat/STATUS6 /SmartHome/Kueche/Kuechenlicht/stat/STATUS7 /SmartHome/Kueche/Kuechenlicht/stat/STATUS8 /SmartHome/Kueche/Kuechenlicht/stat/STATUS9 /SmartHome/Kueche/Kuechenlicht/stat/STATUS10 /SmartHome/Kueche/Kuechenlicht/stat/STATUS11 /SmartHome/Kueche/Kuechenlicht/tele/STATUS /SmartHome/Kueche/Kuechenlicht/tele/LWT /SmartHome/Kueche/Kuechenlicht/tele/ENERGY /SmartHome/Kueche/Kuechenlicht/tele/INFO1 /SmartHome/Kueche/Kuechenlicht/tele/INFO2 /SmartHome/Kueche/Kuechenlicht/tele/INFO3 /SmartHome/Kueche/Kuechenlicht/tele/SENSOR /SmartHome/Kueche/Kuechenlicht/tele/STATE /SmartHome/Kueche/Kuechenlicht/tele/UPTIME /SmartHome/Kueche/Kuechenlicht/tele/RESULT subscribeExpr: ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/POWER$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/UPGRADE$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/RESULT$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS1$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS2$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS3$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS4$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS5$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS6$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS7$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS8$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS9$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS10$ ^\/SmartHome\/Kueche\/Kuechenlicht\/stat\/STATUS11$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/STATUS$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/LWT$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/ENERGY$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/INFO1$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/INFO2$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/INFO3$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/SENSOR$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/STATE$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/UPTIME$ ^\/SmartHome\/Kueche\/Kuechenlicht\/tele\/RESULT$ subscribeQos: /SmartHome/Kueche/Kuechenlicht/stat/POWER 0 /SmartHome/Kueche/Kuechenlicht/stat/RESULT 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS1 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS10 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS11 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS2 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS3 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS4 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS5 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS6 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS7 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS8 0 /SmartHome/Kueche/Kuechenlicht/stat/STATUS9 0 /SmartHome/Kueche/Kuechenlicht/stat/UPGRADE 0 /SmartHome/Kueche/Kuechenlicht/tele/ENERGY 0 /SmartHome/Kueche/Kuechenlicht/tele/INFO1 0 /SmartHome/Kueche/Kuechenlicht/tele/INFO2 0 /SmartHome/Kueche/Kuechenlicht/tele/INFO3 0 /SmartHome/Kueche/Kuechenlicht/tele/LWT 0 /SmartHome/Kueche/Kuechenlicht/tele/RESULT 0 /SmartHome/Kueche/Kuechenlicht/tele/SENSOR 0 /SmartHome/Kueche/Kuechenlicht/tele/STATE 0 /SmartHome/Kueche/Kuechenlicht/tele/STATUS 0 /SmartHome/Kueche/Kuechenlicht/tele/UPTIME 0 Attributes: IODev Mosquitto devStateIcon on:message_socket@red:off off:message_socket:on icon message_socket publishSet on off toggle /SmartHome/Kueche/Kuechenlicht/cmnd/power room Küche stateFormat state webCmd on:off:toggle

florie1706 commented 6 years ago

@klein0r +1

klein0r commented 6 years ago

Puh gute Frage, bin noch auf 5.11 und habe noch nicht aktualisiert. Echt anstrengend, dass ständig die Topics geändert werden. Das macht es natürlich ziemlich schwer ein allgemein gültiges Modul zu schreiben.

florie1706 commented 6 years ago

Das finde ich in der Tat leider auch echt anstrengend. Gibts da ne Möglichkeit das mit Abfrage zu machen, welche Tasmota-Version drauf ist?

Das neue Topic ist so:

19:16:43 MQT: Sonoff/XXXXXXX/XXXXXXX/stat/RESULT = {"POWER1":"ON"} 19:16:43 MQT: Sonoff/XXXXXXX/XXXXXXX/stat/POWER1 = ON

supernova1963 commented 6 years ago

prüfen oder ggf. sogar per HTTP - Command die MQTT Optionen so setzten, dass man sie im TASMOTA_DEVICE verwenden kann.

Topic | <topic> | Set MQTT topic (32 chars max) AND button topic and restart
SwitchTopic | <topic> | Set MQTT switch topic (32 chars max)
Publish | <topic> <payload> | Publish any topic and optional payload
Prefix1 | <prefix> | Set MQTT command subscription prefix (10 chars max) and restart
Prefix2 | <prefix> | Set MQTT status prefix (10 chars max) and restart
Prefix3 | <prefix> | Set MQTT telemetry prefix (10 chars max) and restart
FullTopic | <fulltopic> | Set MQTT fulltopic (100 chars max) using optional %topic% and %prefix% and restart
GroupTopic | <grouptopic> | Set MQTT group topic (32 chars max) and restart

Voraussetzung wäre natürlich weitere Parameter \<IP-Address> und ggf. \<password>.

klein0r commented 6 years ago

Ja hatte ich auch überlegt. Per MQTT geht ja nicht, weil wir anfangs die Topics nicht kennen. Extra dafür noch HTTP-Calls einführen... möchte ich eigentlich ungern. Dann haben manche das Webinterface abgeschaltet und es geht wieder nicht usw.

Außerdem möchte ich nicht "automatisch" in der Konfiguration rumspielen.

scheilch commented 2 years ago

Wohl eher die Abkehr von FHEM an sich. Wer Matthias Videos auf Youtube verfolgt oder auch seinen Blog wird festestellen, dass FHEM mittlerweile eine untergeordnete bis gar keine Rolle mehr spielt. Herr Kleine hat wohl mittlerweile so viel Asche angehäuft, dass quelloffene Lösungen keine Rolle mehr spielen - stattdessen spielt er jetzt in der Loxone Liga und da ist halt kein Platz für FHEM mehr.

Der letzte Post liegt auch schon weider 1 Jahr zurück. Daher oriniert euch an den Forks - da hat der eine oder andere schon gute Lösungen parat. An dieser Stelle einen schönen Gruß an dich Matthias, Danke für deine Arbeit aber NEIN Danke.

Von Entwickler zu Enwickler - Software muss gepflegt oder deprovisioniert werden. lösch doch einfach das RePo - es nutzt doch eh niemandem mehr etwas. Sei so fair und lass die Leute nicht hoffen und sich tagelange Mühe machen deinen alten Scheiß in Ordnung zu bringen, da ja nicht mal die PullRequests einem Review unterzogen, geschweige denn gemerged werden!!! Schäm dich!

stauraum commented 2 years ago

+1