Calaos, Home Automation Forum

Full Version: Marche en mode degrade mais pas avec Calaos-Server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Bonjour a tous,

J'ai recu mon 750-881 et suis en train de faire quelques tests Big Grin. J'ai fait un projet tres simple avec Calaos-Installer (une entree a 1 = une sortie a 1) et envoye le code a l'automate et a Calaos-server.

Lorsque je deconnecte le cable reseau, l'automate fonctionne comme attendu en mode degrade mais lorsque je branche le cable la sortie ne s'allume pas ! Ou est le probleme ? Huh

Voici le log de Calaos-Server :
Code:
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_network UDPServer.cpp:153 void UDPServer::ProcessRequest(Ecore_Con_Client*, std::string)() received input 0 state=1
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_input IO/Wago/WIDigitalBP.cpp:72 virtual void Calaos::WIDigitalBP::ReceiveFromWago(std::string, int, bool, std::string)() Got 1 on std input 0
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_rule Rule.cpp:90 bool Calaos::Rule::ExecuteActions()() Rule(Michael's bedroom,xxxx): Starting execution (1 actions)
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_output IO/OutputLight.cpp:61 bool Calaos::OutputLight::_set_value(bool)() output_0: got action, True
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_rule Rule.cpp:99 bool Calaos::Rule::ExecuteActions()() Rule(Michael's bedroom,xxxx): Execution done.
Dec 02 01:24:54 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:135 bool Calaos::WagoCtrl::write_single_bit(Utils::UWord, bool)() WagoCtrl::write_single_bit(0, true): Ok
Dec 02 01:24:55 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
Dec 02 01:24:59 n450 calaos_server[433]: INF<433>:calaos_network UDPServer.cpp:153 void UDPServer::ProcessRequest(Ecore_Con_Client*, std::string)() received input 0 state=0
Dec 02 01:24:59 n450 calaos_server[433]: INF<433>:calaos_input IO/Wago/WIDigitalBP.cpp:72 virtual void Calaos::WIDigitalBP::ReceiveFromWago(std::string, int, bool, std::string)() Got 0 on std input 0
Dec 02 01:24:59 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok
Dec 02 01:25:05 n450 calaos_server[433]: INF<433>:calaos_wago IO/Wago/WagoCtrl.cpp:113 bool Calaos::WagoCtrl::read_bits(Utils::UWord, int, std::vector<bool>&)() WagoCtrl::read_bits(0,1): Ok

rules.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:rules xmlns:calaos="http://www.calaos.fr">
    <calaos:rule name="xxxx" type="Michael's bedroom" specialType="">
        <calaos:condition type="standard" trigger="true">
            <calaos:input id="input_1" oper="==" val="true"/>
        </calaos:condition>
        <calaos:action type="standard">
            <calaos:output id="output_0" val="true"/>
        </calaos:action>
    </calaos:rule>
</calaos:rules>

IO.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<calaos:ioconfig xmlns:calaos="http://www.calaos.fr">
    <calaos:home>
        <calaos:room name="Michael's bedroom" type="chambre" hits="0">
            <calaos:input host="192.168.1.100" id="input_1" name="Switch - Door - I1:1:1" port="502" type="WIDigitalBP" var="0" wago_841="false"/>
            <calaos:output gtype="light" host="192.168.1.100" id="output_0" name="Light - Ceiling" port="502" type="WODigital" var="0" wago_841="false"/>
        </calaos:room>
    </calaos:home>
</calaos:ioconfig>
as-tu essayé d'ajouter "save=true" -> clic droit propriété sur ta lumière dans calaos_installer et tu fais "add" pour ajouter "save" et tu lui mets la valeur "true"
Il faut que tu mettes la propriété wago_841 a true dans la config. En fait le nom de cette propriété est pas vraiment explicite, mais il faut le mettre a false uniquement pour les 750-842, tous les autres il faut mettre true. C'est une histoire de décalage des addresses sur les nouvelles tetes automates qui sont fabriqués apres les 842.

@diouk: non, ca ne sert a rien ca pour des IO autres que des variables internes, ca sert a sauvegarder leur valeur sur le disque entre des redemarrage de calaos_server.
(12-02-2014, 11:10 AM)raoulh Wrote: [ -> ]Il faut que tu mettes la propriété wago_841 a true dans la config. ...

Ok merci ca marche.