{
var numh = (192.168.1.102:8083/JS/Run/this.controller.devices.get("CounterTriggeringSensor_21").get("metrics:level"));
for(numh;numh>0;numh-1){
192.168.1.102:8083/JS/Run/zway.devices[5].instances[0].commandClasses[0x20].Set(255);
192.168.1.102:8083/JS/Run/setTimeout(function(){zway.devices[5].instances[0].commandClasses[0x20].Set(0)},3000);
}
}
So a variable is created aut of a CounterTriggerin Sensor . The Switch should start numh times for a short time.
But it always says "Unexpected Number", but i have really no idea, what is wrong.
Could someone may help?
Greetings