mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
mqtt2.template:small eocr-changes to OMG
git-svn-id: https://svn.fhem.de/fhem/trunk@25713 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5d01d7e570
commit
2502aba9e0
@ -4377,14 +4377,14 @@ attr OMG_BT_ID autocreate 0
|
||||
attr OMG_BT_ID readingList\
|
||||
BASE_ID/(O[^/]*M[^/]*G[^/]*)/BTtoMQTT/BT_ID:.* { $TOPIC =~ m,BASE_ID/(O[^/]*M[^/]*G[^/]*)/BTtoMQTT,; json2nameValue($EVENT, "${1}_") }\
|
||||
BASE_ID/(O[^/]*M[^/]*G[^/]*)/BTtoMQTT/BT_ID:.* { $TOPIC =~ m,BASE_ID/(O[^/]*M[^/]*G[^/]*)/BTtoMQTT,; {"last_IO"=>"$1"}}
|
||||
attr OMG_BT_ID event-min-interval 300
|
||||
attr OMG_BT_ID event-min-interval .*:300
|
||||
attr OMG_BT_ID icon ICON
|
||||
attr OMG_BT_ID stateFormat Last IO: last_IO
|
||||
attr OMG_BT_ID room NEWDEVROOM
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=OMG_BT_ID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
attr OMG_BT_ID model OpenMQTTGateway_BT_gtag
|
||||
set DEVICE attrTemplate set_IODev_in_channels SUBCHANNELS=OMG_BT_ID
|
||||
setreading OMG_BT_ID attrTemplateVersion 20211011
|
||||
setreading OMG_BT_ID attrTemplateVersion 20220220
|
||||
|
||||
|
||||
name:OpenMQTTGateway_BT_mi_flora_sensor
|
||||
@ -4400,7 +4400,7 @@ deletereading -q OMG_BT_ID (?!associatedWith|IODev).*
|
||||
attr OMG_BT_ID autocreate 0
|
||||
attr OMG_BT_ID readingList\
|
||||
BASE_ID/O[^/]*M[^/]*G[^/]*/BTtoMQTT/BT_ID:.* { json2nameValue($EVENT,'',$JSONMAP) }
|
||||
attr OMG_BT_ID event-min-interval 300
|
||||
attr OMG_BT_ID event-min-interval .*:300
|
||||
attr OMG_BT_ID event-on-change-reading temperature:0.2,moisture:0.2,rssi:5,distance:5,fertility:5,lux:5
|
||||
attr OMG_BT_ID icon temperature_humidity
|
||||
attr OMG_BT_ID jsonMap tem:temperature hum:humidity moi:moisture fer:fertility servicedatauuid:0 servicedata:0
|
||||
@ -4409,7 +4409,7 @@ attr OMG_BT_ID room NEWDEVROOM
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=OMG_BT_ID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
attr OMG_BT_ID model OpenMQTTGateway_BT_mi_flora_sensor
|
||||
set DEVICE attrTemplate set_IODev_in_channels SUBCHANNELS=OMG_BT_ID
|
||||
setreading OMG_BT_ID attrTemplateVersion 20211011
|
||||
setreading OMG_BT_ID attrTemplateVersion 20220220
|
||||
|
||||
|
||||
name:OpenMQTTGateway_simple_RF433_switch
|
||||
@ -4489,8 +4489,8 @@ deletereading -q OMG_BT_ID (?!associatedWith|IODev).*
|
||||
attr OMG_BT_ID autocreate 0
|
||||
attr OMG_BT_ID readingList\
|
||||
BASE_ID/O[^/]*M[^/]*G[^/]*/BTtoMQTT/BT_ID:.* { json2nameValue($EVENT,'',$JSONMAP) }
|
||||
attr OMG_BT_ID event-min-interval 300
|
||||
attr OMG_BT_ID event-on-change-reading batteryPercent,temperature:0.2,humidity:0.2,rssi:5,distance:5
|
||||
attr OMG_BT_ID event-min-interval batteryPercent:7200,temperature:300,humidity:900
|
||||
attr OMG_BT_ID event-on-change-reading batteryPercent,temperature:0.2,humidity:0.5,distance:5
|
||||
attr OMG_BT_ID icon temperature_humidity
|
||||
attr OMG_BT_ID jsonMap batt:batteryPercent tempc:temperature tem:0 tempf:0 hum:humidity servicedatauuid:0 servicedata:0
|
||||
attr OMG_BT_ID stateFormat T: temperature°C, H: humidity%rH
|
||||
@ -4498,7 +4498,7 @@ attr OMG_BT_ID room NEWDEVROOM
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=OMG_BT_ID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
attr OMG_BT_ID model OpenMQTTGateway_BT_temp_hum_sensor
|
||||
set DEVICE attrTemplate set_IODev_in_channels SUBCHANNELS=OMG_BT_ID
|
||||
setreading OMG_BT_ID attrTemplateVersion 20211011
|
||||
setreading OMG_BT_ID attrTemplateVersion 20220220
|
||||
|
||||
|
||||
###############
|
||||
|
Loading…
x
Reference in New Issue
Block a user