Hello everybody,
is it possible to create a template file for items and basic groups and do the mapping afterwards in an other .items file?
E.g:
This could be the template:
Group Multimediasystem
Switch TV_Power "TV Power" <switch> (Multimediasystem) { mqtt=">[MQRabbit:home/TV/power:command:ON:1], >[MQRabbit:home/TV/power:command:OFF:0]" }
String TV_Program "TV Program [%s]" (Multimediasystem) { mqtt="<[MQRabbit:home/TV/program:state:default]" }
Group Alarmsystem
Switch Alarmsystem_Status "Alarmsystem" <switch> (Alarmsystem) { mqtt=">[MQRabbit:home/alarmsystem:command:ON:1], >[MQRabbit:home/alarmsystem:command:OFF:0]" }
String Alarmsystem_Alarm "Alarm [%s]" <alarm> (Alarmsystem) { mqtt="<[MQRabbit:home/alarm:state:default]" }
And this the other .items file where the mapping happens:
Group Groundfloor
Group Multimediasystem (Groundfloor)
Group Alarmsystem (Groundfloor)
Like the separation from declaration and definition in classic c-programming.