Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aide Calaos Installer
#14
oui

io.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:ioconfig xmlns:calaos="http://www.calaos.fr">
    <calaos:home>
        <calaos:room name="salon" type="salon" hits="0">
            <calaos:input coeff_a="1" coeff_b="0" file_type="xml" frequency="4000" id="input_1" max="10000" min="-10000" name="Info etat lampe poisson" path="//state[1]/@value" step="1" type="WebInputAnalog" unit="" url="http://192.168.1.5:3480/data_request?id=status&amp;output_format=xml&amp;DeviceNum=3"/>
            <calaos:input autorestart="true" autostart="true" hour="0" id="input_0" min="0" msec="0" name="Tempo actualisation lampe" sec="10" type="InputTimer"/>
            <calaos:output file_type="json" frequency="10000" id="output_5" name="Lumiere poisson" off_value="0" on_value="1" path=" " type="WebOutputLight" url="http://192.168.1.5:3480/data_request?id=lu_action&amp;DeviceNum=3&amp;serviceId=urn:upnp-org:serviceId:SwitchPower1&amp;action=SetTarget&amp;newTargetValue=__##VALUE##__"/>
        </calaos:room>
    </calaos:home>
</calaos:ioconfig>

rules.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:rules xmlns:calaos="http://www.calaos.fr">
    <calaos:rule name="Test etat lampe" type="salon">
        <calaos:condition type="standard" trigger="true">
            <calaos:input id="input_0" oper="==" val="true"/>
        </calaos:condition>
        <calaos:action type="script">
            <calaos:script type="lua"><![CDATA[local temp_panneaux = calaos:getInputValue("input_0")


calaos:setOutputValue("intern_1", temp_panneaux)


local test_lampe2 = calaos:getInputValue("input_1")
if test_lampe2 == 1 then
        calaos:setOutputValue("output_5", true)
return true
    else
        calaos:setOutputValue("output_5", false)
return false
end

return true]]></calaos:script>
        </calaos:action>
    </calaos:rule>
    <calaos:rule name="Init tempo" type="salon">
        <calaos:condition type="start"/>
        <calaos:action type="standard">
            <calaos:output id="input_0" val="true"/>
        </calaos:action>
    </calaos:rule>
</calaos:rules>
Reply


Messages In This Thread
Aide Calaos Installer - by etienne - 04-06-2015, 05:50 PM
RE: Aide Calaos Installer - by captainigloo - 04-07-2015, 08:51 AM
RE: Aide Calaos Installer - by etienne - 04-07-2015, 01:12 PM
RE: Aide Calaos Installer - by raoulh - 04-09-2015, 10:51 AM
RE: Aide Calaos Installer - by etienne - 04-09-2015, 01:46 PM
RE: Aide Calaos Installer - by etienne - 04-11-2015, 02:51 PM
RE: Aide Calaos Installer - by raoulh - 04-12-2015, 10:21 AM
RE: Aide Calaos Installer - by etienne - 04-12-2015, 10:55 AM
RE: Aide Calaos Installer - by captainigloo - 04-12-2015, 10:01 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 01:53 PM
RE: Aide Calaos Installer - by raoulh - 04-13-2015, 02:31 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 02:48 PM
RE: Aide Calaos Installer - by raoulh - 04-13-2015, 02:59 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 03:13 PM
RE: Aide Calaos Installer - by raoulh - 04-13-2015, 04:09 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 04:15 PM
RE: Aide Calaos Installer - by raoulh - 04-13-2015, 05:11 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 05:19 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 07:41 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 09:26 PM
RE: Aide Calaos Installer - by etienne - 04-13-2015, 10:41 PM
RE: Aide Calaos Installer - by raoulh - 04-14-2015, 12:15 PM
RE: Aide Calaos Installer - by etienne - 04-14-2015, 12:21 PM
RE: Aide Calaos Installer - by raoulh - 04-15-2015, 11:05 AM
RE: Aide Calaos Installer - by etienne - 04-19-2015, 07:09 PM
RE: Aide Calaos Installer - by etienne - 05-08-2015, 12:11 PM
RE: Aide Calaos Installer - by raoulh - 05-08-2015, 12:22 PM
RE: Aide Calaos Installer - by etienne - 05-08-2015, 12:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)