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

Sunrise-Sunset options pleaseeee #34

Closed Yonny24 closed 2 years ago

Yonny24 commented 3 years ago

This is a great node. Just really missing the sunset/sunrise with offset options instead of fixed times.

I have to constantly adjust the times to compensate for the sunset.

Unless there is another option to add.

Please consider adding this option or point me in the right direction.

Many thanks

csuermann commented 3 years ago

Hi @Yonny24,

Have you considered combining the presence-faker node with the suncron node, as outlined here?

Best, C.

Yonny24 commented 3 years ago

I'll have a look at that first thanks. But would be ideal if the presence faker had this integrated options

csuermann commented 3 years ago

Feel free to send a PR ;-)

Yonny24 commented 3 years ago

Sorry have not been able to work out how to inject dynamic times or from sun-cron. Are you able to add sunset/offset to the window begin field in the node?

Yonny24 commented 2 years ago

This json was just what I was looking for. I had invented another more complicated method but it stopped working. Thank you. sunset