Well not sure my ideas are like lighting first flash and then fix damages

.
i think something like if i sent im message bedroom,on
now im parser look if item list contains bedroom then parse if there is command on,off,toggle if found execute command bedroom,on
if not maybe im answer no item found.
then if i have timer like wakeup and i sent string wakeup,10:00-11:00
nethome search item list if item called wakeup find if yes then try parse time xx:xx-xx:xx if time found correct format execete command and maybe answer back wakup set 10:00-11:00 and if item not found answer item not found.
i this work realy good in lamps and timers i don't know if there needed control other nethome stuff with im?
so i think that input im string is some how easy to parse and get idea what user want do.
Not sure i m noob coder which can somehow little copy paste code and sometimes get something work
