FHEM Forum

FHEM => Frontends => fronthem / smartVISU => Thema gestartet von: MarvinLu am 15 November 2019, 21:30:44

Titel: [gelöst] Buttons ohne Funktion - Heizkörperthermostat
Beitrag von: MarvinLu am 15 November 2019, 21:30:44
Schönen guten Abend zusammen,

ich beschäftige mich momentan mit der visuellen Aufbereitung meiner Nutzeroberfläche, dafür nutze ich smartVISU.

Ich versuche zZt das Homematic Widget zu implementieren.
Bis auf eine Funktion funktioniert auch alles: Ich schaffe es nicht, den Wert der gewünschten Temperatur mittels Buttons zu beeinflussen..

Das verwendete Makro:
/**
* Homematic HM-TC Wandthermostat
*
* @param unique id for this widget
* @param name of the rtr
* @param a gad/item for the actual temperature
* @param a gad/item for the set temperature
* @param a gad/item for auto / manual
* @param a gad/item for boost
* @param a gad/item for battery
* @param a gad/item for the current state of the actor
* @param a gad/item for a text (for boost-time), (optional)
* @param step for plus/minus buttons (optional, default 0.5)
* @param show_auto_man flag to show/hide control for auto / manual
*/
{% macro hmtc(id, txt, gad_actual, gad_set, gad_controlmode, gad_daytemp, gad_nighttemp, gad_window, gad_battery, gad_state, gad_txt, step, gad_valve, gad_humidity, show_auto_man, min_temp, max_temp) %}
{% import "basic.html" as basic %}
{% import "icon.html" as icon %}
<div id="{{ uid(page, id) }}" data-widget="device.hmtc" data-step="{{ step|default(0.5) }}"
class="rtr" min_temp="{{ min_temp | default(5.0) }}" max_temp="{{ max_temp | default(30.0) }}">
<div class="actual">
<div class="temp">
{{ basic.symbol(id~'windowopen', gad_window, '', 'fts_window_2w_open.svg', 'open', '#FF0000') }}
{{ basic.symbol(id~'windowclose', gad_window, '', 'fts_window_2w.svg', 'closed', '#9aCd32') }}
&nbsp;{{ basic.float(id~'actual', gad_actual, '°' ) }}
/**
{{ icon.battery(id~'battery', '', gad_battery, '2.2', '3') }}
*/
</div>

{% if gad_humidity %}<div style="font-size:0.8em">Luftfeuchtigkeit:&nbsp;{{ basic.value(id~'humidity', gad_humidity) }}%</div>{% endif %}
{% if gad_valve %}<div style="font-size:0.8em">Ventilstellung:&nbsp;{{ basic.value(id~'valve', gad_valve) }}%</div>{% endif %}

<div class="text">
{{ txt }} {{ basic.value(id~'controlmode', gad_controlmode) }} {% if gad_txt %} {{ basic.value(id~'txt', gad_txt) }} {% endif %}
</div>
</div>

{% if gad_set %}
<div class="set">
<a data-role="button" data-icon="minus" data-inline="true" data-iconpos="notext" class="ui-mini"></a>
<div class="temp">{{ basic.float(id~'set', gad_set, '°' ) }}</div>
<a data-role="button" data-icon="plus" data-inline="true" data-iconpos="notext" class="ui-mini"></a>
</div>
{% endif %}

<div class="control">
<table align="center" cellpadding="0">
<tr>
/**
{% if show_auto_man|default(true) %}
<td>{{ basic.switch(id~'manauto', gad_controlmode, 'sani_heating_automatic.svg', 'sani_heating_manual.svg', 'auto', 'manual') }}</td>
{% endif %}
<td>{{ basic.switch(id~'boost', gad_controlmode, 'text_max.svg.svg', 'text_max.svg', 'boost', 'auto') }}</td>
<td>{{ basic.switch(id~'night', gad_set, 'scene_night.svg', 'scene_night.svg', '17', '21') }}</td>
<td>{{ basic.switch(id~'day', gad_set, 'scene_day.svg', 'scene_day.svg', '21', '17') }}</td>
{% if gad_state %}<td>{{ basic.switch(id~'state', gad_state, 'sani_heating.svg', 'sani_heating.svg') }}</td>{% endif %}
*/
</tr>
</table>
</div>
</div>
{% endmacro %}


Die Einbindung in meinen Raum:
{{ homematic.hmtc('thermostat_SZ', 'Schlafzimmer ', 'thermostat_SZ_measured.sw', 'thermostat_SZ_desired.set', '', '', '', 'MAX_FK_SZ_li', '', '', '', '', 'PID_SZ_valvePos.sw','thermostat_SZ_humidity.sw') }}

Im Anhang noch die Definition meines GAD's.

Kann mir jemand helfen? Sollte es diese Frage schon mal gegeben haben, würde ich mich über einen Verweis darauf sehr freuen, ich habe leider nichts gefunden..

Liebe Grüße und einen schönen Abend,
Marvin
Titel: Antw:Buttons ohne Funktion - Heizkörperthermostat
Beitrag von: MarvinLu am 19 November 2019, 08:08:28
Hat sich erledigt, ich hatte da wohl ein paar elementare Schritte vergessen.

Liebe Grüße, Marvin