Hallo Busler,
hat jemand von euch schonmal Widgets/sub-pages mit dem neuen knxweb2 gebaut? Ich hab mir mal welche für Dimmer und für Rollos erstellt, die auf dem Wiki-Beispiel basieren: SourceForge.net: Knxweb2 Subpages Domovea - linknx
nun habe ich mir eines für die Raumthermostate basteln wollen aber ich bekomme die Temperaturparameter nicht in die subpage rein, obwohl ich das genau wie beim Rollo gemacht habe (hier kriege ich den Absolutwert für die Position als Prozentwert angezeigt). Das gleiche gilt für die Anzeige des Stellwerts in PWM und stetig. Was hingegen halbwegs funktioniert, ist die Modus-Umschaltung und die Zwangsstellung - allerdings nur sendend, d.h. wenn ich in knxweb2 klicke, erfolgt die Zustandsänderung am Bus. Wenn ich am Tastsensor direkt umschalte (oder per altem knxweb) dann kriegt das knxweb2-widget nichts davon mit.
hier ist der Auszug aus meiner subpages.xml:
und hier der Auszug aus dem Zone wo die subpage eingebunden ist:
hat jemand von euch schonmal Widgets/sub-pages mit dem neuen knxweb2 gebaut? Ich hab mir mal welche für Dimmer und für Rollos erstellt, die auf dem Wiki-Beispiel basieren: SourceForge.net: Knxweb2 Subpages Domovea - linknx
nun habe ich mir eines für die Raumthermostate basteln wollen aber ich bekomme die Temperaturparameter nicht in die subpage rein, obwohl ich das genau wie beim Rollo gemacht habe (hier kriege ich den Absolutwert für die Position als Prozentwert angezeigt). Das gleiche gilt für die Anzeige des Stellwerts in PWM und stetig. Was hingegen halbwegs funktioniert, ist die Modus-Umschaltung und die Zwangsstellung - allerdings nur sendend, d.h. wenn ich in knxweb2 klicke, erfolgt die Zustandsänderung am Bus. Wenn ich am Tastsensor direkt umschalte (oder per altem knxweb) dann kriegt das knxweb2-widget nichts davon mit.
hier ist der Auszug aus meiner subpages.xml:
Code:
<subpage name="Thermostat" width="210" height="260"> <parameters><parameter id="title" label="Title" type="text"/><parameter id="footer" label="Footer" type="text"/><parameter id="obj_t_soll" label="Soll-Temperatur % 9.xxx" type="object"/><parameter id="obj_t_ist" label="Ist-Temperatur % 9.xxx" type="object"/><parameter id="obj_zwang" label="Zwangsstellung % 1.001" type="object"/><parameter id="obj_meldung" label="Meldung Heizung % 1.001" type="object"/><parameter id="obj_pwm" label="Stellwert PWM % 1.001" type="object"/><parameter id="obj_stetig" label="Stellgröße stetig % 5.xxx" type="object"/><parameter id="obj_modus" label="Betriebsmodus % 20.102" type="object"/></parameters> <controls> <control type="html" html="<div class="domoveawidget"><span class="domoveawidgetback"></span><div class="domoveawidgetTop" /><div class="domoveawidgetMiddle" /><div class="domoveawidgetBottom"/></div>" x="-1" y="-1" width="210" height="260" undefined="300"/> <control type="text" text="_title" size="18" color="#FFFFFF" bgcolor="" align="default" style="" object="" pattern="(.*)" x="40" y="7" width="150" height="23" undefined="80"/> <control type="text" text="_footer" size="12" color="#FFFFFF" bgcolor="" align="default" style="" object="" pattern="(.*)" x="30" y="235" width="150" height="15" undefined="70"/> <control type="button" picture="White/20x20_rondOff.png" picture-active="White/20x20_rondOn.png" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="_object_on_off" feedback-compare="eq" feedback-value="on" inactive-goto="" inactive-action="" active-goto="" active-action="" x="10" y="8" width="20" height="20" undefined="50"/> <control type="text" text="Ist: $1%°C" size="18" color="#FFFFFF" bgcolor="" align="default" style="" object="_obj_t_ist" pattern="(.*)" x="94" y="38" width="95" height="21" undefined="21"/> <control type="text" text="Zwang" size="12" color="#FFFFFF" bgcolor="" align="center" style="" object="" pattern="(.*)" x="0" y="150" width="100" height="22" undefined="150"/> <control type="button" picture="32x32_pump_off.png" picture-active="32x32_pump_on.png" text="!!!" size="28" color="#ff0000" align="center" text-padding="0" feedback-object="_obj_zwang" feedback-compare="eq" feedback-value="on" inactive-goto="" inactive-action="" active-goto="" active-action="" x="34" y="118" width="32" height="32" undefined="32" display-picture="no"><actionlist id="inactive-action"><action type="set-value" id="_obj_zwang" value="on"/></actionlist><actionlist id="active-action"><action type="set-value" id="_obj_zwang" value="off"/></actionlist></control> <control type="text" text="Standby" size="10" color="#FFFFFF" bgcolor="" align="center" style="" object="" pattern="(.*)" x="91" y="204" width="66" height="15" undefined="15"/> <control type="text" text="Frostschutz" size="10" color="#FFFFFF" bgcolor="" align="center" style="" object="" pattern="(.*)" x="14" y="203" width="41" height="26" undefined="15"/> <control type="button" picture="32x32_horsGel2.png" picture-active="" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="" feedback-compare="eq" feedback-value="" inactive-goto="" inactive-action="" active-goto="" active-action="" x="21" y="177" width="32" height="32" undefined="200"><actionlist id="inactive-action"><action type="set-value" id="_obj_modus" value="frost"/></actionlist><actionlist id="active-action"/></control> <control type="text" text="Nacht" size="10" color="#ffffff" bgcolor="" align="center" style="" object="" pattern="(.*)" x="68" y="204" width="32" height="12" undefined="210"/><control type="button" picture="Black/32x32_temperature.png" picture-active="" display-picture="no" text="" size="12" color="#000000" align="" text-padding="0" confirm="no" feedback-object="" feedback-compare="eq" feedback-value="" inactive-goto="" inactive-action="" active-goto="" active-action="" x="10" y="40" width="32" height="32"/> <control type="text" text="$1%" size="18" color="#FFFFFF" bgcolor="" align="default" style="" object="_obj_t_soll" pattern="(.*)" x="92" y="56" width="102" height="21" undefined="21"/> <control type="button" picture="32x32_pump_off.png" picture-active="32x32_pump_on.png" display-picture="no" text="" size="12 " color="#ff0000" align="" text-padding="0" confirm="no" feedback-object="_obj_pwm" feedback-compare="eq" feedback-value="on" inactive-goto="" inactive-action="" active-goto="" active-action="" x="90" y="74" width="32" height="32"/> <control type="vprogressbar" progress-color="#FF0000" progress-picture="" border="true" border-color="#000000" feedback-object="_obj_stetig" x="123" y="75" width="32" height="32"/> <control type="text" text="$1%" size="18" color="#FFFFFF" bgcolor="" align="default" style="" object="_obj_stetig" pattern="(.*)" x="157" y="82" width="40" height="21" undefined="21"/> <control type="button" picture="32x32_nuit.png" picture-active="" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="" feedback-compare="eq" feedback-value="" inactive-goto="" inactive-action="" active-goto="" active-action="" x="70" y="174" width="32" height="32" undefined="200"><actionlist id="inactive-action"><action type="set-value" id="_obj_modus" value="night"/></actionlist><actionlist id="active-action"/></control> <control type="button" picture="32x32_Eco3.png" picture-active="" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="" feedback-compare="eq" feedback-value="" inactive-goto="" inactive-action="" active-goto="" active-action="" x="111" y="173" width="32" height="32" undefined="200"><actionlist id="inactive-action"><action type="set-value" id="_obj_modus" value="standby"/></actionlist><actionlist id="active-action"/></control> <control type="button" picture="32x32_confort3.png" picture-active="" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="" feedback-compare="eq" feedback-value="" inactive-goto="" inactive-action="" active-goto="" active-action="" x="152" y="173" width="32" height="32" undefined="200"><actionlist id="inactive-action"><action type="set-value" id="_obj_modus" value="comfort"/></actionlist><actionlist id="active-action"/></control> <control type="text" text="Komfort" size="10" color="#FFFFFF" bgcolor="" align="center" style="" object="" pattern="(.*)" x="135" y="204" width="66" height="15" undefined="15"/> <control type="button" picture="32x32_vide.png" picture-active="32x32_confort3.png" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="_obj_modus" feedback-compare="eq" feedback-value="comfort" inactive-goto="" inactive-action="" active-goto="" active-action="" x="25" y="75" width="32" height="32" undefined="32"/> <control type="button" picture="32x32_vide.png" picture-active="32x32_horsGel2.png" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="_obj_modus" feedback-compare="eq" feedback-value="frost" inactive-goto="" inactive-action="" active-goto="" active-action="" x="25" y="75" width="32" height="32" undefined="32"/> <control type="button" picture="32x32_vide.png" picture-active="32x32_nuit.png" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="_obj_modus" feedback-compare="eq" feedback-value="night" inactive-goto="" inactive-action="" active-goto="" active-action="" x="25" y="75" width="32" height="32" undefined="32"/> <control type="button" picture="32x32_vide.png" picture-active="32x32_Eco3.png" text="" size="12" color="#000000" align="default" text-padding="0" feedback-object="_obj_modus" feedback-compare="eq" feedback-value="standby" inactive-goto="" inactive-action="" active-goto="" active-action="" x="25" y="75" width="32" height="32" undefined="32"/> </controls> </subpage>
Code:
<control type="subpage" view_mode="" hidetitledialog="false" picture-dialog="" subpage="Thermostat" x="729" y="239" title="Wohnzimmer" footer="Thermostat" obj_t_soll="raumtemperaturregelung:soll-temperaturen:wohnzimmer" obj_t_ist="sensorik:ist-temperaturen:wohnzimmer" obj_zwang="raumtemperaturregelung:zwangsstellung:wohnzimmer" obj_meldung="raumtemperaturregelung:meldung_heizen:wohnzimmer" obj_pwm="raumtemperaturregelung:stellgrößen_pwm:wohnzimmer" obj_stetig="raumtemperaturregelung:stellgrößen_stetig:wohnzimmer" obj_modus="raumtemperaturregelung:betriebsmodi:wohnzimmer"/>
Kommentar