RFXCOM installation issues (Raspberry Pi HA (32-Bit version)

I hope you can help me out after evenings of hairpulling. :frowning:
First of all i am new to HA so please be a little bit patient with me :slightly_smiling_face:

I can’t get my RFXCOM working with my Raspberry PI 3 Model B and the latest version of HA.
After evenings of looking at this forum and many others i took this step to make a post.
I have already added tons of other things which are working perfectly, but i can’t get this thing working.

Ofcourse i tried the standard post with all the basic settings.

I tried so many i can’t even remember them all.
Normally after an install you should trigger a remote for example and the sensor should pop-up under you sensors when tricker the remote.

Underneath the settings i tried in the configuration.yaml file. But unfortunately it didn’t worked out.

Version 1

rfxtrx:
    device: /dev/ttyUSB0

Version 2

rfxtrx:
    device: /dev/ttyUSB1

Version 3

rfxtrx:
    device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XSS4DQ-if00-port0
rfxtrx:
  host: 192.168.0.2
  port: 50000
  devices:
    # Switch 1
    0B11000000C3B79201010F70: 
    # Switch 2
    0B11000100C3B79201000070: 

Above you see the switch numbers i found when attaching the RFX to a windows PC.
In a later state i like to add my SOMFY RTS (433,42 Mhz) to my set-up. (shutters)
I found something like this but this is telling how it should work with the Tahoma devices.

Maybe somebody does also know what i need to configure for that in combination with the RFXCOM.
Earlier i used controlicz within Domoticz which worked perfectly. :slight_smile:

I hope you can help me out cause this is the only thing left for now.
Thank you so much. :slight_smile:

Let check the device first. Which device is connected? Please show the result of the following command:

cd /dev/serial/by-id/
ls -l

Thanks for your reply. This is the outcome.

~ $ cd /dev/serial/by-id/
,,, by-id $ ls -l
total 0
crw-rw----    1 root     audio     166,   0 Aug  7 22:36 usb-0658_0200-if00
crw-rw----    1 root     audio     188,   0 Aug  7 22:36 usb-RFXCOM_RFXtrx433_A1XSS4DQ-if00-port0                          
by-id $

Ok, than your config should look like:

rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XSS4DQ-if00-port0
  devices:
    # Switch 1
    0B11000000C3B79201010F70: 

If you don’t know the code of your switch, you can add automatic_add: true

Edit: I see that my device has read write and execute rights, could you try to change the rights with

sudo chmod 777 /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XSS4DQ-if00-port0

I feel so stupid because it works now. Thank you so much. :wink:
I didn’t changed the right is it still needed although it works now?
The way of implementing looks almost the same, if i look at all combinations i have used. :kissing_closed_eyes:
How can it be so easy? Can you also help me adding het zonnescherm (shutters) RTS.
Is it as easy?
automatic_add: true and than i will see it pop-up?

No need to change the rights if it works, it was just something I noticed as a difference.

You first have to make sure your rfxtrx has the right firmware that supports somfy RTS It’s somewhere in the manual. Somfy is only supported by (RFXtrx433E and RFXtrx433XL.

Somfy is using the RFY protocol, this means that RFXtrx can only only transmit (send) signal to your screens/cover (zonnescherm in Dutch ), not receiving signals. There are instructions how to get the device code for RFY devices here

Thanks for the check.
I have already used the somfy RTS motor with the RFXCOM and Domoticz so i think the firmware is up-to-date.
I will check the link and let you know the outcome.
For now it does not look easy to me because there are more ways to make it possible but i will find it out eventually.

I have attached the RFXCOM to my PC and are now logged into the device


Do i now have to trigger it with my somfy remote. The T4300
Sorry for all my questions but this is the last part for the RFXCOM. :slight_smile:

I think (not entirely sure) you have to follow chapter 9 of the user guide of RFXtrx.

To pair the Somfy RTS device:
• Select a unique ID and unitcode for the RFXCOM RFY device.
• Disconnect power from all Somfy RTS devices except the device to pair.
• Press the Program button > 2 seconds on the original Somfy remote until the Somfy device
responds.
• Transmit a Program command with the RFXtrx433E/RFXtrx433XL. The Somfy RTS device
should respond indicating the pair command was successful.

You are right, it is not as easy as a klik aan klik uit (kaku) device for example. This is due to the fact RFXtrx can’t receive the RFY protocol, which makes it impossible to be automatically added. But it is doable.

NOte. The configuration in yaml has changed in the last update of home assistant, keep that in mind when searching the forum.

Thanks. I will check. I have also find this website.

I think with your help and the website i will find the right settings.
Thank you so much, i can finally have a good night of sleep. :slight_smile:

Now i see this in the RFXMNGR

8-8-2020 12:11:22:992= RFY command: 0C 1A 00 03 02 04 06 02 07 00 00 00 00

Packettype = RFY
subtype = RFY
Sequence nbr = 3
id1-3 = 020406 decimal:132102
Unit = 2
Command = program
rfu1 = 00
rfu2 = 00
rfu3 = 00
Signal level = +10 dBm

8-8-2020 12:11:23:546= 0402010300
Packettype = Receiver/Transmitter Message
subtype = Transmitter Response
Sequence nbr = 3
response = ACK, data correct transmitted

Looks good.
I changed my configuration.yaml file into:

rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1XSS4DQ-if00-port0
  automatic_add: true
  devices:
    # Switch 1
    0B11000000C3B79201010F70: 
    # Switch 2
    0B11000100C3B79201000070:
    # Cover
    0C1A0003020406020700000000:

My shutter works :slight_smile: Thank you so much for all the help.
Do you think it is alright now or should i change something in the Yaml set-up?

Great to hear that it works. I’m surprised that your device code doesn’t start with 071a0000. According to the documentation it should be 071a0000[id][unit_code]. Assuming that the Id = 020406 and the Unit code is 2, I would expect a device code in your yaml of 071a000002040602

See also here. Note that the yaml shown there is outdated, do not add under cover but under the rfxtrx directly, as I showed in my second post.

But if it works, no need to change it. Can you open, close and stop the shutter? If so, you can leave your yaml as it is. If not, let me know what doesn’t work and what does.

Thank you for your answer. I do not need to change anything.
But now i run into another issue. I will make a seperate post for that.
My Raspberry PI Model 3B comes overheated overnight, and than it doens’t respond anymore or becomes very instable. I don’t think it has anything to do with this change but i suddenly run into this issue.
I will make another post for it. Maybe run at a lower speed to overcome overheating.

I guess that’s related to the temperature in the Netherlands today. I moved my pi to the basement. But that’s more for a different topic. Glad I could help.

I put an icepack under my Pi the last 2 days ( and change it every few hours) It is normally not so hot here.

What is the temperature you have on your Pi? Which version do you use?