How can I change the map object of a traffic light , if the status is "acknowledged" to show a red allarm status anyway ? At the moment with the status "acknowledged" the traffic light does not show anything.


Article Comments

Hi Mr_Dimitriy,

Right now, this is not possible. We are currently elaborating if, or how we can change this.

Best regards, Felix


May, 2017 - Permalink

Have this been made possible? i need the traffic light to tell me, that the sensor is "acknowledged" when there is no light in it.


Apr, 2018 - Permalink

Hello there,

Unfortunately, it is not possible to customize this object in this way.


Kind regards,
Birk Guttmann, Tech Support Team


Apr, 2018 - Permalink

is it going to be possible in the future?


Apr, 2018 - Permalink

Hi,

This is not planned at the moment and we have very few inquiries in this direction. Therefore, there will probably be no changes in the near future. If there are frequent requests for this, we will take a closer look at it.


Kind regards,
Birk Guttmann, Tech Support Team


Apr, 2018 - Permalink

Have there been more request about this topic?


May, 2019 - Permalink

Hi there,

There were no further requests in this direction. If this is important for you, you can create an official feature request, so other users may vote for it.

This article shows how to open a request and how we handle it.


Kind regards,
Birk Guttmann, Tech Support Team


May, 2019 - Permalink

Here is my simple solution (you only need 2 additional lines. The lines with "containspurpur"...):

<div class="map_object map_table map_icon_large" id=2592 objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>">

  <#sensor type="colorclassofstate" id="<@objectid>" var="status">
  <#objectproperty type="nodename" id="<@objectid>" var="nodename">
  <#if value="@nodename" is="sensor" then="sensr" else="hasred" varexpand="value" var="containsred">
  <#if value="@nodename" is="sensor" then="senso" else="haspurpur" varexpand="value" var="containspurpur">
  <#if value="@nodename" is="sensor" then="sensy" else="hasyellow hasnored" varexpand="value" var="containsyellow">
  <#if value="@nodename" is="sensor" then="sensg" else="hasgreen hasnoyellow hasnored" varexpand="value" var="containsgreen">
  <svg xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  version="1.0"
  width="100%"
  height="100%"
  viewBox="0 0 100 280">
    <defs>
      <rect class="trafficlight_frame" x="0" y="0" width="100px" height="280px" fill="#ECECEC" id="a" />
    </defs>
    <use xlink:href="#a" />
    <g class="trafficlight" transform="translate(0,0)">
      <use xlink:href="#a" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="50" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="140" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="230" />
      <circle style="<#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
      <circle style="<#if value="@status" contains="@containspurpur" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
	  <circle style="<#if value="@status" contains="@containsyellow" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#F59C00" cx="50" cy="140" />
      <circle style="<#if value="@status" contains="@containsgreen" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#C0CC19" cx="50" cy="230" />
    </g>
  </svg>
  <div style="position:relative;margin-top:-20px">
    <#mapobject type="htmlafter" subid="<@subid>">
  </div>
</div>

Feb, 2020 - Permalink