rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
429 stars 32 forks source link

Can't pair one of my shutters #341

Closed NeatMonster closed 2 months ago

NeatMonster commented 2 months ago

Hardware

ESP32

Firmware version

v2.4.1

Application version

v2.4.1

What happened? What did you expect to happen?

Hello,

First of all, thank you for this great project!

I have been using ESPSomfyRTS successfully to control RTS-enabled shutters and awnings. But I have recently installed a Somfy's RTS Micro-receiver for a wired shutter and can't get ESPSomfyRTS to pair to it.

I've had to increment the RX Bandwidth value to get ESPSomfyRTS to recognize the remote. However, I cannot get the pairing with the micro-receiver to work. Pressing the Prog button for 3s on the micro-receiver (or on the remote I've paired with it) makes the motor jog, but then nothing happens when pressing the Prog button on ESPSomfyRTS' interface.

The ESP32 and micro-receiver in the same room and very close, so I don't think this could be a radio signal strength issue. I will paste below a log of the radio commands from the paired remote to the micro-receiver.

Any idea of what might be going wrong? Or what I could be doing wrong?

Thank you for your help!


Screenshot 2024-04-22 at 10 28 02 Screenshot 2024-04-22 at 10 28 12 Screenshot 2024-04-22 at 10 27 53

How to reproduce it (step by step)

1. Go to Somfy > Shades > Edit
2. Click on Pair Shade
3. Press the Prog button for 3s on the micro-receiver/remote
4. The motor jogs
4. Press Prog on the interface
5. Nothing happens
6. Try pressing Prog again (for longer) on the interface
7. Nothing happens

Logs

...
{"encKey": 174,
  "address": 15279186,
  "rcode": 663,
  "command": "Up",
  "rssi": -70,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 4,
  "pulses": [10218,18408,2506,2523,2475,2518,4799,1271,1286,1290,1298,1267,644,647,633,640,1280,1295,1287,619,669,608,664,642,649,618,650,1289,1275,1274,1311,618,648,637,661,627,644,622,659,640,658,621,643,631,660,632,639,645,654,1262,1291,1283,637,643,650,635,635,641,646,644,654,615,658,623,666,628,661,633,649,617,1301,1267,645,632,1313,1273,653,614,1286,1295,1283,1265,1302,641,649,618,652,1282,1292,628,661,616,654],
  "time": "2024-04-20T20:04:59.389+0200"
},
{"encKey": 175,
  "address": 15279186,
  "rcode": 664,
  "command": "My",
  "rssi": -68,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 4,
  "pulses": [10212,18410,2531,2504,2479,2508,4804,1276,1287,1293,1287,1272,647,636,636,653,645,621,658,639,1283,1273,660,632,640,643,653,608,659,645,1293,1261,1292,1279,639,644,647,635,660,625,1291,634,635,653,641,622,657,1284,1294,633,637,1287,1272,635,665,1269,635,640,1304,621,657,1266,646,645,1280,1293,644,628,662,612,667,615,1305,1264,1297,636,661,1256,644,632,1312,1272,654,612,659,623,1295,1288,649,618],
  "time": "2024-04-20T20:05:00.374+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -61,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 4,
  "pulses": [10232,18426,2498,2511,2473,2521,4822,1269,1287,1269,1281,641,646,643,653,613,659,624,668,625,636,635,663,1268,1286,649,640,1279,632,646,1294,615,661,621,668,1277,1289,620,656,1267,1296,629,661,1267,1295,1283,641,645,624,635,660,637,1269,1285,1290,1279,1291,1271,1284,1294,1259,651,641,652,630,1285,641,648,634,634,1279,645,656,635,632,646,644,655,635,641,625,1295,1285,624,641,651,634,1292,1270],
  "time": "2024-04-20T20:05:09.588+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27366,2521,2514,2474,2511,2496,2508,2496,2509,2497,2508,2490,2534,2471,2509,4826,1270,1277,1270,1291,636,661,626,640,649,634,640,639,643,647,634,660,1254,1295,640,657,1272,628,638,1310,617,650,635,662,1254,1296,636,655,1269,1281,654,644,1272,1286,1270,657,639,633,647,643,629,1287,1274,1301,1267,1293,1288,1275,1274,1285,643,648,638,631,1279,669,632,636,642,1274,650,634,641,655,620,644,25,633,661,642,649,1267,1287,647,642,627,660,1269,1293],
  "time": "2024-04-20T20:05:09.695+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27378,2492,2513,2493,2515,2495,2513,2470,2537,2471,2536,2470,2511,2497,2507,4802,1271,1302,1268,1292,637,635,641,647,643,654,614,659,649,643,626,635,1293,1294,632,636,1268,667,627,1286,649,645,624,661,1259,1291,635,661,1252,1296,635,664,1269,1286,1275,648,636,635,653,640,647,1285,1277,1273,1287,1290,1259,1303,1272,1287,643,646,635,635,1292,618,649,663,613,1301,621,659,639,658,620,643,631,660,642,650,1269,1286,624,666,626,634,1292,1294],
  "time": "2024-04-20T20:05:09.832+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27387,2491,2518,2472,2539,2470,2514,2497,2515,2496,2515,2470,2537,2470,2512,4805,1296,1279,1267,1293,635,661,628,644,622,658,639,633,645,644,630,660,1268,1293,637,635,1291,644,628,1287,648,643,629,660,1268,1293,635,636,1291,1270,635,659,1275,1299,1267,643,623,657,640,655,620,1295,1267,1296,1283,1280,1269,1313,1272,1278,642,649,618,650,1288,648,618,654,633,1286,643,648,636,636,641,647,644,654,638,634,1274,1300,634,651,616,650,1288,1275],
  "time": "2024-04-20T20:05:09.969+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27358,2515,2525,2477,2522,2491,2501,2490,2508,2498,2508,2497,2506,2498,2510,4801,1274,1300,1267,1294,634,636,640,646,644,629,638,659,625,643,650,635,1293,1294,632,636,1267,668,626,1287,624,668,626,635,1293,1293,634,636,1291,1270,636,661,1278,1270,1292,643,621,657,639,657,620,1298,1265,1298,1278,1282,1269,1287,1274,1302,641,650,618,649,1289,650,617,651,636,1286,644,646,635,636,641,647,642,653,614,660,1275,1274,641,654,643,647,1261,1308],
  "time": "2024-04-20T20:05:10.108+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27362,2516,2512,2471,2538,2473,2505,2492,2533,2473,2510,2497,2508,2500,2509,4805,1276,1273,1295,1291,633,636,641,647,643,628,637,660,625,645,648,634,1292,1269,633,661,1267,668,625,1286,624,666,626,660,1267,1293,634,636,1281,1296,613,659,1274,1301,1262,643,649,635,640,654,619,1296,1285,1291,1259,1302,1271,1286,1293,1285,625,641,649,634,1292,644,620,658,640,1282,642,653,639,633,625,644,650,635,640,654,1270,1282,641,647,642,654,1265,1298],
  "time": "2024-04-20T20:05:10.249+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27381,2517,2495,2496,2516,2474,2539,2471,2512,2497,2514,2495,2512,2476,2509,4826,1272,1279,1267,1295,636,661,615,648,642,656,639,641,627,644,648,635,1291,1266,657,635,1282,642,629,1287,647,644,629,663,1268,1294,634,635,1292,1268,639,659,1267,1297,1261,666,622,656,639,632,647,1294,1265,1299,1277,1283,1268,1286,1273,1301,642,648,616,650,1289,648,617,652,636,1286,642,650,635,640,630,646,645,656,636,633,1272,1301,641,649,617,651,1264,1304],
  "time": "2024-04-20T20:05:10.403+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27395,2495,2513,2496,2513,2471,2537,2471,2538,2476,2509,2498,2508,2502,2506,4805,1275,1274,1293,1272,632,661,632,639,644,655,637,633,647,643,628,660,1259,1292,635,659,1276,646,634,1287,620,670,632,636,1292,1274,633,660,1252,1296,640,655,1270,1280,1292,643,628,660,632,640,642,1281,1291,1270,1289,1275,1274,1309,1268,1285,625,667,626,636,1290,644,646,633,636,1288,622,659,635,639,644,650,634,635,637,667,1276,1284,618,652,637,660,1276,1272],
  "time": "2024-04-20T20:05:10.527+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -61,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27361,2517,2494,2496,2514,2498,2512,2494,2514,2471,2536,2474,2511,2498,2508,4803,1274,1301,1259,1295,637,660,628,644,646,633,640,656,620,643,632,661,1266,1295,636,635,1279,644,657,1287,620,645,632,661,1268,1296,633,661,1265,1293,636,633,1273,1303,1266,644,649,635,639,655,643,1272,1267,1296,1283,1281,1294,1287,1270,1280,642,649,617,651,1289,647,643,630,635,1285,643,649,635,661,615,645,645,656,611,658,1274,1302,634,649,617,651,1285,1290],
  "time": "2024-04-20T20:05:10.666+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -65,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27386,2491,2519,2496,2512,2494,2511,2495,2511,2494,2510,2473,2536,2470,2509,4804,1296,1278,1267,1296,636,634,654,647,618,657,640,632,640,643,650,635,1294,1270,655,636,1266,669,625,1287,649,643,626,635,1293,1272,656,635,1289,1270,640,655,1269,1282,1291,643,628,660,615,652,643,1301,1265,1293,1260,1302,1271,1285,1293,1285,625,640,650,634,1291,644,620,657,636,1290,621,658,635,640,642,649,636,636,654,645,1271,1287,644,646,636,634,1291,1268],
  "time": "2024-04-20T20:05:10.806+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27374,2512,2514,2472,2530,2492,2512,2471,2532,2492,2510,2493,2511,2472,2512,4827,1247,1303,1267,1293,635,659,625,641,649,635,636,663,617,650,636,661,1275,1275,635,657,1268,660,638,1283,644,627,635,659,1276,1273,635,653,1270,1309,626,641,1273,1284,1295,632,640,654,644,646,633,1288,1271,1280,1295,1269,1289,1276,1277,1282,643,648,636,661,1266,644,629,661,615,1303,621,658,640,632,645,643,630,661,641,650,1268,1287,624,666,625,636,1292,1294],
  "time": "2024-04-20T20:05:10.943+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27372,2487,2515,2493,2514,2496,2514,2473,2511,2497,2508,2499,2508,2498,2504,4802,1272,1301,1267,1294,634,635,655,643,645,634,640,632,646,644,631,660,1268,1294,635,638,1290,645,626,1288,647,642,628,662,1269,1296,633,637,1267,1294,637,661,1267,1295,1262,664,619,656,636,641,643,1273,1292,1294,1285,1275,1270,1287,1268,1307,613,666,627,636,1292,643,647,634,640,1281,643,656,613,25,659,624,665,627,635,641,655,1270,1284,642,648,643,652,1265,1298],
  "time": "2024-04-20T20:05:11.084+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -62,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27359,2492,2529,2478,2528,2480,2498,2508,2497,2505,2521,2466,2528,2477,2523,4795,1273,1301,1259,1294,637,661,615,646,644,656,640,632,648,643,628,660,1261,1293,637,636,1290,645,629,1286,647,643,629,660,1259,1292,635,659,1265,1295,636,639,1270,1309,1277,646,634,636,641,649,642,1278,1267,1292,1290,1272,1275,1311,1271,1284,624,667,625,661,1267,644,620,658,636,1289,622,657,636,639,643,649,636,635,654,644,1272,1288,644,647,634,635,1292,1270],
  "time": "2024-04-20T20:05:11.231+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -64,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27386,2490,2539,2470,2514,2496,2514,2471,2537,2474,2531,2468,2536,2473,2506,4825,1272,1282,1266,1294,637,661,628,644,621,658,639,656,620,643,632,660,1267,1294,636,661,1253,646,657,1289,620,645,630,661,1268,1294,635,660,1277,1271,640,657,1270,1279,1267,668,627,660,616,654,644,1272,1290,1294,1259,1303,1270,1287,1270,1283,640,646,643,654,1266,646,643,654,638,1287,615,651,637,660,616,645,645,655,615,658,1275,1301,616,653,643,648,1261,1290],
  "time": "2024-04-20T20:05:11.371+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -64,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27382,2519,2488,2496,2511,2501,2532,2472,2506,2497,2507,2497,2508,2500,2505,4803,1274,1301,1267,1295,635,635,641,649,618,652,638,659,641,647,618,656,1267,1297,628,660,1260,644,650,1286,624,668,626,635,1284,1292,634,635,1293,1294,613,667,1277,1273,1290,640,647,633,640,655,619,1296,1292,1272,1281,1282,1271,1289,1296,1280,630,665,620,656,1285,640,621,657,640,1283,643,629,635,659,649,645,626,636,635,664,1269,1286,648,643,629,660,1258,1292],
  "time": "2024-04-20T20:05:11.500+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -64,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [9450,17967,2498,2520,2475,2520,2498,2519,2474,2514,2498,2513,2497,2515,2499,2514,4799,1266,1282,1289,1299,616,653,642,647,635,636,640,648,644,654,613,659,1276,1301,616,654,1269,659,639,1284,643,627,638,659,1276,1276,658,639,1267,1290,648,643,1278,1282,1268,664,641,625,643,650,636,1288,1269,1308,1265,1300,1267,1296,1260,1303,621,658,639,657,1271,630,639,659,625,1295,636,634,653,640,648,635,636,639,643,649,1285,1291,626,636,641,654,1269,1283],
  "time": "2024-04-20T20:05:11.638+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -64,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27400,2480,2521,2478,2535,2477,2518,2499,2513,2475,2517,2498,2514,2496,2511,4796,1294,1288,1275,1275,639,654,644,647,633,635,642,648,643,628,635,659,1275,1301,631,640,1268,661,632,1291,628,660,616,654,1294,1284,615,668,1278,1283,642,628,1289,1275,1301,633,623,669,627,660,615,1304,1272,1288,1272,1283,1280,1296,1291,1270,655,636,641,626,1295,634,639,655,644,1274,639,658,620,644,631,660,633,648,643,627,1290,1299,626,636,640,653,1271,1283],
  "time": "2024-04-20T20:05:11.780+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -64,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27428,2489,2525,2488,2506,2485,2531,2481,2515,2482,2518,2502,2520,2473,2518,4803,1270,1290,1299,1278,632,639,644,655,640,632,649,643,628,660,616,653,1270,1309,641,620,1295,635,630,1297,630,660,641,624,1294,1287,625,644,1302,1284,617,651,1288,1274,1276,659,625,669,626,634,641,1305,1270,1287,1271,1281,1292,1293,1263,1299,628,660,616,653,1294,633,639,657,620,1296,636,632,645,644,631,660,641,650,617,651,1288,1274,649,635,640,655,1269,1282],
  "time": "2024-04-20T20:05:11.915+0200"
},
{"encKey": 160,
  "address": 15279186,
  "rcode": 665,
  "command": "Prog",
  "rssi": -63,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 14,
  "pulses": [27418,2489,2528,2486,2503,2488,2529,2481,2518,2479,2519,2500,2515,2495,2522,4797,1269,1288,1273,1302,641,626,644,649,635,635,653,644,646,633,639,657,1271,1281,641,650,1270,660,615,1303,620,660,637,656,1270,1280,639,640,1276,1285,642,649,1288,1278,1272,659,624,667,625,635,666,1276,1271,1286,1293,1285,1265,1295,1265,1297,630,660,641,625,1294,634,635,654,644,1271,640,654,644,645,633,636,641,648,643,627,1289,1297,627,636,634,654,1291,1286],
  "time": "2024-04-20T20:05:12.053+0200"
},
{"encKey": 161,
  "address": 15279186,
  "rcode": 666,
  "command": "Prog",
  "rssi": -68,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 4,
  "pulses": [10182,18471,2453,2559,2450,2561,4750,1322,1264,1292,1271,659,603,678,619,672,611,1318,1242,679,608,1316,1249,660,629,1303,1256,1317,1243,679,606,1315,1248,687,600,1304,605,680,614,664,620,670,1235,1329,603,681,606,666,619,668,1262,1315,1248,1310,1246,1323,1251,1294,1260,673,599,676,608,1310,621,673,610,664,1272,672,607,664,600,669,626,677,591,691,594,1321,1261,676,597,672,611,1316,1243],
  "time": "2024-04-20T20:05:25.194+0200"
},
{"encKey": 162,
  "address": 15279186,
  "rcode": 667,
  "command": "Down",
  "rssi": -56,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 4,
  "pulses": [10237,18417,2512,2526,2460,2529,4808,1279,1282,1268,1286,647,644,629,661,1266,1293,1289,624,644,650,635,1286,1295,1284,615,646,645,656,1265,645,644,655,637,1282,1268,1287,1273,1302,640,648,1268,660,633,640,643,1279,641,648,643,628,1287,648,643,1278,640,650,1270,635,666,1276,646,633,639,631,1297,1279,1285,641,654,635,641,626,644,1301,613,652,1294,634,639,656,620,1296,1265,647,644,657,638,1283],
  "time": "2024-04-20T20:05:27.110+0200"
},
{"encKey": 163,
  "address": 15279186,
  "rcode": 668,
  "command": "My",
  "rssi": -58,
  "bits": 56,
  "proto": 0,
  "valid": true,
  "sync": 4,
  "pulses": [10231,18425,2483,2527,2481,2509,4804,1277,1284,1296,1286,650,618,650,635,1292,643,646,634,640,1276,1295,635,640,647,642,1279,1291,1269,1288,1275,1302,633,625,644,650,1286,649,643,626,635,641,653,644,648,1286,1276,646,633,1292,1272,631,659,1283,643,628,1287,649,643,1279,630,647,1295,1262,645,643,655,636,640,643,1274,1284,1294,635,633,1290,645,629,1288,1298,627,636,660,625,1296,1284,626,643],
  "time": "2024-04-20T20:05:28.759+0200"
},
...
rstrouse commented 2 months ago

I do not see anything weird in the pulse outputs from what I assume is the remote. ESPSomfy RTS should be sending the exact same symbols. Lets try this. Change the configuration address and try again after removing power from the micro receiver for a few seconds.

If that doesn't work factory reset the micro receiver and start over.

rstrouse commented 2 months ago

Also did you hold the PROG button down in ESPSomfyRTS?

NeatMonster commented 2 months ago

I do not see anything weird in the pulse outputs from what I assume is the remote. ESPSomfy RTS should be sending the exact same symbols. Lets try this. Change the configuration address and try again after removing power from the micro receiver for a few seconds.

That did the trick, thank you! I should have thought about trying this before opening this bug report, sorry.