RFXCOM + Somfy right ID code

Can someone explain me what the right event code I need to use.
I tried several combinations without any success.

The ID is: C 1C 1C
The Unit codes is: 3
RFY command is: 0C 1A 00 20 0C 1C 1C 03 08 A5 00 05 00
idl-3 is : 0C1C1C decimal: 793628

The RFXCOM RFXtrx manuel is mentioning:

Make a note of the assigned ID and Unit Code and then add a device to the configuration with the following id 071a0000[id][unit_code]. E.g., if the id was 0a 00 01, and the unit code was 01 then the fully qualified id would be 071a00000a000101, if you set your id/code to single digit in the rfxmngr, e.g., id: 1 02 03 and unit code: 1 you will need to add 0 before, so 102031 becomes 071a000001020301

So in my case this would be?
071a0000[793628][03] 071a000079362803
Or must it be:
071a0000[0C1C1C][03] 071a00000C1C1C03

Or any other combination?
Please help don’t get it working :frowning:

This is the info from the windows RFX software:

17-3-2022 01:02:28:840= RFY command: 0C 1A 00 20 0C 1C 1C 03 08 A5 00 05 00 
================================================
Packettype    = RFY
subtype       = RFY
Sequence nbr  = 32
id1-3         = 0C1C1C decimal:793628
Unit          = 3
Command       = > 2 seconds: program
rfu1          = A5
rfu2          = 00
rfu3          = 05
Signal level  = +10 dBm
------------------------------------------------
17-3-2022 01:02:31:942= 0402012000
Packettype        = Receiver/Transmitter Message
subtype           = Transmitter Response

Sequence nbr      = 32

response          = ACK, data correct transmitted

Commands must be entered in Hexa

PS Traduction Google French

So this must be the one:?
071a000079362803

What are you trying to accomplish here
e.g. my for my (old) somfy garagedoor, I had to sync the rfxcom with the motorcontrol, ie. I myself (!) defined the code and then sent it to the opener where I had to click a button and pair it

I already made a working code via the rfxtrx windows software.
That is the screenshot and code I have post.

Now offcourse I want this working code to add to the RFXCOM Home Assistant plugin.
So this blinds will be controllable within HA.

But I dont have any succes yet generating the right event code for my Blind.
So wondering what combination I need to make for a working event code.

Did you try to enable the auto discovery within the RFXTRX integration ? I used it recently with a motion detector and it worked perfectly. The entity was added automatically in home assistant


Your code should be: 071a00000c1c1c03

1 Like

you can try to send the same command as the Rfxmngr, for your cde must be of type 0C1C1C03
0C1A00xx0C1C1C03yyA5000500
0C Leng
1A00 Protocol Type ( RFY)
xx nbr 00->FF
0C1C1C ID
03 Unit Code
yy de 00 ->14 command (08 *Program (transmit > 2 seconds)
A50005 fu1/2/3
00 RSSI

0C1A00000C1C1C0308A5000500

OK
ident Rfy 0c1c1c:3
switch.rfy_0c1c1c_3

(switch)

action:
service: rfxtrx.send
data:
event: 0C1A00000C1C1C0308A5000500

Not sure if you have seen this but there is a specific section where ‘my’ somfy solution is dealt with and yours seems very similar to what I needed
RFXCOM RFXtrx - Home Assistant (home-assistant.io)

Yes I have used this information, see me refrerring to it in my start topic.

Auto discovery seems not to work with somfy.
You must program a code in to the RFX device and use this code in HA.

Yes also tried that combination.

I tried both codes:

071a000079362803
071a00000C1C1C03

But when clicking up or down on the made button in HA.
Noting happens.

I don’t know how I can trouble shoot this.

So
 I believe your second code is ok but
 the up and down do NOT work with me

I am using this one it only fires one code which does start/stop and depending on the state it goes up or down
image

Command yy Up 01
image
Stop /My 00
up 01
Down 02


Program 07


Disable sun detector 14

So I understand I have to make manual multiple switches?
One event code for “up”
One event code for “down”

And control this commands with the “square” “stop” button?

I just added my device which then provided me this ‘cover’ buttons option for the up/square/down and up/down donot work, only the square
which is logical in my situation as it exactly simulates my somfy remote (fire and forget)

And adding
 I assumed that the setup in your screen shot above is (!) working from the rfx manager itself.

When I connect the RFX hardware on my windows computer.
The generated codes are working within the original RFX software.

But now I want to have this worked with the RFX hardware connected in HA.
So what code do I have to use for that since

071a000079362803
071a00000C1C1C03

Both not working.

imho it is the second code based on your upper most screenshot (another feedback mentioned similar to use that). One thing that may frustrate testing is if you have two ‘integrations’ connected to the rfxtrx, i.e. if I connect with rfxmgr as the same time then HA is not always working
so disconnect that.
All in all
 I donot want to say that my journey has been easy as well, took a while to get this all setup and havent touched it in 6 months so part of it sunk back in memory’.
Just to recap what I did

  1. used rfxmgr to setup/choose the codes (not the default values) and pair with the somfymotor
  2. test it from rfxmgr after I placed the rfxtrx on the intended location
  3. added it via the code to HA
  4. then needed to identify which switch/cover/etc. actually worked for me

(08 *Programme (transmission > 2 secondes)

I can confirm that a similar approach also works for me (different code of course)