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

Generate times near "begin" and "end" limits #2

Closed JaviElio closed 5 years ago

JaviElio commented 5 years ago

I have set up the node to generate a random trigger between 8:00 to 20:00 but the results are always between 11:00 to 17:00 ( more or less).

Looks like it is not possible to generate random times near the limits. Can this be improved?

Thanks in advace,

Presence-faker node

csuermann commented 5 years ago

Hi @JaviElio,

Thanks for the bug-report. I was able to reproduce the problem and just fixed it in v1.4.1.

Best regards Cornelius