this allows for storing value set with setData which can then be used in the cgi module to retrieve the last value set.
46 lines
1.7 KiB
XML
46 lines
1.7 KiB
XML
|
|
|
|
<network id="tvlight1">
|
|
<units>
|
|
<unit id="valueFilterInPlug" type="valueFilter">
|
|
<params>
|
|
<param name="valueName">mqtt/plug02/powerusage</param>
|
|
</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">300</param>
|
|
<param name="threshold">70</param>
|
|
</params>
|
|
</unit>
|
|
|
|
<unit id="and1" type="and" />
|
|
|
|
<unit id="valueSetOutPlug1" type="valueSet">
|
|
<params>
|
|
<param name="valueName">mqtt/109C2F/power</param>
|
|
</params>
|
|
</unit>
|
|
</units>
|
|
|
|
<links>
|
|
<!-- sourceUnit, sourcePort, targetUnit, targetPort -->
|
|
<link sourceUnit=".updatedValue" sourcePort="doubleOutput" targetUnit="valueFilterInPlug" targetPort="input" />
|
|
<link sourceUnit="valueFilterInPlug" sourcePort="output" targetUnit="delayedOff1" 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="valueSetOutPlug1" targetPort="input" />
|
|
</links>
|
|
</network>
|