Skip to content

Instantly share code, notes, and snippets.

App.SCHEDULER = componentContext
// ----------
private fun startRandomSwitches(locationId: String, parameters: RandomSwitchParameters): FixedExecutionTask {
LOGGER.debug("startRandomSwitches: {}", App.GSON.toJson(parameters))
return with(
RandomSwitchGenerator(
locationId,
IlluminationEnvironment.CAV_FACTORY,
parameters.propertiesToSwitch,
mapOf(