I am trying in my light rules to use map files, which works fine. However I need to do some check if the map file exist: Livingroom.map
if does not exist I would like to use the default map file: “Default.map”
is there an easy way to do this in the rules? Some dir commands or something?
val sceneGroup = ScriptServiceUtil.getItemRegistry.getItem( "Group_"+roomName +"_Lights_" +transform("MAP", roomName+".map", ""+triggeringItem.state) ) as GroupItem
More info here: