Page 1 of 1
Full Python API ?
Posted: 21 Apr 2013 18:39
by dickymoe
Hi, I'am now using Z-cloud (waiting for automation in Z-Way).
Where can I found a complete documentation for the API ? (RulesManager, Scenes...)
There is very few things in user manual but for make advanced python script it's not easy without the API !
Thanks
There is no full API
Posted: 21 Apr 2013 18:39
by PoltoS
There is no full API description available and we will certainly not do it, since it is almost deprecated. Most of API commands are same as in RaZberry projects (like ZWaveAPI.deevices[2].instances[0].Basic.data.level.value or .Basic.Set(255)). But some features are different. The log will tell help you to see the error if you do something wrong using this API.
OK it's deprecated but how
Posted: 21 Apr 2013 18:39
by dickymoe
OK it's deprecated but how can I do to lunch scene for exemple ?
One exemple : If a open the light in device[5] on between 11pm and 6am start the scene "toto" ?
If a open the light in device[5] off between 11pm and 6am start the scene "off toto" ?
The better way is to run JS
Posted: 21 Apr 2013 18:39
by PoltoS
The better way is to run JS console in Chrome and "sniff" these commands. It should be /Scene/Activate/
Beginner / Python scripting
Posted: 21 Apr 2013 18:39
by ollie
I am starting from scratch... I am trying to collect simple data for test through a python script using -ZWaveAPI.devices[1].data.vendorString.value - but the return I have is ZWaveAPI is not defined. Do I need to import or declare something at the beginning of the script ?