aqhome-react: more work on modules and networks.
- tested AND network and new suntime units. - add unit XML property "invert" (inverts output for logical units)
This commit is contained in:
@@ -8,6 +8,15 @@
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
<unit id="suntime1" type="suntime" invert="TRUE">
|
||||
<params>
|
||||
<param name="latitude">52.619425</param>
|
||||
<param name="longitude">10.087891</param>
|
||||
<param name="offsetMinsForSunrise">0.0</param>
|
||||
<param name="offsetMinsForSunset">30.0</param>
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
<unit id="delayedOff1" type="delayedOff">
|
||||
<params>
|
||||
<param name="delayTime">30</param>
|
||||
@@ -15,6 +24,17 @@
|
||||
</params>
|
||||
</unit>
|
||||
|
||||
<unit id="and1" type="and" />
|
||||
|
||||
<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="valueSetOutPlug" type="valueSet">
|
||||
<params>
|
||||
<param name="valueName">mqtt/109C2F/power</param>
|
||||
@@ -26,6 +46,10 @@
|
||||
<!-- (sourceNet), sourceUnit, sourcePort, (targetNet), targetUnit, targetPort -->
|
||||
<link sourceUnit=".updatedValue" sourcePort="output" targetUnit="valueFilterInPlug" targetPort="input" />
|
||||
<link sourceUnit="valueFilterInPlug" sourcePort="output" targetUnit="delayedOff1" targetPort="input" />
|
||||
<link sourceUnit="delayedOff1" sourcePort="output" targetUnit="valueSetOutPlug" targetPort="input" />
|
||||
<link sourceUnit=".timer" sourcePort="output" targetUnit="suntime1" targetPort="timer" />
|
||||
<link sourceUnit="suntime1" sourcePort="output" targetUnit="and1" targetPort="input" />
|
||||
<link sourceUnit="delayedOff1" sourcePort="output" targetUnit="and1" targetPort="input" />
|
||||
<link sourceUnit="and1" sourcePort="output" targetUnit="zeroPosNegString1" targetPort="input" />
|
||||
<link sourceUnit="zeroPosNegString1" sourcePort="output" targetUnit="valueSetOutPlug" targetPort="input" />
|
||||
</links>
|
||||
</network>
|
||||
|
||||
Reference in New Issue
Block a user