ESP8266 4 Kanal Optokoppler Konfiguration
4 Kanal Optokoppler Trigger

Tasmota 4 Kanal Trigger Modul Konfiguration

Tasmota Konfiguration

Der grundlegende Aufbau des EI-OT 4 Kanal Trigger Moduls basiert auf dem ESP8266 in Kombination mit 4 PC817 Optokoppler.

Im Detail werden die Eingänge / GPIO’s

  • IN1 = GPIO16
  • IN2 = GPIO14
  • IN3 = GPIO12
  • IN4 = GPIO13

über einen PC817 Optokoppler beschaltet. Die 4 Eingänge sind somit galvanisch getrennt und können im Spannungsbereich von 3,6 bis 24V beschaltet werden.

Das Tasmota Template aktiviert die verfügbaren GPIO’s des EI-OT 4 Trigger Modul und stellt diese für eine individuelle GPIO Konfiguration über das Tasmota Webinterface bereit.

Tasmota  Template aktivieren
    1. klicke im Tasmota Webinterface auf Einstellungen
    2. klicke im Konfigurationsmenü auf Gerät
    3. klicke innerhalb der Module Parameter auf das Drop Down Gerät wähle
    4. klicke auf Speichern, das EI-OT 4 Trigger Modul führt einen Reboot aus
    5. die verfügbaren GPIO’s wurden nun aus der Tasmota Vorlage in das Tasmota Webinterface zur individuellen Konfiguration geladen
Tasmota Configuration

The basic structure of the EI-OT 4 channel trigger module is based on the ESP8266 in combination with 4 PC817 optocouplers.

The inputs / GPIOs are detailed

  • IN1 = GPIO16
  • IN2 = GPIO14
  • IN3 = GPIO12
  • IN4 = GPIO13

connected via a PC817 optocoupler. The 4 inputs are therefore galvanically isolated and can be connected in a voltage range from 3.6 to 24V.

The Tasmota template activates the available GPIOs of the EI-OT 4 trigger module and makes them available for individual GPIO configuration via the Tasmota web interface.

enable Tasmota  Template
  1. click on Configuration in the Tasmota web interface
  2. click on Module in the configuration menu
  3. click on the Module Type drop-down within the Module Parameters
  4. click on Save to reboot the EI-OT 8 Channel Relays module
  5. the available GPIOs have now been loaded from the Tasmota template into the Tasmota web interface for individual configuration
Tasmota Eingänge konfigurieren

Das EI-OT 4 Kanal Trigger Moduls verfügt über 4 optoisolierte Benutzereingänge, dabei ist die Zuweisung der Eingänge

  • IN1 = GPIO16
  • IN2 = GPIO14
  • IN3 = GPIO12
  • IN4 = GPIO13

zu berücksichtigen.

Typischerweise werden die Eingänge als

  • Schalter (Switch), GPIO ändert seinen Status solange der Schalter aktiv / rastender Kontakt
  • Taster (Button), GPIO ändert seinen Status solang wie der Taster aktiv ist, bei deaktivierung fällt der GPIO auf seinen Grundstatus zurück

innerhalb der Tasmota Firmware konfiguriert. Dabei kann jeder Eingang frei / unabhängig von den anderen Eingängen konfiguriert werden. An dieser Stelle sei erwähnt Taster (Button) oder Schalter (Switch) werden innerhalb der Tasmota Oberfläche nicht angezeigt.

Neben typischen Schaltern und Tastern können auch jedwede Sensoren beispielsweise Lichtsensor, PIR Sensor / Bewegungsmelder, Distanzsensor, Trockenschalter / Reedkontakt, usw. als Signalgeber verwendet werden. Grundlegend sollte dabei der Signalausgang stets digital sein.

Tasmota Eingänge konfigurieren
    1. klicke im Tasmota Webinterface auf Einstellungen
    2. klicke im Konfigurationsmenü auf Gerät
    3. klicke innerhalb der Module Parameter auf das Drop Down des jeweiligen zu konfigurierenden GPIO
      • wähle    um einen Taster zu konfigurieren
      • oder alternativ     um einen Schalter zu konfigurieren
      • wähle   im Kanal DropDown eine Zuweisung (typischerweise 1 bis 4) aus
    4. führe Schritt 3 für sämtliche zu konfigurierende GPIO’s / Eingänge durch
      • IN1 = GPIO16
      • IN2 = GPIO14
      • IN3 = GPIO12
      • IN4 = GPIO13

klicke auf Speichern, das EI-OT 4 Kanal Triger Modul führt einen Reboot aus und lädt die obig durchgeführte GPIO Konfiguration.

Wie bereits oben umschrieben werden GPIO Eingangssignal nicht über die Tasmota Weboberfläche dargestellt, bzw. abgearbeitet, üblicherweise erfolgt dies mittels einfacher Tasmota Rules.

Als einfaches Beispiel, die Eingangssignale werden in Variablen abgelegt

Rule1 on Button1#state do var1=%value% Endon on Button2#state do var2=%value% Endon on Button3#state do var3=%value% Endon on Button4#state do var4=%value% Endon

Die Taster / Button Eingangssignale werden über MQTT übertragen

Rule1 on Switch1#state do publish /Switch1 %value% Endon on Button2#state do publish /Switch2 %value% Endon on Button3#state do publish /Switch3 %value% Endon on Button4#state do publish /Switch4 %value% Endon
Tasmota Input Configuration

The EI-OT 4 channel Trigger module has 4 opto-isolated user inputs

  • IN1 = GPIO16
  • IN2 = GPIO14
  • IN3 = GPIO12
  • IN4 = GPIO13

Typically the inputs are as

  • GPIO changes its status as long as the switch is active / latching contact
  • Button, GPIO changes its status as long as the button is pressed, on release the GPIO returns to its basic status

configured within the Tasmota firmware. Each input can be configured independently of the other inputs. At this point it should be mentioned that buttons or switches are not displayed within the Tasmota interface.

In addition to typical switches and buttons, any sensors such as light sensors, PIR sensors/motion detectors, distance sensors, dry switches/reed contacts, etc. can also be used as signal transmitters. Basically, the signal output should always be digital.

Tasmota Inputs configuration
  1. click on Configuration in the Tasmota web interface
  2. click on Module in the configuration menu
  3. Within the module parameters, click on the drop down of the respective GPIO to be configured
    • choose   to configure a button
    • or alternatively     to configure a switch
    • choose the number    of the respective input channel (typically 1 to 4)
  4. carry out step 3 for all GPIOs/inputs to be configured
      • IN1 = GPIO16
      • IN2 = GPIO14
      • IN3 = GPIO12
      • IN4 = GPIO13

click on Save to reboot the EI-OT 16 Channel Relays module.

As mentioned above Buttons and Switch are not displayed in Tasmota webinterface. Typically they are used thru Tasmota Rules,

as example to set a variable

Rule1 on Button1#state do var1=%value% Endon on Button2#state do var2=%value% Endon on Button3#state do var3=%value% Endon on Button4#state do var4=%value% Endon

or to publish actual state of switch thru mqtt

Rule1 on Switch1#state do publish /Switch1 %value% Endon on Button2#state do publish /Switch2 %value% Endon on Button3#state do publish /Switch3 %value% Endon on Button4#state do publish /Switch4 %value% Endon

Tasmota Template Problem

Sollte das Modul / der ESP8266 bereits mit einem anderen Tasmota Template betrieben worden sein, ist dieses Template weiterhin aktiv – es wird kein EI-OT Trigger Modul im DropDown der Geräteeinstellung angezeigt –.

An dieser Stelle sei erwähnt selbst ein Tasmota Firmware Reset löscht diesen Template Eintrag nicht!

Tasmota Template Änderung

  1. klicke auf Einstellungen um das Tasmota Konfigurationsmenü zu öffnen
  2. klicke im Tasmota Einstellungssmenü auf Erweitert
  3. füge im Textfeld Vorlage folgenden Text ein
    {"NAME":"EI-OT Trigger","GPIO":[1,1,1,1,0,0,0,0,1,1,1,0,1,0],"FLAG":0,"BASE":18}
  4. klicke auf das Kontrollkästchen
  5. klick auf den Button Speichern
  6. Tasmota aktiviert nun das Template und führt einen Neustart durch und lädt die Grundkonfiguration basierend auf der Tasmota Geräte Vorlage.
Tasmota Template Problem

If the module / ESP8266 has already been operated with a different Tasmota template, this template is still active – no EI-OT Trigger module is displayed in the drop-down of the device settings -.

At this point it should be mentioned that even a Tasmota firmware reset does not delete this template entry!

Change Tasmota Template

  1. click on Configuration
  2. in the Tasmota Configuration Menu click on Other
  3. paste following text into Textfield Template
    {"NAME":"EI-OT Trigger","GPIO":[1,1,1,1,0,0,0,0,1,1,1,0,1,0],"FLAG":0,"BASE":18}
  4. click on CheckBox
  5. click on Save
  6. Tasmota initiate a reboot and restart EI-OT 1-Wire Module based on Tasmota Template

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert


Der Zeitraum für die reCAPTCHA-Überprüfung ist abgelaufen. Bitte laden Sie die Seite neu.