Ich möchte mein IntertechnoGateway per Ping überwachen. (K*ckt leider immermal wieder ab)
Wie bekomme ich die "fa-lightbulb-o" dazu die Farbe zu ändern?
FTUI Definition
<div data-type="switch"
data-subtype="presence"
data-device="itgw"
data-get="state"
data-set=""
data-set-on="present"
data-set-off="absent"
data-icon="fa-lightbulb-o"
class="Rollo">
</div>
Im EventMonitor
2017-01-06 13:20:40.017 PRESENCE itgw statusRequest
2017-01-06 13:20:43.066 PRESENCE itgw present
2017-01-06 13:20:43.066 PRESENCE itgw presence: present
2017-01-06 13:21:03.202 PRESENCE itgw statusRequest
2017-01-06 13:21:16.246 PRESENCE itgw absent
2017-01-06 13:21:16.246 PRESENCE itgw presence: absent
in FHEM
ADDRESS 192.168.1.114
DEF lan-ping 192.168.1.114 1800
MODE lan-ping
NAME itgw
NR 229
STATE present
TIMEOUT_NORMAL 1800
TIMEOUT_PRESENT 1800
TYPE PRESENCE
Schau mal hier unter Switch nach --> https://wiki.fhem.de/wiki/FHEM_Tablet_UI
Ok, war zu schnell. Siehe Lösung unten!
Gruß Stephan
ich mache das so
<div
style="margin-top:-10px !important;font-size:300%;"
data-type="symbol"
data-device="rr_Jan"
data-get-on='["home","absent"]'
data-icons='["oa-status_available","oa-status_away_1"]'
data-on-colors='["SeaGreen","IndianRed"]'
class="bigger">
</div>
Moin,
wie wär's mit Symbol? Schaltest ja nichts...
<div data-type="symbol" data-device="itgw"
data-get-on='["present","absent"]'
data-icon="fa-lightbulb-o"
data-on-colors='["Green","Red"]'
>
</div>
Gruß
Super, Danke, wieder was gelernt,
das letzte passt genau