You are here: HomeHome Automationpython-openzwave documentation

python-openzwave documentation

zwave iconThe python-openzwave documentation. This page is the official link to python-openzwave documentation. It contains the last release directly extracted from sources.

 

 

The README : installation instructions, note developpers and others, ...

The library : low level acces to the zwave network. Supports all openzwave features (nodes, values, scenes and controller commands).

The API : high level acces to zwave, map an entire ZWave network in python objects. Support nodes, values and scenes. Contains ozwsh, a shell like program to manage your zwave network.

 

Comments   

 
0 #14 bibi21000 2014-03-25 17:03
Quoting Wylie Swanson:
Did you stop developing this? I see no more downloads on Google...

Downloads are available on the main page of the project on Google Code.
It's no longer possible to add download on Google Code :(
Quote
 
 
0 #13 Wylie Swanson 2014-03-22 04:36
Did you stop developing this? I see no more downloads on Google...
Quote
 
 
0 #12 bibi21000 2013-03-08 23:29
Quoting Stuart:
so unfortunately the ozwsh doesn't show all the values

Use tab to switch between bottom and top of the screen.
When you're on the top of the screen, use up and down to show all values.
Could you post the result of your api_demo here please, it will help me :
code.google.com/p/python-openzwave/issues/list
HTH
Quote
 
 
0 #11 bibi21000 2013-03-08 23:19
Quoting Stuart:
Second code sample is at http://pastebin.com/uKtS20YG

Look at hello_world example for a simple example of the way to use the API (or ozwsh if you want to get a more complex one).
The api_demo example doesn't use notifications, it just shows the possibilities of the api in "auto-mapping" values to dimmers, switches, ...
Please use code.google.com/p/python-openzwave/issues/list or https://groups.google.com/forum/?fromgroups#!forum/python-openzwave-discuss for asking help. Comments on this site are too limited in functionnalities.
HTH
Quote
 
 
0 #10 Stuart 2013-03-08 22:22
Second code sample is at http://pastebin.com/uKtS20YG
Quote
 
 
0 #9 Stuart 2013-03-08 22:00
Thanks for the fast feedback! I've looked at ozwsh but the node I'm using has 42 sensors (it's a 6 port switch with 7 sensors per switch) so unfortunately the ozwsh doesn't show all the values.

With regards to association, when I run api_demo.py I see all the different node values, so I'm assuming that they are "polled" at that time. Here's some output:

http://pastebin.com/HpvSgDd6

Here's the code I'm using:

http://pastebin.com/n0UT2Vgx

Basically I just stuffed Flask right at the end, added some URL routes to spit out data, and thats it. I suspect I probably do need to poll, but when when modifying hello_world to add Flask I also run into the issue where it doesn't seem to "respond" to changes on the node like turning on/off a light.
Quote
 
 
0 #8 bibi21000 2013-03-08 21:41
Quoting Stuart:
Thanks for the code!

Your welcome

Quoting Stuart:


Is there a way I can refresh the information for a specific switch or sensor deliberately? I've looked at the hello_world example but that doesn't seem to "poll" to get new values (for example turning a lamp on still has a power value of 0.0 W). Do you have an idea of how I could achieve this?

Thanks!

Have you tried ozwsh : go to nodes values (/nodes/nodeid/ All) and look at the different values, they should be updated when network change.
You seem to talk about power consumption : sometimes, you need to add association between your controller and the node, so the power consumption is automatically polled. Otherwise you can add poll yourself (using the API or ozwsh).
Maybe you can open an issue with your code inside, I will have a look at it.

Hth
Quote
 
 
0 #7 Stuart 2013-03-08 21:11
Thanks for the code! I'm using to query the zwave network I have here, but I have a question.

Essentially what I'd like to be able to do is to add a Flask web server where I'm able to query node information using a REST like API. This works fine for the beginning, but the node information never updates after the first network.start.

Is there a way I can refresh the information for a specific switch or sensor deliberately? I've looked at the hello_world example but that doesn't seem to "poll" to get new values (for example turning a lamp on still has a power value of 0.0 W). Do you have an idea of how I could achieve this?

Thanks!
Quote
 
 
0 #6 bibi21000 2013-02-24 16:58
Quoting Wylie Swanson:
Any thoughts on when this might be working again with openzwave r643?

It should work :) by the way, it works for me.
Please open an issue here : code.google.com/p/python-openzwave/issues/list and give me some details on your problem.
Quote
 
 
0 #5 Wylie Swanson 2013-02-21 06:23
Any thoughts on when this might be working again with openzwave r643?
Quote
 

Add comment


Security code
Refresh

Free business joomla templates