RFXCOM binding refactoring

463 views
Skip to first unread message

Pali

unread,
Dec 12, 2013, 3:20:55 PM12/12/13
to ope...@googlegroups.com
Hi all RFXCOM binding users,

I have refactored rfxcom binding a lot to e.g. make new message adding easier. I own limited set of the devices, so I ask you to test binding before I make a pull request to master branch. Test binding can be found from attachment.

Please inform any problems, but also device types which are working fine.

Regards,
Pali

org.openhab.binding.rfxcom-1.4.0-SNAPSHOT.jar

Les Ash

unread,
Dec 13, 2013, 6:19:15 AM12/13/13
to ope...@googlegroups.com
Hi Pali,

Tried your refactored binding today and can confirm the following devices still work Ok.

Digimax 210  using THERMOSTAT1 packet
X10 modules using LIGHTING1.X10 packet
Marmitek SC9000 security alarm using SECURITY1.X10_SECURITY & SECURITY1.X10_SECURITY_REMOTE packets

Regards
Les

Gert Konemann

unread,
Dec 13, 2013, 8:48:37 AM12/13/13
to ope...@googlegroups.com
Hi Pali,

I tried your binding. My ARC switches work, but the binding does not update my LaCrosse TX17 thermometers. It does not give any errors, but the RF updates from the thermometers are simply missed. Going back to the nightly build of december 12 solved that.

Gert

Op donderdag 12 december 2013 21:20:55 UTC+1 schreef Pali:

Pauli Anttila

unread,
Dec 13, 2013, 9:37:06 AM12/13/13
to ope...@googlegroups.com
Hi Gert,

I have oregon temperature sensors which are working fine. So it's weird that LaCrosse TX17 does not work, because only difference should be the sub type information. Could provide debug log?

Br,
Pali


2013/12/13 Gert Konemann <gert.k...@gmail.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.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.

Red Rum

unread,
Dec 13, 2013, 10:58:05 AM12/13/13
to ope...@googlegroups.com
Hi Pali

Tried it on a couple of Nexa LIGHTNING2.AC devices and i works for both switches and dimmers.
Also receives temperature / humidity reading from Viking sensors.
I have a KD101 but I'm not sure how to test it, new to openHAB.

Pali, do you mind have a look at my BLINDS1 binding?

Pauli Anttila

unread,
Dec 13, 2013, 2:16:43 PM12/13/13
to ope...@googlegroups.com
Hi RedRum,

just added blinds1 message support to binding.

-Pali
org.openhab.binding.rfxcom-1.4.0-SNAPSHOT.jar

Gert Konemann

unread,
Dec 13, 2013, 6:04:16 PM12/13/13
to ope...@googlegroups.com
Pali,

I did a couple of new tests and this time it works fine. Do not know what went wrong earlier today.

Gert

Op vrijdag 13 december 2013 15:37:06 UTC+1 schreef Pali:

Gert Konemann

unread,
Dec 13, 2013, 7:05:46 PM12/13/13
to ope...@googlegroups.com
Pali,

A few minutes after my previous post i found another problem; the ARC switches sometimes did not work always. Openhab seemed very busy polling all devices. With the nightly build they work as expected. Is it possible that the changes require more time for device handling ? Today I have also added a ZWave smoke detector, which is battery powered and therefore goes in "sleep" mode, but is still being polled every 6 seconds to check the battery condition. I will change that tomorrow in a longer time.

Gert

Op zaterdag 14 december 2013 00:04:16 UTC+1 schreef Gert Konemann:

Gert Konemann

unread,
Dec 13, 2013, 7:06:22 PM12/13/13
to ope...@googlegroups.com


Op donderdag 12 december 2013 21:20:55 UTC+1 schreef Pali:
Hi all RFXCOM binding users,

Red Rum

unread,
Dec 14, 2013, 5:49:35 AM12/14/13
to ope...@googlegroups.com
Pali

Thats excellent, I gave it a try but i get error on SubType for BLINDS1 what types are valid?
How do i send a Panic signal to my KD101?

Pauli Anttila

unread,
Dec 14, 2013, 6:40:48 AM12/14/13
to ope...@googlegroups.com
Sorry, I changed sub type naming a little bit. But I returned them to the simple ones, so now you should be able to use same sub types than you have defined earlier.

-Pali


2013/12/14 Red Rum <doo...@gmail.com>
Pali

Thats excellent, I gave it a try but i get error on SubType for BLINDS1 what types are valid?
How do i send a Panic signal to my KD101?

org.openhab.binding.rfxcom-1.4.0-SNAPSHOT.jar
Message has been deleted

Les Ash

unread,
Dec 14, 2013, 7:43:13 AM12/14/13
to ope...@googlegroups.com
Hi Pali,

     I have just noticed this morning the SECURITY1.X10_SECURITY packet does not appear to be reading sensors  BatteryLevel anymore.

Les

On Thursday, December 12, 2013 8:20:55 PM UTC, Pali wrote:

Pauli Anttila

unread,
Dec 14, 2013, 8:44:06 AM12/14/13
to ope...@googlegroups.com
Hi Les,

good catch. I introduced new functionality to message interface, where supported value selectors can be asked and I have missed to to add battery level value selector to security1. Could you try again.

-Pali


2013/12/14 Les Ash <les....@gmail.com>
org.openhab.binding.rfxcom-1.4.0-SNAPSHOT.jar

Red Rum

unread,
Dec 14, 2013, 9:14:23 AM12/14/13
to ope...@googlegroups.com
Thank you Pali it works excellent.
Im new to openhab so i don't know how to trigger my Smoke detektor KD101, would like to send a Panic signal.
Any one know how to do this.

RedRum

Den torsdagen den 12:e december 2013 kl. 21:20:55 UTC+1 skrev Pali:

Pauli Anttila

unread,
Dec 14, 2013, 11:12:17 AM12/14/13
to ope...@googlegroups.com
I have not implemented or used security1 message, but it seems that panic signal is not implemented.

-Pali


2013/12/14 Red Rum <doo...@gmail.com>
Thank you Pali it works excellent.

Les Ash

unread,
Dec 14, 2013, 4:09:22 PM12/14/13
to ope...@googlegroups.com
Pali,
        Great work, the batterlevel is now working again.  

To send a panic command from openhab use something like this below:-

in items
String TxPanic           { rfxcom=">690101:SECURITY1.X10_SECURITY:Status"}

in rules

rule "send panic command"
when
    Item SendPanic received changed to ON
then
    sendCommand(TxPanic,"PANIC")
end

Les

Pauli Anttila

unread,
Dec 15, 2013, 6:41:44 AM12/15/13
to ope...@googlegroups.com
Les,

you are right about the panic command. I totally missed status as a string type.

So RedRum, try Les's rule but replace X10_SECURITY by KD101 (and of course valid sensor/unit id).

Br,
Pali




2013/12/14 Les Ash <les....@gmail.com>
Message has been deleted

Patrik Åkerfeldt

unread,
Dec 20, 2013, 9:01:23 AM12/20/13
to ope...@googlegroups.com
Is it true that the binding only supports /dev/ttyUSB0 and /dev/ttyUSB1 for Linux? I tried to use my sym-linked /dev/rfxcom and it doesn't seem to accept that device. Which seems to be a very strange requirement. Maybe it's something wrong on my side but I had it working with /dev/ttyUSB0 without any problems.

/på

Pauli Anttila

unread,
Dec 20, 2013, 9:25:31 AM12/20/13
to ope...@googlegroups.com
Hi Patrik,

Is it true that the binding only supports /dev/ttyUSB0 and /dev/ttyUSB1 for Linux?

Device name is not limited on the rfxcom binding, but directly passed to the serial library. Can you see any errors on the log?

Br,
Pali


2013/12/20 Patrik Åkerfeldt <patrik.a...@gmail.com>

David

unread,
Dec 20, 2013, 11:26:47 AM12/20/13
to ope...@googlegroups.com
Hi Patrik,

If you use a non-default port (i.e. default = /dev/ttyUSBx) you need to pass your serial port as a parameter when you start openHAB.
This is what I added to my openHAB startup script: -Dgnu.io.rxtx.SerialPorts=/dev/ttyRFXCOM:/dev/ttyZWAVE
If you have more than one port they are separated by the : sign.
Restart openHAB and it should work.

Regards,
David


Op vrijdag 20 december 2013 15:25:31 UTC+1 schreef Pali:

christoph....@gmail.com

unread,
Aug 9, 2014, 3:46:00 PM8/9/14
to
Dear Pali,

I wonder if you have any plans to implement lighting 4 binding?
Have got a few switches but only one of them are working with ARC ....

If already sorry I couldnt find it in the wiki....

I have found the solution - it is easy to change coding of some switches to standard intertechno (lightning 1)
easy calculator http://isn-systems.com/tools/it2elro/
maybe an idea to include in the wiki?

thanks a lot
Christoph

Pauli Anttila

unread,
Aug 15, 2014, 3:01:15 PM8/15/14
to ope...@googlegroups.com
Hi Christoph,

I don't have any lightning4 devices, so I don't have any plans to implemented it either. But binding is developed so that new message support should be easy to add, so if you have any programming knowledge, you should manage to do it (just take one of current lightning message to base).

Br,
Pali


2014-08-09 22:46 GMT+03:00 <christoph....@gmail.com>:
Dear Pali,

I wonder if you have any plans to implement lighting 4 binding?
Have got a few switches but only one of them are working with ARC ....

If already sorry I couldnt find it in the wiki....

thanks a lot
Christoph

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages