[gelöst] Problem mit Anzeige von HM-Fenster Sensor

Begonnen von Helmi55, 14 Mai 2018, 19:45:09

Vorheriges Thema - Nächstes Thema

Helmi55

Hallo und guten Abend,
habe meinen RPi neu aufgesetzt und das Zip für FTUI heruntergeladen = Version 2.5
<head>
    <!--
     /* FHEM tablet ui */
     /*
     * UI builder framework for FHEM
     *
     * Version: 2.5.*
     * URL: https://github.com/knowthelist/fhem-tablet-ui
     *
     * Copyright (c) 2015-2017 Mario Stephan <mstephan@shared-files.de>
     * Under MIT License (http://www.opensource.org/licenses/mit-license.php)
     *
     * - create a new folder named 'tablet' in /<fhem-path>/www
     * - copy all files incl. sub folders into /<fhem-path>/www/tablet
     * - add 'define TABLETUI HTTPSRV ftui ./www/tablet Tablet' in fhem.cfg
     * - Tadaaa! A new fhem ui in http://<fhem-url>:8083/fhem/tablet/
     */
    -->
    <link rel="icon" href="favicon.ico" type="image/x-icon" />

    <!-- define your personal style here, it wont be overwritten  -->
    <!-- link rel="stylesheet" href="css/fhem-green-ui.css" / -->
    <!-- link rel="stylesheet" href="css/fhem-tablet-ui-user.css" / -->

    <script src="js/fhem-tablet-ui.js" defer></script>


    <!-- Remove this line to enable for usage with WebViewControl
    <script defer>var wvcDevices = {'12345': 'Tablet'}; var wvcUserCssFile="webviewcontrol.css"</script>
    <script src="../pgm2/cordova-2.3.0.js" defer></script>
    <script src="../pgm2/webviewcontrol.js" defer></script>
    <!-- End for WebViewControl -->

    <title>Poolsteuerung</title>

</head>
<body>
    <div class="gridster">
        <ul>
       
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
        <header>Einfahrt</header>
        <div data-type="symbol" data-device="Einfahrt"     
             data-get-on='["Offen","Zu"]'
             data-icons='["oa-fts_garage_door_10","oa-fts_garage_door_100"]'
             data-on-colors='["red","green"]'
             class="bigger" >
        </div>                     
        <div data-type="label" class="bold"></div>
</li>


<li data-row="2" data-col="1" data-sizex="1" data-sizey="1">
        <header>Garagentor</header>
        <div data-type="symbol" data-device="GaragenTor"
             data-get-on='["Offen","Zu"]'
             data-icons='["oa-fts_garage_door_10","oa-fts_garage_door_100"]'
             data-on-colors='["red","green"]'
             class="bigger" >     
        </div>
        <div data-type="label" data-device="Tuer"
</li>


Ich bekomme die Einfahrt und das Garagentor nicht angezeigt ist ausgegraut??

Hier das List der Einfahrt
Internals:
   DEF        4D242F
   IODev      HMUSB
   NAME       Einfahrt
   NOTIFYDEV  global
   NR         79
   NTFY_ORDER 50-Einfahrt
   STATE      Zu
   TYPE       CUL_HM
   READINGS:
     2018-05-14 19:34:19   Activity        alive
     2018-05-10 13:10:32   D-firmware      2.4
     2018-05-10 13:10:32   D-serialNr      NEQ0755120
     2018-05-11 06:49:27   PairedTo        0x220355
     2018-05-11 06:49:27   R-cyclicInfoMsg off
     2018-05-11 06:49:28   R-eventDlyTime  0 s
     2018-05-11 06:49:27   R-pairCentral   0x220355
     2018-05-11 06:49:27   R-sabotageMsg   on
     2018-05-11 06:49:28   R-sign          off
     2018-05-11 06:49:27   RegL_00.        02:01 09:00 0A:22 0B:03 0C:55 10:01 14:06 00:00
     2018-05-11 06:49:28   RegL_01.        08:00 20:60 21:00 22:64 30:06 00:00
     2018-05-14 19:31:01   battery         ok
     2018-05-14 19:31:01   contact         closed (to VCCU)
     2018-05-14 19:31:01   state           closed
     2018-05-14 19:31:01   trigger_cnt     107
   helper:
     HM_CMDNR   97
     mId        00B1
     regLst     ,0,1,4p
     rxType     28
     expert:
       def        1
       det        0
       raw        1
       tpl        0
     io:
       newChn     +4D242F,00,00,00
       prefIO     
       rxt        2
       vccu       
       p:
         4D242F
         00
         00
         00
     mRssi:
       mNo       
     prt:
       bErr       0
       sProc      0
     q:
       qReqConf   
       qReqStat   
     role:
       chn        1
       dev        1
     tmpl:
Attributes:
   IODev      HMUSB
   actCycle   028:00
   actStatus  alive
   autoReadReg 4_reqStatus
   devStateIcon Offen:fts_yard_gate_2w_open@red Zu:fts_yard_gate_2w@green
   eventMap   open:Offen closed:Zu
   expert     2_raw
   firmware   2.4
   model      HM-SEC-SC-2
   peerIDs    00000000,
   room       Einfahrt
   serialNr   NEQ0755120
   subType    threeStateSensor
   webCmd     :


Was übersehe ich hier bitte?

Gruß und Danke
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

juemuc

Hallo,

meine Definition sieht so aus:
            <li data-row="1" data-col="4" data-sizex="4" data-sizey="3">
               <header class="">Balkontür</header>
                <table class="">
                 <tr>
                     <td>
                        <div class="">
                            <div class=""></div>
                            <div data-type="label" data-device="HM_50F361" data-get="alias" data-color="white" class="left-space big""></div>
                        </div>
                     </td>
                     <td>
                        <div class="">
                            <div class=""></div>
                            <div data-type="symbol" data-device="HM_50F361" data-get="state" data-states='["open","tilted","closed"]' data-colors='["red","red","green"]'
                                 data-icons='["oa-fts_door_open","oa-fts_door_tilt","oa-fts_door"]' data-background-color="black" class="left-space bigger">
                            </div>
                        </div>
                     </td>
                     <td>
                        <div class="">
                            <div class=""></div>
                            <div data-type="label" data-device="HM_50F361" data-get="LastOpen" data-color="white" class="big"></div>
                        </div>
                     </td>
                  </tr>
                </table>
            </li>

Das funktioniert bestens
VG
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

Ulm32b

Zitat von: Helmi55 am 14 Mai 2018, 19:45:09
Ich bekomme die Einfahrt und das Garagentor nicht angezeigt ist ausgegraut??
D.h. die Farben werden nicht angezeigt? Dann liegt es wahrscheinlich an
data-on-colors='["red","green"]'

Probiere mal
data-get-on='["Offen","Zu"]'   :o ???

data-states='["Offen","Zu"]'
data-icons='["oa-fts_garage_door_10","oa-fts_garage_door_100"]'
data-colors='["red","green"]'


Hier gab es im Frühjahr eine Änderung. data-on-colors wird nicht mehr unterstützt.

Nützliche Infos wie immer siehe Wiki.


Helmi55

Herzlichen Dank genau das wars.
Sorry da war ich anscheinend zu schlampig beim Lesen.

Schönen Tag
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/