Werner Maier - 2010-03-31

Hi,

I just did set up linknx, eibd and knxweb today. Everything runs quite smoothly, but I could not switch my thermostates to "frost" mode.

After debugging (including monitoring the knx bus) I found out that the commands
when switching to frost mode do not get all to the knx bus, but only the first commant of them goes.
As frost mode is just after comfort mode, the command sent will be: "comfort off, frost on".

my workaround was patching the cthermostat2.js like this:

function sleep(ms){
    var zeit=(new Date()).getTime();
    var stoppZeit=zeit+ms;
    while((new Date()).getTime()<stoppZeit){};
}
[...]
CThermostat2.prototype.sendMode = function(sender) {
    EIBCommunicator.eibWrite(sender.comfortObject,sender.comfort);
    sleep(1000);
    EIBCommunicator.eibWrite(sender.nightObject,sender.night);
    sleep(1000);
    EIBCommunicator.eibWrite(sender.frostObject,sender.frost);
    sleep(1000);
};

maybe that is useful for someone.