I’m interested in a binding for SenecIES devices, see: http://www.senec-ies.com/
I already reverse-engineered the HTTP communication here and made a python script, which works well, but I have no idea how to convert/write the same in Java as a binding. I followed the instructions here on Linux to setup the IDE, but it never worked without getting a ton of error messages.
that’s sound interessting. I will get my senecIES next week. I hope you will get to run the connection until then
If you wait a few days I will enter my solution for connecting TA (technische Alternative) CMI Device via Modbus and openHAB RestAPI.
As “middleware” I use a nodeJS program which easily connects to modbus as well as to the RestAPI.
nodeJS also has http Clients so it should be very easy to make your connection. But python sounds good as well.
Do you realy have a direct connection to the Senec device or do you connect via a internet page?
Later on it would be realy nice to have a full integrated binding solution. At the moment I did not try to start with that.
I still have to deal with more fundamental problems.
I’ve got access to the device via local network, which is unencrypted.
Just image like my script is simply sending the same data packages like your browser would do, when you are using the local monitoring.
Well, the problem is that you can’t use Python in OpenHAB2, except you convert the Python script into a commandline application and execute the Python interpreter every x seconds. However, I used this on my desktop for testing, but no chance on a NAS, which I’m using for OpenHAB2 currently.
I wish someone could create a example binding, explain how I can embed my code, so I could convert my script into a binding (Java).
This is a working way. At the first step you can start your python skript via a cron job every x seconds or minutes. This will work pretty well.
If you have a nas, it should be no problem to implement such a cron job. The only question is: Has your nas a python interpreter.
I am using a raspberryPI for that kind of jobs. It sound like overkill, but you only invest 30€ and you have a small little computer with network connection. On the raspberry python is no problem and the power consumption is realy small.
I’am running openhab on a raspberry PI as well.
thank you for this great Binding. It works great with my two Senec Home V2 10.0!
Can you put the binding in the official repository? I think that many users would be pleased about the binding.