I am creating a Map and have created new Mapicons under the iconset8 folder with a template that creates a box with the sensor status colour and then the icon and sensor
This is the template.htm file
<div class="map_object map_graph <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="min-width:20px;min-height:20px;text-align: center;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <div style="display:block;width:<@width>px;height:<@height>px; border:4px solid black;"> <img src="<@iconpath>" style="max-width:64%;max-height:64%"> <div style="width: 100%" class="graphicalmapicon" <#sensor type="colorclassofstate" prefix="map_iconcolor_"> <span class="label <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>" filter_status="5">"> <b><#objectproperty name="Name" id="<@objectid>" show="link"></b><br> <#objectstatus skiptagfortype="sensor" name="downsens" id="<@objectid>"> <#objectstatus skiptagfortype="sensor" name="partialdownsens" id="<@objectid>"> <#objectstatus skiptagfortype="sensor" name="warnsens" id="<@objectid>"> <#objectstatus skiptagfortype="sensor" name="upsens" id="<@objectid>"> <#objectstatus skiptagfortype="sensor" name="unusualsens" id="<@objectid>"> <#objectstatus skiptagfortype="sensor" name="undefinedsens" id="<@objectid>"> <#objectstatus skiptagfortype="sensor" name="pausedsens" id="<@objectid>"> <#objectstatus skiptagfortype="group,device,probenode" name="minigraph" id="<@objectid>"> </span> </div> </img> </div> </div>
I would like to get it so that the box colour does not change if the sensor is paused or in a down acknowledge state.
I can see that in other mapobjects there are ways to filter but cannot seem to do this for a mapicon template.
I have also tried to create my own mapobject based on the object_box1.htm file and can again get the box to change colour but not ignore paused or acknowledge states.
Is this possible via custom css or filter property?
Add comment