I am retrieving and collecting the id's for all "lamps" at startup, building a lookup table. This then gets updated regularly (it follows the setting of the socket time out so if you have 120 sec it will be every 2 minutes) This means that you can add items in ONH while all systems are running and next round the lookup table will be updated.
The format of the action is like the old one. Here is a 'copy as python' of one of my actions:
Code: Select all
eg.plugins.ONH.SendRESTcommand(u'Dummy', u'Give the action a name', u'toggle', 8020)Code: Select all
print eg.plugins.ONH.plugin.obj_idBR Walter