Hi,
Here is my Tasmota coffee machine switch:
stat/Wuudi/RESULT = {"Topic":"Wuudi"}
and in FHEM:
defmod KU_Kaffee MQTT2_DEVICE DVES_2A360A
attr KU_Kaffee IODev MQTT2_FHEM_Server
attr KU_Kaffee autocreate 0
attr KU_Kaffee 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/Wuudi/Backlog POWER1 1;; delay '.$duration.';; POWER1 0'}<br>See the "Praxisbeispiele" in the wiki for "pulseTime1" alternative option and it's restrictions.
attr KU_Kaffee genericDeviceType switch
attr KU_Kaffee icon virtualbox
attr KU_Kaffee jsonMap POWER1:0 POWER2:0 POWER3:0 POWER4:0 Dimmer:0 Channel_0:0 Channel_1:0 Channel_2:0 Channel_3:0 Channel_4:0 HSBColor:0 Color:0
attr KU_Kaffee model tasmota_basic_state_power1
attr KU_Kaffee readingList tele/Wuudi/LWT:.* LWT\
tele/Wuudi/STATE:.* { json2nameValue($EVENT,'',$JSONMAP) }\
tele/Wuudi/SENSOR:.* { json2nameValue($EVENT,'',$JSONMAP) }\
tele/Wuudi/INFO.:.* { json2nameValue($EVENT,'',$JSONMAP) }\
tele/Wuudi/UPTIME:.* { json2nameValue($EVENT,'',$JSONMAP) }\
subscriptions
cmnd/DVES_2A360A_fb/# cmnd/Wuudi/# cmnd/tasmotas/#
FallbackTopic
cmnd/DVES_2A360A_fb/
GroupTopic
cmnd/tasmotas/
And here the mqtt2 Device in FHEM:
defmod MQTT2_FHEM_Server MQTT2_SERVER 1883 global
setstate MQTT2_FHEM_Server 2020-04-26 17:57:34 RETAIN {"tele/DVES_93AADA/LWT":"Offline","tele/Wuudi/LWT":"Online","tele/tasmota/LWT":"Online","tele/tasmota_809852/LWT":"Offline","tele/tasmota_93AADA/LWT":"Offline"}
setstate MQTT2_FHEM_Server 2020-04-17 09:10:34 lastPublish cmnd/InSmart/Backlog:StateText1 off;; StateText2 on;; StateText3 toggle;; StateText4 hold;; SetOption26 1;; SaveData 1
setstate MQTT2_FHEM_Server 2020-04-26 17:58:37 nrclients 6
setstate MQTT2_FHEM_Server 2020-04-17 15:46:32 state Initialized
Greetings, Arnd
Signalduino (Nano, ESP, ...), CUL (Busware, Nano, Maple, ...), Homematic (HM-MOD-UART-RPI, ESP, Maple, ...), LaCrosseGateway (LGW, ESP, ...), 1-wire, ESPEasy, Bravia, Yamaha, ...