So what you are looking for is a command line binary sensor and not a command line switch as you only want to know if the service is on or off.
In the binary sensor you can set a scan interval and it will then only update the value based on this.
So what you are looking for is a command line binary sensor and not a command line switch as you only want to know if the service is on or off.
In the binary sensor you can set a scan interval and it will then only update the value based on this.