mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 16:34:25 +01:00
74
ioBroker/Blockly/Abfallkalender.js
Normal file
74
ioBroker/Blockly/Abfallkalender.js
Normal file
@@ -0,0 +1,74 @@
|
||||
const idAbfalliCal = 'ical.1'; // iCal Instanz zum Abfallkalender
|
||||
const idZeichenLoeschen = 14; // x Zeichen links vom String abziehen, wenn vor dem Eventname noch Text steht z.B. Strassenname; Standard = 0
|
||||
const idRestmuellName ='Hausmüll'; // Schwarze Tonne
|
||||
const idWertstoffName = 'Gelber Sack'; // Gelbe Tonne / Sack
|
||||
const idPappePapierName = 'Papier'; // Blaue Tonne
|
||||
const idBioabfaelleName = 'Biomüll'; // Braune Tonne
|
||||
|
||||
|
||||
var i, Muell_JSON, Event2, Color = 0;
|
||||
|
||||
for (i = 1; i <= 4; i++) {
|
||||
if (!existsState('0_userdata.0.Abfallkalender.' + parseFloat(i) + '.date')) {
|
||||
log(i + '.date nicht vorhanden, wurde erstellt');
|
||||
createState('0_userdata.0.Abfallkalender.' + parseFloat(i) + '.date', '',
|
||||
{
|
||||
name: parseFloat(i) + '.date',
|
||||
role: 'state',
|
||||
type: 'string',
|
||||
read: true,
|
||||
write: true,
|
||||
def: ''
|
||||
});
|
||||
};
|
||||
if (!existsState('0_userdata.0.Abfallkalender.' + parseFloat(i) + '.event')) {
|
||||
log(i + '.event nicht vorhanden, wurde erstellt');
|
||||
createState('0_userdata.0.Abfallkalender.' + parseFloat(i) + '.event', '',
|
||||
{
|
||||
name: parseFloat(i) + '.event',
|
||||
role: 'state',
|
||||
type: 'string',
|
||||
read: true,
|
||||
write: true,
|
||||
def: ''
|
||||
});
|
||||
};
|
||||
if (!existsState('0_userdata.0.Abfallkalender.' + parseFloat(i) + '.color')) {
|
||||
log(i + '.color nicht vorhanden, wurde erstellt');
|
||||
createState('0_userdata.0.Abfallkalender.' + parseFloat(i) + '.color', 0,
|
||||
{
|
||||
name: parseFloat(i) + '.color',
|
||||
role: 'state',
|
||||
type: 'number',
|
||||
read: true,
|
||||
write: true,
|
||||
def: 0
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function subsequenceFromStartLast(sequence, at1) {
|
||||
var start = at1;
|
||||
var end = sequence.length;
|
||||
return sequence.slice(start, end);
|
||||
}
|
||||
|
||||
on({ id: idAbfalliCal + '.data.table', change: "ne" }, async function () {
|
||||
|
||||
for (i = 0; i <= 3; i++) {
|
||||
Muell_JSON = getState(idAbfalliCal + '.data.table').val;
|
||||
setStateDelayed((['0_userdata.0.Abfallkalender.', parseFloat(i) + 1, '.date'].join('')), getAttr(Muell_JSON, (String(i) + '.date')), false, parseInt(((0) || "").toString(), 10), false);
|
||||
Event2 = subsequenceFromStartLast(getAttr(Muell_JSON, (String(i) + '.event')), idZeichenLoeschen);
|
||||
setStateDelayed((['0_userdata.0.Abfallkalender.', parseFloat(i) + 1, '.event'].join('')), Event2, false, parseInt(((0) || "").toString(), 10), false);
|
||||
if (Event2 == idRestmuellName) {
|
||||
Color = 33840;
|
||||
} else if (Event2 == idBioabfaelleName) {
|
||||
Color = 2016;
|
||||
} else if (Event2 == idPappePapierName) {
|
||||
Color = 31;
|
||||
} else if (Event2 == idWertstoffName) {
|
||||
Color = 65504;
|
||||
}
|
||||
setStateDelayed((['0_userdata.0.Abfallkalender.', parseFloat(i) + 1, '.color'].join('')), Color, false, parseInt(((0) || "").toString(), 10), false);
|
||||
}
|
||||
});
|
||||
File diff suppressed because it is too large
Load Diff
65
ioBroker/Blockly/Alarm_Page_Testskript.xml
Normal file
65
ioBroker/Blockly/Alarm_Page_Testskript.xml
Normal file
@@ -0,0 +1,65 @@
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<variables>
|
||||
<variable id="LwJJoNeQC4K?A;BW5:o">nspanelAlarmPath</variable>
|
||||
<variable id=".d{cc!R.4y2U9N+gLY1K">dpAlarmState</variable>
|
||||
</variables>
|
||||
<block type="comment" id="I^BpP.H=p^7Vj|-sy!%" x="-937" y="-162"> <field name="COMMENT">Bitte nspanelAlarmPath anpassen</field> <next> <block type="comment" id="JL[C{;Q}PF[TQ_BfpN$c"> <field name="COMMENT">Der Rest wird dynamisch für das jeweilige Panel ermittelt</field> <next> <block type="variables_set" id="2}X9[s}b1IDUV{6QPzh?"> <field name="VAR" id="LwJJoNeQC4K?A;BW5:_o">nspanelAlarmPath</field> <value name="VALUE"> <block type="text" id="in2z;TR0jhq1QI85qO8">
|
||||
<field name="TEXT">0_userdata.0.NSPanel.Alarm.</field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="variables_set" id="+tlGEcYI17~KL5S%%1O">
|
||||
<field name="VAR" id=".d{cc!R.4y2U9N+gLY1K">dpAlarmState</field>
|
||||
<value name="VALUE">
|
||||
<block type="text_join" id="PWihVQn3v+ef7aPA%zyx">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="v2AT~!{!0Qc0BI2!SgN"> <field name="VAR" id="LwJJoNeQC4K?A;BW5:_o">nspanelAlarmPath</field> </block> </value> <value name="ADD1"> <block type="text" id="78{g[~wI2yQXnYZvL4}t"> <field name="TEXT">AlarmState</field> </block> </value> </block> </value> <next> <block type="on_ext" id="q!?(x}z/f~TClQnNmbyU"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="]~f@4kO$zmxdg=}/810C"> <field name="oid">0_userdata.0.NSPanel.Alarm.AlarmState</field> </shadow> <block type="variables_get" id="vCPAx:V[ZG~6IkkFu/r">
|
||||
<field name="VAR" id=".d{cc!R.4y2U9N+gLY1K">dpAlarmState</field>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="controls_if" id="=e7bf!Q]$tg*0U1_2F"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_compare" id="0_9gv(MmSSJ{2a$j{}(P"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="H$WWrxxX|NaWkT%W]g!Z"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="_TnyjJ5x!)JY~rQ:Opj)"> <field name="TEXT">arming</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="=w_/N]5Tu)B)NwyTbxSp"> <field name="COMMENT">weitere ioBroker-Überprüfung - z.B. Fenster offen</field> <next> <block type="control_ex" id="FGZ}]#=@X?IJ3ddc[9rP" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="OID"> <shadow type="field_oid" id="=EKIKVg=5v+fyd:5J3]B"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="Y,]v4(aeLZ~(@alJ-8;D"> <field name="VAR" id=".d{cc!R.4y2U9N+gLY1K">dpAlarmState</field> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="2A;g]]ox]cFCoGeBOge">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="text" id="WOt(NkkB-R9/-Xho,6}-">
|
||||
<field name="TEXT">armed</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="M@|2SGg8%@2nZdqU51f">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
<block type="math_number" id=".e9qh.?F@m)/t(HM7|M"> <field name="NUM">1000</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="]p3s+ouB~BJkfd:e)G:("> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id=":n]Z,t6+q#-l_hP+MEI@"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="([Ep{MPBu5s.C-lOdHgr"> <field name="TEXT">pending</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control_ex" id="FI3q9?nQ|FDT]dY;djZz" inline="true"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="OID"> <shadow type="field_oid"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id=":8ls:Akgxi%bWPgrIJT}"> <field name="VAR" id=".d{cc!R.4y2U9N+gLY1K">dpAlarmState</field> </block> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="text" id="MH!9j:G.S:mOaq31i!aM"> <field name="TEXT">disarmed</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number"> <field name="NUM">0</field> </shadow> <block type="math_number" id="zO=:KFH/FH-zc4ob5b7^"> <field name="NUM">1000</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="pHUmm^o8GqFji*VULm*Z"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="ques8D:5Hge-)^s,XBR!"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="text" id="3Hd)Fn4g#;XPXSWwe-$">
|
||||
<field name="TEXT">triggered</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO2">
|
||||
<block type="comment" id="c%VR#jE+K$AoZ2m%HuY_">
|
||||
<field name="COMMENT">Wenn der PIN bei der Deaktivierung falsch war</field>
|
||||
<next>
|
||||
<block type="comment" id="I-Iasuh.K$wmTE`(e!;K">
|
||||
<field name="COMMENT">Zum Beispiel MEldung an Telegram oder popupNotify </field>
|
||||
<next>
|
||||
<block type="comment" id="j_U/cfS;e3c]-j}Bie,7">
|
||||
<field name="COMMENT">an Panel senden</field>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</xml>
|
||||
1090
ioBroker/Blockly/CardMedia_Equalizer.xml
Normal file
1090
ioBroker/Blockly/CardMedia_Equalizer.xml
Normal file
File diff suppressed because it is too large
Load Diff
131
ioBroker/Blockly/DWD_Daten_Broadcast.xml
Normal file
131
ioBroker/Blockly/DWD_Daten_Broadcast.xml
Normal file
@@ -0,0 +1,131 @@
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<variables>
|
||||
<variable id="VC{%szTBZ]@G*_Z1kd=p">NSPanel_Path</variable>
|
||||
<variable id="7-~%q%O+i,p)gd]2E]u%">i</variable>
|
||||
</variables>
|
||||
<block type="comment" id=".H8cu)X4;0/ELXg0~!2" x="-212" y="-137"> <field name="COMMENT">1.) DWD-Adapter muss installiert sein!</field> <next> <block type="comment" id="cMAJA*6Mucx!}~#*FItV"> <field name="COMMENT">2.) Anpassen: Pfade deiner NSPanel 1-n</field> <next> <block type="comment" id="I,l}p*+|7)O*7iDhs{C{"> <field name="COMMENT">wenn mehr NSPanel dann Liste erweitern</field> <next> <block type="comment" id="z#bI#s:k[=wnRjs?t=M">
|
||||
<field name="COMMENT">wenn weniger NSPanel dann Liste verkürzen</field>
|
||||
<next>
|
||||
<block type="variables_set" id="IZv),n_W8%BJqvjwFH60">
|
||||
<field name="VAR" id="VC{%szTBZ]@G*Z1kd=p">NSPanel_Path</field>
|
||||
<value name="VALUE">
|
||||
<block type="lists_create_with" id="hbVUA-n,wK$8EN8v9M2x">
|
||||
<mutation items="3"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="text" id="^nQ3=mooLvr$lZ;cPu!t">
|
||||
<field name="TEXT">0.userdata.0.NSPanel.1.</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="X!Pp5k{{2N5^~VZ24!X{">
|
||||
<field name="TEXT">0.userdata.0.NSPanel.2.</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD2">
|
||||
<block type="text" id="htgZqn!7]yOK?I%{#m9D">
|
||||
<field name="TEXT">0.userdata.0.NSPanel.EMU.</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="comment" id="}C)!uPDDrlP+Z_ZZxCTP">
|
||||
<field name="COMMENT">Trigger auf dwd.0.warning.headline</field>
|
||||
<next>
|
||||
<block type="on_ext" id="?o?W:(X@bTJ~te|=L*A"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="o;@Yb+8-u0:)}3FV/ayZ"> <field name="oid">default</field> </shadow> <block type="field_oid" id="en?eq5J4w5-U^CGl=+Iq"> <field name="oid">dwd.0.warning.headline</field> </block> </value> <statement name="STATEMENT"> <block type="controls_forEach" id="cY44Jgg1PYPJ54ee{d2t"> <field name="VAR" id="7-~%q%O+i,p)gd]2E]u%">i</field> <value name="LIST"> <block type="variables_get" id="g.tPwvave?zcNnhoj#.o"> <field name="VAR" id="VC{%szTBZ]@G*_Z1kd=p">NSPanel_Path</field> </block> </value> <statement name="DO"> <block type="controls_if" id="QPGGF3MVC*NdY!,Moey?"> <value name="IF0"> <block type="logic_compare" id="}r2=99u*N|9-V+V=o?E">
|
||||
<field name="OP">GT</field>
|
||||
<value name="A">
|
||||
<block type="text_length" id="(TJ!yd2sS0(/Sk_iE1;">
|
||||
<value name="VALUE">
|
||||
<shadow type="text" id="ynMYy4ITGRb%9Q-7A6^n">
|
||||
<field name="TEXT">abc</field>
|
||||
</shadow>
|
||||
<block type="on_source" id=";)N~d3E+|T|z{Fyxp%#">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="math_number" id="Vw,J0v/)7719Hc@+Fi=x">
|
||||
<field name="NUM">0</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="comment" id="PX+4_x%y+g1GWg+Ug6R">
|
||||
<field name="COMMENT">ScreensaverInfo.popupNotifyHeading</field>
|
||||
<next>
|
||||
<block type="control_ex" id="o7P*;1Ttxs*C/e.0Pn88" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid" id="@?zbekjnHNiqZ.?:UZ,"> <field name="oid">Object ID</field> </shadow> <block type="text_join" id="VAdQl$ZWG@WOy_,rcu6%"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="YT;mRR_H6+t{J~}QU_E/"> <field name="VAR" id="7-~%q%O+i,p)gd]2E]u%">i</field> </block> </value> <value name="ADD1"> <block type="text" id="^7!wIf6=?EvYr$SoR^P">
|
||||
<field name="TEXT">ScreensaverInfo.popupNotifyHeading</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="VALUE">
|
||||
<shadow type="logic_boolean" id="4]C|sQYZbuEUMP]xH-Ab">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</shadow>
|
||||
<block type="text" id="+(i@.kA,fI(I2w-ZHuo">
|
||||
<field name="TEXT">Deutscher Wetterdienst</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="DELAY_MS">
|
||||
<shadow type="math_number" id="rDN^aNATSKF-a=?gO?Ww">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="comment" id="TG}L5iTO?~|;AN-yf?NV">
|
||||
<field name="COMMENT">ScreensaverInfo.popupNotifyText</field>
|
||||
<next>
|
||||
<block type="control_ex" id="q/ci(sG(Vxs+s07bvr]b" inline="true">
|
||||
<field name="TYPE">false</field>
|
||||
<field name="CLEAR_RUNNING">FALSE</field>
|
||||
<value name="OID">
|
||||
<shadow type="field_oid">
|
||||
<field name="oid">Object ID</field>
|
||||
</shadow>
|
||||
<block type="text_join" id="IoU]L/3.jrEgMe=(I)K">
|
||||
<mutation items="2"></mutation>
|
||||
<value name="ADD0">
|
||||
<block type="variables_get" id="EXcC{bR:k@EwC!QkJ)YQ">
|
||||
<field name="VAR" id="7-~%q%O+i,p)gd]2E]u%">i</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="ADD1">
|
||||
<block type="text" id="+Zex[j7epd,T21~*k6-"> <field name="TEXT">ScreensaverInfo.popupNotifyText</field> </block> </value> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="0{J_-SZvB.zu]ETOXlH/"> <field name="BOOL">TRUE</field> </shadow> <block type="on_source" id="5?IF}*4XhhK0PN3[wD!z"> <field name="ATTR">state.val</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="pJ2jr~?.G0YB;6r]?S=">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</xml>
|
||||
486
ioBroker/Blockly/Hardware-Buttons_Multipress.xml
Normal file
486
ioBroker/Blockly/Hardware-Buttons_Multipress.xml
Normal file
@@ -0,0 +1,486 @@
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<variables>
|
||||
<variable id="$%h)IyP*A]i!w|o;@^u~">PanelResult</variable>
|
||||
<variable id="iG,DhTT3ntIL)6jkdBSx">Action</variable>
|
||||
</variables>
|
||||
<block type="on_ext" id="Z*WW:Hq=V/0/+D.7sBGj" x="88" y="63">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
|
||||
<field name="CONDITION">any</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<value name="OID0">
|
||||
<shadow type="field_oid" id="s?5LPlVoKvrW,Gf/,d6(">
|
||||
<field name="oid">default</field>
|
||||
</shadow>
|
||||
<block type="field_oid" id=";VZs-nq`+#GL`5jVspo^">
|
||||
<field name="oid">mqtt.0.SmartHome.NSPanel_1.stat.RESULT</field>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="STATEMENT">
|
||||
<block type="variables_set" id="W*-eYA4LLj$WMX1vlx9+">
|
||||
<field name="VAR" id="$%h)IyP*A]i!w|o;@^u~">PanelResult</field>
|
||||
<value name="VALUE">
|
||||
<block type="convert_json2object" id="H}rYz*|_N_r:7lN6kRq)">
|
||||
<value name="VALUE">
|
||||
<block type="on_source" id="ks};I#sE9{y$Os12X3%`">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="controls_if" id="|e+,CBW1}SywJvnEFroP">
|
||||
<mutation elseif="1"></mutation>
|
||||
<value name="IF0">
|
||||
<block type="logic_compare" id="tkA^fRI!3FU^2Tiqlahc">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="text_getSubstring" id="k}-`K]@kua~8fg*?I[t#">
|
||||
<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="qCOa@52xDIv4(R#:]Yzp">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="AT1">
|
||||
<block type="math_number" id="Ncm@lgRgVYVBF~^yWKRE">
|
||||
<field name="NUM">3</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="AT2">
|
||||
<block type="math_number" id="Gov$3|Qrd91N~RUzWea=">
|
||||
<field name="NUM">9</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="2~EGhvBs4KIPXXMcNVkx">
|
||||
<field name="TEXT">Button1</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="variables_set" id="G!Z=C5KTj-Nl+XFa0RU_">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
<value name="VALUE">
|
||||
<block type="get_attr" id="Ed}{-}B{X+obkb^Mmk8O">
|
||||
<value name="PATH">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button2.Action</field>
|
||||
</shadow>
|
||||
<block type="text" id="-XSmbNSLD2q^JU.3)[(^">
|
||||
<field name="TEXT">Button1.Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="OBJECT">
|
||||
<block type="variables_get" id="-%8e}:rqW1kj_iUDQyyf">
|
||||
<field name="VAR" id="$%h)IyP*A]i!w|o;@^u~">PanelResult</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="controls_if" id="729?J2a__sAP*2PmMN2%">
|
||||
<mutation elseif="4"></mutation>
|
||||
<value name="IF0">
|
||||
<block type="logic_compare" id="u9lV/l]c1,yVRl3(21(L">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="kG0ARQ1j%HKz(I=l}`:P">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="v?m}nM1~E8zR0,Ja+if+">
|
||||
<field name="TEXT">SINGLE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="comment" id="iqFwhe!^P0z9-W9D[tyh">
|
||||
<field name="COMMENT">Schalte etwas: Button1 1x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="F22M/f@lJ_xQ$t2#QW[#">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="?r3.Wy5c@$3DxmvbIGr}">
|
||||
<field name="TEXT">Button1 SINGLE wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF1">
|
||||
<block type="logic_compare" id="[Vpq7B,RWb4k)Bhwq{nh">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="|Whz!$I5#Iym52Pg8N?p">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="~f_cI8hrs;I)wJ-S.G3r">
|
||||
<field name="TEXT">DOUBLE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO1">
|
||||
<block type="comment" id="D;PPB54t87N)%F{.hQAx">
|
||||
<field name="COMMENT">Schalte etwas: Button1 2x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="xoG/r3;33`8/j$QeZHW5">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="9PgW|#6f8``brbWQM9q7">
|
||||
<field name="TEXT">Button1 DOUBLE wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF2">
|
||||
<block type="logic_compare" id="t)8drGw=u/q0Pl+ul^43">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="-lf~?Q^H8o}J:cf@I5aN">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="Z!={5~.hF?V-NFw73|BL">
|
||||
<field name="TEXT">TRIPLE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO2">
|
||||
<block type="comment" id="xjdh~X8eM8ab/a/JuIM/">
|
||||
<field name="COMMENT">Schalte etwas: Button1 3x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="n$kU%^k3$wHN/L**K=jA">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="SA^R/OJX#a7JDhE7LwL[">
|
||||
<field name="TEXT">Button1 TRIPLE wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF3">
|
||||
<block type="logic_compare" id="ZCUeBK[Sc08KKQVMF)tC">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id=":Jlhv9(rM!D5H*eM|Gw-">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="6NH!g[HN7f=7_q%U10M!">
|
||||
<field name="TEXT">QUAD</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO3">
|
||||
<block type="comment" id="77*X9-*|mO]|P0$Jw=K`">
|
||||
<field name="COMMENT">Schalte etwas: Button1 4x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="qE@`G.#9s!UAtrlMJ/yi">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="G:19{lKn)m`B!x(NUx5S">
|
||||
<field name="TEXT">Button1 QUAD wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF4">
|
||||
<block type="logic_compare" id="fz#2[~sK=iF%wd=4`hB,">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="ROFyrrPZn5KJg7?Hs),Z">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="a]-o=$vOr9JDr(T!#SmL">
|
||||
<field name="TEXT">PENTA</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO4">
|
||||
<block type="comment" id="fxPE82.Ci3L`ME=X3nl|">
|
||||
<field name="COMMENT">Schalte etwas: Button1 5x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="7GbZ650het?k*+CCO:nr">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="*[}-a1hl?2pc^*@4E*hI">
|
||||
<field name="TEXT">Button1 PENTA wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF1">
|
||||
<block type="logic_compare" id="8Ev:iPPfN3B?L^Q]oOIc">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="text_getSubstring" id="xx:q0nC7,q8A8~v?PC#s">
|
||||
<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="JWC4m9/7dS^!]+xQ-I0Y">
|
||||
<field name="ATTR">state.val</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="AT1">
|
||||
<block type="math_number" id="k7=j)18I6TmB%)upvAVJ">
|
||||
<field name="NUM">3</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="AT2">
|
||||
<block type="math_number" id=",EKn%h/uX3}ZjCvmW1KE">
|
||||
<field name="NUM">9</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="Uuj{UrX@-3nNjw{n!H/@">
|
||||
<field name="TEXT">Button2</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO1">
|
||||
<block type="variables_set" id="U~1k_f;62_-QkRvGZz=)">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
<value name="VALUE">
|
||||
<block type="get_attr" id="izCz6K1Y;L.7M7MlHA$c">
|
||||
<value name="PATH">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button2.Action</field>
|
||||
</shadow>
|
||||
<block type="text" id="y1)^1#)QjYVVA7)mWdvM">
|
||||
<field name="TEXT">Button2.Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="OBJECT">
|
||||
<block type="variables_get" id="TIg$Lr%^Fuk`fxDLC:,^">
|
||||
<field name="VAR" id="$%h)IyP*A]i!w|o;@^u~">PanelResult</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="controls_if" id="tC_APU:6jW5063/l=sR1">
|
||||
<mutation elseif="4"></mutation>
|
||||
<value name="IF0">
|
||||
<block type="logic_compare" id="P9XXNXzc+3H{*^w1P_@q">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="sua/L8[qi8e:U#m}d^pi">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="E^e9/nh{n@)S6e:4q3_h">
|
||||
<field name="TEXT">SINGLE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="comment" id="qoOw*}O|E06w[5[cXWLo">
|
||||
<field name="COMMENT">Schalte etwas: Button2 1x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id=",tE:-UWz(0Zqlc8KBLqO">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text" id="!waPZV$J9fR+dq462%h+">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="{3#KVO|*86E:3pR/!%WP">
|
||||
<field name="TEXT">Button2 SINGLE wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF1">
|
||||
<block type="logic_compare" id="_Z+eBL!Zj.|LQL+_s|Ld">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="15Tx7/a!(wJ;FO+x!4JW">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="}l%?@L+:Ma!=:d2Ky/%*">
|
||||
<field name="TEXT">DOUBLE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO1">
|
||||
<block type="comment" id="~72fN$sZV!.O{%*0+awy">
|
||||
<field name="COMMENT">Schalte etwas: Button2 2x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="-T4*$n8-_X_{@6!Ga5FQ">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="LFX2j}Pr:o,{$YxQVcp2">
|
||||
<field name="TEXT">Button2 DOUBLE wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF2">
|
||||
<block type="logic_compare" id="6-2Eew1,aoyC]Th*AaJ5">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="4Nl6[tYm2pL@rL7v8vLI">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="zthA#*kib2r|xv+,A{Sh">
|
||||
<field name="TEXT">TRIPLE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO2">
|
||||
<block type="comment" id="?OI)q#8XL#1)x.E=*m~~">
|
||||
<field name="COMMENT">Schalte etwas: Button2 3x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="%6ZLfC`!6?Z%jXlF:mFa">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="eh|tY,l}uz:WTx}4_G_E">
|
||||
<field name="TEXT">Button2 TRIPLE wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF3">
|
||||
<block type="logic_compare" id="*~f.cy|6d8U0s?|^%:8R">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="tiZ6%x5iuvhh:Yi*9qB9">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="I|K0m__6/:.kuBtYQE5l">
|
||||
<field name="TEXT">QUAD</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO3">
|
||||
<block type="comment" id="ToQ_dt~n$Ef|8-fb|__O">
|
||||
<field name="COMMENT">Schalte etwas: Button2 4x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="qyb7DL~:^6|r@9~KOb+A">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="tb4wo7_n@J)Q9$FLf|rV">
|
||||
<field name="TEXT">Button2 QUAD wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
<value name="IF4">
|
||||
<block type="logic_compare" id="M:x`b;I}a8;jJU=g}u)[">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="variables_get" id="Yh,)fk$+WmVXS=iwbzK{">
|
||||
<field name="VAR" id="iG,DhTT3ntIL)6jkdBSx">Action</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="text" id="1FMk3I`mfaAfEhMd$D#e">
|
||||
<field name="TEXT">PENTA</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO4">
|
||||
<block type="comment" id="5+tVGCf{MdkG(OBDmuy|">
|
||||
<field name="COMMENT">Schalte etwas: Button2 5x gedrückt</field>
|
||||
<next>
|
||||
<block type="debug" id="}{-PVi#AL#[EGD,eb?M#">
|
||||
<field name="Severity">log</field>
|
||||
<value name="TEXT">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Button</field>
|
||||
</shadow>
|
||||
<block type="text" id="HuBkD3zi|o@.S3w.Qh7n">
|
||||
<field name="TEXT">Button2 PENTA wurde gedrückt</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</xml>
|
||||
94
ioBroker/Blockly/Screensaver-Info_auf_Request.xml
Normal file
94
ioBroker/Blockly/Screensaver-Info_auf_Request.xml
Normal file
@@ -0,0 +1,94 @@
|
||||
<xml xmlns="https://developers.google.com/blockly/xml">
|
||||
<block type="on" id="^D-c/jQ8.N);=7Ic~rAw" x="-238" y="-237">
|
||||
<field name="OID">0_userdata.0.NSPanel.1.DP_RQ.NSPanel_InfoRQ</field>
|
||||
<field name="CONDITION">ne</field>
|
||||
<field name="ACK_CONDITION"></field>
|
||||
<statement name="STATEMENT">
|
||||
<block type="controls_if" id="NA-Iy%xl.-1qP}_ntm-K">
|
||||
<value name="IF0">
|
||||
<block type="logic_compare" id="xU6_pkIHp:+an:llYxO7">
|
||||
<field name="OP">EQ</field>
|
||||
<value name="A">
|
||||
<block type="get_value" id="zt-oj}9|^lz$y0Y+uX{z">
|
||||
<field name="ATTR">val</field>
|
||||
<field name="OID">0_userdata.0.NSPanel.1.DP_RQ.NSPanel_InfoRQ</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="B">
|
||||
<block type="logic_boolean" id="W*,0+F8r{1lGvOZRLqR!">
|
||||
<field name="BOOL">TRUE</field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</value>
|
||||
<statement name="DO0">
|
||||
<block type="timeouts_wait" id="PWh;}}r)zb#ugpv6*sj|">
|
||||
<field name="DELAY">20</field>
|
||||
<field name="UNIT">sec</field>
|
||||
<next>
|
||||
<block type="control" id="oiUfnP)ms6:HeZU2e|;u">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||
<field name="OID">0_userdata.0.NSPanel.1.ScreensaverInfo.popupNotifyHeading</field>
|
||||
<field name="WITH_DELAY">FALSE</field>
|
||||
<value name="VALUE">
|
||||
<block type="text" id="k:,q%UL1r6loKc@D}r+(">
|
||||
<field name="TEXT">INFO</field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="control" id="Ma4m/8_a28*A7/`%`*0X">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||
<field name="OID">0_userdata.0.NSPanel.1.ScreensaverInfo.popupNotifyText</field>
|
||||
<field name="WITH_DELAY">FALSE</field>
|
||||
<value name="VALUE">
|
||||
<block type="text" id="ng-xB),UUycdg4GI2|K{">
|
||||
<field name="TEXT">Heute ist es ganz schön heiß!</field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="toggle" id="qUH1D!wwJXiYr[KQ,.}A">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||
<field name="OID">0_userdata.0.NSPanel.1.DP_RQ.NSPanel_InfoRQ</field>
|
||||
<field name="WITH_DELAY">FALSE</field>
|
||||
<next>
|
||||
<block type="timeouts_wait" id=";93SSUfV69!-h_CWkA.@">
|
||||
<field name="DELAY">20</field>
|
||||
<field name="UNIT">sec</field>
|
||||
<next>
|
||||
<block type="control" id="}fxN7f3*x$HF9#ePhL3i">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||
<field name="OID">0_userdata.0.NSPanel.1.ScreensaverInfo.popupNotifyHeading</field>
|
||||
<field name="WITH_DELAY">FALSE</field>
|
||||
<value name="VALUE">
|
||||
<block type="text" id="b0jBsnk@!YwX~cuxkgOi">
|
||||
<field name="TEXT"></field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="control" id="C}QMk;?Qtx^ZviUKh-}9">
|
||||
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
|
||||
<field name="OID">0_userdata.0.NSPanel.1.ScreensaverInfo.popupNotifyText</field>
|
||||
<field name="WITH_DELAY">FALSE</field>
|
||||
<value name="VALUE">
|
||||
<block type="text" id="m;bIZ!Y7H`e|BikGQ$%S">
|
||||
<field name="TEXT"></field>
|
||||
</block>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
</xml>
|
||||
Reference in New Issue
Block a user