External control over Stoptimer

I have setup several timers in my hass.io environment to control light and alarms. The duration of these alarms are dynamically adjusted based on presence detection or manual pulldown selection.

I’m trying to move over to Stoptimer as I can see a few benefits of using this one. However I have not been able to externally control the “duration” of a respective timer.

  1. Is there a msg command I can use to set/change the “duration”
  2. is there a way to update any node and its parameter during runtime ?

I don’t believe you can do that with stoptimer, but take a look at bigtimer is has an option to change the timer on the fly, combine it with several ui_buttons to different times to it and it could meet your needs.

I’m using the bigtimer already and love its flexibility, but I don’t think it has a countdown option as stoptimer. I do need exactly what stoptimer is doing, just with the option to specify the duration dynamically.

Take a look at node-red-contrib-mytimeout, it seems to have the ability to do the countdown and you can inject additional time as needed. I’ll be tring this one out myself since it has the ability so send warning once the countdown reaches a set point.

Yes, that was exactly what I was looking for … thanks for pointing me in the right direction

Unfortunately, the reference samples are not correct and the format needs to be adjusted. The below sample is working

[{“id”:“8d868ab0.252df8”,“type”:“inject”,“z”:“62edd340.699ffc”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:100,“y”:540,“wires”:[[“312e7759.0f61f8”]]},{“id”:“312e7759.0f61f8”,“type”:“change”,“z”:“62edd340.699ffc”,“name”:“on”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“1”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:250,“y”:540,“wires”:[[“c0271d68.bc6f3”]]},{“id”:“c0271d68.bc6f3”,“type”:“mytimeout”,“z”:“62edd340.699ffc”,“name”:“My Timeout”,“outtopic”:“”,“outsafe”:“on”,“outwarning”:“Warning”,“outunsafe”:“off”,“warning”:“5”,“timer”:“30”,“repeat”:false,“again”:false,“x”:450,“y”:580,“wires”:[[“ba9a29fa.e838d8”],[“208cab71.bd6584”]]},{“id”:“ba9a29fa.e838d8”,“type”:“debug”,“z”:“62edd340.699ffc”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:670,“y”:560,“wires”:},{“id”:“208cab71.bd6584”,“type”:“debug”,“z”:“62edd340.699ffc”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:670,“y”:600,“wires”:},{“id”:“a40de116.0d3c6”,“type”:“change”,“z”:“62edd340.699ffc”,“name”:“off”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“0”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:250,“y”:580,“wires”:[[“c0271d68.bc6f3”]]},{“id”:“41e2d61d.5e3a98”,“type”:“change”,“z”:“62edd340.699ffc”,“name”:“200”,“rules”:[{“t”:“set”,“p”:“timeout”,“pt”:“msg”,“to”:“200”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:250,“y”:760,“wires”:[[“c0271d68.bc6f3”]]},{“id”:“3a828d90.89a902”,“type”:“change”,“z”:“62edd340.699ffc”,“name”:“600”,“rules”:[{“t”:“set”,“p”:“timeout”,“pt”:“msg”,“to”:“600”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:250,“y”:640,“wires”:[[“c0271d68.bc6f3”]]},{“id”:“e9e0c500.901a28”,“type”:“change”,“z”:“62edd340.699ffc”,“name”:“300”,“rules”:[{“t”:“set”,“p”:“timeout”,“pt”:“msg”,“to”:“300”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:250,“y”:680,“wires”:[[“c0271d68.bc6f3”]]},{“id”:“ee1c8088.33ed2”,“type”:“change”,“z”:“62edd340.699ffc”,“name”:“150”,“rules”:[{“t”:“set”,“p”:“timeout”,“pt”:“msg”,“to”:“150”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:250,“y”:720,“wires”:[[“c0271d68.bc6f3”]]},{“id”:“7ec8efef.8e7cd”,“type”:“inject”,“z”:“62edd340.699ffc”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:100,“y”:580,“wires”:[[“a40de116.0d3c6”]]},{“id”:“7d3a748d.62994c”,“type”:“inject”,“z”:“62edd340.699ffc”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:100,“y”:760,“wires”:[[“41e2d61d.5e3a98”]]},{“id”:“72d605d1.cdb7dc”,“type”:“inject”,“z”:“62edd340.699ffc”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:100,“y”:640,“wires”:[[“3a828d90.89a902”]]},{“id”:“cf60761e.9fc138”,“type”:“inject”,“z”:“62edd340.699ffc”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:100,“y”:680,“wires”:[[“e9e0c500.901a28”]]},{“id”:“bffd79f5.860cf8”,“type”:“inject”,“z”:“62edd340.699ffc”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:100,“y”:720,“wires”:[[“ee1c8088.33ed2”]]}]