- Home
- Deutsch
- Visualisierung
- Hue dimmen geht nicht
Hue dimmen geht nicht
-
Hallo zusammen,
seit heute habe ich eine Hue Bridge und 2 Lampen angeschlossen. Beide kann ich dimmen, wenn ich kein Blockly nutze. Leider ist die eine Lampe ausschließlich durch Blockly genutzt:
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="undefined" id="Intervall5">Intervall5</variable>
<variable type="undefined" id="Intervall6">Intervall6</variable>
<variable type="undefined" id="Intervall9">Intervall9</variable>
<variable type="undefined" id="Intervall7">Intervall7</variable>
<variable type="undefined" id="Intervall12">Intervall12</variable>
<variable type="undefined" id="Intervall8">Intervall8</variable>
<variable type="undefined" id="Intervall11">Intervall11</variable>
<variable type="undefined" id="Intervall10">Intervall10</variable>
</variables>
<block type="schedule" id="x:Pbd{dn);?tlH}-)lg=" x="-87" y="-512">
<field name="SCHEDULE">* * * * </field>
<statement name="STATEMENT">
<block type="comment" id="HP8ar^fq.mT(rQkx[3u">
<field name="COMMENT">Regen = Blau</field>
<next>
<block type="controls_if" id="1{ZQC$d~9V;
Udu!2I9">
<value name="IF0">
<block type="logic_compare" id="Go@6?C=uZ;EGcLkDN0x=">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="[-A3FQriX0By9C[SU]Y.">
<field name="ATTR">val</field>
<field name="OID">javascript.0.manuell_angelegte_Datenpunkte.Licht.Wetterlicht.Anzeigen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="TfNwjYwJtrCD^AVy-37d">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="[ftwU@/)7WDmZ|[nBf;%">
<value name="IF0">
<block type="logic_operation" id="D%bH{AT1Yai#;7a#4XFM">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="x!~jo^i+]~y+MS:ItG$w">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="+[tbnMJ$UC)3tjqCyzKG">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field>
</block>
</value>
<value name="B">
<block type="math_number" id="LQi|4)WzZi%)WWfzkg(O">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="3Y^lp9+QJE[u(6DsQ%fq">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="HyQuLWl+dC2l$lLp!)af">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="9~Iw|-gAbKFs/ZaI%Tg">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="]R8VyE~}VOxK0cA?de9">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id=":d~y=@I2GvMn5uv8B5[|">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="{6N;+yfL/mz6=PaJc@Uo">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="-t~6J^J_B0{z7f=?6=N">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="Sd}R@-$6ed6rsp{JK!q6">
<field name="COMMENT">blau</field>
</block>
</statement>
<next>
<block type="controls_if" id="[EX5v=azH:a$2:Y3@5gn">
<value name="IF0">
<block type="logic_operation" id=":3s9PFK|yzaYpYHCRr."> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="(
~%(+~hK|mCuehZUl2">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="]W%j52J(sbJy?4y,$9^">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field>
</block>
</value>
<value name="B">
<block type="math_number" id="{Vl,w9X2t1C4(kj~-q#@">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="=fCQW^J|4D;7]%2Q:$FM">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="hj^pvJQ3onnmtr5hlH:3">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="ce4S](wnEpQa=;V]TFo"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="Qt
Gs2I=$ShTV8FrNt^[">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="6WDG0|nn;@+zrcz+(9B">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="g}J7y|:Kx1(+eeM~p1H">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="J~?}5?%eIj%cCcXSs[)j">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="ex$:R$WO3Wmkv*)2aT9"> <field name="COMMENT">Blau</field> <next> <block type="control" id="{_$R;+:2kPr2Jt^=
eD{">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="-=8T.][.3E~!OIkNbxrK">
<field name="TEXT">{"r":47,"g":80,"b":254,"transitiontime":0}</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="PVcRK1yl*$gB$9Anzma">
<field name="COMMENT">Sturm und kein Regen = Rot</field>
<next>
<block type="controls_if" id=";b5dxZYz/dvVa~{z!qJH">
<value name="IF0">
<block type="logic_operation" id="(A^x_2S3;SNoJ!8n%#@y">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="F8PwQ)n;:6$_5QojPz,O">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="OB(QN]MN1udDzd3n7qGV">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="f)C~hErbGT[Y-2AW!F-E">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="R1G[;W@q^RRnT@-v3Xe%">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="/[!+|!EQd6fyv^fJNcwk">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="UGheK;T2-iCN(MUlMHl"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="Z]sUWmp/MLk31:kg[
9p">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="M;kGup8EcidI}I%JoI];">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id=")_Cq/j3aHT])li6[]Ga">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field>
</block>
</value>
<value name="B">
<block type="math_number" id="O;~FaMcswHb;A,DM%-"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="r^M6%0!FzJ/IvZ@Hx)Vn"> <field name="COMMENT">Rot</field> <next> <block type="control" id="(9Zot;!4hODuB0Fb3^DY"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="/-(xI]I~Kun/xxdXN8C:"> <field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="]h2$TUkhPha2VDOcfa2-"> <value name="IF0"> <block type="logic_operation" id="MUBHE*t7fNHzc.iS2jM1"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="0EdgU43W
H-6qjz!z@by">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="#NzB#~jZvtvZL}M
wf">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="y,;T4LGYC9Bf3^,v/j"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="3ieSVMV$s-7/X8iQ+rUk"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="StU-|;W=Rv=9z4HU~qWa"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";=_jOl0(_3lIm?aHc:PI"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="rwgwSNG~JwqLzlbeaQnt"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="ze.5i.-IZVqma].3d4)L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=".|X[BIp~2QxlzBoR5f-("> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="ZX_HSmCC73MvzHi7scIe"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="=9VHNd7-2KMRm*P=7anA"> <field name="COMMENT">Rot</field> <next> <block type="control" id="[z/2JGQ%#QlE3S58?u3O"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="$tzmPvvL]@qxG,U3N8;="> <field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field> </block> </value> </block> </next> </block> </statement> <next> <block type="comment" id="LUMc2
2~iS+DLNd3)*0"> <field name="COMMENT">Sturm und Regen</field> <next> <block type="controls_if" id=")RI
oG(9+kWjF5Woe@9O">
<value name="IF0">
<block type="logic_operation" id="JaB5x]HsCc6!+3,,k|.F">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="^X]O3kpwsgQ/=[ITDDLv">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="lHpb;YGKEZR{/eyo_g$"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id=":^XV
K#|aPg|]Y_O_d7">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="!#s9DgtvhJjMS}pMqFrX">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="t}x8$$I1-vkchfZ^Kdn5">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field>
</block>
</value>
<value name="B">
<block type="math_number" id="h45=w:qjv9Sb|d$:9tH">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_setinterval" id="av)XQovd9H/}*A1oMq!s" disabled="true">
<field name="NAME">Intervall5</field>
<field name="INTERVAL">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="N9O~RM@;v~=K%a;LIi?0">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="t$foQui6/=?@4.2?iPgm">
<field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field>
</block>
</value>
<next>
<block type="control" id="!JCOO6}BXo[,ngqYA|3">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=",}HrQxYl};|h{ez@[Tz[">
<field name="TEXT">{"r":47,"g":80,"b":254,"transitiontime":0}</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="control" id="Hg6z][,Q|nK5IW@zo1-c">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="p6bYWqWZy~^lLs1qJjof">
<field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field>
</block>
</value>
<next>
<block type="timeouts_setinterval" id=".,S:t#/]6+]K]c2E5jq$">
<field name="NAME">Intervall9</field>
<field name="INTERVAL">15</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="7~avFuH4uiqKczd/*bQ"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.alert</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="D$$C04{7b$1HjwY!KsNg"> <field name="TEXT">lselect</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="cyJp@m}gG,%1APpNl=ax"> <value name="IF0"> <block type="logic_operation" id="j~f,.Vc?v?0w8-
pM)i"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="9M${{Pb)OXwc6LgT/:ts"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="BciBqUB
3}#tiuB~)L]">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="lcSzY-fkZtN~.VfL$4^">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="#+nWdzP(a{k~cO8ucd^">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="PW8}S.JzsL@RTs2lov:">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field>
</block>
</value>
<value name="B">
<block type="math_number" id="@;|JA4WwK{fO{{0Is:Z"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id="FjA{,q3vDE7G}SQsnOM:" disabled="true"> <field name="NAME">Intervall6</field> <field name="INTERVAL">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="^?HZ#bAH?imynK9r9X,1"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="zx,c@mOdi
HmUMG@%=k8">
<field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field>
</block>
</value>
<next>
<block type="control" id="d7wqD~#;[JfN*|7#DX.">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="vlhoaOuc:quU;UfI,,-"> <field name="TEXT">{"r":47,"g":80,"b":254,"transitiontime":0}</field> </block> </value> </block> </next> </block> </statement> <next> <block type="control" id="04|v}%}Bpm0L5Y^Rw:?*"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="yTnOD7lyt~?|hA}ESIyI"> <field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field> </block> </value> <next> <block type="timeouts_setinterval" id="%@7n~|6xvt1N.ThVtzqr"> <field name="NAME">Intervall12</field> <field name="INTERVAL">15</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="LbdM49T]Iw359D#O;!j:"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.alert</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="?JeG2@qB}#$ovLTaINM
">
<field name="TEXT">lselect</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="4tG]m,r#Tl%9Y^vFJq@">
<value name="IF0">
<block type="logic_operation" id="9K{JaobyX{oy0oo]j^~t">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="mA:7rryI#$oj((@S6A~7">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="cuJ18QCP7XgUQrQS/(Q">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="E3XqXi.w5IsPU3q9.;6~">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="4R-+M?Sgw[uAn1$(N3fy">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="(]3d$o*^cZ8^ihoYp08"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="0HH}Xsj~hZpn)98TAM[m"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id="qV#dpN05O08H*mZXE-6y" disabled="true"> <field name="NAME">Intervall7</field> <field name="INTERVAL">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="3h4K(a]M;!Q.x$SeAsJf"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="8aZ9yH?x)P]AWVw0B}4E"> <field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field> </block> </value> <next> <block type="control" id="lGF*.Vx^=Z|E*wT1rfl."> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="s527Zq}m#Nc@sqgi!p*6"> <field name="TEXT">{"r":47,"g":80,"b":254,"transitiontime":0}</field> </block> </value> </block> </next> </block> </statement> <next> <block type="control" id="pK-cmnoXqiL7?s#5=,E-"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.command</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="KHj7SaC@Rmg$te^g[ke-"> <field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field> </block> </value> <next> <block type="timeouts_setinterval" id="KtQ8e8]HCCwRGPOFu#x~"> <field name="NAME">Intervall11</field> <field name="INTERVAL">15</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="k1iMsqmk,Z8zc;4;YeM^"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Wetterlicht.alert</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="?CPhcRo!/JJQ!rv:+I6F"> <field name="TEXT">lselect</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="XgO*haDxJZdQm]kH^YuO"> <value name="IF0"> <block type="logic_operation" id="Fc}W)F#x6yG|Wm3+,sOK"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Z$hMoA9DbSgwY8OTh{8w"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="$$r4m$-Jy=yaypt]0WKR"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="jOQdxNuL*~72OT8/:QC4"> <field name="NUM">23</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="aMV5b7@%S6+1?%TpKkXk"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="b6XR12%rW2ZNM_b;Y1,V"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="TV^
k{wL%Y+#!v+Pz|+"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id="
c=tI?:a4L]Q+;V4sz3r" disabled="true">
<field name="NAME">Intervall8</field>
<field name="INTERVAL">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="0dO)T
k|Mc!fJwm$)$N">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="@_H,G=+_?F:2An)$^!Ym">
<field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field>
</block>
</value>
<next>
<block type="control" id="1RYdw/b?O_/16QG-s}T?">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Nl.qXp+[;lg9GkCGzH2r">
<field name="TEXT">{"r":47,"g":80,"b":254,"transitiontime":0}</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="control" id="PnfTYbMaN,P?;=^2hEWp">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="fn-VF9%JJ^r0A.U5U``.">
<field name="TEXT">{"r":254,"g":53,"b":30,"transitiontime":0}</field>
</block>
</value>
<next>
<block type="timeouts_setinterval" id="vxi(geG=+Ci4n3y]Fop9">
<field name="NAME">Intervall10</field>
<field name="INTERVAL">15</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="zh=f,(LpV^u7~Xp7yThk">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.alert</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="lCWSxceheVF-FUOrdod,">
<field name="TEXT">lselect</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="Roh6]S@%}]U|egoO^}k">
<field name="COMMENT">Kein Regen, kein Sturm = Grün</field>
<next>
<block type="controls_if" id="mG$R^.pz,#fsz6R^?I0D">
<value name="IF0">
<block type="logic_operation" id=";}D0Q;W6jM{Cw1,9FfO7">
<field name="OP">AND</field>
<value name="A">
<block type="logic_operation" id="6e6rllw+VB%mJTb$sZ-M">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="$^u_{4YstZr77H
,yo8">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="IH(73B~80jHB%T5T!wU.">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.0h.precipitation</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Or.LLM9TrCq0wox45-[9">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="}#$4ivE[iPiT%+IP?OV">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="v_SWN}vkZiviqGm%r-7"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.0h.windSpeed</field> </block> </value> <value name="B"> <block type="math_number" id="EQI@FgdCsv3q[TyZb7ad"> <field name="NUM">23</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="|3PkAv?rjleiw2028~ad"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="K[Pn]d@!-i4Xn-Ykua26"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="cS.DHPyf,?YT7q}0ow[T"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecastHourly.1h.precipitation</field> </block> </value> <value name="B"> <block type="math_number" id="j
nw/,7UY%ug$fz-toy9">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="xJh1j|FCv|(13:vZ)BU:">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="N*p}~b1aF+?VS17ORzl|">
<field name="ATTR">val</field>
<field name="OID">weatherunderground.0.forecastHourly.1h.windSpeed</field>
</block>
</value>
<value name="B">
<block type="math_number" id="d;Dmr+0#wq$j}QqOR=)t">
<field name="NUM">23</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="^pUypW3M9MxD:M+H+mUg">
<field name="COMMENT">Grün</field>
<next>
<block type="control" id="G{Dpiw(^v@8RZISvs~dP">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.Wetterlicht.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="g.6W1%PG/7p434@u/H`6">
<field name="TEXT">{"r":65,"g":254,"b":83,"transitiontime":0}</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</xml>
Reduziere ich die Helligkeit, wird sie durch das Blockly wieder auf 100 gesetzt. Aber weshalb?
Ich sitz schon Stunden dran und habe nun keinen Anhaltspunkt mehr...
Please input
-
@PatrickFro
was willst Du denn genau erreichen ?
Bei Deinen command Werten ist immer einer auf 254 (ich meine das ist volle Pulle und auch mit der Helligkeit verknüpft)
Was ist mit level oder bri, mal probiert ?
Stelle Dir die Lampe doch mal so ein wie Du willst und schaue Dir in den Objekten die Werte dazu an.
Zweite Möglichkeit, stelle in der HUE App Deine gewünschte Farbe in der gewünschten Helligkeit ein und speichere die als neue Szene ab (einmal blau und rot usw...) Diese Szene steuerst Du dann im Blockly an und ersparst Dir die command Befehle.
Welchen Adapter nutzt Du eigentlich und in welcher Version ? -
@dslraser Ich möchte erreichen, dass ich die Helligkeit manuell über einen Slider verändern kann. Zb. tagsüber heller, abends auf 1 %. Es soll also keine Helligkeitseinstellung im Skript vorhanden sein.
Bis gestern hab ich Homee genutzt, da war es im Vergleich einfach, nur gab es mir zu viele Fehler.
Level und bri habe ich mit dem Slider versucht, aber bei jeder Skriptanpassung wird es überschrieben. Packe ich Level oder bri in das Skript, bin ich nicht mehr so flexibel wie gewünscht. Oder hast Du dabei einen Tip?
Hm, eigentlich klappt alles ganz gut (bis auf Helligkeit), da wollte ich es nicht mehr groß ändern. Das ersparen der command -Befehle würde die Helligkeit ja nicht verändern, richtig?
Ich nutzte Philips Hue Bridge als Adapter.
-
Das Problem ist, wie folgt. Du setzt RGB, also Werte für Rot, Grün und Blau und zwar unskaliert, also deine "Hauptfarbe" auf 254. -> das heißt für die Lampe, du willst Blau (oder Rot) voll anhaben, also nix gedimmt. Wenn du jetzt dimmen wolltest, müsstest du im Grunde die RGB Werte mit dem Dimmwert skalieren, also z.B. statt command = { r: 47, g: 80, b: 254 } müsstest du vorher den Dimmwert holen, nennen wir ihn x und dann { r: 47 * x, g: 80 * x, b: 254 * x } -> wenn x = 0,5 (50% gedimmt, müsste man also auch noch durch 100 teilen), kämen da dann deutlich kleinere Werte bei raus. Kannst du so anpassen. Aber da du den Hue Adapter nutzt, ist es vielleicht einfach den HSV Farbraum zu nutzen.
Im HSV Farbraum sind hue = Farbton, Satturation = Sättigung (also wie "bunt soll es sein) und Value = Helligkeit extra für solche Anwendungen getrennt. Wenn du nur hue setzt, dann müsste die Lampe die aktuellen Einstellungen für value und saturation behalten und entsprechend nur die Farbe ändern -> da kannst du dir dann für die Farben die entsprechenden Hue Werte im Netz raussuchen (Rot ist z.B. 0). Vielleicht musst du im Skript (oder einmalig?) die Sättigung (saturation) noch hochstellen, damit die Farben auch kommen.
-
@Garfonso Vielen Dank, das hat mich scheinbar weitergebracht...
So klappt das Dimmen, zumindest bisher