Gosund 211 - Tasmota - Fhem

Begonnen von kawa0815, 25 November 2020, 10:02:43

Vorheriges Thema - Nächstes Thema

kawa0815

Hier mal meine funktionierenden Fhem- Settings für die Doppeldose:

Internals:
   CID        DVES_1531E1
   DEF        DVES_1531E1
   DEVICETOPIC IOT_SteckD_03
   FUUID      5fbd4339-f33f-291f-d9ed-eb43cc6c2210e270
   IODev      myBroker
   LASTInputDev myBroker
   MSGCNT     395
   NAME       IOT_SteckD_03
   NR         579
   STATE      <a href="http://IPAddress" target="_blank">
Online
</a>
Dose 1: OFF
Dose 2: OFF
uptime: 0T17:10:11
<br>
aktuell: 0 W
Tag: 0.000 kWh
<br>
Gestern: 0.000 kWh
Gesamt: 0.000 kWh
   TYPE       MQTT2_DEVICE
   myBroker_MSGCNT 395
   myBroker_TIME 2020-11-25 09:42:30
   READINGS:
     2020-11-25 09:42:30   ENERGY_ApparentPower 0
     2020-11-25 09:42:30   ENERGY_Current  0.000
     2020-11-25 09:42:30   ENERGY_Factor   0.00
     2020-11-25 09:42:30   ENERGY_Period   0
     2020-11-25 09:42:30   ENERGY_Power    0
     2020-11-25 09:42:30   ENERGY_ReactivePower 0
     2020-11-25 09:42:30   ENERGY_Today    0.000
     2020-11-25 09:42:30   ENERGY_Total    0.000
     2020-11-25 09:42:30   ENERGY_TotalStartTime 2020-11-24T12:17:51
     2020-11-25 09:42:30   ENERGY_Voltage  0
     2020-11-25 09:42:30   ENERGY_Yesterday 0.000
     2020-11-25 09:42:29   Heap            25
     2020-11-24 18:30:40   LWT             Online
     2020-11-25 09:42:29   LoadAvg         20
     2020-11-25 09:42:29   MqttCount       2
     2020-11-25 09:42:29   POWER1          OFF
     2020-11-25 09:42:29   POWER2          OFF
     2020-11-25 09:42:29   Sleep           50
     2020-11-25 09:42:29   SleepMode       Dynamic
     2020-11-25 09:42:30   Time            2020-11-25T09:42:30
     2020-11-25 09:42:29   Uptime          0T17:10:11
     2020-11-25 09:42:29   UptimeSec       61811
     2020-11-25 09:42:29   Wifi_AP         1
     2020-11-25 09:42:29   Wifi_BSSId      44:44:44:4B:26:14
     2020-11-25 09:42:29   Wifi_Channel    6
     2020-11-25 09:42:29   Wifi_Downtime   0T00:00:03
     2020-11-25 09:42:29   Wifi_LinkCount  1
     2020-11-25 09:42:29   Wifi_RSSI       50
     2020-11-25 09:42:29   Wifi_SSId       Media01
     2020-11-25 09:42:29   Wifi_Signal     -75
     2020-11-24 19:00:44   state           set_1_off
     2020-11-24 19:00:45   state1          OFF
     2020-11-24 18:37:33   state2          OFF
     2020-11-24 18:31:33   subscriptions   cmnd/DVES_1531E1_fb/# cmnd/IOT_SteckD_03/# cmnd/tasmotas/#
Attributes:
   IODev      myBroker
   autocreate 0
   comment    NOTE: For on-for-timer SetExtensions are used. You may add on-for-timer option running on the device. The following is limited to 1h max duration, but will not affect future simple "on" commands:<br>on-for-timer {my $duration = $EVTPART1*10; 'cmnd/cmnd/IOT_SteckD_03//Backlog POWER1 1; delay '.$duration.'; POWER1 0'}<br>See the "Praxisbeispiele" in the wiki for "pulseTime1" alternative option and it's restrictions.
   genericDeviceType switch
   icon       hue_filled_outlet
   model      tasmota_basic_state_power1
   readingList tele/IOT_SteckD_03/LWT:.* LWT
tele/IOT_SteckD_03/STATE:.* { json2nameValue($EVENT,'',$JSONMAP) }
tele/IOT_SteckD_03/SENSOR:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/INFO1.:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/INFO2.:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/INFO3.:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/UPTIME:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/POWER1:.* state1
stat/IOT_SteckD_03/POWER2:.* state2
stat/IOT_SteckD_03/RESULT:.* { json2nameValue($EVENT,'',$JSONMAP) }
   room       15_Kueche
   setList    1_off:noArg    cmnd/IOT_SteckD_03/POWER1 0
1_on:noArg     cmnd/IOT_SteckD_03/POWER1 1
1_toggle:noArg cmnd/IOT_SteckD_03/POWER1 2
2_off:noArg    cmnd/IOT_SteckD_03/POWER2 0
2_on:noArg     cmnd/IOT_SteckD_03/POWER2 1
2_toggle:noArg cmnd/IOT_SteckD_03/POWER2 2
  setOtaUrl:textField cmnd/IOT_SteckD_03/OtaUrl $EVTPART1
  upgrade:noArg   cmnd/IOT_SteckD_03/upgrade 1
   setStateList 1_on 1_off 1_toggle 2_on 2_off 2_toggle
   stateFormat <a href="http://IPAddress" target="_blank">
LWT
</a>
Dose 1: POWER1
Dose 2: POWER2
uptime: Uptime
<br>
aktuell: ENERGY_Power W
Tag: ENERGY_Today kWh
<br>
Gestern: ENERGY_Yesterday kWh
Gesamt: ENERGY_Total kWh
   webCmd     1_on:1_off:2_on:2_off


Die readingList

tele/IOT_SteckD_03/LWT:.* LWT
tele/IOT_SteckD_03/STATE:.* { json2nameValue($EVENT,'',$JSONMAP) }
tele/IOT_SteckD_03/SENSOR:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/INFO1.:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/INFO2.:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/INFO3.:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/UPTIME:.* { json2nameValue($EVENT,'',$JSONMAP) }
stat/IOT_SteckD_03/POWER1:.* state1
stat/IOT_SteckD_03/POWER2:.* state2
stat/IOT_SteckD_03/RESULT:.* { json2nameValue($EVENT,'',$JSONMAP) }


die  setList
1_off:noArg    cmnd/IOT_SteckD_03/POWER1 0
1_on:noArg     cmnd/IOT_SteckD_03/POWER1 1
1_toggle:noArg cmnd/IOT_SteckD_03/POWER1 2
2_off:noArg    cmnd/IOT_SteckD_03/POWER2 0
2_on:noArg     cmnd/IOT_SteckD_03/POWER2 1
2_toggle:noArg cmnd/IOT_SteckD_03/POWER2 2
  setOtaUrl:textField cmnd/IOT_SteckD_03/OtaUrl $EVTPART1
  upgrade:noArg   cmnd/IOT_SteckD_03/upgrade 1


setstateList


1_on 1_off 1_toggle 2_on 2_off 2_toggle


stateFormat

<a href="http://IPAddress" target="_blank">
LWT
</a>
Dose 1: POWER1
Dose 2: POWER2
uptime: Uptime
<br>
aktuell: ENERGY_Power W
Tag: ENERGY_Today kWh
<br>
Gestern: ENERGY_Yesterday kWh
Gesamt: ENERGY_Total kWh


und webCmd


1_on:1_off:2_on:2_off


Amazon hat die Dinger gerade im Doppelpack im Angebot. Meine gestern erfolgte Lieferung ließ sich ohne Probleme flashen.
Lediglich das Update auf Tasmota Version 9.1.0 gestaltete sich etwas schwierig. Man muss erst die tasmota-minimal.bin flashen und dann die deutsche Version installieren. Wenn man die HUE-Bridge für Alexa auswählt, erscheinen 2 Dosen als Lampe! in den Alexa-Geräten. Beide lassen sich jedoch einzeln schalten.

rudolfkoenig

Wenn ich richtig sehe, gibt es fuer diese Geraete auch zwei AttrTemplates, unified und split.
Mit der split Version kann man die SetextEnsions verwenden, d.h. man hat Befehle wie on-till, blink, etc zur Verfuegung.