I'm working on a custom device plugin.
Is it somehow possible to log the states via SQL? I don't my states in the SQL database, even though it's updating in the GUI.
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
jay wrote:You can subscribe to all device changes with indigo.devices.subscribeToChanges(), described here and here, which will have the server forward all device changes to your plugin by calling the following methods in your plugin (if you define them): deviceCreated, deviceUpdated, deviceDeleted.
The same holds true for triggers and variables, and will work for schedules and action groups once we finish those (by GM).
Just call the appropriate indigo.*.subscribeToChanges() in the startup() method of your plugin and you'll begin receiving those messages.
jay wrote:You can subscribe to all device changes with indigo.devices.subscribeToChanges(), described here and here, which will have the server forward all device changes to your plugin by calling the following methods in your plugin (if you define them): deviceCreated, deviceUpdated, deviceDeleted.
The same holds true for triggers and variables, and will work for schedules and action groups once we finish those (by GM).
Just call the appropriate indigo.*.subscribeToChanges() in the startup() method of your plugin and you'll begin receiving those messages.
Users browsing this forum: No registered users and 1 guest