So I basically want to:
a) in first instance extend the platform to monitor a feed of solar data & trigger remote switches based on logic (see below)
b) perform it via extending an existing home automation piece of software that:
supports for X-wave, X10 etc out of the box
support monitoring over internet (browser based - i expose my webserver via port forwarding)
ideally would be open-source (but otherwise highly extensible closed source)
extensibility mechanism would need to have flexibility of some language support (if/then, etc)
Specific initial requirement details:
[1] Receive a feed of input data from power consumption/solar generation:
it is possible to get a feed of this data into a PC via USB cable
[2] Process this data: My code (where I extend the platform) would review every few minutes and make decisions re switches devices on/off
[3] Trigger remote Power Switches (Z-wave)
There’s already a CurrentCost plugin which will get the instantaneous power for up to ten appliances.
Combined with a plugin like the Program Logic Event Generator you could turn on or off appliances based on how much sunshine you’re getting.
Logging data to your PC is less easy but people have done it.
Do NOT port-forward your Vera for access outside your home network. Instead you could run a VPN server on your LAN, or use Vera’s free cloud remote access service.
Do you mind if I ask a question to better understand VeraLite versus alternatives, noting the VeraLite can do what I need. I’m wondering how it would compare as a solution in general to if you went the Raspberry Pi with Z-wave USB and software like http://www.domotiga.nl/ which has CurrentCost integration (via serial) is a standard module (I’m told).
That’s a bit outside my experience. The last time I tried to do Z-Wave automation with Linux, it was three or four years ago. It was frankly awful. Maybe it’s improved since then. But at the time I chose Vera as something I would actually use.
It doesn’t have to be either/or. With a bit of programming you can federate Vera and another computer and share data between them. Vera’s not open source, but it’s open.
You still can’t use Z-Wave Locks with any of the open source Z-Wave projects.
The Secure Z-Wave protocols are locked up with NDAs and very expensive development kits.
This was a non starter for me.
Ad a developer, there is a huge difference in the level of abstraction at the Z-Wave protocol level (provided by Z-Wave devices) compared with what you do using Vera.
The comparison is kind of like the differences in programming for Socket vs Ajax Requests.
[quote=“RichardTSchaefer, post:5, topic:179357”]Ad a developer, there is a huge difference in the level of abstraction at the Z-Wave protocol level (provided by Z-Wave devices) compared with what you do using Vera.
The comparison is kind of like the differences in programming for Socket vs Ajax Requests.[/quote]
What are the limits of Vera from a programmers point of view Richard? Is there a way you can give me an indication. For example:
a) if you need to can you call out to your own functions written outside Vera to do calculations then provide a response to Vera? Could your own program (a guess I mean not the LUA Vera scripting language) be hosted on Vera?
b) another variation of the question above might be if you have a new device and want to write the code to allow input to come into Vera to be part of the rules processing that then determines what Zwave devices to switch on/off
[quote=“mixedup, post:6, topic:179357”]What are the limits of Vera from a programmers point of view Richard? Is there a way you can give me an indication. For example:
a) if you need to can you call out to your own functions written outside Vera to do calculations then provide a response to Vera? Could your own program (a guess I mean not the LUA Vera scripting language) be hosted on Vera? [/quote]
Depends a bit on what you mean by ‘outside Vera’, but yes, you can, using a variety of protocols including HTTP or any other socket-based communication such as TCP or UDP. Lua is not Vera’s scripting language per se (in fact, a really powerful language in its own right), but the UPnP extensions (Luup) are Vera specific. At its heart, Vera is just a Unix system (actually, OpenWRT) so you can do almost anything you like with it, albeit within its limitations of processing power and memory.
b) another variation of the question above might be if you have a new device and want to write the code to allow input to come into Vera to be part of the rules processing that then determines what Zwave devices to switch on/off
Absolutely. Again, HTTP is easy, both ways, from Vera.
I would look through the Vera App Store … These are all written with the SAME API that you would have access to …
Many started out as private developments to meet an individual need … and turned into solutions that others now utilize and often expand upon.
thanks Richard - I’m coming around to VeraLite, but to try to understand the constraints you’ve highlighted earlier with a specific example…so how about from zwave.com.au their ZWave USB and ZWave power switch? (see items below) Would this not work if you had domotiga on a Rasp Pi (or http://www.opensourceautomation.com/ on windows) using OpenZwave? Or if it does work you’re saying you have to work at a lower level? Is there a way to give an example? Like would it be a one liner to switch a device on in VeraLite LUA, but many lines of code getting into the ZWave protocol to do the same thing in OpenZwave perhaps then?
There are other products such as the homeseer program or as you identify open ZWave, that do not have an embedded ZWave and rely on external USB devices. In addition, originally Vera did not have AU frequencies and needed an external device.
For normal ZWave device control, Vera provides this functionality for devices, with open ZWave you design the logic and functions.
The cost between RPi, dongle and software in not significantly different to a veralite; however, the fit for purpose, fit for immediate use come with the Vera.
By the way seeing you are using Australia links, Smarthome.com.au 25% off and the Veralite is $149 until 17 Feb 2014.
Vera has paid the license to access the Layer that talks directly to the Z-Wave dongles … As a result they have access to the API to send encrypted information to locks. I can use open source Z-Wave drivers on the same Z-Wave dongles … But since I do not know how, and no one has been able to reverse engineer it, or are afraid of legal consequences , to document these api’s.
In Vera you turn on a Light with a call like:
luup.call_Action(“ServiceName”, “VariableName”, Value, DeviceID);
At Z-Wave level you have to build packet of bytes that represent the commands, appropriate arguments, and send out an appropriate byte stream … You have to handle appropriate bi-direction communication handshakes, and error recovery. Response can be inter mixed with Z-Wave device initiated packets. Some times you get a communications error because two devices (Vera and some other Device) are talking at the same time. Some times packets get lost … and need to be sent again. Vera does a nice job of taking care of these boring but necessary details.