aqhome-react: replaced example networks.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<gwbuild>
|
||||
<data dist="true" install="$(datadir)/aqhome/react/networks">
|
||||
tvlight.xml
|
||||
delayedoff.xml
|
||||
</data>
|
||||
|
||||
</gwbuild>
|
||||
|
||||
52
apps/aqhome-react/networks/delayedoff.xml
Normal file
52
apps/aqhome-react/networks/delayedoff.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
|
||||
<network type="delayedOff">
|
||||
|
||||
<paramdefs>
|
||||
<param name="delayTime" targetModule="stabilize1" targetParam="holdTimeLow">30</param>
|
||||
<param name="threshold" targetModule="highPass1" targetParam="threshold">70</param>
|
||||
</paramdefs>
|
||||
|
||||
<inputPorts>
|
||||
<inputPort name="input" dataType="double" />
|
||||
</inputPorts>
|
||||
|
||||
<outputPorts>
|
||||
<outputPort name="output" dataType="string" />
|
||||
</outputPorts>
|
||||
|
||||
|
||||
|
||||
<units>
|
||||
<unit id="highPass1" type="highPass" />
|
||||
|
||||
<unit id="zeroPosNegString1" type="zeroPosNegString">
|
||||
<params>
|
||||
<param name="valueIfNegative">OFF</param>
|
||||
<param name="valueIfZero">OFF</param>
|
||||
<param name="valueIfPositive">ON</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
|
||||
<unit id="stabilize1" type="stabilize">
|
||||
<params>
|
||||
<param name="holdTimeHigh">0.0</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
</units>
|
||||
|
||||
|
||||
<links>
|
||||
<!-- (sourceNet), sourceUnit, sourcePort, (targetNet), targetUnit, targetPort -->
|
||||
<link sourceUnit=".timer" sourcePort="output" targetUnit="stabilize1" targetPort="timer" />
|
||||
<link sourceUnit="." sourcePort="input" targetUnit="highPass1" targetPort="input" />
|
||||
|
||||
<link sourceUnit="highPass1" sourcePort="output" targetUnit="stabilize1" targetPort="input" />
|
||||
<link sourceUnit="stabilize1" sourcePort="output" targetUnit="zeroPosNegString1" targetPort="input" />
|
||||
|
||||
<link sourceUnit="zeroPosNegString1" sourcePort="output" targetUnit="." targetPort="output" />
|
||||
</links>
|
||||
</network>
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
|
||||
|
||||
<network type="tvlight">
|
||||
|
||||
<params>
|
||||
<param name="inPlugValue" />
|
||||
<param name="outPlugValue" />
|
||||
<param name="delayTime">30</param>
|
||||
<param name="threshold">70</param>
|
||||
</params>
|
||||
|
||||
|
||||
<units>
|
||||
<unit id="valueFilterInPlug" type="valueFilter">
|
||||
<params>
|
||||
<param name="valueName">$(inPlugValue)</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
|
||||
<unit id="highPass1" type="highPass">
|
||||
<params>
|
||||
<param name="threshold">$(threshold)</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
|
||||
<unit id="valueSetOutPlug" type="valueSet">
|
||||
<params>
|
||||
<param name="valueName">$(outPlugValue)</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
|
||||
<unit id="zeroPosNegString1" type="zeroPosNegString">
|
||||
<params>
|
||||
<param name="valueIfNegative">OFF</param>
|
||||
<param name="valueIfZero">OFF</param>
|
||||
<param name="valueIfPositive">ON</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
|
||||
<unit id="stabilize1" type="stabilize">
|
||||
<params>
|
||||
<param name="holdTimeLow">$(delayTime)</param>
|
||||
<param name="holdTimeHigh">0.0</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
</units>
|
||||
|
||||
|
||||
<links>
|
||||
<!-- (sourceNet), sourceUnit, sourceSlot, (targetNet), targetUnit, targetSlot -->
|
||||
<link sourceUnit=".updatedValue" sourceSlot="output" targetUnit="valueFilterInPlug" targetSlot="input" />
|
||||
<link sourceUnit="valueFilterInPlug" sourceSlot="output" targetUnit="highPass1" targetSlot="input" />
|
||||
<link sourceUnit="highPass1" sourceSlot="output" targetUnit="stabilize1" targetSlot="input" />
|
||||
<link sourceUnit=".timer" sourceSlot="output" targetUnit="stabilize1" targetSlot="timer" />
|
||||
<link sourceUnit="stabilize1" sourceSlot="output" targetUnit="zeroPosNegString1" targetSlot="input" />
|
||||
<link sourceUnit="zeroPosNegString1" sourceSlot="output" targetUnit="valueSetOutPlug" targetSlot="input" />
|
||||
</links>
|
||||
</network>
|
||||
|
||||
Reference in New Issue
Block a user