Hi Everyone,
A newbie to node-red. I have been searching all over the place but can’t seem to find an answer to what should be an ‘easy’ thing to do :(.
I have a service node that opens a relay which then connects to a trigger node - which turns off the relay after 10 seconds. But this is hard coded (ie. the Trigger node) for a set amount of time. What I want to be able to do is allow the users to change the amount of time the relay is open (dynamically) ie. set the time in trigger node dynamically. In HA - I have defined an entity (a slider) that ranges from 0-10 minutes (input_number. row1_duration).
Is it possible to do something in the service node to set a dynamic time to run the service? Otherwise - other ideas on the ‘best’ way to dynamically set how long the service node (the relay) runs?
Thanks.