Thank you!
Finally got this simple script working:
#define BUFF_SIZE 256
char szBuffer[BUFF_SIZE];
while(1)
{
szBuffer = getinputtext(0);
if (strcmp(szBuffer, "Sleeping") == 0)
{
setoutput(0, 1);
}
if (strcmp(szBuffer, "PausedCleaning") == 0)
{
setoutput(0, 2);
}
if (strcmp(szBuffer, "Cleaning") == 0)
{
setoutput(0, 3);
}
if (strcmp(szBuffer, "Return") == 0)
{
setoutput(0, 4);
}
if (strcmp(szBuffer, "Charging") == 0)
{
setoutput(0, 5);
}
sleep(1000);
}
Now it doesn't set of the alarm all the time:)