Tablet UI - Läuft nicht?

Begonnen von superbert, 02 September 2015, 12:22:09

Vorheriges Thema - Nächstes Thema

superbert

Hallo,

Zuerst mal danke für die super Arbeit!

Ich versuche das Tablet UI index.html so zu ändern das Ich das Aquarium Licht zu schalten...aber leider gelingt es mir nicht, und Ich verstehe nicht warum es nicht funktioniert....

fhem.cfg:
define TABLETUI HTTPSRV ftui ./www/tablet Tablet-UI
define aquarium TRX_LIGHT AC 005008ea01 light
attr aquarium IODev TRX1
attr aquarium room Woonkamer


index.html:

<li data-row="2" data-col="2" data-sizex="2" data-sizey="2">
        <header>Woonkamer</header>
        <div class="container">
          <div class="right">
                <div data-type="switch" data-device='aquarium' data-get-on="on" data-get-off="off" class="cell"></div>
                <div data-type="label" class="cell">aquarium</div>
          </div>
        </div>
</li>


Den "GET" wird beantwortet mit "Please define 'aquarium' first" (siehe screenshot).

list aquarium ergibt:

Internals:
   DEF        AC 005008ea01 light
   IODev      TRX1
   NAME       aquarium
   NR         108
   STATE      on
   TRX_LIGHT_deviceid 005008ea01
   TRX_LIGHT_devicelog light
   TRX_LIGHT_type AC
   TYPE       TRX_LIGHT
   Readings:
     2015-09-02 11:37:57   state           on
Attributes:
   IODev      TRX1
   room       Woonkamer


Was mache Ich falsch?

CoolTux

Aus so
<div data-type="switch" data-device='aquarium' data-get-on="on" data-get-off="off" class="cell"></div>
mach so vielleicht?
<div data-type="switch" data-device="aquarium" data-get-on="on" data-get-off="off" class="cell"></div>


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

superbert

Das ist die Lösung leider nicht...

superbert

#3
<div data-type="switch" data-device=aquarium data-get-on="on" data-get-off="off" class="cell"></div>

Funktioniert eindwandfrei :-)

Also ohne " "

Das Problem war den Text-editor in OSX --> also mit einem anderen Editor geht alles Super!