10der / node-red-contrib-fibaro-devices

node-red-contrib-fibaro-devices
MIT License
5 stars 2 forks source link

Fibaro Wally - two devices and second doesn't respond to true/false from first #15

Open S474N opened 1 year ago

S474N commented 1 year ago

My friend have problem with this plugin. Two Fibaro Wally and second doesn't respond to changes from first. Please see screenshot with debug:

image

It reacts normally to both injects (true/false).

S474N commented 1 year ago

It may be problem with another information in msg:

image

10der commented 1 year ago

Sir, want to help but can’t My house with HC3 in the military occupation city. Alas. Waiting when UA is back. Sorry.

S474N commented 1 year ago

I understand, it's OK of course. Слава України

So tested it, and first node (Spinac 4.1) after switch sends everytime three times payload.

Second node (Spinac 5.2) cannot receive payload directly from 4.1 (I think, that problem is all payload). If I injected only true/false, is it ok.

10der commented 1 year ago

As workaround you can transform payload from first device to true/false IMHO

S474N commented 1 year ago

This is of course tested - it's Turn On/Off node at screentshot:

var zapnisvetlo = { payload: true };
var vypnisvetlo = { payload: false };

if (msg.payload == true) {
    return zapnisvetlo;
}
else {
    return vypnisvetlo;
}  

It works, so that is reason, why I think, that problem is in another's informations in payload.