- Home
- Deutsch
- Visualisierung
- iQontrol RGBW mit Kanal pro Farbe
iQontrol RGBW mit Kanal pro Farbe
-
Hello iQontrol Community,
zunächst einmal, ich bin sehr neu in der Runde und hoffe daher das ich den richtigen Weg gewählt habe, falls nicht bitte entsprechend kundtun.
Ich habe derzeit das Problem da ich eine KNX Integration verwende, das ich pro Farbe (RGBW) einen Datenpunkt habe, wenn ich das jedoch richtig erkannt habe geht eine RGBW Steuerung beim Gerätetyp Licht nur über 1 Objekt zur Farbsteuerung. Liege ich da richtig? Falls dem so ist seht ihr eine Möglichkeit/Weg dies vielleicht doch zu realisieren? -
@tkue99 zwar keine ahnung von KNX, aber die einzelnen faben kannst du über Additional_Controls einbinden.
das ist zwar jetzt eine shelly bulb, aber das selbe prinzip.
-
@da_woody ich danke dir vielmals für die schnelle Rückmeldung. Hab deine Variante getestet, funktioniert soweit, danke dafür. Schade ist trotzdem das ich dadurch die Möglichkeit des Color-Pickers verliere, ist in anderen Lösungen trotz Einzeladressen möglich mit Color-Picker
-
@tkue99 sagte in iQontrol RGBW mit Kanal pro Farbe:
die Möglichkeit des Color-Pickers
gibts meines wissens nicht in iQontrol...
-
Es gibt eine Möglichkeit das anzupassen, allerdings wirst Du dafür ein Skript und einen Selbsterzeugten Datenpunkt unter 0_userdata benötigen. Das Skript muss in Etwa so aussehen. (in Etwa, da ich nicht weiss wie KNX die Werte für die Farben sind (0-100 oder 0-255)
Als Beispiel:
In der JS Funktion steht diese Zeile:return parseInt('0x'+hex);
Hinter dem Spoiler auch als Text zum importieren
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="-Ailh{Q@/S##d?Mb!`g_">hex</variable> <variable id="5ob0#An;f3uFl.$EFs9L">r</variable> <variable id="O/0^)|OpL%7KK?=?kBW9">g</variable> <variable id="rF`R_a7*?;MAjq=QEvMX">b</variable> <variable id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</variable> </variables> <block type="procedures_defcustomreturn" id="eRNN3n?7pch82ur=0%Sx" x="13" y="13"> <mutation statements="false"> <arg name="hex" varid="-Ailh{Q@/S##d?Mb!`g_"></arg> </mutation> <field name="NAME">HexToDec</field> <field name="SCRIPT">cmV0dXJuIHBhcnNlSW50KCcweCcraGV4KTs=</field> <comment pinned="false" h="80" w="160">Describe this function...</comment> </block> <block type="variables_set" id="[J,e.QwO+L}4v|QWjhHv" x="13" y="63"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> <value name="VALUE"> <block type="convert_tonumber" id="JoRY.oG|Lt%Zbpp*3DH0"> <value name="VALUE"> <block type="get_value" id="k2s2a+yjl+$yTW?6}Gxn"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Lights.Red</field> </block> </value> </block> </value> <next> <block type="variables_set" id="a=Hu[^(=q;p+xTrBXs6H"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> <value name="VALUE"> <block type="convert_tonumber" id="SqJ|(O90]-}HM8$10LXQ"> <value name="VALUE"> <block type="get_value" id="p~!e47fBxd}3ad2Q]aB8"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Lights.Green</field> </block> </value> </block> </value> <next> <block type="variables_set" id="28/bB$d:c@Bg|mSI57Xi"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> <value name="VALUE"> <block type="convert_tonumber" id="zO6*T.n6ssDx[d3F6wh?"> <value name="VALUE"> <block type="get_value" id="YDojJD=)O%n_bUO?O;r("> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Lights.Blue</field> </block> </value> </block> </value> <next> <block type="variables_set" id="L=RTEsQk2yRr(?g5]hCb"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> <value name="VALUE"> <block type="math_number" id="6Y!ytU/=WR/%QZK,r/jn"> <field name="NUM">255</field> </block> </value> <next> <block type="debug" id="=3~JGW}[[({xA4TD9ubE"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="BeW?vW5TvCpOV[q+:dM-"> <field name="TEXT">test</field> </shadow> <block type="colour_rgb" id="dMxbLHRfvVSLHg@B4Ihf"> <value name="RED"> <shadow type="math_number" id="y)5?6QKxZhu_tA54dd`H"> <field name="NUM">100</field> </shadow> <block type="math_arithmetic" id="]nVT82tqh{%JbY_PfY0m"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="Jt/?G@R}Y#[8gn]w2H,i"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="e^D)`]wR.f,6R$k]n+[/"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="LU?8cON|TBZ00%6=YrHE"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=":+~*(U+5$!b|^wV,z(Hs"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> </block> </value> <value name="B"> <shadow type="math_number" id="k*jOhoI{9O+pMztBj/pe"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=",oGG(Uo{PSKx$[B1AgwJ"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="[Q?2m?swveV?yl%M!pFW"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="GREEN"> <shadow type="math_number"> <field name="NUM">50</field> </shadow> <block type="math_arithmetic" id="Bd)3Ed_eK307NK9?LvH*"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="vPqE.?QO|Q0XfAVyPz9^"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="xa``W}0^U]-9979F;0YG"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="L0p8EZwH~AlMpp`:3h$u"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="4BYfYo}pm!oDwA.)009|"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="BLUE"> <shadow type="math_number"> <field name="NUM">0</field> </shadow> <block type="math_arithmetic" id="pzE*`1*L|+(/+k/2lL8~"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=":(q{@A4TZ!mqK9cYr!2."> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="u$[YX5CLmW-}-npuoS3T"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="e2dB%u$!;Rf{aVzp=1hm"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="e61IYDMLo1RsQW.y9^?f"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="3e_)kGsnIN2|vraOPDL@"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="on_ext" id=";?aEwh.l]2Wa8z#WdiNk"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION">true</field> <value name="OID0"> <shadow type="field_oid" id="4IiH!iA;@ns)a(HA|szx"> <field name="oid">0_userdata.0.Lights.Red</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="Pp3$4?/z61[lWVnqTK)O"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> <value name="VALUE"> <block type="on_source" id="R)r[5YLo$_lvSLpU=#Y7"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="update" id="^G)4,FtAMNw.bHl$mw3d"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Lights.RGB</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_rgb" id="O]k6z8,~m8T,@!W)b?;x"> <value name="RED"> <shadow type="math_number"> <field name="NUM">100</field> </shadow> <block type="math_arithmetic" id=",Rr-2j~-P1hZrfL3+m8}"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="|b9INLO%StEJ/+HSsFjK"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="O*FUoq*BNRS/s^gO@poY"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="4SroEw*nO2LHmO_:dPA,"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id=";1$~;$A~{ZQ|5Hv+FlL+"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="GREEN"> <shadow type="math_number"> <field name="NUM">50</field> </shadow> <block type="math_arithmetic" id="MoG)!(QZKA(,S2$G.Lj/"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="7?Q9}c(aqaPq$}gRZItU"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="/bx,3!n}]~.I)QEPjb#d"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="4{.%HpC?3E?p[H]iKEaR"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="aq^28G=3-B/rcX]1F#_-"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="BLUE"> <shadow type="math_number"> <field name="NUM">0</field> </shadow> <block type="math_arithmetic" id="m!RSPkzS|qJU)YH3Mpav"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="3KeVP@2KmO$FhC=(9}Q^"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=")`x9hKX}`IsA0q~fJdx:"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="tP9[y6fm#%yurG18nD!n"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="C`aemT],{VvbHz0EMi4R"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="on_ext" id="S=EBaobz+,L*{$h$eSz5"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION">true</field> <value name="OID0"> <shadow type="field_oid" id="~*{$)c%/.14N+2A207,!"> <field name="oid">0_userdata.0.Lights.Green</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="93w0!^Pcvmp+Oq,kFY_w"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> <value name="VALUE"> <block type="on_source" id=",LMvS{daCaBbRPmxM||O"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="update" id="wOsTE+ITCJ9wikywvtQH"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Lights.RGB</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_rgb" id="eb2:Ln`=ryioV:;dM:c`"> <value name="RED"> <shadow type="math_number"> <field name="NUM">100</field> </shadow> <block type="math_arithmetic" id="upTCsLGD56U+$r}5sZ9W"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="=BrQ5v-t#N[^j[ji)NoE"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="T=/U{yWom*6U)?YA``Nh"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="8,s%~b:fH=H!!p5yqR7R"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="]FZ^v#wgt/UA#,UIZZj+"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="GREEN"> <shadow type="math_number"> <field name="NUM">50</field> </shadow> <block type="math_arithmetic" id="[8k~*33DTFtcvOaR6O(c"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="^d)!R~x9h1pwvVmz`oy^"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="MelcdVgaf`4ovn(lr)Vy"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="ut!xSy:W+H|#})Yb!ZFT"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="73|BW7[5|vBWwf{AuXuE"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="BLUE"> <shadow type="math_number"> <field name="NUM">0</field> </shadow> <block type="math_arithmetic" id="Xw%2xyaZt00}V]S`C*pA"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="jdZCsjD@HeM6[ci@?@tA"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="$4L;y!Ry^O80A3P;%n~O"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="}Q[{Rj+:FbU5V$n26%a5"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="*cCm~)HHU$eVU_077mBm"> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="on_ext" id="Bt[0PzS#*N=:AQ;dlJ.L"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION">true</field> <value name="OID0"> <shadow type="field_oid" id="Sn)5LxQWQgfDQ2Dh7[sG"> <field name="oid">0_userdata.0.Lights.Blue</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="!qeqFnlJl`Mb~isW/RWc"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> <value name="VALUE"> <block type="on_source" id="O?PxErP:1QQFI3VLJZGq"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="update" id="@G:P~lUnpm5sn7u!)I{%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Lights.RGB</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_rgb" id="wgc?X}Fc%8:xbHF,r`%9"> <value name="RED"> <shadow type="math_number"> <field name="NUM">100</field> </shadow> <block type="math_arithmetic" id="m-:zj,19Ww6hin1S87KH"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id=":Gm1IiM!4`bzug2=$A]."> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="O+AXb}Fa7W}LCf_()RWg"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Tt%P/4FN[4FG^`u=;owO"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="h/RL/)pFxUj{FwH7~9|6"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="GREEN"> <shadow type="math_number"> <field name="NUM">50</field> </shadow> <block type="math_arithmetic" id="R%HWubJj4}qT/e!e@6Qq"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="4;:!{H.@jexf`j-lSr]}"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="y]m5{aK$d$AT,I9jMg`x"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="KABATrsIZQ!l.(KBppZz"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="sX/14,ibe{;TOjQ8*(UE"> <field name="NUM">100</field> </shadow> </value> </block> </value> <value name="BLUE"> <shadow type="math_number"> <field name="NUM">0</field> </shadow> <block type="math_arithmetic" id="FsMrtO|P7|;P{9c%_wg]"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="A[34(:7=*~unu{6d)cHM"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="55P,4^RnZV|J8IEXiCd8"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="z.o_B2b~$^(zFI|}Rdpu"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="-vWHqN(FO56`birCVhX."> <field name="NUM">100</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <next> <block type="on_ext" id="0s.mZS/q3bgD.N$*RJpH"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION">false</field> <value name="OID0"> <shadow type="field_oid" id="-l4*kze=DFKFSqT]M/^@"> <field name="oid">0_userdata.0.Lights.RGB</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="10nE@gdXs6mXUGMva4T3"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> <value name="VALUE"> <block type="procedures_callcustomreturn" id="IK}PYBjN=kZ~%yJ0R;2="> <mutation name="HexToDec"> <arg name="hex"></arg> </mutation> <value name="ARG0"> <block type="text_getSubstring" id="gbC/m+:AEvbD/(_AS1oq"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="on_source" id="[jUd-gJJG0_1#d$OAHba"> <field name="ATTR">state.val</field> </block> </value> <value name="AT1"> <block type="math_number" id="f[)lf@OGy$I46Nn{^@~D"> <field name="NUM">2</field> </block> </value> <value name="AT2"> <block type="math_number" id="8s*Jy];|.PE,:`_NLNSe"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="Xxp$s(,npgDf=nmMmeS`"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> <value name="VALUE"> <block type="procedures_callcustomreturn" id="4Htui/@ef%W.d$ZPlui@"> <mutation name="HexToDec"> <arg name="hex"></arg> </mutation> <value name="ARG0"> <block type="text_getSubstring" id="/:LkF,1kNquJCSZ_IhBC"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="on_source" id="-j;T]Wv^QPKPw%Y1F$H/"> <field name="ATTR">state.val</field> </block> </value> <value name="AT1"> <block type="math_number" id="KK|zLGK/^kR?!fEMi!1Q"> <field name="NUM">4</field> </block> </value> <value name="AT2"> <block type="math_number" id="1P_N}%Ex2nB2r(PX0?_|"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="dh^y!Zk8Ml[h$T~vTy:z"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> <value name="VALUE"> <block type="procedures_callcustomreturn" id="Rx5m$+Q+M98lIZfvl~;%"> <mutation name="HexToDec"> <arg name="hex"></arg> </mutation> <value name="ARG0"> <block type="text_getSubstring" id="wf/k3xYg6#g;4?==;A0-"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="on_source" id="]lf-6#A%^re$n+^/[_kG"> <field name="ATTR">state.val</field> </block> </value> <value name="AT1"> <block type="math_number" id="K(Q17%+P@f@2h?vIOm=Z"> <field name="NUM">6</field> </block> </value> <value name="AT2"> <block type="math_number" id="TbKFs5t3Kw/ZijsQEOTz"> <field name="NUM">7</field> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="^VxiwJA5(O+Nd5xqx`Jn"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Lights.Red</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="du%O`i-+sW`x/j9/bZDE"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="=pmKt-@A9GKd3h1m)],}"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="rLq)Qr-s6IGt/fTXx8l~"> <field name="VAR" id="5ob0#An;f3uFl.$EFs9L">r</field> </block> </value> <value name="B"> <shadow type="math_number" id="3W~),D1he{9/7.juA)jr"> <field name="NUM">255</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="@FJZ@~Yaq(Uj%pAD8W7m"> <field name="NUM">100</field> </shadow> <block type="variables_get" id="qF~1iKf7L?]lWvlT#eJ%"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <next> <block type="control" id="?y$g~*WDDrF(B(FN7/pT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Lights.Green</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="tj$fcu%$fpsMaX1R^G$O"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="+t{(=]I]3.pxG+WhjXE-"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="1g-_+vvB-V#9ZZjr#vW{"> <field name="VAR" id="O/0^)|OpL%7KK?=?kBW9">g</field> </block> </value> <value name="B"> <shadow type="math_number" id="DR_mwts2jpWbi9;Pelgr"> <field name="NUM">255</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">100</field> </shadow> <block type="variables_get" id="7`O_0cp0~r40T3j{PF,:"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> <next> <block type="control" id="XFE7,==HIz^8[n_f3UJq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Lights.Blue</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="Glq.%b3Q;;XyZA4S;6hF"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="{{EU=Tqg!F^,(;BVQW+U"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="SCwNlH#35W.OPiLc($cq"> <field name="VAR" id="rF`R_a7*?;MAjq=QEvMX">b</field> </block> </value> <value name="B"> <shadow type="math_number" id=")!1`K$QSn8`M%QYWTi?,"> <field name="NUM">255</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">100</field> </shadow> <block type="variables_get" id="a]jP1!iKr!LE}OD]|!.R"> <field name="VAR" id="A~M)D-_4U{7P?TjhBCMW">ColorFactor</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
A. -
@tkue99 moment mal, ich hab dir noch ein anderes beispiel rausgesucht. k.a. ob das deine DP hergeben...
da hast du einen color picker... geräte typ: Licht -
Ein nettes Hallo in die Runde,
Meine Visu habe ich einigermaßen nett hinbekommen, finde den Style von IQontrol ansprechend!
Nun stehe ich aber vor einem Problem, auch wenn es nicht ganz zum Thema passt.
Habe RGBW Stripes die ich mit einem 6byte Objekt (DPT 251.600) anspreche. Dieses in "Hue" eingetragen endet ohne Erfolg.
Bin leider nicht so sehr in der Visu drinnen - über einen Tip wäre ich dankbar.Gruß hm
-
@holymoly Eine Verbindung vom DP Hue zu 3 byte RBG (ffaaaa) wird nicht funktionieren. Hue geht mit Werten von 0 -360 und bezeichnet nur den Farbton.
Zur Lektüre empfiehlt sich: https://de.wikipedia.org/wiki/HSV-Farbraum
A.
-
@asgothian
Danke für den Wink mit HSV!
Jep, konnte im Dali Gateway auch HSV auswählen - läuft nun, Supi!gr hm