How to setup an hourmeter ?
Posted: Saturday 25 January 2025 13:08
Hello everyone,
I have been struggling for a few days to set up an hour meter on the closing of a contact.
I have not found on the forum or elsewhere how to implement this function which seems quite simple at the start.
I have tried by creating several types of virtual counters but none seems capable of counting a time or I have not understood how to make them work.
It is hard to believe that it is not possible to have a virtual meter that can do this directly without going through complicate time calculations in a script.
Can someone tell me what type of virtual sensor I should use for an hour meter (total and daily) and what command to use to activate it in a lua script?
Or better, is there an example of a script somewhere that performs this function?
Thanks in advance for your help.
I have been struggling for a few days to set up an hour meter on the closing of a contact.
I have not found on the forum or elsewhere how to implement this function which seems quite simple at the start.
I have tried by creating several types of virtual counters but none seems capable of counting a time or I have not understood how to make them work.
It is hard to believe that it is not possible to have a virtual meter that can do this directly without going through complicate time calculations in a script.
Can someone tell me what type of virtual sensor I should use for an hour meter (total and daily) and what command to use to activate it in a lua script?
Or better, is there an example of a script somewhere that performs this function?
Thanks in advance for your help.