Node-BLUE - timed event for specific weekdays not working like expected

Hi

I have a switch I would like to trigger on/off Mo-Fr.
for this I chose a timer where I can set on and off time. Also I connected a debug node to see the times it switches on/off.
All fields are enabled except Sa and Su.

it works fine from Tu-Th.
On Fr it will not turn off the switch
On Mo it is assuming that the switch is still switched on and will switch it off.

Thursday

10/06/17 06:00:00.753 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1
10/06/17 06:20:00.871 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0

Friday

10/07/17 06:00:00.489 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1

Monday

10/09/17 06:20:00.548 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0

My problem is now that the switch also should be turned off on Friday and not on Monday.
Also the switch needs to be triggered on on Monday and not only off.

Do I need to add another node to get to this?

Hi

I did the setup ran now for one week. the observation did not change.
Every day the switch is turned on and off - except for the day before and after the days where the switch should not be changed.

10/04/17 06:00:00.004 Flows Engine (1081): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
10/04/17 06:20:00.138 Flows Engine (1081): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/06/17 06:00:00.753 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
10/06/17 06:20:00.871 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/07/17 06:00:00.489 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
--- weekend ---
10/09/17 06:20:00.548 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/10/17 06:00:00.882 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
10/10/17 06:20:00.022 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/11/17 06:00:00.409 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
10/11/17 06:20:00.633 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/12/17 06:00:00.446 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
10/12/17 06:20:00.582 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/13/17 06:00:00.311 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
10/13/17 06:20:00.454 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

10/14/17 06:00:00.247 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 1 
--- weekend ----
10/16/17 06:20:00.386 Flows Engine (18743): Node c0fd2e8b.2cb38: Debug node output (critical): (Boolean) 0 

node:
[
    {
        "id": "c0fd2e8b.2cb38",
        "type": "timer",
        "namespace": "timers",
        "z": "bbad46f4.eaf0b",
        "name": "",
        "startup": false,
        "ontime": "6:00",
        "ontimetype": "time",
        "offtime": "6:20",
        "offtimetype": "time",
        "lat": „51“,
        "lon": „6“,
        "startoff": "0",
        "endoff": "0",
        "sun": false,
        "mon": true,
        "tue": true,
        "wed": true,
        "thu": true,
        "fri": true,
        "sat": false,
        "jan": true,
        "feb": true,
        "mar": true,
        "apr": true,
        "may": true,
        "jun": true,
        "jul": true,
        "aug": true,
        "sep": true,
        "oct": true,
        "nov": true,
        "dec": true,
        "x": 180,
        "y": 720,
        "wires": [
            [
                {
                    "id": "9168fc99.09bb4",
                    "port": 0
                },
                {
                    "id": "4a810e4f.e4a58",
                    "port": 0
                }
            ]
        ]
    }
]

Hey @jipp,

a short report: I tried to find and reproduce the error, but couldn’t. I now set up exactly your node here. Let’s see, if the error occurs now…

Cheers,

Sathya

thx a lot for your effort, please tell me how I can support you…

Hello @jipp,

maybe install the current nightly and check if the error still occurs. I fixed a lot of things the last weeks. I’m not at home until Friday, so next weekend hopefully I can see if the error occurred or not. Currently it correctly says:

Cheers,

Sathya

Hallo @jipp,

problem found and solved in the next nightly :wink:. Thanks to your flow I could reproduce and find the error here. Thank you so much for reporting it.

Cheers,

Sathya

1 Like

wow
looked at the fix - nice race condition - thanks for the fix

1 Like