RFlink Somfy RTS HELP

Hi,

I am trying to get my Somfy RTS sunscreen integrated in Hassio with the RFlink.
I have already configured the RFlink hub in Hassio with succes like this:

rflink:
port: /dev/ttyAMA0
wait_for_ack: False
ignore_devices:

019-01-08 23:05:29 INFO (MainThread) [homeassistant.components.rflink] Initiating Rflink connection
2019-01-08 23:05:29 INFO (MainThread) [homeassistant.components.rflink] Connected to Rflink
2019-01-08 23:05:29 DEBUG (MainThread) [rflink.protocol] connected

Now I try to get the code with RF link loader and this is what I get:

10;RTS;02FFFF;0412;3;PAIR;
20;06;OK;
10;RTSSHOW;
RTS Record: 0 Address: FFFFFF RC: FFFF
RTS Record: 1 Address: FFFFFF RC: FFFF
RTS Record: 2 Address: FFFFFF RC: FFFF
RTS Record: 3 Address: 02FFFF RC: 0413
RTS Record: 4 Address: FFFFFF RC: FFFF
RTS Record: 5 Address: FFFFFF RC: FFFF
RTS Record: 6 Address: FFFFFF RC: FFFF
RTS Record: 7 Address: FFFFFF RC: FFFF
RTS Record: 8 Address: FFFFFF RC: FFFF
RTS Record: 9 Address: FFFFFF RC: FFFF
RTS Record: 10 Address: FFFFFF RC: FFFF
RTS Record: 11 Address: FFFFFF RC: FFFF
RTS Record: 12 Address: FFFFFF RC: FFFF
RTS Record: 13 Address: FFFFFF RC: FFFF
RTS Record: 14 Address: FFFFFF RC: FFFF
RTS Record: 15 Address: FFFFFF RC: FFFF

I don’t know where to go from here? What should I do now?
RTS Record: 3 Address: 02FFFF RC: 0413 what can I make from this to add in my cover.yaml?
I also haven’t seen my sunscreen go up and down shortly while pairing?
Is there someone out there who can point me in the right direction?

Hi.
I just followed the instructions here:
https://www.letscontrolit.com/forum/viewtopic.php?p=17952#p17952
pretty straight forward.

Let me know if you have any issues and I’ll try to help.

If your sunscreen has not made the up&down move, it is sure that it has not been paired.

You should keep in mind that you need an specific RFLink for the frequency of Somfy RTS.
If not, it will be very difficult for you to operate the blind beyond a couple of meters away and with direct vision (no walls in the middle).

@MPJK77 Do you have the specific RFLink for RTS?

https://www.domoticz.com/forum/viewtopic.php?t=23983#p184818

Thank you for sharing, I will try this asap.

Hi Javicalle,

Thank you for your reply.
I have tried it with some cheap chinese superheterodyne receiver WL101-341 and transmitter WL102-341.
I also have a receiver RX470-4 but I think it is the same.

The receiver should not be a problem, but the transmitter has to be specific for RTS. All this transmitters have a 433.92 MHz frequency (RF), but RTS use a 433.42MHz frequency.

With a RF transmitter it will be almost impossible for you to control yours sunscreens.
On the other hand, if you have a RTS transmitter, you can control the RTS devices and almost certainly you can also control the normal devices (the RF ones).

I started just like you, and I could barely control a cover in the same room. With a RTS transmitter I can control 3 RTS blinds and 2 RF devices distributed between 4 rooms.

What I did was buy an STX882 transmitter and replace the oscillators with a 433.42Mhz from ebay.

http://www.rflink.nl/blog2/wiring

Hi, I struggled with the same issue. This is what I used: https://matdomotique.wordpress.com/2016/04/21/domoticz-rflink-et-somfy/ (google translate is your friend)

By the way use proper RF hardware : https://www.nodo-shop.nl/en/rflink-gateway/159-rflink-arduino-dipool.html

Have you guys managed to get this working?

Ive got same issue. I have paired my RFLink with the blinds using RFLink Loader and managed to control my blinds with it
10; RTS; 0F0F0F; 0; UP;
But when i added it to my HA configuration:

rflink:
  port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

cover:
  - platform: rflink
    devices:
      RTS_0F0F0F_0: 
        name: living_room_blind
        aliases:
          - RTS_8ed72c_01

it creates cover.living_room_blind entity but it neither operates the blind, nor detects state changes by my remote RTS_8ed72c_01.
I have tried changing RTS_0F0F0F_0: to RTS_0F0F0F_1: as on some configurations i found online, but still doesnt work

Perhaps try adding wait_for_ack: false

rflink:
  port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5563931383235150A052-if00
  wait_for_ack: false

Thanks, but it still doesnt work

did you add this to the configuration file?

logger:
  default: error
  logs:
    rflink: debug
    homeassistant.components.rflink: debug   

perhaps you can find a clue in the logs.

Thanks, i didnt realize that putting rflink in debug mode will actually allow me to see the received messages.
Thats what i see when i try to control blinds through HA:

2020-08-20 16:53:05 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: UP to Rflink device: RTS_0F0F0F_01
2020-08-20 16:53:05 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'RTS', 'id': '0F0F0F', 'switch': '01', 'command': 'UP'}
2020-08-20 16:53:05 DEBUG (MainThread) [rflink.protocol] writing data: '10;RTS;0F0F0F;01;UP;\r\n'
2020-08-20 16:53:08 DEBUG (MainThread) [rflink.protocol] received data: 20;29;OK;
2020-08-20 16:53:08 DEBUG (MainThread) [rflink.protocol] got packet: 20;29;OK;
2020-08-20 16:53:08 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}
2020-08-20 16:53:08 DEBUG (MainThread) [rflink.protocol] command response: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}

And that’s what im seeing when im controlling the blinds using a remote:

2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] received data: 20;13;Debug;RTS P1;a02803108ed72
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] received data: c;
20;14;RTS;ID=8ed72c;SWITCH=0
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] got packet: 20;13;Debug;RTS P1;a02803108ed72c;
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'debug', 'rts_p1': 'a02803108ed72c'}
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'raw', 'value': None, 'tm': None, 'pulses': None}
2020-08-20 16:21:50 DEBUG (MainThread) [homeassistant.components.rflink] event of type unknown: {'id': 'raw', 'value': None, 'tm': None, 'pulses': None}
2020-08-20 16:21:50 DEBUG (MainThread) [homeassistant.components.rflink] unhandled event of type: unknown
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] received data: 1;CMD=UP;
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] got packet: 20;14;RTS;ID=8ed72c;SWITCH=01;CMD=UP;
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'rts', 'id': '8ed72c', 'switch': '01', 'command': 'up'}
2020-08-20 16:21:50 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'rts_8ed72c_01', 'command': 'up'}
2020-08-20 16:21:50 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {'id': 'rts_8ed72c_01', 'command': 'up'}
2020-08-20 16:21:50 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-08-20 16:21:50 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled

Based on this, i have already figured out that the RTS ID is case sensitive, changed remote’s id from RTS_* to rts_* in my configuration and now the remote operations are actually reflected in HA. I still dont know why i cannot control the blinds though.

Have you paired this code with the blind? Can you control a blind with RFLink? Have you tried to use the code used by the remote control?

Sorry to highjack this topic, but i was wondering if you already have found a solution since i have the exact same problem.

btw i can control my blinds directly with RFLINK, they have been paired

If you can control the blinds with RFLink, what is your problem?

If you know the device_id, just configure it in HA like:

cover:
  - platform: rflink
    devices:
      RTS_<rflink_device_id>:
        name: cover name
        aliases:
          - rts_<remote_device_id>

i’m sorry, let me clarify on my problem:

I followed this manual:https://github.com/filipmaelbrancke/ha-rflink-rts

So i paired all of my blinds to unique id’s in the Rflink loader. Via de Rflink loader i’m able to controll my blinds. Up, down and stop is all working well.

But when configure HA(following that manual and your respons) to controll the blinds, they blinds won’t react.

This is the code i used in my Yaml:

  # Add Somfy RTS covers
cover:
  - platform: rflink
    devices:
      rts_622840_0:
        name: Achterdeur

When I look into the debug log I get the following code

2022-02-06 15:03:03 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: UP to Rflink device: rts_622840_0
2022-02-06 15:03:03 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'rts', 'id': '622840', 'switch': '0', 'command': 'UP'}
2022-02-06 15:03:03 DEBUG (MainThread) [rflink.protocol] writing data: '10;rts;622840;0;UP;\r\n'
2022-02-06 15:03:05 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: DOWN to Rflink device: rts_622840_0
2022-02-06 15:03:05 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'rts', 'id': '622840', 'switch': '0', 'command': 'DOWN'}
2022-02-06 15:03:05 DEBUG (MainThread) [rflink.protocol] writing data: '10;rts;622840;0;DOWN;\r\n'
2022-02-06 15:03:07 DEBUG (MainThread) [rflink.protocol] received data: 20;13;OK;
2022-02-06 15:03:07 DEBUG (MainThread) [rflink.protocol] got packet: 20;13;OK;
2022-02-06 15:03:07 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}
2022-02-06 15:03:07 DEBUG (MainThread) [rflink.protocol] command response: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}
2022-02-06 15:03:10 DEBUG (MainThread) [rflink.protocol] received data: 20;14;OK;
2022-02-06 15:03:10 DEBUG (MainThread) [rflink.protocol] got packet: 20;14;OK;
2022-02-06 15:03:10 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}
2022-02-06 15:03:10 DEBUG (MainThread) [rflink.protocol] command response: {'node': 'gateway', 'protocol': 'unknown', 'ok': True}

I also tried ID: “rts_622840_0” as “RTS_622840_0” because i read in a other thread that it was capital sensitive

The traces seem correct to me.

Have you also configured the RFLink integration? Something like:

rflink:
  port: /dev/serial/by-id/usb-xxxxxxxxx

And how do you configure it from HA?
To use the device from HA you must make use of cover.achterdeur.

Yes, i’m able to control some 433mhz lighting from HA, so the rflink is configured correct in HA.

I have a entity “cover.achterdeur” to controll the blinds, but so far no luck.

So I see no reason why it shouldn’t work if it’s already working from Rflink loader.

Is the RFLink specific to RTS? If not, the range is usually very, very small.
Have you tried in HA from the same location you tried with the Rflink loader?