Files
sh-etc/fhem.cfg.bak
2025-11-23 00:05:37 +01:00

592 lines
19 KiB
INI

attr global userattr DbLogExclude DbLogInclude DbLogValueFn:textField-long cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fm_fav fm_groups fm_name fm_order icon mqttName mqttRoom sortby webCmd webCmdLabel:textField-long widgetOverride
attr global autoload_undefined_devices 1
attr global autosave 0
attr global latitude 51.9919
attr global logfile /tmp/log/fhem-%Y-%m-%W.log
attr global longitude 8.4674
attr global modpath /opt/fhem
attr global motd SecurityCheck:\
WEBtablet is not password protected\
telnetPort is not password protected\
WEBS is not password protected\
\
Protect this FHEM installation by configuring the allowed device allowed_WEB\
You can disable this message with attr global motd none
attr global room FHT
attr global statefile /tmp/log/fhem.save
attr global verbose 1
# Device ----------------------------
define CUL1 CUL /dev/cul 1234
setuuid CUL1 5c8c1669-f33f-f17f-2669-2da9da22d9c2eaa1
define EUL TCM 310 /dev/tcm
setuuid EUL 5c8c166a-f33f-f17f-60c2-972f8fe65178e8cc
attr EUL .baseIDSaved FFBA6C00
attr EUL .chipIDSaved 010274D8
attr EUL sendInterval 0
attr EUL smartAckMailboxMax 0
#attr EUL sendInterval 0
define ow OWServer localhost:4304
setuuid ow 5c8c166a-f33f-f17f-3ff7-88864f017ebf8671
# Web -------------------------------
define WEB FHEMWEB 8083 global
setuuid WEB 5c8c1671-f33f-f17f-cd60-aedd5339125093c4
attr WEB HTTPS 1
attr WEB sslVersion TLSv12:!SSLv3
attr WEB stylesheetPrefix ios7touchpad
attr WEB verbose 1
define allowed_WEB allowed
setuuid allowed_WEB 5c8c1673-f33f-f17f-a893-d4db3fe038d01abd
attr allowed_WEB basicAuth SHA256:C73046F2:f966qI0qNZVVtBidcmz+0HX1VRmdViBnnCNN29cXZW8
attr allowed_WEB validFor WEB
#attr WEB room FHT
define WEBS FHEMWEB 8084 global
setuuid WEBS 5c8c1673-f33f-f17f-fd0d-3b5bb681e8f49d29
attr WEBS stylesheetPrefix smallscreen
#attr WEBS room FHT
define WEBtablet FHEMWEB 8085 global
setuuid WEBtablet 5c8c1673-f33f-f17f-5d82-25dd16d70702a6e1
attr WEBtablet stylesheetPrefix dark
#define LogfileAll FileLog /var/log/fhem/fhem-all-%Y-%m.log .*
define autocreate autocreate
setuuid autocreate 5c8c1674-f33f-f17f-7c9c-b8c35444fb804396
attr autocreate autosave 0
attr autocreate device_room %TYPE
attr autocreate disable 1
attr autocreate filelog /tmp/log/fhem-%NAME-%Y.log
attr autocreate room FHT
attr autocreate weblink 1
attr autocreate weblink_room Plots
#include /etc/fhem/licht.cfg
#include /etc/fhem/roll.cfg
define nugget FS20 150d 42
setuuid nugget 5c8c1680-f33f-f17f-c56f-732a17f0870a26af
attr nugget IODev CUL1
attr nugget fm_order 7
attr nugget room Unsorted
define twil Twilight 51.9919 8.4674
setuuid twil 5c8c1681-f33f-f17f-b58c-ab6dd277cfd870e4
attr twil DbLogExclude .*
attr twil event-on-change-reading .*
attr twil room Wetter
# ------------------------------------------------------
define EnO_switch_0080F75F EnOcean 0080F75F
setuuid EnO_switch_0080F75F 5c8c1682-f33f-f17f-3222-4a68360c3c007518
attr EnO_switch_0080F75F IODev EUL
attr EnO_switch_0080F75F manufID 7FF
attr EnO_switch_0080F75F room EnOcean
attr EnO_switch_0080F75F subType switch
define telnetPort telnet 7072 global
setuuid telnetPort 5c8c1682-f33f-f17f-aa6b-bf1faa1f388de9b8
define test EnOcean FFBA6C01
setuuid test 5c8c1682-f33f-f17f-254e-8cb16d5437581524
attr test IODev EUL
attr test eventMap BI:off B0:on
attr test manufID 7FF
attr test room EnOcean
attr test subType switch
define arb.swRoll EnOcean FEFF9AC9
setuuid arb.swRoll 5c8c1682-f33f-f17f-8ef5-9790f4dc347e2e58
attr arb.swRoll IODev EUL
attr arb.swRoll manufID 7FF
attr arb.swRoll room EnOcean
attr arb.swRoll subType switch
define EnO_switch_FEFF9ACB EnOcean FEFF9ACB
setuuid EnO_switch_FEFF9ACB 5c8c1682-f33f-f17f-1d23-5684f3fefc5013ac
attr EnO_switch_FEFF9ACB IODev EUL
attr EnO_switch_FEFF9ACB manufID 7FF
attr EnO_switch_FEFF9ACB room EnOcean
attr EnO_switch_FEFF9ACB subType switch
define EnO_switch_FEFF69CA EnOcean FEFF69CA
setuuid EnO_switch_FEFF69CA 5c8c1682-f33f-f17f-8625-d5c161ea54938e13
attr EnO_switch_FEFF69CA IODev EUL
attr EnO_switch_FEFF69CA manufID 7FF
attr EnO_switch_FEFF69CA room EnOcean
attr EnO_switch_FEFF69CA subType switch
define EnO_switch_FEFF9ADA EnOcean FEFF9ADA
setuuid EnO_switch_FEFF9ADA 5c8c1682-f33f-f17f-b4b4-efae102f4bc7c9ba
attr EnO_switch_FEFF9ADA IODev EUL
attr EnO_switch_FEFF9ADA manufID 7FF
attr EnO_switch_FEFF9ADA room EnOcean
attr EnO_switch_FEFF9ADA subType switch
define bad.swRoll EnOcean FEFF9AD6
setuuid bad.swRoll 5c8c1682-f33f-f17f-b664-4768a1eaa7c5c59b
attr bad.swRoll IODev EUL
attr bad.swRoll manufID 7FF
attr bad.swRoll room EnOcean
attr bad.swRoll subType switch
define EnO_switch_0004909F EnOcean 0004909F
setuuid EnO_switch_0004909F 5c8c1682-f33f-f17f-cf15-254e0a9f97dd2130
attr EnO_switch_0004909F IODev EUL
attr EnO_switch_0004909F manufID 7FF
attr EnO_switch_0004909F room EnOcean
attr EnO_switch_0004909F subType switch
define EnO_switch_184BB7B3 EnOcean 184BB7B3
setuuid EnO_switch_184BB7B3 5c8c1682-f33f-f17f-20e9-6d3b83e9c2f0c90a
attr EnO_switch_184BB7B3 IODev EUL
attr EnO_switch_184BB7B3 manufID 7FF
attr EnO_switch_184BB7B3 room EnOcean
attr EnO_switch_184BB7B3 subType switch
define EnO_switch_6D736A14 EnOcean 6D736A14
setuuid EnO_switch_6D736A14 5c8c1682-f33f-f17f-0077-4f9e83c1ea6d6aef
attr EnO_switch_6D736A14 IODev EUL
attr EnO_switch_6D736A14 manufID 7FF
attr EnO_switch_6D736A14 room EnOcean
attr EnO_switch_6D736A14 subType switch
define schlaf.swRoll EnOcean FEFF69C9
setuuid schlaf.swRoll 5c8c1682-f33f-f17f-4480-6a5cabe68cc81af7
attr schlaf.swRoll IODev EUL
attr schlaf.swRoll manufID 7FF
attr schlaf.swRoll room EnOcean
attr schlaf.swRoll subType switch
define EnO_switch_94949A20 EnOcean 94949A20
setuuid EnO_switch_94949A20 5c8c1682-f33f-f17f-ac31-10b62b33a1e50089
attr EnO_switch_94949A20 IODev EUL
attr EnO_switch_94949A20 manufID 7FF
attr EnO_switch_94949A20 room EnOcean
attr EnO_switch_94949A20 subType switch
define fluter FS20 2580 10
setuuid fluter 5c8c1682-f33f-f17f-af4e-2095093227b19924
attr fluter IODev CUL1
attr fluter mqttName 3d
attr fluter mqttRoom arb
attr fluter room DG,FS20,Licht
define EnO_switch_D41CF761 EnOcean D41CF761
setuuid EnO_switch_D41CF761 5c8c1682-f33f-f17f-9fe1-9da732b53ec2d3ca
attr EnO_switch_D41CF761 IODev EUL
attr EnO_switch_D41CF761 manufID 7FF
attr EnO_switch_D41CF761 room EnOcean
attr EnO_switch_D41CF761 subType switch
define EnO_switch_94B5BF30 EnOcean 94B5BF30
setuuid EnO_switch_94B5BF30 5c8c1682-f33f-f17f-0526-106e17b236771273
attr EnO_switch_94B5BF30 IODev EUL
attr EnO_switch_94B5BF30 manufID 7FF
attr EnO_switch_94B5BF30 room EnOcean
attr EnO_switch_94B5BF30 subType switch
define EnO_switch_184BEFB3 EnOcean 184BEFB3
setuuid EnO_switch_184BEFB3 5c8c1682-f33f-f17f-decb-98d30a5e9648594c
attr EnO_switch_184BEFB3 IODev EUL
attr EnO_switch_184BEFB3 manufID 7FF
attr EnO_switch_184BEFB3 room EnOcean
attr EnO_switch_184BEFB3 subType switch
define EnO_switch_0185BE23 EnOcean 0185BE23
setuuid EnO_switch_0185BE23 5c8c1683-f33f-f17f-51fd-dd5dd745d170f48a
attr EnO_switch_0185BE23 IODev EUL
attr EnO_switch_0185BE23 manufID 7FF
attr EnO_switch_0185BE23 room EnOcean
attr EnO_switch_0185BE23 subType switch
define test.dimm EnOcean 018BE507
setuuid test.dimm 5c8c1683-f33f-f17f-4ced-cb9e6a5272f8c3d1
attr test.dimm IODev EUL
attr test.dimm dimValueOn last
attr test.dimm gwCmd dimming
attr test.dimm manufID 00D
attr test.dimm room unused
attr test.dimm subDef FFBA6C12
attr test.dimm subType gateway
define sw_Kueche EnOcean FEFD30AC
setuuid sw_Kueche 5c8c1683-f33f-f17f-cde5-3cac8f30780db099
attr sw_Kueche IODev EUL
attr sw_Kueche manufID 7FF
attr sw_Kueche room EnOcean
attr sw_Kueche subType switch
attr sw_Kueche verbose 2
define kueche.dimm EnOcean 01902605
setuuid kueche.dimm 5c8c1683-f33f-f17f-190c-2b7d289c71546fb0
attr kueche.dimm userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
attr kueche.dimm IODev EUL
attr kueche.dimm dimValueOn last
attr kueche.dimm gwCmd dimming
attr kueche.dimm manufID 00D
attr kueche.dimm mqttName dimm
attr kueche.dimm mqttRoom kuch
attr kueche.dimm room Licht,OG
attr kueche.dimm subDef FFBA6C13
attr kueche.dimm subType gateway
attr kueche.dimm webCmd dim
define EnO_switch_19026053 EnOcean 19026053
setuuid EnO_switch_19026053 5c8c1683-f33f-f17f-c6be-1506154c1f3c025a
attr EnO_switch_19026053 IODev EUL
attr EnO_switch_19026053 manufID 7FF
attr EnO_switch_19026053 room EnOcean
attr EnO_switch_19026053 subType switch
#define swTreppeUnten EnOcean FEFD3099
#setuuid swTreppeUnten 5c8c1683-f33f-f17f-25c9-b86d471957675aed
#attr swTreppeUnten IODev EUL
#attr swTreppeUnten manufID 7FF
#attr swTreppeUnten room EnOcean
#attr swTreppeUnten subType switch
#define treppe.dimm EnOcean 01911B0B
#setuuid treppe.dimm 5c8c1683-f33f-f17f-f008-bd188ef54d926eec
#attr treppe.dimm userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
#attr treppe.dimm IODev EUL
#attr treppe.dimm dimValueOn last
#attr treppe.dimm gwCmd dimming
#attr treppe.dimm manufID 00D
#attr treppe.dimm room DG,Licht
#attr treppe.dimm subDef FFBA6C14
#attr treppe.dimm subType gateway
#attr treppe.dimm webCmd dim
#define swTreppeOben EnOcean FEFD31B2
#setuuid swTreppeOben 5c8c1683-f33f-f17f-eb36-771200664ec9bc26
#attr swTreppeOben IODev EUL
#attr swTreppeOben manufID 7FF
#attr swTreppeOben room EnOcean
#attr swTreppeOben subType switch
define wohn.stehlampe EnOcean 01939FC8
setuuid wohn.stehlampe 5c8c1683-f33f-f17f-25d8-f39cc95fc5f05fc5
attr wohn.stehlampe userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
attr wohn.stehlampe IODev EUL
attr wohn.stehlampe dimValueOn last
attr wohn.stehlampe gwCmd dimming
attr wohn.stehlampe manufID 00D
attr wohn.stehlampe mqttName stehlampe
attr wohn.stehlampe mqttRoom wohn
attr wohn.stehlampe room Licht,OG
attr wohn.stehlampe subDef FFBA6C15
attr wohn.stehlampe subType gateway
attr wohn.stehlampe webCmd dim
#define avr PIONEERAVR telnet 192.168.178.42:23
#setuuid avr 5c8c1685-f33f-f17f-bfab-1ac98c6c7bc604a1
#attr avr DbLogExclude *
#attr avr devStateIcon on:rc_GREEN:off off:rc_STOP:on disconnected:rc_RED:reopen
#attr avr event-on-change-reading .*
#attr avr room OG
#attr avr webCmd volume:mute:input
#
#define PIONEERAVRZONE_zone2 PIONEERAVRZONE zone2
#setuuid PIONEERAVRZONE_zone2 5c8c1685-f33f-f17f-452f-2332e988342588b9
#attr PIONEERAVRZONE_zone2 IODev avr
#attr PIONEERAVRZONE_zone2 devStateIcon on:rc_GREEN:off off:rc_STOP:on absent:rc_RED
#attr PIONEERAVRZONE_zone2 room PIONEERAVRZONE
#attr PIONEERAVRZONE_zone2 webCmd volume:mute:input
#
#
#define PIONEERAVRZONE_hdZone PIONEERAVRZONE hdZone
#setuuid PIONEERAVRZONE_hdZone 5c8c1685-f33f-f17f-046b-5b48f59e30209533
#attr PIONEERAVRZONE_hdZone IODev avr
#attr PIONEERAVRZONE_hdZone devStateIcon on:rc_GREEN:off off:rc_STOP:on absent:rc_RED
#attr PIONEERAVRZONE_hdZone room PIONEERAVRZONE
#attr PIONEERAVRZONE_hdZone webCmd volume:mute:input
define OG_RL_Flur OWDevice 28.8EBF29050000 60
setuuid OG_RL_Flur 5c8c1685-f33f-f17f-fa8f-1ed104d0bb71f807
attr OG_RL_Flur IODev ow
attr OG_RL_Flur event-on-change-reading temperature
attr OG_RL_Flur model DS18B20
attr OG_RL_Flur mqttName flur
attr OG_RL_Flur mqttRoom heizung
attr OG_RL_Flur room OWDevice
define OG_VL OWDevice 28.D48D34050000 60
setuuid OG_VL 5c8c1685-f33f-f17f-0ea8-f348a6d23bee138b
attr OG_VL IODev ow
attr OG_VL event-on-change-reading temperature
attr OG_VL model DS18B20
attr OG_VL mqttName og_vorlauf
attr OG_VL mqttRoom heizung
attr OG_VL room OWDevice
define OG_RL_Kueche OWDevice 28.217B35050000 60
setuuid OG_RL_Kueche 5c8c1686-f33f-f17f-01a9-36de08cc750d75a0
attr OG_RL_Kueche IODev ow
attr OG_RL_Kueche event-on-change-reading temperature
attr OG_RL_Kueche model DS18B20
attr OG_RL_Kueche mqttName kueche
attr OG_RL_Kueche mqttRoom heizung
attr OG_RL_Kueche room OWDevice
define OG_RL_Wohn1 OWDevice 28.B3E134050000 60
setuuid OG_RL_Wohn1 5c8c1686-f33f-f17f-0387-8e529c4b4fc4eec3
attr OG_RL_Wohn1 IODev ow
attr OG_RL_Wohn1 event-on-change-reading temperature
attr OG_RL_Wohn1 model DS18B20
attr OG_RL_Wohn1 mqttName flur1
attr OG_RL_Wohn1 mqttRoom heizung
attr OG_RL_Wohn1 room OWDevice
define OG_RL_Wohn2 OWDevice 28.1BC035050000 60
setuuid OG_RL_Wohn2 5c8c1686-f33f-f17f-b0b2-99790fcceeb66543
attr OG_RL_Wohn2 IODev ow
attr OG_RL_Wohn2 event-on-change-reading temperature
attr OG_RL_Wohn2 model DS18B20
attr OG_RL_Wohn2 mqttName wohn2
attr OG_RL_Wohn2 mqttRoom heizung
attr OG_RL_Wohn2 room OWDevice
define rl7 OWDevice 28.5EEB34050000 60
setuuid rl7 5c8c1686-f33f-f17f-b016-04a44f777c47f28a
attr rl7 IODev ow
attr rl7 event-on-change-reading temperature
attr rl7 model DS18B20
attr rl7 mqttName studio
attr rl7 mqttRoom heizung
attr rl7 room OWDevice
define DG_VL OWDevice 28.0BC529050000 120
setuuid DG_VL 5c8c1686-f33f-f17f-7c78-dac59010fb6d466a
attr DG_VL IODev ow
attr DG_VL event-on-change-reading temperature
attr DG_VL model DS18B20
attr DG_VL mqttName dg_vorlauf
attr DG_VL mqttRoom heizung
attr DG_VL room OWDevice
define rl9 OWDevice 28.CBA235050000 60
setuuid rl9 5c8c1686-f33f-f17f-76bf-a7aba82d3e51c45b
attr rl9 IODev ow
attr rl9 event-on-change-reading temperature
attr rl9 model DS18B20
attr rl9 mqttName schlaf
attr rl9 mqttRoom heizung
attr rl9 room OWDevice
define RL_Bad OWDevice 28.E7ED35050000 60
setuuid RL_Bad 5c8c1686-f33f-f17f-de39-61a6c076ac794f0d
attr RL_Bad IODev ow
attr RL_Bad event-on-change-reading temperature
attr RL_Bad model DS18B20
attr RL_Bad mqttName bad
attr RL_Bad mqttRoom heizung
attr RL_Bad room OWDevice
define tempSchlaf OWDevice 28.486B35050000 120
setuuid tempSchlaf 5c8c1686-f33f-f17f-d8f3-43bc713a67606e0e
attr tempSchlaf IODev ow
attr tempSchlaf event-on-change-reading temperature
attr tempSchlaf model DS18B20
attr tempSchlaf mqttName temp
attr tempSchlaf mqttRoom schlaf
attr tempSchlaf room DG,OWDevice,Wetter
define tempBad OWDevice 28.903A29070000 120
setuuid tempBad 5c8c1686-f33f-f17f-78d8-f8db991e3fb8c8cb
attr tempBad IODev ow
attr tempBad event-on-change-reading temperature
attr tempBad model DS18B20
attr tempBad mqttName temp
attr tempBad mqttRoom bad
attr tempBad room DG,OWDevice,Wetter
define tempStudio OWDevice 28.6E282A070000 120
setuuid tempStudio 5c8c1686-f33f-f17f-ee6d-95f9c4c649a6458c
attr tempStudio IODev ow
attr tempStudio event-on-change-reading temperature
attr tempStudio model DS18B20
attr tempStudio mqttName temp
attr tempStudio mqttRoom studio
attr tempStudio room DG,OWDevice,Wetter
define tempKueche OWDevice 28.BB7A2A070000 120
setuuid tempKueche 5c8c1686-f33f-f17f-ea58-6546b6060cc02c34
attr tempKueche IODev ow
attr tempKueche event-on-change-reading temperature
attr tempKueche model DS18B20
attr tempKueche mqttName temp
attr tempKueche mqttRoom kueche
attr tempKueche room OG,OWDevice,Wetter
define tempWohn OWDevice 28.9B9729070000 120
setuuid tempWohn 5c8c1686-f33f-f17f-a0a6-4e7ae641a93daae0
attr tempWohn IODev ow
attr tempWohn event-on-change-reading temperature
attr tempWohn model DS18B20
attr tempWohn mqttName temp
attr tempWohn mqttRoom wohn
attr tempWohn resolution 12
attr tempWohn room OG,OWDevice,Wetter
attr tempWohn userReadings temp_A {ReadingsVal("tempWohn", "temperature", "0")+2.5;;}
define bmEss FS20 39be 00
setuuid bmEss 5c8c1686-f33f-f17f-b04f-69c63936be8c3c6f
attr bmEss IODev CUL1
attr bmEss mqttName bm
attr bmEss mqttRoom ess
attr bmEss room FS20
define bmEss2 FS20 39be 01
setuuid bmEss2 5c8c1686-f33f-f17f-903c-8fcc2fa1e95740d7
attr bmEss2 IODev CUL1
attr bmEss2 room FS20
define bmFlurOG2 FS20 bf1e 01
setuuid bmFlurOG2 5c8c1686-f33f-f17f-42c6-072fe35243723de4
attr bmFlurOG2 IODev CUL1
attr bmFlurOG2 room FS20
define bmFlurOG FS20 bf1e 00
setuuid bmFlurOG 5c8c1686-f33f-f17f-4a36-091bb375f53e8441
attr bmFlurOG IODev CUL1
attr bmFlurOG room FS20
define bmWohn FS20 e4d2 00
setuuid bmWohn 5c8c1687-f33f-f17f-0663-f5197f8ada0bb87b
attr bmWohn IODev CUL1
attr bmWohn room FS20
define bmWohn2 FS20 e4d2 01
setuuid bmWohn2 5c8c1687-f33f-f17f-6235-98108a9b56443be8
attr bmWohn2 IODev CUL1
attr bmWohn2 room FS20
define bmKueche FS20 65bf 00
setuuid bmKueche 5c8c1687-f33f-f17f-ed73-d3917b03e7a995f5
attr bmKueche IODev CUL1
attr bmKueche mqttName bm
attr bmKueche mqttRoom kuch
attr bmKueche room FS20
define bmKueche2 FS20 65bf 01
setuuid bmKueche2 5c8c1687-f33f-f17f-a4b8-58c70798da1f5dee
attr bmKueche2 IODev CUL1
attr bmKueche2 room FS20
define tag dummy
setuuid tag 5c8c1688-f33f-f17f-2d44-633a168646ce3c05
attr tag event-on-change-reading 1
define hell dummy
setuuid hell 5c8c1688-f33f-f17f-2f27-6ad6c444e224ad1c
attr hell event-on-change-reading .*
define DebugRoll dummy
setuuid DebugRoll 5c8c1688-f33f-f17f-0a9e-d592ce56860eb0e2
define terr.Markise EnOcean 01A3343F
setuuid terr.Markise 5c8c1688-f33f-f17f-ebe2-646f2e49b4626ee0
attr terr.Markise IODev EUL
attr terr.Markise eep A5-3F-7F
attr terr.Markise manufID 00D
attr terr.Markise model FSB61
attr terr.Markise mqttName Markise
attr terr.Markise mqttRoom terr
attr terr.Markise room OG,Rolladen
attr terr.Markise subDef FFBA6C0D
attr terr.Markise subType manufProfile
attr terr.Markise webCmd opens:closes:stop:slot
define swTerrasse EnOcean FEFAF8EC
setuuid swTerrasse 5c8c1688-f33f-f17f-eaf3-457c0bc7c1275eef
attr swTerrasse IODev EUL
attr swTerrasse manufID 7FF
attr swTerrasse room EnOcean
attr swTerrasse subType switch
attr swTerrasse verbose 5
define myWH1080 WS3600 "cat /tmp/frewe.filtered" 50
setuuid myWH1080 5c8c1688-f33f-f17f-423f-b0055b285a136570
attr myWH1080 event-min-interval Rain-total:1800
attr myWH1080 event-on-change-reading Wind-Gust,Temp-outside,Temp-outside-last,rel-Pressure,Rain-total
attr myWH1080 mqttName wetter
attr myWH1080 mqttRoom terrasse
attr myWH1080 room OWDevice,Wetter
attr myWH1080 verbose 0
define nMarkise notify myWH1080:Wind-Gust.* { \
if (ReadingsVal("myWH1080","Wind-Gust","0") > 35) { fhem "set terr.Markise opens";;}\
my $lastmeas_time = time_str2num(ReadingsVal("myWH1080","DTime","0"));;\
my $now_tstamp = TimeNow();;\
my $now_time = time_str2num("$now_tstamp");;\
my $del_secs = int( $now_time-$lastmeas_time );;\
Log 4, " Wetter Time-Diff: $del_secs|n";;\
}
setuuid nMarkise 5c8c168b-f33f-f17f-7a2b-b8f0a1f0083cc363
attr nMarkise verbose 1
define blockRoll dummy
setuuid blockRoll 5df40e26-f33f-f17f-901b-e84dea759cd788da
attr blockRoll room Licht
define Mosquitto MQTT 192.168.178.25:1883
setuuid Mosquitto 5fe0e4c1-f33f-5476-7526-d746311ab17b090e
attr Mosquitto room MQTT
attr Mosquitto verbose 0
define n_publish_mqtt notify .*:.* {\
my $mqttRoom = AttrVal($NAME, 'mqttRoom', '');;\
my $mqttName = AttrVal($NAME, 'mqttName', '');;\
\
if ($mqttRoom ne '' && $mqttName ne '') {\
my $reading = "";;\
my $message = "";;\
if ($EVENT =~ qr/(.*?): (.*)/p) {\
$reading = $1;;\
$message = $2;;\
} else {\
$reading = "state";;\
$message = $EVENT;;\
}\
my $topic = "fhem/$mqttRoom/$mqttName/$reading";;\
fhem("set Mosquitto publish $topic $message");;\
#Log 1, "MQTT:$topic";;\
}\
}
setuuid n_publish_mqtt 5fe0e4d1-f33f-5476-cf33-ef89efb3a2a5b2f6
attr n_publish_mqtt room MQTT
define sys_mqtt MQTT_DEVICE
setuuid sys_mqtt 5fe2545e-f33f-5476-5f5e-5412ac323abcce7b
attr sys_mqtt userattr subscribeReading_cmnd
attr sys_mqtt IODev Mosquitto
attr sys_mqtt room MQTT
attr sys_mqtt subscribeReading_cmnd fhem/cmnd
attr sys_mqtt verbose 1
define n_sys_mqtt_cmnd notify sys_mqtt:.* {\
Log 1, "MQTT: $EVENT";;\
if ($EVENT =~ qr/.*?: (.*)/p) {\
my $cmnd = $1;;\
#Log3($NAME, 1, "-----executed mqtt command: " . $cmnd);;\
fhem($cmnd);;\
}\
}
setuuid n_sys_mqtt_cmnd 5fe25515-f33f-5476-430f-5e321298a8484bef
attr n_sys_mqtt_cmnd room MQTT
define wohn.fenTerr CUL_FHTTK 0db86a
setuuid wohn.fenTerr 5c8c1675-f33f-f17f-3aea-398df33e0e415cab
attr wohn.fenTerr IODev CUL1
attr wohn.fenTerr event-on-change-reading .*
attr wohn.fenTerr fm_order 5
attr wohn.fenTerr mqttName fenster
attr wohn.fenTerr mqttRoom wohn
attr wohn.fenTerr room FS20