Skip to content

Mischer arbeitet nicht #22

Description

@weberol

"passt des scho"
msg1 = {"payload": false};
msg2 = {"payload": false};
msg3 = {"payload": false};

if (msg.topic == "mischer/automatik")
msg1.payload = msg.payload;
if (msg.topic == "mischer/heizkreis/heiss")
msg2.payload = msg.payload;
if (msg.topic == "mischer/heizkreis/kalt")
msg3.payload = msg.payload;

/*
// This forces one state to be true
if (msg.topic == "Mischer/Automatik")
msg1.payload = true;
if (msg.topic == "Mischer/Heiss")
msg2.payload = true;
if (msg.topic == "Mischer/Kalt")
msg3.payload = true;
*/

return [msg1, msg2, msg3];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions