I can create a custom map item based on existing map objects but it is extremely hard to find which map object .htm files are used for which map items. I am just starting out customizing map items and can get a simple status map object with an image icon in it, but I have to place that icon image in it manually. I am trying to load the image with the device icon like for example the default iconA first selection does. I don't want the Computer graphic but I want to replicate the small icon followed by device name. (Hover allowing selection of sensor would be greatas well) and below it the status icons. Below is the Custom item I am testing with.
<!--Status Icons: Status Related Background--> <div class="map_object map_icon2 mapicon_status_white id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <img src="/images/HarmonicLogo.png" ALIGN="left" HSPACE="3" VSPACE="5"> <div class="label" style="width:100%;text-align:right;font-size:large;padding-right: 8px"><#objectproperty name="Name" id="<@objectid>"></div> <span> <#objectstatus name="downsens" id="<@objectid>"> <#objectstatus name="downacksens" id="<@objectid>"> <#objectstatus name="warnsens" id="<@objectid>"> <#objectstatus name="upsens" id="<@objectid>"> <!--<#objectstatus name="pausedsens" id="<@objectid>">--> <#objectstatus name="unusualsens" id="<@objectid>"> <#objectstatus name="undefinedsens" id="<@objectid>"> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>
I just used that as a starter object and I was going to have it on status background but found any paused sensors took over the background color and I have plenty that have paused sensors I want to ignore. I can slap my own image in like I did above but I want to use the one associated with the device to make this a more universal object. Maybe an #objectproperty icon = "Icon"
Add comment