From db35f2d99972d433c75e19cb3f60d47e28433591 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sun, 23 Dec 2018 11:37:30 +0000 Subject: [PATCH] mqtt2.template: add associatedWith info for split devices git-svn-id: https://svn.fhem.de/fhem/trunk@18035 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index b3f942215..0a7a43dab 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -245,6 +245,7 @@ attr DEVICE comment Channel 1 for DEVICE, see also DEVICE_CH2 copy DEVICE DEVICE_CH2 attr DEVICE_CH2 stateFormat {lc ReadingsVal("$name","POWER2","")} attr DEVICE_CH2 comment Channel 2 for DEVICE +setreading DEVICE_CH2 associatedWith DEVICE attr DEVICE_CH2 setList \ off:noArg COMMAND/POWER2 0\ on:noArg COMMAND/POWER2 1\ @@ -327,6 +328,7 @@ attr DEVICE comment Channel 1 for DEVICE, see also DEVICE_CH2 copy DEVICE DEVICE_CH2 attr DEVICE_CH2 readingList shellies/DEVNAME/relay/1:.* state attr DEVICE_CH2 comment Channel 2 for DEVICE +setreading DEVICE_CH2 associatedWith DEVICE attr DEVICE_CH2 setList \ off:noArg shellies/DEVNAME/relay/1/command off\ on:noArg shellies/DEVNAME/relay/1/command on @@ -344,6 +346,7 @@ attr DEVICE comment Channel 1 for DEVICE, see also DEVICE_CH2, DEVICE_CH3 and DE copy DEVICE DEVICE_CH2 attr DEVICE_CH2 readingList shellies/DEVNAME/relay/1:.* state attr DEVICE_CH2 comment Channel 2 for DEVICE +setreading DEVICE_CH2 associatedWith DEVICE,DEVICE_CH3,DEVICE_CH4 attr DEVICE_CH2 setList \ off:noArg shellies/DEVNAME/relay/1/command off\ on:noArg shellies/DEVNAME/relay/1/command on @@ -353,6 +356,7 @@ attr DEVICE comment Channel 2 for DEVICE, see also DEVICE, DEVICE_CH3 and DEVICE copy DEVICE DEVICE_CH3 attr DEVICE_CH3 readingList shellies/DEVNAME/relay/2:.* state attr DEVICE_CH3 comment Channel 3 for DEVICE +setreading DEVICE_CH3 associatedWith DEVICE,DEVICE_CH2,DEVICE_CH4 attr DEVICE_CH3 setList \ off:noArg shellies/DEVNAME/relay/2/command off\ on:noArg shellies/DEVNAME/relay/2/command on @@ -362,6 +366,7 @@ attr DEVICE comment Channel 3 for DEVICE, see also DEVICE, DEVICE_CH2 and DEVICE copy DEVICE DEVICE_CH4 attr DEVICE_CH4 readingList shellies/DEVNAME/relay/3:.* state attr DEVICE_CH4 comment Channel 4 for DEVICE +setreading DEVICE_CH4 associatedWith DEVICE,DEVICE_CH2,DEVICE_CH3 attr DEVICE_CH4 setList \ off:noArg shellies/DEVNAME/relay/3/command off\ on:noArg shellies/DEVNAME/relay/3/command on