FHEM Forum

FHEM => Frontends => TabletUI => Thema gestartet von: Syon am 21 Juni 2017, 07:23:42

Titel: Symbol wird nicht angezeigt.
Beitrag von: Syon am 21 Juni 2017, 07:23:42
Hallo zusammen,
ich habe mir eine Steuerung für die Rollos gebastelt (von hier (https://forum.fhem.de/index.php/topic,42266.msg404286.html#msg404286) und hier (https://wiki.fhem.de/wiki/FTUI_Snippets)). Leider wird mir der Status nicht über die Piktogramme angezeigt.
Ich vermute, dass es mit der Art und Weise zusammenhängt, mit der die Daten von data-get übernimmt.

fhem.cfg
define Wohnen_vorne_Rollo KNX 3/3/3:dpt5.001:abs-position 3/2/3:dpt1.008:aufab 3/4/3:dpt5.001:status-position
attr Wohnen_vorne_Rollo IODev KNX
attr Wohnen_vorne_Rollo room Rollos,Wohnen vorne


das Template
<div class="top-narrow darker small">Rollo</div>

<div data-type="popup" data-height="190px" data-width="250px">

<div data-type="symbol" class="big narrow" data-device="par01" data-get="status-position-get"
        data-states='["[0-9]","1[0-9]","2[0-9]","3[0-9]","4[0-9]","5[0-9]","6[0-9]","7[0-9]","8[0-9]","9[0-9]","100"]'
        data-icons='["oa-fts_window_2w","oa-fts_shutter_10","oa-fts_shutter_20","oa-fts_shutter_30","oa-fts_shutter_40","oa-fts_shutter_50","oa-fts_shutter_60","oa-fts_shutter_70","oa-fts_shutter_80","oa-fts_shutter_90","oa-fts_shutter_100"]'>
</div>

<div class="dialog">
<div class="top-space inline">
<div data-type="switch"
data-device="par01"
data-get="status-position-get"
data-get-on="55"
data-get-off="((?!55).)*"
data-set="value"
data-set-on="55"
data-set-off="55"
data-on-color="white"
data-on-background-color="green"
data-icon="fa-minus">
</div>
<div class="mini">55%</div>
</div>
<div class="top-space inline">
<div data-type="switch"
data-device="par01"
data-get="status-position-get"
data-get-on="60"
data-get-off="((?!60).)*"
data-set="value"
data-set-on="60"
data-set-off="60"
data-on-color="white"
data-on-background-color="green"
data-icon="fa-bars">
</div>
<div class="mini">60%</div>
</div>
<div class="top-space inline">
<div data-type="switch"
data-device="par01"
data-get="status-position-get"
data-get-on="75"
data-get-off="((?!75).)*"
data-set="value"
data-set-on="75"
data-set-off="75"
data-on-color="white"
data-on-background-color="green"
data-icon="fa-align-justify">
</div>
<div class="mini">75%</div>
</div>
<div class="newline"></div>
<div class="top-space inline">
<div data-type="switch"
data-device="par01"
data-get="status-position-get"
data-get-on="100"
data-get-off="((?!100).)*"
data-set="value"
data-set-on="100"
data-set-off="100"
data-on-color="white"
data-on-background-color="green"
data-icon="fa-chevron-down">
</div>
<div class="mini">zu</div>
</div>
<div class="top-space inline">
<div data-type="switch"
data-device="par01"
data-get="status-position-get"
data-get-on="0"
data-get-off="((?!0).)*"
data-set="value"
data-set-on="0"
data-set-off="0"
data-on-color="white"
data-on-background-color="green"
data-icon="fa-chevron-up">
</div>
<div class="mini">auf</div>
</div>
</div>
</div>
</div>


Wenn ich noch ein
data-on-background-color="#aa6900" data-background-icon="fa-circle"
hinzufüge, so wird mir nurnoch der leere Kreis angezeigt.

Kann mir hier jemand helfen?

Nachtrag: Ohne data-on-background-color wird nur oa-fts_window_2w angezeigt.