MySensors icon indicating copy to clipboard operation
MySensors copied to clipboard

Add time measurement

Open Strontvlieg opened this issue 6 years ago • 3 comments

Hi There,

Is it possible to add the following options:

Type: S_TIME Variables: V_TIMEMS, V_TIMESEC, V_TIMEMIN and V_TIMEHOUR or something that looks like it

This gives the possibility to display a measured time. Thank you for this beautiful piece of software.

Greetz

Strontvlieg avatar Aug 13 '19 08:08 Strontvlieg

I was about to post the exact same suggestion!

This would be very useful for making (alarm)clocks.

flatsiedatsie avatar Sep 27 '19 09:09 flatsiedatsie

I volunteer to make pull request with examples (and later test it in Home Assistant) once I get green light from project managers. I propose pick one (or two) V_*s to reduce complication level. For my needs V_TIMEMS representing signed number of miliseconds using 32bits (which gives more -24 to 24 days values) representing periods/interval of time/delta time/ relative events /elapsed time if fine and enough. Positive value for future events/periods/intervals, negative value for past events, elapsed time (?)

I need time based autonomous switches/relays for garden watering, irrigation sprinklers, move detector lights, so I can set them: turn on/off for different configurable periods and they will turn off autonomously without controller.

matkor avatar Feb 22 '20 08:02 matkor

RO/RW problem will also affect S_TIME as mentioned in https://github.com/mysensors/MySensors/issues/1312

matkor avatar Feb 22 '20 09:02 matkor