Polling/Notifications of device changes

Python and python framework

Moderator: leecollings

Post Reply
kdschlosser
Posts: 15
Joined: Sunday 23 April 2017 3:14
Target OS: Windows
Domoticz version:
Contact:

Polling/Notifications of device changes

Post 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)
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Polling/Notifications of device changes

Post 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.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
kdschlosser
Posts: 15
Joined: Sunday 23 April 2017 3:14
Target OS: Windows
Domoticz version:
Contact:

Re: Polling/Notifications of device changes

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest