Time control using a switch

#1

hello, I'm just changing from pilight to nodered. There I have set, that at certain times z.b sockets are switched. but if an "absent" button is pressed, other schedules will apply. this is exactly what I do not get implemented in node red.

0 Likes

#2

I’ve moved this to #general as I assume this is a problem you are having rather than core development

0 Likes

#3

See this thread where a switch can be switched based on another condition How do I only pass a motion sensor change between dusk and dawn?

0 Likes

#4

I ask differently. I use schedex. with msg.payload.suspended you can set this active and not active. if I try this via a "switch", I get an error message (unsupported input). what am I doing wrong? unfortunately you're newbie :frowning:

0 Likes

#5

It would be easier to know where you are going wrong if you post your flow. Please read the following post How to share code or flow json and then post your flow

0 Likes

#6

This way works:

Function

msg.payload = {};
msg.payload.suspended = true;
return msg;

or using a change node

schedex

0 Likes