- Home
- Deutsch
- Praktische Anwendungen (Showcase)
- Alexa Wecker WakeUp Light
Alexa Wecker WakeUp Light
This topic has been deleted. Only users with topic management privileges can see it.
-
Anbei mein Blockly Skript für ein Alexa Wecker Wake Up Light
Features:
- Beim Stellen eines Weckers wird automatisch ein Schedule erstellt, der vor dem Weckzeitraum ein Licht langsam hochdimmt
- Beim Löschen des Weckers wird dieser automatisch gelöscht
- Die Zeit des Starts des Dimmens kann im Skript festgelegt werden
- hardcoded im Skript als Variable, kann aber ohne weiteres auf einen externen Datenpunkt ausgelagert werden um es bspw. per VIS anzupassen
- Dieser Wake Up Schedule wird nur angelegt, wenn die Weckzeit zwischen 4 und 9:59 Uhr liegt
- auch ganz neue Wecker werden hierfür genutzt, der Objektbaum für den gewünschten Wecker muss noch nicht existieren
- Beim Löschen oder anlegen des Schedules wird eine Nachricht per Telegram versendet
Nachteile
- Alexa ID des jeweiligen Echos/Shows muss hardcoded im Skriptangepasst werden (im RegEx des Triggers)
Infos
- Benötigt wird der Alexa Adapter
- Zum Dimmen wir ein Hue Raum genutzt, welcher per Hue-extended angesprochen wird
- man kann das Skript aber auch anpassen und für ledgliche Art von Lampe die Dimmbar ist etwas bauen
- Aktueller Schedule wird nur in der Woche ausgeführt, kann aber angepasst werden, einfach im Schedule den String "1,2,3,4,5" entfernen
- Sollten mehrere Wecker gestellt werden, gilt der zuletzt konfigurierte Wecker (es existiert immer nur ein Schedule der das Licht hochdimmt)
Blockly Export
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="-rM/pu^[)vkgVW4*zJBf">fade_time</variable> <variable type="" id=":2Lq11.U)#E]pTr~Z/*(">hour</variable> <variable type="" id="Ip#+Um|iI[HZS$)}HD,,">minute</variable> <variable type="undefined" id="wakeup_schedule">wakeup_schedule</variable> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id="e^-NegwKU00imYoC}-V+" x="38" y="238"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="T1A6^e:/UhP%WT(6}Rnv"> <field name="oid">alexa2.0.Echo-Devices.XXXXXXXXXXXXXX.Alarm.83eaf41f-819e-3705-a286-8c8dea454c5a.enabled</field> </shadow> <block type="regex" id="M**0f{@oITB`,H7_vRyK"> <field name="TEXT">(alexa2.0.Echo-Devices.XXXXXXXXXX.Alarm.*enabled)</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="=#!Yog*j99lq),*euvp_"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="/P#+C?^Dh;gMb!PO(Cv]"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="75N#7ddCotF3Erd@*r@c"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="99/o(}NuGk/#w[q:8|Kv"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="+~:)qkW/zMct)!F;;[v/"> <field name="COMMENT">Manuel setzen, nicht größer als 60</field> <next> <block type="variables_set" id="955BP`;@_Q)0ylI,poKD"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> <value name="VALUE"> <block type="math_number" id="JekmFq}xwvp@/-q(n!(_"> <field name="NUM">30</field> </block> </value> <next> <block type="variables_set" id="}c5nSxqs[!W0ia%v-9qg"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> <value name="VALUE"> <block type="convert_tonumber" id="zI$qUJ4lLu1i[h`V}TK*"> <value name="VALUE"> <block type="text_getSubstring" id="-`~wJf_yv;4Ak8G;cv.$"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="get_value_var" id="nc{p5Ni;%@~?(#@EJTFX"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="q1sr5^V1Z=Y,iL5e)rN]"> <field name="TEXT"></field> </shadow> <block type="text_join" id="IOT`mHx}k}IY38GY6q0Q"> <mutation items="2"></mutation> <value name="ADD0"> <block type="on_source" id="ivz(|6*9D3S}N!N)cSFD"> <field name="ATTR">channelId</field> </block> </value> <value name="ADD1"> <block type="text" id="@:U*QosCH-s[QfW7$qZ0"> <field name="TEXT">.time</field> </block> </value> </block> </value> </block> </value> <value name="AT1"> <block type="math_number" id="vy~j+?u^_3C5Rqu;SnuM"> <field name="NUM">1</field> </block> </value> <value name="AT2"> <block type="math_number" id="C0PUDm1!C;eM;BleMla$"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="Kg/%E%Te#+DwUwvYR4vd"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> <value name="VALUE"> <block type="convert_tonumber" id="6w#5N=|#G5=w1.K!+OE^"> <value name="VALUE"> <block type="text_getSubstring" id="XjrGge{DY`~afIMAI?M6"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="get_value_var" id="c[g*lxYs+#}t7p/S28Xw"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="q1sr5^V1Z=Y,iL5e)rN]"> <field name="TEXT"></field> </shadow> <block type="text_join" id="!_-l=/KpQ33N#dV!RKtT"> <mutation items="2"></mutation> <value name="ADD0"> <block type="on_source" id="5svLpNK1G*A%]U6p-{y2"> <field name="ATTR">channelId</field> </block> </value> <value name="ADD1"> <block type="text" id="+N{/jMZ@WFFz_RKwM$GU"> <field name="TEXT">.time</field> </block> </value> </block> </value> </block> </value> <value name="AT1"> <block type="math_number" id="vqcN`2TVx]^_fZ2{b#rT"> <field name="NUM">4</field> </block> </value> <value name="AT2"> <block type="math_number" id="JRM#3|L4zu}G5T`@4;Q;"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <next> <block type="comment" id="ibaQ~{glu`UgAd`a:8Yl"> <field name="COMMENT">Nur für morgendliche Wecker nutzen</field> <next> <block type="controls_if" id="Jy$u5!}jVppSLxJWtXu("> <value name="IF0"> <block type="logic_operation" id="Kpd4cc`XA;-[:t|#Q`p|" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="%0%mp:+AO%Nv%,QmWEU]"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="nm%)`zu/RsD3{e1.0Dj6"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> </block> </value> <value name="B"> <block type="math_number" id="_o7`m?wp!V1uT4/15{GC"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="4yCRj,37]~$jh(3Jj9gu"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="uQ7jD5_szq,qq{jLOCn3"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> </block> </value> <value name="B"> <block type="math_number" id="}{OES0lxtr%4E{c+1PJx"> <field name="NUM">9</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="?9N;(q:i?a1b.-dQW:0L"> <field name="COMMENT">Startzeit berechnen</field> <next> <block type="controls_if" id="WW.2B``~C=N{)w=@%R;D"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="hO[_A-iKrH,+QI61$EG;"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id=";fRbOp_:Y,afe`eoT5Jq"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> <value name="B"> <block type="variables_get" id="Uts]{+.uR3-4n:wPZ10D"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="AU:h[b9FTeI2]LO+d!+("> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> <value name="VALUE"> <block type="math_arithmetic" id="y1O.vZ.w05yuTj/nQ!+a"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="KIfx*D-]+SWa8r:qYUM)"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="w`?2#VskY1RFr%Ow%tCc"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> </block> </value> <value name="B"> <shadow type="math_number" id="_#cQ.OmG|9eJx.W9r2$l"> <field name="NUM">1</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="s:r^VF^tZj7]y(z2F8Kt"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> <value name="VALUE"> <block type="math_arithmetic" id="lp+]t*[zL{l42|y1XV.R"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="5@C1{$m05%}t{8/zm=70"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="oX$Z2rqul%up)xf66AUf"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> </block> </value> <value name="B"> <shadow type="math_number" id="m=2taA_Np*:_.3z7sEA2"> <field name="NUM">60</field> </shadow> <block type="math_arithmetic" id="pTJXK-Mri_L?y3Ns9@n4"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="j,sF#!ZA@4ZMF*.a(MC0"> <field name="NUM">60</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="k3Vij+GG,TIk??5%a%qV"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="nX}?]1Q8HeS?-)775|p*"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="4lYh`X-Q_PuOve~?At)w"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> <value name="VALUE"> <block type="math_arithmetic" id="y)IZal)}!,@rDgh73=j("> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="5@C1{$m05%}t{8/zm=70"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="BLGsI[=kpAYr/56.{Dq6"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> </block> </value> <value name="B"> <shadow type="math_number" id="m=2taA_Np*:_.3z7sEA2"> <field name="NUM">60</field> </shadow> <block type="variables_get" id="0}Oi8CI,[KGIBoEw!5Sz"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> </block> </value> </block> </statement> <next> <block type="telegram" id="/}6|gE}pQnaz%_aHqSe~"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">TRUE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="n?YkZ8c-p!AJ)%p5um)F"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="YcAxEXFDp]v]7gRAfM0s"> <mutation items="11"></mutation> <value name="ADD0"> <block type="text" id="rsg.C1v|SSy8a:/yilxM"> <field name="TEXT">Wake up Schedule wird erstellt.</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="@xbvB1[8B|v#ZY:~+6.["> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="[B[?gOPXOl]99`?BCUh."> <field name="TEXT">Stunde: </field> </block> </value> <value name="ADD3"> <block type="variables_get" id="J*zE8Ic^U2VO@)S(Q~k!"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> </block> </value> <value name="ADD4"> <block type="text" id=";ADd9tE][WBiwr$N%3Ma"> <field name="TEXT">; Minute: </field> </block> </value> <value name="ADD5"> <block type="variables_get" id="V57XGF:O!$~OxKn/In2h"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> </block> </value> <value name="ADD6"> <block type="text" id="UFHk3yr0_9W:pBfGY+Oi"> <field name="TEXT">; Fade Time: </field> </block> </value> <value name="ADD7"> <block type="variables_get" id="0dk?,SW.dsj,S/:GVkcC"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> <value name="ADD8"> <block type="text_newline" id="1G~#!C([LY=8No#0wX:5" disabled="true"> <field name="Type">\n</field> </block> </value> <value name="ADD9"> <block type="text" id="$cv^NHSVG4i4vb;n%%a." disabled="true"> <field name="TEXT">Time Object ID: </field> </block> </value> <value name="ADD10"> <block type="text_join" id="fBgEt.+Y?xdhR=rjtFZ+" disabled="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="on_source" id="yQNW^a?4u`X+:Ek%P~$8"> <field name="ATTR">channelId</field> </block> </value> <value name="ADD1"> <block type="text" id="{!`jq)?yUB4awP7$Z$Vl"> <field name="TEXT">.time</field> </block> </value> </block> </value> </block> </value> <value name="USERNAME"> <block type="text" id="O#1ZKT(hI^%`=E56R)Ci"> <field name="TEXT">Siggi</field> </block> </value> <next> <block type="debug" id="=1t{J,pTA||1+`:D]{J="> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="jg%OA@{x[n*avtwuo#4M"> <field name="TEXT">Stunde</field> </shadow> <block type="text_join" id="a22{HRiQaP|}f=,GB:qS"> <mutation items="11"></mutation> <value name="ADD0"> <block type="text" id="LwlH2Sqn#EVhA,B%XP=V"> <field name="TEXT">Wake up Schedule wird erstellt.</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="X=Yyo![H*=f}(V5P:Ij-"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="OQb6Jy4p3zAA!:sfvQUr"> <field name="TEXT">; Stunde: </field> </block> </value> <value name="ADD3"> <block type="variables_get" id="}em$2.CYlmV]EvITStuQ"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> </block> </value> <value name="ADD4"> <block type="text" id="vwiw1RERnWLk|:X_$EtJ"> <field name="TEXT">; Minute: </field> </block> </value> <value name="ADD5"> <block type="variables_get" id="M!EiU47/B6/|;n4WAH8["> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> </block> </value> <value name="ADD6"> <block type="text" id="b`$}V3!Wz-P=|~~z7x6O"> <field name="TEXT">; Fade Time: </field> </block> </value> <value name="ADD7"> <block type="variables_get" id="P*,Wer=8_8(jJ2_]:@~T"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> <value name="ADD8"> <block type="text_newline" id=";ZAbhJ+La7JI+^$qEK(t"> <field name="Type">\n</field> </block> </value> <value name="ADD9"> <block type="text" id="AH0?dY[}e6jyVN}?Vl:Q"> <field name="TEXT">Time Object ID: </field> </block> </value> <value name="ADD10"> <block type="text_join" id="YaA(U2Y.h$=;q2]$va9p"> <mutation items="2"></mutation> <value name="ADD0"> <block type="on_source" id="].Tml3M3tC{B{Fs5~P*T"> <field name="ATTR">channelId</field> </block> </value> <value name="ADD1"> <block type="text" id="ir`sZI+Uv}Q#Pyv|9_J."> <field name="TEXT">.time</field> </block> </value> </block> </value> </block> </value> <next> <block type="schedule_create" id="RL;~8R|WEcWpeF,{8D$)"> <field name="NAME">wakeup_schedule</field> <value name="SCHEDULE"> <shadow type="field_cron" id="kq#(UTCh{i):-ID3%Nw2"> <field name="CRON">* * * * *</field> </shadow> <block type="cron_builder" id="4.Bj}yH~TV1~9{i8/[WT"> <mutation seconds="false" as_line="false"></mutation> <field name="LINE">FALSE</field> <field name="WITH_SECONDS">FALSE</field> <value name="DOW"> <shadow type="text" id="s=eJ_1i.%J!NMyMXz2cf"> <field name="TEXT">*</field> </shadow> <block type="text" id="4cinyAUXaDe?g3Q}fTcf"> <field name="TEXT">1,2,3,4,5</field> </block> </value> <value name="MONTHS"> <shadow type="text" id="BolLlKsl+tFm/:XW.OwQ"> <field name="TEXT">*</field> </shadow> </value> <value name="DAYS"> <shadow type="text" id="iSm@kopho)`cy7bpn3mY"> <field name="TEXT">*</field> </shadow> </value> <value name="HOURS"> <shadow type="text" id="CdGJQ1SU7+k8A0Hs.zNq"> <field name="TEXT">*</field> </shadow> <block type="convert_tostring" id="timh@AF@;9fvoo;s@v@C"> <value name="VALUE"> <block type="variables_get" id="w;kc{-^m0k2CG=TF*oko"> <field name="VAR" id=":2Lq11.U)#E]pTr~Z/*(" variabletype="">hour</field> </block> </value> </block> </value> <value name="MINUTES"> <shadow type="text" id="-k+v,P9:HHj`5PC*rs`o"> <field name="TEXT">*</field> </shadow> <block type="convert_tostring" id="G-]R4pHA;k}fOR{_;)xw"> <value name="VALUE"> <block type="variables_get" id="!nu)!N;Q1@hP_XD`M7dD"> <field name="VAR" id="Ip#+Um|iI[HZS$)}HD,," variabletype="">minute</field> </block> </value> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="debug" id="c5_yNcL64^PwAKaW-3:!"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="jg%OA@{x[n*avtwuo#4M"> <field name="TEXT">Stunde</field> </shadow> <block type="text_join" id="RK%u2N]Ar(!NKKo%62lT"> <mutation items="4"></mutation> <value name="ADD0"> <block type="text" id="CR#^,!)86e:`L[:(NKj`"> <field name="TEXT">Wake up Schedule startet.</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="~{LS1!#{o]u+:(.[d.x?"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="Gr+_59]*X9R#PCG;LR7S"> <field name="TEXT">Hue Befehl: </field> </block> </value> <value name="ADD3"> <block type="text_join" id="W_vPXh273zte/OG{jyJZ"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="!aQQsgtdL5_!1jE]F}3E"> <field name="TEXT">{"ct":2410,"sat":25,"bri":254,"transitiontime":</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="`1e}b6#XJwq.jolxcqDE"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="ISK^HbmxMLW]i%ZsY:2b"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="f6/j!{@3bWY#6sY.+^kR"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> <value name="B"> <shadow type="math_number" id="bz}~$c7[ts;L-}^8/(kh"> <field name="NUM">600</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="text" id="1:Ko}o4a7u5AfjruR,$C"> <field name="TEXT">}</field> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="2ci1N#;dU?QInV?R7kq["> <mutation delay_input="false"></mutation> <field name="OID">hue-extended.0.groups.005-schlafzimmer.action.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="CeY41$F+1D9tM]ZEMV_z"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_settimeout" id="jUd6q3?Z+WGMxt_[=T2m"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="[o7--2Y!k=f]zPN|k)eB"> <mutation delay_input="false"></mutation> <field name="OID">hue-extended.0.groups.005-schlafzimmer.action.level</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="2YY=0!-ghO?9#uSu3?lt"> <field name="TEXT">5</field> </block> </value> <next> <block type="control" id="T[aaqEzc@7!RJpZja67F"> <mutation delay_input="false"></mutation> <field name="OID">hue-extended.0.groups.005-schlafzimmer.action.saturation</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="7O0QL]~-?534$rmM}Gw9"> <field name="TEXT">254</field> </block> </value> <next> <block type="control" id="-6H9OuZNAW,Uvwztdz,z"> <mutation delay_input="false"></mutation> <field name="OID">hue-extended.0.groups.005-schlafzimmer.action.hue</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=":*f=_8xL8%0$|MCv7W;~"> <field name="TEXT">360</field> </block> </value> <next> <block type="control" id=",^Tpe|Ql=d4%q9}O$x.Y"> <mutation delay_input="true"></mutation> <field name="OID">hue-extended.0.groups.005-schlafzimmer.action.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="vYG4#W^]^i6Ufa?n~D$8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control_ex" id="m@O}F}2QwQ0-ga(~hUAs"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="))bxeVrc6Yn*NRYEG[/M"> <field name="oid">hue-extended.0.groups.005-schlafzimmer.action._commands</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="{xS_dD+:QveTzIejCi{/"> <field name="BOOL">TRUE</field> </shadow> <block type="text_join" id="(MxFr[iEtfM?)|*E61Kc"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="7Ik:Su48U@c9flW%_hK("> <field name="TEXT">{"ct":2410,"sat":25,"bri":254,"transitiontime":</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="`2b1l(Qb]uM#MA?_BtNi"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="ISK^HbmxMLW]i%ZsY:2b"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="wZD6Sfp:[D6v`WzVP`(J"> <field name="VAR" id="-rM/pu^[)vkgVW4*zJBf" variabletype="">fade_time</field> </block> </value> <value name="B"> <shadow type="math_number" id="-5DFSknHEJ)?W5hxe^I@"> <field name="NUM">600</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="text" id="+9VspxyX1WHY8f~{=Zgf"> <field name="TEXT">}</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="_?m^YRQ8JUVN$zUyOB1m"> <field name="NUM">3000</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="telegram" id="1X^=t%R*Ju?M1Bsop4iN"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">TRUE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="U/~g=-,$c.K-YgcfC2h2"> <field name="TEXT">text</field> </shadow> <block type="text" id="PLi16Mg2gvJGA7f$aA9E"> <field name="TEXT">Wake Up Schedule gelöscht.</field> </block> </value> <value name="USERNAME"> <block type="text" id="AbSvSS36*by1?%=ZQKUk"> <field name="TEXT">Siggi</field> </block> </value> <next> <block type="schedule_clear" id="d@c.{HrE?hT|Jd/}#r-6"> <field name="NAME">wakeup_schedule</field> </block> </next> </block> </statement> </block> </statement> </block> </xml>
Screenshots
- Beim Stellen eines Weckers wird automatisch ein Schedule erstellt, der vor dem Weckzeitraum ein Licht langsam hochdimmt
-
@siggi85 : Hab mir dein Blockly gestern Abend geladen, funktoniert einwandfrei ! Danke