Ankündigung

Einklappen
Keine Ankündigung bisher.

How it the RTR buildup?

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    How it the RTR buildup?

    Hello Guys.
    Was just studyind how the RTR widget is build up:
    https://github.com/Martin-Gleiss/sma...evice.rtr.html

    where is it set what's written in the mode "byte" if using it as a byte? etc. i wanna say that comfort is 9?

    Greetings

    #2
    Hi,

    it's possible zu change these values in the file ./widgets/device.html.

    Find the macro rtr in this file and the following tag.

    Code:
    <div class="control">
       {% if ((config_driver == 'linknx') and (gad_comfort == gad_night) and (gad_night == gad_frost)) %}
        {{ basic.switch(id~'mode', gad_comfort, icon1~'user_available.png', icon0~'user_away.png', 'comfort', 'standby') }}
        {{ basic.switch(id~'night', gad_night, icon1~'scene_night.png', icon0~'scene_day.png', 'night', 'standby') }}
        {{ basic.switch(id~'frost', gad_frost, icon1~'weather_frost.png', icon0~'weather_frost.png', 'frost', 'standby') }}
       {% elseif ((gad_comfort == gad_night) and (gad_night == gad_frost)) %}
     [COLOR=#FF8C00]   {{ basic.switch(id~'mode', gad_comfort, icon1~'user_available.png', icon0~'user_away.png', '1', '2') }}
        {{ basic.switch(id~'night', gad_night, icon1~'scene_night.png', icon0~'scene_day.png', '3', '2') }}
        {{ basic.switch(id~'frost', gad_frost, icon1~'weather_frost.png', icon0~'weather_frost.png', '4', '2') }}[/COLOR]
       {% else %}
        {{ basic.switch(id~'mode', gad_comfort, icon1~'user_available.png', icon0~'user_away.png') }}
        {{ basic.switch(id~'night', gad_night, icon1~'scene_night.png', icon0~'scene_day.png') }}
        {{ basic.switch(id~'frost', gad_frost, icon1~'weather_frost.png', icon0~'weather_frost.png') }}
       {% endif %}
       <div style="float:left; width: 3px; height: 50px;"></div>
       {{ basic.switch(id~'state', gad_state, icon1~'sani_heating.png', icon0~'sani_heating.png') }}
      </div>
    </div>
    kind regards

    Kommentar


      #3
      Arh... Awesome, just what I looked for

      Kommentar

      Lädt...
      X