general_use.template: add IODev handling

git-svn-id: https://svn.fhem.de/fhem/trunk@25065 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2021-10-11 19:20:48 +00:00
parent 3b09bf9f8c
commit 57554f6b5e

View File

@ -139,8 +139,6 @@ par:SUBCHANNELS;SUBCHANNELS: Regex for devices to copy value to, defaults to DEV
par:IODEVATTR;IODEVATTR: attribute value if set, will be copied to other channel devices, defaults to 0;{ AttrVal('DEVICE','IODev',0) } par:IODEVATTR;IODEVATTR: attribute value if set, will be copied to other channel devices, defaults to 0;{ AttrVal('DEVICE','IODev',0) }
par:IODEVREADING;IODEVREADING: reading value if set and no attribute is set, will be copied to other channel devices , defaults to 0;{ AttrVal('DEVICE','IODev',0) ? 0 : ReadingsVal('DEVICE','IODev',0)} par:IODEVREADING;IODEVREADING: reading value if set and no attribute is set, will be copied to other channel devices , defaults to 0;{ AttrVal('DEVICE','IODev',0) ? 0 : ReadingsVal('DEVICE','IODev',0)}
setreading SUBCHANNELS IODevattr IODEVATTR
setreading SUBCHANNELS IODevreading IODEVREADING
option:{ return 0 if "IODEVATTR" eq "0"; return 1 } option:{ return 0 if "IODEVATTR" eq "0"; return 1 }
attr SUBCHANNELS IODev IODEVATTR attr SUBCHANNELS IODev IODEVATTR