Zuletzt angesehen:
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
public:sonoffs20_tasmota [2019/08/10 07:21] admin |
public:sonoffs20_tasmota [2020/09/27 18:31] admin |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
===== Sonoff S20 mit Tasmota ===== | ===== Sonoff S20 mit Tasmota ===== | ||
- | Nach dem Einstecken der Sonoff S20 Steckdose zeigt sich diese nach kurzer Zeit im WLAN mit der SSID: **sonoff-XXXX** wie z.B. sonoff-6017\\ | + | Nach dem Einstecken der Sonoff S20 Steckdose zeigt sich diese nach kurzer Zeit im WLAN mit der SSID: **sonoff-XXXX** wie z.B. sonoff-6017 oder tasmota-XXXX bzw. z.B. tasmota-6017\\ |
Am Besten mit dem Smartphone zu dieser SSID connecten und man wird sofort auf einen kleine Weboberfläche geleitet. \\ | Am Besten mit dem Smartphone zu dieser SSID connecten und man wird sofort auf einen kleine Weboberfläche geleitet. \\ | ||
\\ | \\ | ||
- | Dort trägt man die **WLAN1-SSID** mit dem zugehörigen Passwort unter **WLAN1-Passwort** ein und klickt auf **Speichern**. \\ | + | Dort trägt man unter **WLAN1-SSID** die SSID des eigenen WLAN-Netzwerks mit dem zugehörigen Passwort unter **WLAN1-Passwort** ein und klickt auf **Speichern**. \\ |
+ | Man kann auch auf den Link "WLAN-Netzwerk suchen und auswählen" klicken und die richtige SSID aussuchen.\\ | ||
+ | \\ | ||
{{:public:sonoff_tasmota_6.jpg?300|}} \\ | {{:public:sonoff_tasmota_6.jpg?300|}} \\ | ||
\\ | \\ | ||
Zeile 13: | Zeile 15: | ||
\\ | \\ | ||
In unserem Browser geben wir die IP-Adresse ein und gelangen auf die Weboberfläche unserer Sonoff S20 Steckdose. \\ | In unserem Browser geben wir die IP-Adresse ein und gelangen auf die Weboberfläche unserer Sonoff S20 Steckdose. \\ | ||
- | Dort angekommen wehcseln wir zunächst in die Einstellungen: \\ | + | Dort angekommen wechseln wir zunächst in die Einstellungen: \\ |
{{:public:sonoff_tasmota_1.jpg?300|}} \\ | {{:public:sonoff_tasmota_1.jpg?300|}} \\ | ||
\\ | \\ | ||
Zeile 23: | Zeile 25: | ||
\\ | \\ | ||
- | **Zusatz FHEM-Webinterface:**\\ | + | ===== FHEM Konfiguration: ===== |
Damit FHEM die MQTT-Devices sehen kann, muss einmalig ein MQTT-Server konfiguriert werden. \\ | Damit FHEM die MQTT-Devices sehen kann, muss einmalig ein MQTT-Server konfiguriert werden. \\ | ||
Dazu gibt es zwei Möglichkeiten. Die einfachste ist, man nutzt das in FHEM integrierte Modul namens [[https://fhem.de/commandref.html#MQTT2_SERVER|MQTT2_SERVER]] \\ | Dazu gibt es zwei Möglichkeiten. Die einfachste ist, man nutzt das in FHEM integrierte Modul namens [[https://fhem.de/commandref.html#MQTT2_SERVER|MQTT2_SERVER]] \\ | ||
Zeile 40: | Zeile 42: | ||
=== FHEM Device Konfiguration per MQTT2_SERVER Modul === | === FHEM Device Konfiguration per MQTT2_SERVER Modul === | ||
- | Unter FHEM wird automatisch ein neues Device angelegt. Die Steckdosen kann folgendermaßen zum ein/aus schalten konfiguriert werden:\\ | + | Unter FHEM wird automatisch ein neues Device angelegt. Die Steckdose kann folgendermaßen zum ein/aus schalten konfiguriert werden:\\ |
<code> | <code> | ||
defmod MQTT2_Sonoff_1 MQTT2_DEVICE Sonoff_1 | defmod MQTT2_Sonoff_1 MQTT2_DEVICE Sonoff_1 | ||
Zeile 48: | Zeile 50: | ||
attr MQTT2_Sonoff_1 icon ge_wht_steckdose | attr MQTT2_Sonoff_1 icon ge_wht_steckdose | ||
attr MQTT2_Sonoff_1 readingList Sonoff_1:tele/sonoff/LWT:.* LWT\ | attr MQTT2_Sonoff_1 readingList Sonoff_1:tele/sonoff/LWT:.* LWT\ | ||
- | Sonoff_1:cmnd/sonoff/POWER:.* POWER\ | + | Sonoff_1:tele/sonoff1/LWT:.* LWT\ |
- | Sonoff_1:tele/sonoff/INFO1:.* { json2nameValue($EVENT) }\ | + | Sonoff_1:cmnd/sonoff1/POWER:.* POWER\ |
- | Sonoff_1:tele/sonoff/INFO2:.* { json2nameValue($EVENT) }\ | + | Sonoff_1:tele/sonoff1/INFO1:.* { json2nameValue($EVENT) }\ |
- | Sonoff_1:tele/sonoff/INFO3:.* { json2nameValue($EVENT) }\ | + | Sonoff_1:tele/sonoff1/INFO2:.* { json2nameValue($EVENT) }\ |
- | Sonoff_1:stat/sonoff/RESULT:.* { json2nameValue($EVENT) }\ | + | Sonoff_1:tele/sonoff1/INFO3:.* { json2nameValue($EVENT) }\ |
- | Sonoff_1:stat/sonoff/POWER:.* POWER\ | + | Sonoff_1:stat/sonoff1/RESULT:.* { json2nameValue($EVENT) }\ |
- | Sonoff_1:tele/sonoff/STATE:.* { json2nameValue($EVENT) } | + | Sonoff_1:stat/sonoff1/POWER:.* POWER\ |
+ | Sonoff_1:tele/sonoff1/STATE:.* { json2nameValue($EVENT) } | ||
attr MQTT2_Sonoff_1 room MQTT2_DEVICE | attr MQTT2_Sonoff_1 room MQTT2_DEVICE | ||
- | attr MQTT2_Sonoff_1 setList on cmnd/sonoff/POWER on\ | + | attr MQTT2_Sonoff_1 setList on cmnd/sonoff1/POWER on\ |
- | off cmnd/sonoff/POWER off\ | + | off cmnd/sonoff1/POWER off\ |
- | reboot cmnd/sonoff/Restart 1 | + | reboot cmnd/sonoff1/Restart 1 |
attr MQTT2_Sonoff_1 stateFormat {ReadingsVal($name,"LWT","") eq "Offline" ? "absent" : ReadingsVal($name,"POWER","")} | attr MQTT2_Sonoff_1 stateFormat {ReadingsVal($name,"LWT","") eq "Offline" ? "absent" : ReadingsVal($name,"POWER","")} | ||
attr MQTT2_Sonoff_1 webCmd on:off:reboot | attr MQTT2_Sonoff_1 webCmd on:off:reboot |