underpop
(underpop)
June 11, 2016, 6:42am
1
Hello, I have a Rfxcom to control a rollershutter that uses RFY protocol with subprotocol ASA. In windows with RFXmngr it works like a charm, but in openhab don’t works.
My items file looks like:
Rollershutter toldo "Toldo comedor" { rfxcom=">0.00.02.1:RFY.ASA:Shutter" }
and in the openhab.log i recieve the next line:
org.openhab.model.item.binding.BindingConfigParseException: Invalid sub type 'ASA' in type 'RFY'!
Is there any way to make it work with the rfxcom binding?
Thanks.
MikeD
(Mike Dilger)
June 11, 2016, 6:59am
2
openHAB 1 or 2?
I only have experience with openHAB 2 and have spent the last week working though various issues but not with RFY, I was using Blinds1, so my item definitions look different to yours. I also struggled with low ID’s.
I ended up using an ID of 01 01 01 with unit code 1 in RFXmngr. You then need to convert the HEX ID to decimal for openHAB, so in my case 01 01 01 = 65793. The next thing is 0 in openHAB is the same as 1 for the unit code in RFXmngr. So for my case I used 65793.0 and it all worked.
Hope this helps.
underpop
(underpop)
June 11, 2016, 7:11am
3
I’ts openhab 1.8.3
I have tried it in decimal, it not works.
Seems that ASA subprotocol is not defined
MikeD
(Mike Dilger)
June 11, 2016, 7:14am
4
Have you tried
Rollershutter toldo "Toldo comedor" { rfxcom=">0.0.2.1:RFY.ASA:Shutter" }
Not sure if it will make a difference, but worth a try. I took me 3 days to sort my issues, but as I say I am using openHAB 2 so the set up is quite different.
MikeD
(Mike Dilger)
June 11, 2016, 7:15am
5
Next thing to try is
Rollershutter toldo "Toldo comedor" { rfxcom=">0.0.2.0:RFY.ASA:Shutter" }
See my comment above about the Unit Code.
MikeD
(Mike Dilger)
June 11, 2016, 7:28am
6
You could be correct here, as I can’t see this option on the openHAB 2 binding.
underpop
(underpop)
June 11, 2016, 7:37am
7
Sorry, changing the unit code not works.
underpop
(underpop)
June 14, 2016, 4:23pm
8
SOLVED!!!
I have used the exec binding with the rfxcmd console tool. It works like a charm!
Gimli
(Hans)
June 16, 2016, 10:30am
9
Hi underpop,
i have the same problem.
Please post any further information about your solution - Thanks
underpop
(underpop)
June 16, 2016, 2:25pm
10
First, with the windows util configure the blinds
Second, install Rfxcmd from GitHub - ssjoholm/rfxcmd: Rewrite of RFXcmd, please use RFXcmd_GC instead.
Third, add openhab user to sudoers group
Use the next item for a blind:
Rollershutter frontshutter “front house shutterl” { exec=“DOWN:/usr/bin/sudo /home/pi/rfxcmd/./rfxcmd.py -d /dev/ttyUSB0 -s 0D1A03200000010103A100000000 -v , UP:/usr/bin/sudo /home/pi/rfxcmd/./rfxcmd.py -d /dev/ttyUSB0 -s 0D1A03200000010101A100000000 -v, STOP:/usr/bin/sudo /home/pi/rfxcmd/./rfxcmd.py -d /dev/ttyUSB0 -s 0D1A03200000010100A100000000 -v” }
And the next line in sitemap:
Switch item=frontshutter
The codes in the item file must be configured with next rules:
“0D1A03200104050103A100000000”
0D : chain length (14 octets)
1A : trame type (RTS)
03 : subtype ASA
20 : sequence number
010405 : device code configured in rfxcom windows util
01 : unitcode
03 : ordre (up 01 / down 03 / stop 00)
A1 : signal level
00000000 : padding
2 Likes
Gimli
(Hans)
June 22, 2016, 6:50am
11
It works very fine. Thank you.
One question: Is there any documentation or where did you get the information for example Subtype ASA or Up/down/stop?
underpop
(underpop)
June 23, 2016, 3:02pm
12
I have find litle documentation in some forums, and the subtype ASA is by trial-error.