FS20 in openHAB

1,993 views
Skip to first unread message

karls...@googlemail.com

unread,
May 20, 2012, 11:42:11 AM5/20/12
to ope...@googlegroups.com
Hi,
I have been looking for cheap home automation hardware and found the FS20 RF hardware sold by Conrad and ELV in germany to be much cheaper than anything else. I also like the system because it doesn't require any wiring in my apartment.

The standard open source server for FS20 home automation seems to be FEHM but i like the openHAB approach much better. Are there any plans to have a direct FS20 binding using hardware like this: http://shop.busware.de/product_info.php/cPath/1/products_id/29 ?

Or is there any way i could get FS20 hardware to work in openHAB right now?

Best regards
karl


Thomas Eichstädt-Engelen

unread,
May 20, 2012, 3:49:24 PM5/20/12
to ope...@googlegroups.com
Hi Karl,

if you can understand german you will find a detailed description here http://knx-user-forum.de/wiregate/10003-plugin-cul-fuer-ks300-fs20-fht-hms-co.html howto flash the mentioned USB-Adapter with a special firmware. After having such a flashed USB-Adapter in hand it should be not soooo difficult to connect to openHAB via some kind of serial binding.

Since i do not own any FS20 Hardware i do not plan to implement such a binding. But i will be happy to assist you with any development you are going to implement.

Regards,

Thomas E.-E.



--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/eY5RWSS3VMkJ.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.

Tobias Wegner

unread,
May 29, 2012, 4:23:58 PM5/29/12
to ope...@googlegroups.com
Hi Thomas and Karl,

I own the mentioned CUL FS20 Transceiver and developed an openhab binding for my phd thesis. I have attached the library for accessing the hardware (CUL4Java) as well as the FS20 binding under GPL.It works well at my home, so if you have any problems or wishes please tell me. 

An item is defined like this:
Switch wz_DeckenlichtSwitch "Deckenlicht" (wz) { fs20="010A 00" }

Where "010A 00" is the fs20 address made by home code 010A and device address 00.

The cul hardware to use has to be defined by the Java property "cul.port" like

-Dcul.port=/dev/ttyACM0

in openhab/server/eclipse.ini.

Regards,
Tobias Wegner

Tobias Wegner

unread,
May 29, 2012, 4:29:39 PM5/29/12
to ope...@googlegroups.com
Somehow the attachments did not show up in my first answer...
CUL4Java.source_1.0.0.201205292202.jar
CUL4Java_1.0.0.201205292202.jar
org.openhab.binding.fs20.source_1.0.0.201205292215.jar
org.openhab.binding.fs20_1.0.0.201205292215.jar

Mihail Panayotov

unread,
May 30, 2012, 4:55:03 AM5/30/12
to ope...@googlegroups.com
Nice! Did you tested it with Home Matic hardware? I think these systems are pretty much the same.

Kai Kreuzer

unread,
May 30, 2012, 7:16:02 AM5/30/12
to ope...@googlegroups.com
Hi Tobias,

Very cool, I will try to have a look at it on the weekend and will come back to you then.

Thanks!
Kai

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/yW_J41CbAXUJ.

To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.
<CUL4Java.source_1.0.0.201205292202.jar><CUL4Java_1.0.0.201205292202.jar><org.openhab.binding.fs20.source_1.0.0.201205292215.jar><org.openhab.binding.fs20_1.0.0.201205292215.jar>

Kai Kreuzer

unread,
Jun 2, 2012, 4:17:25 PM6/2/12
to ope...@googlegroups.com
Hi Tobias,

Is your CUL4Java library still work in progress or are you finished with it? Just asking as I saw a lot of missing exception handling and System.out statements in the sources, so I guess you won't consider it to be final yet. Is it or will it be available anywhere on the net?

Do you want to officially contribute your code to the openHAB project? If so, we would have to be clear about where CUL4Java comes from (an external dependency or having the sources in openHAB as well?). It would also be best to have the code directly available in a cloned repository to pull it from.

Let us know what your intentions are and where you might need help.

Cheers,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/K8lw1eeWRn4J.

Tobias Wegner

unread,
Jun 3, 2012, 9:08:31 AM6/3/12
to ope...@googlegroups.com
Hi Kai,


Is your CUL4Java library still work in progress or are you finished with it? Just asking as I saw a lot of missing exception handling and System.out statements in the sources, so I guess you won't consider it to be final yet. Is it or will it be available anywhere on the net?

yes you are right, it is still work in progress. I am also working on FHT (Heating control ELV FHT80b 1-Raum-Heizungsregelung pro (1x FHT80B + ...), which the CUL supports, too. Unfortunately it is not very stable yet. The library is currently not available on the net as I am currently working on a local git repository. Nevertheless I already considered moving to github. 
 
Do you want to officially contribute your code to the openHAB project? If so, we would have to be clear about where CUL4Java comes from (an external dependency or having the sources in openHAB as well?). It would also be best to have the code directly available in a cloned repository to pull it from.

Yes, sure. I am glad to help :-) I think the github way would be ok for this?
 
Let us know what your intentions are and where you might need help.

As I already said, I am working on a FHT binding, too. And I have a basic IRtrans (IP, USB IR Transceivers, www.irtrans.de) binding as well. 

By the way during debugging I observed that after reloading my bundle the binding configuration is not updated until I trigger a complete reload by altering the items file on disk. Am I doing anything wrong? I think the configuration should be updated as the BindingConfigReader appears in service registry?

Cheers,
Tobias

Tobias Wegner

unread,
Jun 3, 2012, 9:13:18 AM6/3/12
to ope...@googlegroups.com
Nice! Did you tested it with Home Matic hardware? I think these systems are pretty much the same.

No, unfortunately I do not own any Home Matic hardware. But regarding to http://fhemwiki.de/wiki/CUL_HomeMatic_und_FS20 (in German) it is not possible to support FS20 and Home Matic at the same time as FS20 uses amplitude modulation and Home Matic is frequency modulated. So you would need at least two CUL's.

Cheers,
Tobias

Kai Kreuzer

unread,
Jun 3, 2012, 3:15:01 PM6/3/12
to ope...@googlegroups.com
Hi Tobias,

Yes, sure. I am glad to help :-) I think the github way would be ok for this?

For the CUL part yes, for the openHAB binding part it would be nice to have it in a Google Code Mercurial repo (simply in a cloned openHAB repo at http://code.google.com/p/openhab/source/clones).

As I already said, I am working on a FHT binding, too. And I have a basic IRtrans (IP, USB IR Transceivers, www.irtrans.de) binding as well. 

Would you want to liaise with Karel on this as he is doing some heavy-lifting on IR at the moment? Would be nice to get to a solution that works well for all.

By the way during debugging I observed that after reloading my bundle the binding configuration is not updated until I trigger a complete reload by altering the items file on disk. Am I doing anything wrong? I think the configuration should be updated as the BindingConfigReader appears in service registry?

Yes, you are right, that is an open issue and needs to be fixed. If you like, you can enter an issue in the tracker so that it won't be forgotten.

Cheers,
Kai

rossta...@googlemail.com

unread,
Aug 20, 2012, 12:12:19 PM8/20/12
to ope...@googlegroups.com
Hi all,
I just stumbled uppon this project.
I have also started an CUL/CUNO Java library.

http://code.google.com/p/jculfw/

It is also still work in progress.
I will upload the first code there within the next days. I did not know that someone else was also working on this.

My library works already with FS20 devices and also for IR and for S300th Temperature sensors. Homematic is not tested yet.

I will have a look at Tobias Wegners work and perhaps we can join this to make a good library?
I'm also interested in helping to build a binding. But first I have to get a little bit a deeper look at openHAB and if this is really what I'm looking for.

Have fun,

Bernd Rosstauscher

waitz.s...@gmail.com

unread,
Aug 21, 2012, 3:55:13 AM8/21/12
to ope...@googlegroups.com, rossta...@googlemail.com
Hey all,
this is a simple +1 of an enduser who likes to run openHAB with the FS20 devices.
I'm a sysadmin and can help with testing/debugging early builds if needed.
Thanks for your work.
BR Sebastian

Thomas Eichstädt-Engelen

unread,
Aug 21, 2012, 4:10:45 AM8/21/12
to ope...@googlegroups.com
Hi Bernd,

> I will have a look at Tobias Wegners work and perhaps we can join this to make a good library?
> I'm also interested in helping to build a binding. But first I have to get a little bit a deeper look at openHAB and if this is really what I'm looking for.

Joining forces with Tobias could be good idea. Let us know, if you have any further question.

Regards,

Thomas E.-E.

Thomas Eichstädt-Engelen

unread,
Aug 21, 2012, 4:32:36 AM8/21/12
to ope...@googlegroups.com
Hi Sebastian,

are you familiar with starting java applications in daemon mode (on Linux based systems). openHAB is still missing an "init.d" script.


Regards,

Thomas E.-E.

openhab

ralf.klueber

unread,
Aug 21, 2012, 5:04:37 AM8/21/12
to ope...@googlegroups.com
Hi,

Following up on this one.

Is there a chance to start openhab automaticaly/in daemon mode on osx?

And if so, how to connect to the "openhab commandline"? Via telnet on a specific port?

Thanks in advance. 
-- 
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/J-x9ntd2BcAJ.

To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.

<openhab>

Thomas Eichstädt-Engelen

unread,
Aug 21, 2012, 5:14:58 AM8/21/12
to ope...@googlegroups.com
Hi,

> Is there a chance to start openhab automaticaly/in daemon mode on osx?

to be honest?! i have no clue ... after quick research i found this https://confluence.atlassian.com/display/CROWD/Setting+Crowd+to+Start+Automatically+on+Mac+OS+X. Since the atlassian suite is based on java as well there could be something to learn for us.

> And if so, how to connect to the "openhab commandline"? Via telnet on a specific port?

yes! please add the port after -console in your startscript (see http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html for even more parameters). Then you should be able to connect via telnet

Cheers,

Thomas E.-E.

waitz.s...@gmail.com

unread,
Aug 24, 2012, 4:08:24 AM8/24/12
to ope...@googlegroups.com
Hey Thomas,
I'm not so familiar with Java daemons. As a workaround you could write the initial wrong PID into pidfile and update the pidfile according to the correct PID.
the ps command mentioned should do the trick.
Alternativly, there are a few java daemon start scripts available (e.g.http://www.source-code.biz/snippets/java/javaDaemonTest.sh.txt)
From the first look the actions they do sound reasonable to me.
BR

chri...@rockrohr.de

unread,
Aug 26, 2012, 9:05:27 AM8/26/12
to ope...@googlegroups.com, karls...@googlemail.com
Hi everybody,
is this cul4java project still in progress? Is there any documentation? I got it running on com3, but could not yet configure any of my TH300S. 

Is the sources code available as well?

Cheers,
Christian 

rossta...@googlemail.com

unread,
Aug 26, 2012, 6:48:54 PM8/26/12
to ope...@googlegroups.com, karls...@googlemail.com, chri...@rockrohr.de
Hello Christian,

I´m currently building my own CUL /CUNO binding. The one that is attached to this post above does only support real FS20 devices and not TH300S which is a sensor that has his own protocoll and does NOT speak FS20.
Hopefully I will find the time to provide my CUL binding within the next week. My plans are to support FS20, TH300S, IR commands (I own a CUNO that support this) and FHT devices.
In the future also homematic and perhaps one wire, but I have no devices to test this yet.

I created already a clone at http://code.google.com/r/rosstauscher-cul-binding/source/browse but did no check in any code right now. This will come soon.

Have fun,
- Rossi

Thomas Eichstädt-Engelen

unread,
Aug 27, 2012, 7:04:27 AM8/27/12
to ope...@googlegroups.com
Hi,

what i understood from the discussion here (describing a CUL perl-plugin for wiregate)


one could use simple serial commands to communicate with the CUL-Device. Assuming we have Karel's new serial binding in place this could be solution, too.

Regards,

Thomas E.-E.


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/DLoWY9e637kJ.

Tobias Wegner

unread,
Aug 29, 2012, 6:39:26 PM8/29/12
to ope...@googlegroups.com, karls...@googlemail.com, chri...@rockrohr.de
Hi Christian,
 
is this cul4java project still in progress? Is there any documentation? I got it running on com3, but could not yet configure any of my TH300S. 

unfortunately, I only worked on FHT / FS20 devices, which work quite fine for me now.
 
Is the sources code available as well?

I have pushed the code to github: https://github.com/tobiaswegner/CUL4Java

Kind regards,
Tobias

Tobias Wegner

unread,
Aug 29, 2012, 6:45:33 PM8/29/12
to ope...@googlegroups.com, rossta...@googlemail.com
Hi Bernd,
 
I will have a look at Tobias Wegners work and perhaps we can join this to make a good library?
I'm also interested in helping to build a binding. But first I have to get a little bit a deeper look at openHAB and if this is really what I'm looking for.


this is a good idea, especially, as I do not have devices for all the procotolls the culfw supports. Btw I pushed my repository to github:


Regards,
Tobias

rabi...@gmail.com

unread,
Sep 21, 2012, 6:48:51 AM9/21/12
to ope...@googlegroups.com, rossta...@googlemail.com
Thank you for sharing your code! I have quite a few different FS20 devices at home and I am more than happy to help integrating FS20 via CUL/culfw into OpenHAB. I am familiar with the basics of OSGi and Java is my primary language. I already set up the OpenHAB development environment according to  http://code.google.com/p/openhab/wiki/IDESetup, added CUL4Java have it running by modifying "openHAB Runtime.launch" to start the bundle. 
Sending FS20 codes from the console works. But I can not make the item configuration work:

Dimmer wz_Deckenlicht "Decke" (wz) { fs20="1984 11" } 

Also I wonder how the association between "dim 50%" and the FS20 value "05" is resolved. I don't ask for a complete walkthrough, just a few hints would be nice to keep me as busy as possible during the weekend.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages