Garagentor mit MQTT, Reedkontakt und Alexaanbindung

Begonnen von der Bernhard, 22 Dezember 2020, 12:59:16

Vorheriges Thema - Nächstes Thema

trs

Mit zwei Reed-Kontakten für auf und zu. ShellyUNI mit Tasmota:

defmod Garagentor MQTT2_DEVICE DVES_78C00B
attr Garagentor IODev MQTT
attr Garagentor alexaName Garagentor
attr Garagentor alexaRoom Garage
attr Garagentor autocreate 0
attr Garagentor comment pct:colorpicker,BRI,0,1,100 cmnd/DVES_12F2A2/POWER1 1
attr Garagentor devStateIcon 100:fts_garage_door_100 0:fts_garage_door_10 50:fts_garage_door_50 49:fts_garage_door_up 51:fts_garage_door_down
attr Garagentor event-on-update-reading pct,state
attr Garagentor eventMap stop:pct
attr Garagentor genericDeviceType blind
attr Garagentor group 1 Lichtschalter
attr Garagentor icon fts_garage
attr Garagentor 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 Channel_5:0 HSBColor:0 Color:0
attr Garagentor model tasmota_basic_state_power1
attr Garagentor readingList tele/DVES_78C00B/LWT:.* LWT\
tele/DVES_78C00B/STATE:.* { json2nameValue($EVENT,'',$JSONMAP) }\
tele/DVES_78C00B/SENSOR:.* { json2nameValue($EVENT,'',$JSONMAP) }\
tele/DVES_78C00B/INFO.:.* { json2nameValue($EVENT,'',$JSONMAP) }\
tele/DVES_78C00B/UPTIME:.* { json2nameValue($EVENT,'',$JSONMAP) }\
stat/DVES_78C00B/RESULT:.* { json2nameValue($EVENT,'',$JSONMAP) }\
stat/DVES_78C00B/POWER1:.* state\
stat/DVES_78C00B/POWER4:1 {{ state => 'off', pct => '0'}}\
stat/DVES_78C00B/POWER3:1 {{ state => 'on', pct => '100'}}\
stat/DVES_78C00B/POWER3:0 {{ state => 'toggle', pct => '49'}}\
stat/DVES_78C00B/POWER4:0 {{ state => 'toggle', pct => '51'}}
attr Garagentor room Garage T.,MQTT2_DEVICE
attr Garagentor setList on:noArg cmnd/DVES_78C00B/POWER1 1\
off:noArg cmnd/DVES_78C00B/POWER1 1\
stop:noArg cmnd/DVES_78C00B/POWER1 1
attr Garagentor setStateList on off stop
attr Garagentor stateFormat pct
attr Garagentor webCmd toggle

setstate Garagentor 100
setstate Garagentor 2023-01-31 12:10:57 ANALOG_Range 0
setstate Garagentor 2023-01-29 18:41:43 BASE 18
setstate Garagentor 2023-01-28 19:28:22 BootCount 22
setstate Garagentor 2023-01-29 14:27:43 Command Unknown
setstate Garagentor 2023-01-29 18:41:43 DeviceName Garagentor
setstate Garagentor 2023-01-29 18:41:43 Emulation 0
setstate Garagentor 2023-01-29 18:41:43 FLAG 0
setstate Garagentor 2023-01-28 19:28:22 FallbackTopic cmnd/DVES_06X%_fb/
setstate Garagentor 2023-01-29 18:41:43 FriendlyName1 Tasmota
setstate Garagentor 2023-01-29 18:41:43 FriendlyName2
setstate Garagentor 2023-01-29 18:41:43 FriendlyName3
setstate Garagentor 2023-01-29 18:41:43 FriendlyName4
setstate Garagentor 2023-01-29 18:41:43 FriendlyName5
setstate Garagentor 2023-01-29 18:41:43 FriendlyName6
setstate Garagentor 2023-01-29 18:41:43 FriendlyName7
setstate Garagentor 2023-01-29 18:41:43 FriendlyName8
setstate Garagentor 2023-01-29 18:41:43 GPIO_1 320
setstate Garagentor 2023-01-29 18:41:43 GPIO_10 195
setstate Garagentor 2023-01-29 18:41:43 GPIO_11 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_12 224
setstate Garagentor 2023-01-29 18:41:43 GPIO_13 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_14 4864
setstate Garagentor 2023-01-29 18:41:43 GPIO_2 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_3 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_4 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_5 225
setstate Garagentor 2023-01-29 18:41:43 GPIO_6 1216
setstate Garagentor 2023-01-29 18:41:43 GPIO_7 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_8 0
setstate Garagentor 2023-01-29 18:41:43 GPIO_9 194
setstate Garagentor 2023-01-28 19:28:22 GroupTopic cmnd/tasmotas/
setstate Garagentor 2023-01-31 12:10:57 Heap 26
setstate Garagentor 2023-01-28 19:28:22 Hostname DVES-78C00B-0011
setstate Garagentor 2023-01-28 18:38:14 IODev MQTT
setstate Garagentor 2023-01-28 19:28:22 IPAddress 192.168.1.82
setstate Garagentor 2023-01-30 20:35:51 Info1_FallbackTopic cmnd/DVES_78C00B_fb/
setstate Garagentor 2023-01-30 20:35:51 Info1_GroupTopic cmnd/tasmotas/
setstate Garagentor 2023-01-30 20:35:51 Info1_Module Shelly Uni
setstate Garagentor 2023-01-30 20:35:51 Info1_Version 12.3.1(tasmota)
setstate Garagentor 2023-01-30 20:35:51 Info2_Hostname DVES-78C00B-0011
setstate Garagentor 2023-01-30 20:35:51 Info2_IPAddress 192.168.1.82
setstate Garagentor 2023-01-30 20:35:51 Info2_WebServerMode Admin
setstate Garagentor 2023-01-30 20:35:51 Info3_BootCount 16
setstate Garagentor 2023-01-30 20:35:51 Info3_RestartReason Hardware Watchdog
setstate Garagentor 2023-01-30 20:35:51 LWT Online
setstate Garagentor 2023-01-31 12:10:57 LoadAvg 19
setstate Garagentor 2023-01-28 19:28:22 Module Shelly Uni
setstate Garagentor 2023-01-31 12:10:57 MqttCount 1
setstate Garagentor 2023-01-29 18:41:43 NAME Shelly Uni
setstate Garagentor 2023-01-28 20:29:26 Reset Reset and Restarting
setstate Garagentor 2023-01-28 19:28:22 RestartReason Software/System restart
setstate Garagentor 2023-01-29 15:05:28 Rule1_Free 446
setstate Garagentor 2023-01-29 15:05:28 Rule1_Length 65
setstate Garagentor 2023-01-29 15:05:28 Rule1_Once OFF
setstate Garagentor 2023-01-29 15:05:28 Rule1_Rules on Switch3#state do Publish stat/DVES_78C00B/POWER3 %value% endon
setstate Garagentor 2023-01-29 15:05:28 Rule1_State ON
setstate Garagentor 2023-01-29 15:05:28 Rule1_StopOnError OFF
setstate Garagentor 2023-01-29 15:06:04 Rule2_Free 446
setstate Garagentor 2023-01-29 15:06:04 Rule2_Length 65
setstate Garagentor 2023-01-29 15:06:04 Rule2_Once OFF
setstate Garagentor 2023-01-29 15:06:04 Rule2_Rules on Switch4#state do Publish stat/DVES_78C00B/POWER4 %value% endon
setstate Garagentor 2023-01-29 15:06:04 Rule2_State ON
setstate Garagentor 2023-01-29 15:06:04 Rule2_StopOnError OFF
setstate Garagentor 2023-01-29 18:41:43 SetOption128 ON
setstate Garagentor 2023-01-29 10:36:02 SetOption26 ON
setstate Garagentor 2023-01-29 18:41:43 SetOption3 ON
setstate Garagentor 2023-01-29 14:13:08 SetOption73 ON
setstate Garagentor 2023-01-31 12:10:57 Sleep 50
setstate Garagentor 2023-01-31 12:10:57 SleepMode Dynamic
setstate Garagentor 2023-01-29 10:32:44 Switch1 ON
setstate Garagentor 2023-01-29 14:34:31 Switch2 ON
setstate Garagentor 2023-01-31 12:10:57 Switch3 ON
setstate Garagentor 2023-01-31 12:10:57 Switch4 OFF
setstate Garagentor 2023-01-29 14:36:30 SwitchMode1 1
setstate Garagentor 2023-01-29 14:35:46 SwitchMode2 2
setstate Garagentor 2023-01-29 14:36:39 SwitchMode3 2
setstate Garagentor 2023-01-29 14:36:45 SwitchMode4 2
setstate Garagentor 2023-01-31 12:10:57 TempUnit C
setstate Garagentor 2023-01-31 12:10:57 Time 2023-01-31T12:10:56
setstate Garagentor 2023-01-31 12:10:57 Uptime 0T15:35:10
setstate Garagentor 2023-01-31 12:10:57 UptimeSec 56110
setstate Garagentor 2023-01-28 19:28:22 Version 12.3.1(tasmota)
setstate Garagentor 2023-01-29 18:41:43 WebPassword ****
setstate Garagentor 2023-01-28 19:28:22 WebServerMode Admin
setstate Garagentor 2023-01-31 12:10:57 Wifi_AP 1
setstate Garagentor 2023-01-31 12:10:57 Wifi_BSSId 1C:ED:6F:0B:6C:D9
setstate Garagentor 2023-01-31 12:10:57 Wifi_Channel 6
setstate Garagentor 2023-01-31 12:10:57 Wifi_Downtime 0T00:00:03
setstate Garagentor 2023-01-31 12:10:57 Wifi_LinkCount 1
setstate Garagentor 2023-01-31 12:10:57 Wifi_Mode 11n
setstate Garagentor 2023-01-31 12:10:57 Wifi_RSSI 44
setstate Garagentor 2023-01-31 12:10:57 Wifi_SSId FRITZ!Box Fon WLAN 7390 TRS
setstate Garagentor 2023-01-31 12:10:57 Wifi_Signal -78
setstate Garagentor 2023-01-28 18:57:53 attrTemplateVersion 20210523
setstate Garagentor 2023-01-31 05:17:05 pct 100
setstate Garagentor 2023-01-31 05:17:05 state on