Page 1 of 1

Polling/Notifications of device changes

Posted: Monday 24 April 2017 21:58
by kdschlosser
I am making a plugin to send device changes to another piece of software. Well I am trying to.

I need to know the things below and how to go about doing it:

Is there a way to receive notifications if a device has changed
Is there an instance or an iterable that contains all of the devices presently added to Domoticz
Is there a way for me to change a device (to turn a light on or off)

Re: Polling/Notifications of device changes

Posted: Tuesday 25 April 2017 1:18
by Dnpwwo
@kdschlosser,

The plugin framework is designed to control external hardware. What you are describing is the device based events already in Domoticz.

Have a look at http://www.domoticz.com/wiki/Events#Lua ... _Interface, the Python version should be more mainstream soon.

Re: Polling/Notifications of device changes

Posted: Tuesday 25 April 2017 5:52
by kdschlosser
@Dnpwwo

I thank you for your help.
But from a quick glance over the information is about how to access the information I need from within a Lua script but not from within python.