The problem is that whenever you change the settings it sounds the alarm. The way to do it would be to set the settings to the default sound/volume every time in the on() method.
I’ve updated the gist though I haven’t tested it:
The problem is that whenever you change the settings it sounds the alarm. The way to do it would be to set the settings to the default sound/volume every time in the on() method.
I’ve updated the gist though I haven’t tested it: