Hi Pali,
Good to know there are more people interested in the rfxcom in combination with
openHAB.
Yes, I started with some work for the rfxcom binding. But, it was more
experimenting with both openHAB and rfxcom. I took the serial binding as a
start. The binding works ok, but you need rules to actually switch items. I
also want openHAB to react on signals from the (KAKU) remote control. Then
openHAB knows the item status has been changed.
The biggest problem I’m facing is the fact that rfxcom has a lot of options/configuration. I hardcoded some stuff for KAKU & X10 switches, but it would be better to store settings in a properties file. There are probably too many setting for openhab.cfg
I will
upload what I have now. You can use the binding by adding an item like this
String SRFX "SRFX"
(Multimedia) {
simplerfx="COM4" }
to your items file.
I also did some work on a binding that implements ManagedService, but got stuck in loading this binding.
Cheers,
David
Here is a zip file with the code for the simplerfx binding.
--
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/-/KMtEToibciUJ.
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.
<org.openhab.binding.simplerfx.zip>
Hi
and thanks for the information David.
Meanwhile I started RFXCOM binding development. I tried to make frame work as modular as possible.
Current "proto" type situation:
- only receiving is supported
- only Lighting2 (0x11) and Temperature/Humidity (0x52) messages are supported.
- no RFXCOM controller configuration support
Binding configuration examples:
Switch rfxcomBtn1 { rfxcom="<636602.1:Command" }
Number rfxcomBtn1SignalLevel { rfxcom="<636602.1:SignalLevel" }
Dimmer rfxcomBtn1DimLevel { rfxcom="<636602.1:DimLevel" }
Number TemperaturTest { rfxcom="<2561:Temperature" }
Number HumidityTest { rfxcom="<2561:Humidity" }
String HumidityStatusTest { rfxcom="<2561:HumidityStatus" }
Debug data:
2012-12-18 21:32:30.372: 0B1100000009B6BA01000070
21:32:30.373 DEBUG o.o.b.r.i.RFXComConnection[:113] - packetReceived:
Packet type = LIGHTING2
- Seq number = 0
- Sub type = AC
- Id = 636602
- Unit code = 1
- Command = ON
- Dim level = LEVEL0
- Signal level = 7
2012-12-18 21:32:30.373: 0B1100000009B6BA01000070
21:32:30.374 INFO runtime.busevents[:46] - rfxcomBtn1 state updated to ON
21:32:30.376 INFO runtime.busevents[:46] - rfxcomBtn1SignalLevel state updated to 7
21:32:30.377 INFO runtime.busevents[:46] - rfxcomBtn1DimLevel state updated to 0
21:32:31.172 DEBUG o.o.b.r.i.RFXComConnection[:113] - packetReceived:
Packet type = LIGHTING2
- Seq number = 0
- Sub type = AC
- Id = 636602
- Unit code = 1
- Command = OFF
- Dim level = LEVEL100
- Signal level = 7
21:32:31.173 INFO runtime.busevents[:46] - rfxcomBtn1 state updated to OFF
21:32:31.175 INFO runtime.busevents[:46] - rfxcomBtn1SignalLevel state updated to 7
21:32:31.176 INFO runtime.busevents[:46] - rfxcomBtn1DimLevel state updated to 100
2012-12-18 21:27:03.257: 0A5201000A0100FB200269
21:27:03.257 DEBUG o.o.b.r.i.RFXComConnection[:113] - packetReceived:
Packet type = TEMPERATURE_HUMIDITY
- Seq number = 0
- Sub type = THGN800_THGR810
- Id = 2561
- Temperature = 25.1
- Humidity = 32
- Humidity status = NORMAL
- Signal level = 6
- Battery level = 9
21:27:03.259 INFO runtime.busevents[:46] - HumidityTest state updated to 32
21:27:03.261 INFO runtime.busevents[:46] - TemperatureTest state updated to 25.1
21:27:03.262 INFO runtime.busevents[:46] - HumidityStatusTest state updated to NORMAL
Curently only serial device is supported, but TCP (RFXLAN) device support should be easy to add. Also new message support should be easy, just new class for every message type which handles message encoding/decoding and then converter for Openhab data types.
Prototype is on my clone repo: http://code.google.com/r/paulianttila-ihc-binding/source/browse
I only have Oregon temperature/humidity sensors and some Lightning2 power sockets/remote, so I'm not able to test any other devices.
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Thomas, thanks. But that seems rather silly, this distributed development is new to me. So I will follow your advice nonetheless..
I have added X10 lighting support and my Harrison curtains can now be controlled through openhab. Excellent!
I have a RF remote (kaku) with on/off buttons. I also have an RF actuator (kaku) for dimming or switching a light on and off.
My question is: What is the best way to link the remote to the light? If I directly program the light to react to the remote, the openhab userinterface will show the remote to the correct on / off switch but not the lamp itself. And if I press the remote button on openhab, no signal is sent (based on the current rfxcom binding code).
Should I make a binding rule to allow for receiving and sending using 1 item in openhab?Or should I use rules to react to remote and light changes?
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/caRDCmvNdbE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
Can I update the wiki on rfxcom myself?I cannot find an edit button on the page...
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/caRDCmvNdbE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.