Diskussion des Wiki-Artikels LinKNX. Wenn Du eine Anmerkung machen willst, klicke bitte den Antworten-Button.
Ankündigung
Einklappen
Keine Ankündigung bisher.
LinKNX
Einklappen
X
-
Sonnenstand
habe im CSV die aktuelle Entwicklung mit Sunset,Sunrise, etc. gesehen.
Kann man den Sonnenstand und seine eigene Position zur Steuerung
der Beschattung nutzen?
Kannst Du dazu eine Beschreibung geben?
Hallo,
In <services> section of xml config, add
<location lon="4.20" lat="50.54"/>
Then you can use something like this in a timer:
<condition type='timer' trigger='true'>
<at type='sunrise' wdays='12' offset="1200"/>
<until hour='23' min='58' wdays='12'/>
</condition>
In <at .../> or <until .../> elements, you can set "type" attribute to "sunrise" , "sunset" or "noon". Of course, using "hour" and "min" attributes is useless, but "day", "month" and "year" still works, even if in most case you will use "wdays" and/or "exception" instead. The "offset" is a number of seconds added to the computed sunrise/set time. (negative offset should be possible also)EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
-
Delay Schalter...
Eine Frage habe ich aber...vielleicht könnt ihr mir noch einen Tipp geben:
möchte für meine Bewässerung im Garten eine Zeitfunktion einrichten: also wenn ich sie einschalte sollte sie (eventuell noch abhängig von der Tageshöchsttemperatur, diesen Wert habe ich in einem Objekt vorliegen) einige Minuten laufen und sich dann autom. wieder ausschalten.
Hallo,
Dafür kannst du ein "Rule" machen. z.B.:
Code:
<rule id="bewasserung">
<condition type="object" id="bewasserung_starten" value="on" trigger="true" />
<actionlist>
<action type="set-value" id="bewasserung_aktor" value="on" />
<action type="set-value" id="bewasserung_aktor" value="off" delay="600"/>
<action type="set-value" id="bewasserung_starten" value="off" delay="600"/>
</actionlist>
<actionlist type="on-false">
<action type="set-value" id="bewasserung_aktor" value="off"/>
</actionlist>
</rule>
Damit wenn du objekt bewasserung_starten an macht, ist Bewasserung wahrend 600 Sekunden aktiv.EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
Werte anzeigen
Style field can contain everything that is allowed in the style attribute of a <td> html tag.
All the possible values are described in the CSS documentation.
Format field contains the text to display. If the "Insert value" checkbox is checked, you can put a "$1" (without quotes) where the object value has to be inserted.
If pattern field is empty, the object value is inserted as it is. If you need more advanced formatting, you can use the pattern field to specify a pattern to match. Each of the parenthesis groups in the pattern will correspond to $1, $2, $3, ... in the format field.
For example, the date in format YYYY-MM-DD can be transformed in DD/MM/YYYY using pattern "(\d+)-(\d+)-(\d+)" and format "Date: $3/$2/$1". For the complete list of possibilities offered by patterns, see:
http://www.w3schools.com/jsref/jsref_obj_regexp.aspEPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
The parameter "id" is mandatory and will be used to identify the object in rules and by the XML based protocol.
Parameter "gad" is optional. If specified, the object will be linked to that group address on KNX bus. If not, the object will only be accessible in rules and in XML based protocol.
The "type" parameter can be one of
- 1.001: switching (on/off) (EIS1)
- 3.007: dimming (control of dimmer using up/down/stop) (EIS2)
- 3.008: blinds (control of blinds using close/open/stop)
- 5.xxx: 8bit unsigned integer (from 0 to 255) (EIS6)
- 5.001: scaling (from 0 to 100%)
- 5.003: angle (from 0 to 360°)
- 6.xxx: 8bit signed integer (EIS14)
- 7.xxx: 16bit unsigned integer (EIS10)
- 8.xxx: 16bit signed integer
- 9.xxx: 16 bit floating point number (EIS5)
- 10.001: time (EIS3)
- 11.001: date (EIS4)
- 12.xxx: 32bit unsigned integer (EIS11)
- 13.xxx: 32bit signed integer
- 14.xxx: 32 bit IEEE 754 floating point number
- 16.000: string (max 14 ASCII char) (EIS15)
- 20.102: heating mode (comfort/standby/night/frost)
It's optional and the default value is 1.001.
The "flags" parameter is similar to the ETS flags. The value of each flag is represented by a letter:
c : Communication (allow the object to interact with the KNX bus)
r : Read (allow the object to answer to a read request from another participant)
w : Write (update the object's internal value with the one received in write telegram if they are different)
t : Transmit (allow the object to transmit it's value on the bus if it's modified internally by a rule or via XML protocol)
u : Update (update the object's internal value with the one received in "read response" telegram if they are different)
f : Force (force the object value to be transmitted on the bus, even if it didn't change)
i : Init (useless for the moment. Will perhaps replace the parameter init="request" in the future)
Each letter appearing inside the value of this parameter means the corresponding flag is set.
If "flags" is not specified, the default value is "cwtu" (Communication, Write, Transmit and Update)
The "init" parameter configures the initial object value at application startup. It can be any valid value for the object or one of the special keywords "request" and "persist". "Request" will perform a read operation on the KNX bus when the value is needed for the first time. "persist" will try to load a value from persistant storage (see persistence element in services section). If no "init" parameter is given, the default behavior is "request".EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
KNXweb: Benutzerdefinierte Images bei Symbole verwenden
Einfügen von selbstdefinierten Grafiken in den Datenobjekten:
KnxWeb sucht selbstdefinierte Bilder im "design" Ordner.
Du musst das bild in design Ordner (z.B. linknx/design/default/) kopieren, dann einfach "gotoBottom.png" in KnxWeb Feld benutzen. Du kann auch Unterordner benutzen, z.B. linknx/design/default/bilder , dann in Linknx "bilder/gotoBottom.png" benutzen ("\" nicht erlaubt, nur "/")
kurze Aufstellung: welcher Datentyp zu welchen Visualisierungselement
switch => 1.001: switching (on/off) (EIS1)
dimmer => 3.007, 1.001 and 5.xxx
scale => 5.xxx
thermostat => 20.102 and 9.xxxEPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
Statusobjekte...
It's now possible to add a listening group address to an object. I just finished implementing it. I did some basic test on it and it seems to work as expected. Here's an example of configuration:
<object id="ecl_escalier" gad="1/1/6">Eclairage Escalier
<listener gad="1/1/206"/>
</object>
<object id="status_ecl_escalier" gad="1/1/206">Eclairage Escalier (status feedback)</object>
With this config, any info received for 1/1/206 will also update internal state of object "ecl_escalier" (without sending a write telegram for address 1/1/6 on the bus.). If "ecl_escalier" is modified, it will only send a write telegram for group address 1/1/6, not 1/1/206EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
Scale-Object ("Anpassung"
Normally, you should see the blinds going progressively down (in 4 steps) when the 1byte value changes from 0 to 255 (=100%)
For the custom mode, it's a little bit tricky.
The image used is in fact bigger than what you see on the screen, and it's shifted horizontally and/or vertically to show different parts of the image when the value changes.
For the blinds, for example, the image blinds_move.png is 32x256 pixels and composed of 8 32x32 images one below the other.
If you want to make the same effect with custom image, you would set height=32 width=32 steps=8 horizontal_shift=0 and vertical_shift=32 so that the upper 32x32 part is showed when object value is 0. The 0 to 100% range would be splitted in 8 portions and for each of them, the image would be shifted up by 32px to show the appropriate blinds position.
Another way to use the custom mode could be to use for example an image of 64x32, width and height of 32, steps=32 and vertical_shift=1 so that the image is progressively shifted up pixel by pixel.EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
Multi-Switch Kontrollelement
der betreffenden EIB_Adresse sollte in linknx.xml NICHT 5.001 als Typ zugewiesen werden:
because the 0-255 value sent over the bus is mapped to a percentage. So if you send value 3 on the bus, the object value will be 3/255 * 100 = something around 1.17647 .
And you'll need to set that kind of float value in the multiswitch properties.
In this case, perhaps you would better use object type 5.xxx that uses the raw 0-255 value.EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
Conditions....
You can put any of the conditions (and ,or ,not, timer or object) at every place where a condition is expected.
In a rule, you can have for example:
<condition type="xxx">
<condition type="yyy">
<condition type="zzz">
<condition type="object" .../>
<condition type="object" .../>
<condition type="not">
<condition type="object" .../>
</condition>
<condition type="object" .../>
</condition>
<condition type="object" .../>
<condition type="object" .../>
</condition>
<condition type="object" .../>
</condition>
where xxx, yyy and zzz are any combination of "and" and "or".
I don't understand what you mean by "first condition inside a rule". There is always one and only one condition inside a rule. If the condition becomes true, the first action list is executed (if present). If the condition becomes false, the second action-list is executed (if present)
In the wiki (http://linknx.wiki.sourceforge.net/Condition%27s+Syntax), you can read:
Elements at and every can't be used at the same time, but one of them must be specified.
Elements until and during can't be used at the same time.
And this means:
-at,until and during ==> INVALID
-every and during ==> OK
-at,until and every ==> INVALID
-----------------------------------------------------------
- eq : object value equals reference value
- lt : object value is less than reference value
- gt : object value is greater than reference value
- ne : object value is not equal to reference value
- lte : object value is less than or equal to reference value
- gte : object value is greater than or equal to reference value
-----------------------------------------------------------
<condition type="object" id="brightness" op="lt" value="1000" trigger="true" />
or
<condition type="object" id="ext_temperature" op="gt" value="18.5" trigger="true" />
-----------------------------------------------------------
Beispiel AND
<rule id="Programm_Beregnung_reset">
<condition type="and">
<condition type="object" id="Beregnungsprogramm" value="1" trigger="true"/>
<condition type="object" id="Beregnung_Sperre" value="0"/>
</condition>
<actionlist>
<action type="set-value" id="Beregnungsprogramm" value="0" delay="5" />
</actionlist>
</rule>EPIX
...und möge der Saft mit euch sein...
Getippt von meinen Zeigefingern auf einer QWERTZ Tastatur
Kommentar
-
correct notation for listening gad
Please note that correct notation of listening gad is different to example below:
<object id="ecl_escalier" gad="1/1/6">Eclairage Escalier
<listener gad="1/1/206"/>
</object>
<object id="status_ecl_escalier" gad="1/1/206">Eclairage Escalier (status feedback)</object>
<object id="ecl_escalier" gad="1/1/6"><listener gad="1/1/206"/>Eclairage Escalier</object>
<object id="status_ecl_escalier" gad="1/1/206">Eclairage Escalier (status feedback)</object>
Kommentar
-
Jalousien steuern mit Knxweb
Wie kann ich auf dem Knxweb einfach ein Bild positionieren, wo einfach nur ein DOWN (z.B) storen hinterlegt wird ohne gleich bei einem weiteren Klick zu switchen (UP zu provozieren)?
Am liebsten klick up -> klick stop -> klick up usw (ohne zu switchen)
Danke für einen Tipp
Kommentar
-
Zitat von mwfv Beitrag anzeigenAm liebsten klick up -> klick stop -> klick up usw (ohne zu switchen)
Du kannst es mit ein "multiswitch" machen. Wählt Anzahl=2.
Wenn du das Bild nicht ändern will, dann fügst du einfach das selbe Bild für die Zwei. (Das bild Datei muss in dein design Ordner sein)
Und für Wert Feld benutzt du "on" und "off" für binär Objekt. oder "up" und "stop" für rollo Objekt.
MfG,
Jean-François
Kommentar
-
Ich habe den Multischalter bereits versucht .... nur bewegt sich überhaupt nichts damit. Weder Licht ein noch Licht aus oder sonst was. Ich sehe auch keine Bewegung auf dem Bus.
Hat die Knxweb 6 einen Bock den ich nicht kenne?
Komisch!! sonst funktionieren alle anderen Funtionen problemlos.
Sorry für die Fragen
Kommentar
Kommentar