From c7801177d01e036d55cb35f6c72a56635f94d3dd Mon Sep 17 00:00:00 2001 From: Otto123 <> Date: Thu, 17 Nov 2022 14:25:49 +0000 Subject: [PATCH] mqtt2.template:bug fix owntracks_device git-svn-id: https://svn.fhem.de/fhem/trunk@26714 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index d224c739e..dfb630aee 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -4801,7 +4801,7 @@ attr DEVICE setList action:textField $\DEVICETOPIC/cmd {"_type":"cmd","action": x_raw_payload:textField { my $payload = $EVENT; $payload =~ s/$EVTPART0 //; qq($\DEVICETOPIC/cmd $payload) } attr DEVICE userReadings\ location:lat.* {ReadingsNum($name,'latitude',0).','.ReadingsNum($name,'longitude',0)},\ - connection:conn.* {my %h=(m=>'mobil',w=>'wifi',o=>'offline',e=>'unknown'); return $h{ReadingsVal('MQTT2_owntracks_mi6','conn','e')}},\ + connection:conn.* {my %h=(m=>'mobil',w=>'wifi',o=>'offline',e=>'unknown'); return $h{ReadingsVal($name,'conn','e')}},\ place:event.* {ReadingsVal($name,'event','') eq 'leave'?'away':(ReadingsVal($name,'desc','nowhere'))} deletereading -q DEVICE (?!associatedWith|IODev).* attr DEVICE model owntracks_device