Node red, Big timer to control the lights

uh.

That’s an object.

What is this doing? Why?

You don’t specifically state CREATE OBJECT. You can simply say msg.timeElapsed = 0;

You’re seriously overcomplicating this entire thing.

debug shows you what is happening with your flow. It can’t “not display in a correct way”.

flamingm0e,
Well that’s why I struggling to learn.
I thought that I should declare the objects in that way.
Dose I don’t need to declare the objects?

You don’t need to declare them in that way. If you wanted to create msg2, you would do msg2 = {} and that is an object.

So what you have done is create objects in different ways and it isn’t necessary.

You already have a msg object. If you want to add an object or a property to msg you simply state msg.propertynameIwant = value or for an OBJECT, msg.someobjectIwantinsidemsg = {"name": "value"}

You’re complicating the entire thing and I’m not sure why.

People have already created the things you are looking to do.

Pick something that works best for what you want to accomplish and use it.

flamingm0e,
Yes maybe I complicating things but I don’t see how I should do it with this nodes.
I have tried the mytimeout node and it restarts it self each time it starts.
I want the elapsed time.
But maybe I do something wrong?

[{"id":"1ae0c0f0.a3a06f","type":"debug","z":"205212a7.3d0f4e","name":"Lap on","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":530,"y":260,"wires":[]},{"id":"9e6aebea.aa98f8","type":"inject","z":"205212a7.3d0f4e","name":"home","topic":"","payload":"home","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":269,"wires":[["304de676.be74aa"]]},{"id":"cbfd4551.83cf38","type":"inject","z":"205212a7.3d0f4e","name":"not_home","topic":"","payload":"not_home","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":309,"wires":[["304de676.be74aa"]]},{"id":"304de676.be74aa","type":"switch","z":"205212a7.3d0f4e","name":"home/not home","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"home","vt":"str"},{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":293,"wires":[["1ae0c0f0.a3a06f","61f2082e.64fb88"],["67acaab6.301084","2f9614c6.54ecfc"]]},{"id":"67acaab6.301084","type":"change","z":"205212a7.3d0f4e","name":"send STOP","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":315,"wires":[["61f2082e.64fb88"]]},{"id":"2f9614c6.54ecfc","type":"debug","z":"205212a7.3d0f4e","name":"Lap off","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":530,"y":360,"wires":[]},{"id":"23bb9f8f.6c3a2","type":"debug","z":"205212a7.3d0f4e","name":"Lap test5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":960,"y":260,"wires":[]},{"id":"2ab24c14.67b3e4","type":"debug","z":"205212a7.3d0f4e","name":"Lap test6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":960,"y":300,"wires":[]},{"id":"61f2082e.64fb88","type":"mytimeout","z":"205212a7.3d0f4e","name":"","outtopic":"","outsafe":"on","outwarning":"","outunsafe":"off","warning":"0","timer":"60","debug":false,"ndebug":true,"ignoreCase":false,"repeat":false,"again":false,"x":750,"y":280,"wires":[["23bb9f8f.6c3a2"],["2ab24c14.67b3e4"]]}]

How to override big timer for unknown period of time? I have an input.select with 3 options (force on, auto, force off)

I have manage to add trigger state node as an input to big timer with rules to replace massage:
“Payload auto, if new_state.state is auto”, on for force on and off for force off

But what is the correct input payload to override big timer as long as the input.select is out of “auto” state? I have tried off_manual and off_override with no success :confused: The description for big timer is unclear for me

I have abandon the Big Timer.
Because I couldn’t do the thing I wanted to do.
Sorry I don’t know how to control the Big Timer.

hello

je recherche un moyen de pouvoir réglée le temps ON et OFF depuis le Dashbord

I am looking for a way to be able to set the ON and OFF time from the dashboard

oli16