add the FOR AFTER RANDOM command to the API
Posted: Tuesday 15 November 2016 22:57
Complete the switch command API with the FOR, RANDOM, AFTER keyword.
Today whe have :
/json.htm?type=command¶m=switchlight&idx=99&switchcmd=On
I need switchcmd=On FOR xxx
This is available in LUA commandArray. but not in the API. (It's a rare case where the API is less complete than LUA).
Why is it important ?
For some accurate timer, (Ex : alarm system triggered in 30 sec) I need the AFTER 30 sec keyword to trigger some switches. But I can't use LUA because "by design" LUA, doesn't trigger the eventSystem for the virtual switch. Only the use of API / GUI trigger the event.
So I'm fucked.
Today whe have :
/json.htm?type=command¶m=switchlight&idx=99&switchcmd=On
I need switchcmd=On FOR xxx
This is available in LUA commandArray. but not in the API. (It's a rare case where the API is less complete than LUA).
Why is it important ?
For some accurate timer, (Ex : alarm system triggered in 30 sec) I need the AFTER 30 sec keyword to trigger some switches. But I can't use LUA because "by design" LUA, doesn't trigger the eventSystem for the virtual switch. Only the use of API / GUI trigger the event.
So I'm fucked.