csuermann / node-red-contrib-presence-faker

Node-RED node that fakes presence in a smart home by switching devices (e.g. lights) on and off at random times.
MIT License
23 stars 2 forks source link

feature request: sunrise/sunset as start/end window #10

Closed paede81 closed 4 years ago

paede81 commented 4 years ago

Can you please add sunrise/sunset/dusk/dawn based on longitude/latitude as start and/or end window? This is for example useful, if you want to define start time based on sunset (because time of dusk is different in winter and summer) and it makes no sense if you set the start time of the window when the sun is still shining (eg. summer)

csuermann commented 4 years ago

Hi @paede81,

You can accomplish that quite easily by combining the presence-faker node with a suncron-node, like so:

image

Here is an importable example flow for your convenience.

I hope that helps!

Best regards, C.