I just installed node-red and I have exactly one production automation working in it right now. (Well, two, I have a test-light-on whatever-ya-callits groups of bubbles).
I want to essentially do a case statement - on light on event, check the time and set brightness as appropriate (~8pm, 10pm, midnight - 6am).
If anyone has the urge would you mind giving me an idea of how I would do this?
(so much easier to get into this stuff when you have a bit working)
You can get the hour of the day nodered way by using the moment node if you pass the timestamp as input. but you can also use function node and use use new Date()
so in code woould be
var d = new Date()
hour = d.toLocaleTimeString(undefined, { hour: 'numeric' })