@JavaScriptMethod
    public void startAlarm() {
        if (isDemoModeEnabled()) {
            CiLightGlobalConfiguration config = CiLightGlobalConfiguration.get();
            List<Endpoint> endpoints = config.getEndpoints();
            for (Endpoint endpoint : endpoints) {
                try {
                    sendDemoCommand(endpoint, DemoCommand.START_ALARM);
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }