mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-08 05:15:10 +00:00
mqtt2.template: enhance z2m 3channel_split
git-svn-id: https://svn.fhem.de/fhem/trunk@26293 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3715496cfa
commit
995f71b6a2
@ -601,6 +601,7 @@ attr DEVICE setStateList on off toggle
|
||||
deletereading -q DEVICE (?!associatedWith|IODev).*
|
||||
set DEVICE attrTemplate set_associatedWith \CHANNELS=3 \MAKECOPIES=1
|
||||
loop:#:2:3
|
||||
defmod DEVICE_CH# MQTT2_\DEVICE
|
||||
attr DEVICE_CH# setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state_l#":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state_l#":"OFF"}\
|
||||
|
Loading…
x
Reference in New Issue
Block a user