rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
563 stars 39 forks source link

Can't pair the blinds #15

Closed miczlo closed 1 year ago

miczlo commented 1 year ago

I wanted to start by saying thanks for doing this as I think it's an amazing project. So far I have had an ESP just shorting correct DI on the remotes to have my blinds controlled in HA but this would be a game changer for me. Unfortunately I'm struggling with pairing process. I have quintuple checked my wiring and tried swapping RX/TX without changing them in the configuration and swapping RX/TX and then also swapping them in the config. Basically I put my blinds into pairing by holding the button on the back, they jog and blink green but then nothing ever happens when I try to pair them from ESPSomfy. I do see all the commands I send from my remote and I do see them regardless of the RX/TX situation. Strangely (for me) I'm still seeing the commands sent in the logs even if I swap the TX/RX without changing them in the config I'm using the blue E07-M1101D with a Wifi ESP32-WROOM-32. It's a 56 bit motor. I have tried 2 different blinds - same results. I've tried using other pins on the ESP for TX/RX but same thing still Any solutions for debugging/diagnosing?

rstrouse commented 1 year ago

First, what type of remote do you have and which model? If I could get you to click on the configure transceiver button and open the logs screen. Then press the prog button on the back of your remote 3 times (do not hold it in). This should result in three prog commands showing up in the logs. Press the copy button on the screen and paste those here in a code block.

miczlo commented 1 year ago

Thanks for taking the time. It's a Telis Situo RTS Pure. Tried 2 of these.

[{"encKey": 160,
  "address": 9408556,
  "rcode": 7688,
  "command": "Prog",
  "rssi": -49,
  "bits": 56,
  "valid": true,
  "sync": 4,
  "pulses": [2494,2559,2469,2537,4797,1295,1286,1295,1261,665,643,644,639,661,626,620,669,633,635,665,619,1324,1255,693,578,1334,1246,1326,1244,697,585,1335,620,675,608,663,1273,1297,629,648,1269,684,601,1348,582,660,1265,699,602,1309,617,670,609,685,1268,1297,614,689,618,672,609,664,1251,670,636,665,626,645,624,1307,1265,1329,611,669,1255,664,623,665,630,661,631,665,617,647,636,664,624,669,628,658,609,664,644],
  "time": "2023-04-05T16:12:03.845+0100"
},
{"encKey": 161,
  "address": 9408556,
  "rcode": 7689,
  "command": "Prog",
  "rssi": -48,
  "bits": 56,
  "valid": true,
  "sync": 4,
  "pulses": [2495,2544,2460,2534,4811,1305,1265,1307,1258,668,630,659,631,650,643,1301,1265,672,611,1318,1244,659,633,1306,1275,640,641,647,615,723,585,1339,570,700,608,687,1247,1324,1244,670,609,688,600,1321,608,689,1251,670,634,1289,643,645,636,664,1250,1321,607,665,644,645,636,664,1250,671,635,665,625,645,627,1307,1247,1321,629,671,1272,664,625,645,623,682,608,667,618,669,636,638,628,669,623,655,633,655,642],
  "time": "2023-04-05T16:12:04.299+0100"
},
{"encKey": 162,
  "address": 9408556,
  "rcode": 7690,
  "command": "Prog",
  "rssi": -50,
  "bits": 56,
  "valid": true,
  "sync": 4,
  "pulses": [2495,2535,2471,2540,4802,1296,1285,1295,1287,639,644,645,635,1316,1268,658,609,678,617,1298,1265,643,660,1316,593,695,584,711,1225,697,584,1336,594,699,609,688,1224,696,612,1314,1244,683,606,1313,626,679,1261,644,626,1309,621,667,631,661,1281,1295,635,641,646,644,630,661,1281,643,631,660,631,650,644,1303,1252,1319,633,651,1268,660,633,650,618,675,635,641,648,641,630,661,631,650,644,651,636,640,647],
  "time": "2023-04-05T16:12:04.746+0100"
}]
rstrouse commented 1 year ago

Thanks for the output. Is this remote currently paired with the motor?

miczlo commented 1 year ago

Correct. When I hold the prog button my blind jogs happily as well it's just like if it wasn't getting prog from the transceiver

FlaMike commented 1 year ago

Good Morning, my automation BFF :-)

I am also having problems pairing shades. When I press the program button on the remote (a Situo 5 RTS Pure II) the shade jogs. I then press the "prog" button on the web page. The pairing screen goes away, but the shade does not jog. I've unpaired and attempted to re-pair the shade several times, to no avail. It's currently un-paired. Below is the result for my remote when I used the procedure you recommended for miczlo above. I'm using a blue E07-M1101D with a Wifi ESP32-WROOM-32

Separately, I seem to be unable to get a signal stronger than about -75 dBa even when very close to the transceiver. I've tried with both of my slow boat models with the duck antenna. Assuming I get the pairing issue resolved, do you recommend I try one of these (which appears to be the same but who knows???).

https://www.amazon.com/dp/B01DS1WUEQ?psc=1&ref=ppx_yo2ov_dt_b_product_details

Thanks again for your help & support!

[{"encKey": 166,
  "address": 2445379,
  "rcode": 1174,
  "command": "Prog",
  "rssi": -69,
  "bits": 56,
  "valid": true,
  "sync": 4,
  "pulses": [10432,7173,2515,2518,2496,2516,4848,1270,1287,1271,1308,623,666,1257,684,620,1296,640,657,620,671,1257,1303,1274,659,640,1293,615,684,621,643,632,661,1280,1297,1291,1273,633,662,640,651,1270,1312,1274,652,636,641,647,643,631,661,630,1299,1282,1308,620,654,1265,670,621,1310,1268,669,609,662,642,648,644,1303,614,668,1278,1283,1269,661,641,650,643,1303,614,668,628,663,1265,1293,638,663,622,666],
  "time": "2023-04-05T11:10:44.440-0500"
},
{"encKey": 167,
  "address": 2445379,
  "rcode": 1175,
  "command": "Prog",
  "rssi": -68,
  "bits": 56,
  "valid": true,
  "sync": 4,
  "pulses": [145237,10426,7193,2503,2521,2504,2505,4862,1260,1309,1247,1311,619,670,1263,677,618,674,613,1313,618,675,1267,1301,1255,659,649,1293,1266,1298,633,661,1268,1320,1266,1301,628,660,1267,669,627,1283,1290,653,614,684,620,644,631,662,638,1296,1264,1305,624,659,1291,645,625,1309,1273,649,637,661,624,668,631,1284,650,639,1283,1308,1271,662,601,665,624,1310,621,666,631,660,1267,1319,613,660,623,669],
  "time": "2023-04-05T11:10:44.687-0500"
},
{"encKey": 168,
  "address": 2445379,
  "rcode": 1176,
  "command": "Prog",
  "rssi": -69,
  "bits": 56,
  "valid": true,
  "sync": 4,
  "pulses": [146333,10426,7194,2507,2508,2508,2502,4836,1262,1316,1254,1309,1272,1311,618,669,634,662,625,641,625,682,1266,1295,635,661,623,666,1254,1309,618,676,614,667,1275,1298,630,667,1270,660,614,1317,1267,1300,1281,658,622,666,609,661,641,650,619,1304,1293,1295,612,684,1246,677,614,1311,1268,661,641,650,618,676,614,1311,618,676,1267,1302,1253,684,620,669,609,1314,619,670,609,660,1293,1293,615,683,621,643],
  "time": "2023-04-05T11:10:44.938-0500"
}]
rstrouse commented 1 year ago

Do you happen to know the model number and brand of the motor?

FlaMike commented 1 year ago

It's a Somfy but I don't know the model. And the motors are not available to examine physically without me tearing out a bunch of finished framing & drywall. (They're hidden above the windows--built into the wall above with a slot for the shades). I could reach out to the supplier & installer if that helps.

rstrouse commented 1 year ago

Are they battery powered?

FlaMike commented 1 year ago

Nope, 120 volts, powered by an outlet in the pocket above the window. The brand of the shades is Alta. I'll hit their web site & see if I can find out more info on the motors.

miczlo commented 1 year ago

Are they battery powered?

Battery powered ROLL-UP 28 WIREFREE as far as I know

FlaMike commented 1 year ago

Might be Sonesse® RTS motors???

rstrouse commented 1 year ago

I have paired many Sonesse motors at this point and over 20 Wirefree. What am I missing? Mine are the LT60s. @FlaMike from the link you provided I apparently have purchased 8 of those and they have been great with the exception of this one. You can see the flaw if you look closely at the metallic rectangle on the right. It has a dent in the crystal. image

FlaMike commented 1 year ago

Wow. I guess I'll give the Amazon-sourced ones a shot. Here is the one I played with yesterday, with the current one's antenna tip photobombing the picture. . Neither appears to have a dented crystal, but oh weak signals :-(

Still flummoxed on the pairing...

PXL_20230405_165840377

rstrouse commented 1 year ago

Just for shucks set the address of the shade to 4624451 and then try to pair it.

FlaMike commented 1 year ago

Will do in a little while... I'm curious, where did you get the magic number from? Not seeing it in the code block. Eventually I'll have 6 more to pair, so I'm interested in being independent to pair them.

rstrouse commented 1 year ago

I pulled that from a known remote that has paired 3 different shades. Just trying to eliminate any possibilities.

FlaMike commented 1 year ago

Understood. I'll get back to & let you know how it goes.

Perhaps I selected my only "problem" first. 🤞 It's the only one that controls a single shade...

On Wed, Apr 5, 2023, 12:13 PM rstrouse @.***> wrote:

I pulled that from a known remote that has paired 3 different shades. Just trying to eliminate any possibilities.

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/15#issuecomment-1497847143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ3NIBANGNAGKP2KWV6UVULW7WR4DANCNFSM6AAAAAAWT5ST5Y . You are receiving this because you were mentioned.Message ID: @.***>

FlaMike commented 1 year ago

No love pairing with magic code 4624451. The behavior was the same as before. I pressed the program button on the remote, the shade jogged, I pressed the program button on the ESPSomfy-RTS web page, the shade did not jog, but the page went back to the edit shade page. The former "pair shade" button then read "unpair shade." To try to keep everything in synch, I then attempted to unpair the shade. I pressed the remote's program button, the shade jogged, I pressed the "unpair" button on the web page, & then was presented with the edit shade page.

rstrouse commented 1 year ago

Yeah I am currently revamping that page. It was a pipe dream that the pair always occurs on the first try. It did for me repeatedly but perhaps that is not the case for everyone else. I am going to change the screen so that it shows an "It Jogged" button that you can press to dismiss the screen. If it didn't actually pair then pressing the cancel button will close the screen without marking it as paired.

Then perhaps we can try multiple times without unpairing.

FlaMike commented 1 year ago

Good plan! Thank you.

BTW, I tried using a much larger antenna that I bought for use with an ESP32 that's outside (concrete & rebar construction, not WiFi friendly). It's a male with the pin in the middle & same threading. No love--couldn't get any signal at all from the remote. Probably the impedance is wrong or or it's tuned for WiFi (really?). Anyway, something is way off for the little transceiver. Just a quick experiment that proved I know very little about antennas. I was not surprised by the results but I had to try since it was sitting on my desk.

rstrouse commented 1 year ago

You cannot use an antenna that is tuned for 2.4Ghz on a 433Mhz radio. Antennas are frequency matched. It will resonate at the wrong frequency and receivers will not be able to hear it. The wavelength is important.

rstrouse commented 1 year ago

Ok so pull the bin files from the main repo. I have not created a release for this yet. After you update the application you will need to hard refresh your browser to see the changes. I also added a 0 bit to the end of the 56 bit protocol so that the motor recognizes that it has read the last bit. I don't know if that makes a difference but my US telis remote sends this bit. I just had to look for it.

FlaMike commented 1 year ago

Dude! What's mine say? Sweet! What's mine say? Dude!...

Quick question (can't get to GitHub until late morning tomorrow). Does the image I need to pull & try have the 1.4.6 long passcode code in it? As you know, I need the code for the network I'm using for ESPSomfy-RTS, HA, & more.

Thanks & I'm looking forward to checking out the extra zero bit in the frames.

BTW, I should receive the Amazon transceiver in about a week. Hoping for much better range, but will keep plugging along until it arrives.

On Wed, Apr 5, 2023, 4:41 PM rstrouse @.***> wrote:

Ok so pull the bin files from the main repo. I have not created a release for this yet. After you update the application you will need to hard refresh your browser to see the changes. I also added a 0 bit to the end of the 56 bit protocol so that the motor recognizes that it has read the last bit. I don't know if that makes a difference but my US telis remote sends this bit. I just had to look for it.

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/15#issuecomment-1498195578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ3NIBG5W4VT3L5P2H35T5TW7XRHPANCNFSM6AAAAAAWT5ST5Y . You are receiving this because you were mentioned.Message ID: @.***>

rstrouse commented 1 year ago

Yes it has all the most recent changes. I just have not generated a release for it just yet. I have installed 3 neighbors homes with this solution as well as my own and the range is stupid good.

FlaMike commented 1 year ago

Sweet! I shall get on it as soon as I can tomorrow & touch base with you 😁

On Wed, Apr 5, 2023, 9:52 PM rstrouse @.***> wrote:

Yes it has all the most recent changes. I just have not generated a release for it just yet. I have installed 3 neighbors homes with this solution as well as my own and the range is stupid good.

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/15#issuecomment-1498417839, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ3NIBGQN7QIMPZ2HP5MNQ3W7YVYVANCNFSM6AAAAAAWT5ST5Y . You are receiving this because you were mentioned.Message ID: @.***>

miczlo commented 1 year ago

I have updated to the new firmware and got it to pair on the first go... Thanks a lot for al your work and for your help with this - although it's not too clear what actually fixed it, is it? :)

binu02 commented 1 year ago

Here's the edited version:

"I updated the firmware and application to version 1.4.6, but I'm still unable to pair my devices. I'm not sure if the method I'm using is correct. This is what I've done so far:

I pressed the Pair shade button and flipped to the PROG button page. I held down the Somfy remote program button to jog the shade. Then, I pressed the PROG button on the page, but the shade did not jog. Although I could pair the remote, the shade responded to the UP, Down, and Stop buttons, and the animation did happen on the page. I would appreciate your support in resolving this issue [{"encKey": 169, "address": 14173654, "rcode": 1209, "command": "Prog", "rssi": -44, "bits": 56, "valid": true, "sync": 4, "pulses": [10469,7474,2514,2520,2510,2544,4843,1268,1313,1270,1310,1299,1280,652,640,1300,1284,643,656,1291,1294,1287,1298,1277,664,643,1282,650,639,1299,1283,1294,664,638,643,646,635,661,651,616,1303,641,669,1271,1311,1269,662,641,1297,628,662,1284,1293,638,651,1295,660,642,650,642,1279,655,643,647,634,641,651,640,651,1290,1296,1310,624,643,651,661,633,647,1296,1284,665,626,661,633,1289,1308], "time": "2023-04-06T17:33:41.369+0400" }, {"encKey": 170, "address": 14173654, "rcode": 1210, "command": "Prog", "rssi": -44, "bits": 56, "valid": true, "sync": 4, "pulses": [10480,7564,2518,2518,2502,2545,4833,1288,1298,1280,1307,1296,1283,1296,1282,666,628,661,633,1298,1279,1302,1299,641,648,643,654,639,656,645,645,1286,1299,1277,654,644,1299,640,648,1293,1285,644,650,1284,1291,1309,649,641,1280,666,619,1296,1310,642,627,1314,645,648,630,664,1277,648,635,665,624,668,653,638,633,1299,1280,1315,620,658,635,665,644,647,1284,1300,628,662,634,645,1298,1288], "time": "2023-04-06T17:33:42.202+0400" }, {"encKey": 171, "address": 14173654, "rcode": 1211, "command": "Prog", "rssi": -43, "bits": 56, "valid": true, "sync": 4, "pulses": [10460,7492,2487,2549,2502,2528,4848,1273,1314,1288,1291,1271,1311,1276,650,662,1283,643,655,1292,1296,1286,1291,648,633,1293,1292,639,658,1302,1278,1307,646,634,1288,1295,661,641,1275,650,660,1292,1294,1290,644,645,1285,648,643,1280,1314,626,665,1289,643,654,636,631,1316,634,661,628,642,649,661,641,650,1292,1292,1273,657,639,655,643,648,635,1311,1269,662,640,648,644,1283,1292], "time": "2023-04-06T17:33:43.061+0400" }, {"encKey": 172, "address": 14173654, "rcode": 1212, "command": "Up", "rssi": -50, "bits": 56, "valid": true, "sync": 4, "pulses": [10438,7582,2498,2560,2493,2519,4848,1281,1304,1273,1309,1293,636,642,1296,659,634,1281,1295,635,664,642,656,636,639,1294,1313,620,669,1286,1275,652,659,642,651,640,654,640,639,649,645,627,663,641,647,644,657,1289,644,646,635,661,640,644,1298,638,641,1299,638,645,647,662,1293,617,657,1285,1298,655,640,1292,1295,1291,1295,634,659,639,643,628,662,1281,1295,1285,668,627,663,634,1298,1279,666,619,670,635], "time": "2023-04-06T17:33:45.329+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1213, "command": "My", "rssi": -47, "bits": 56, "valid": true, "sync": 4, "pulses": [10467,7576,2499,2535,2521,2513,4851,1280,1306,1272,1312,1270,661,633,1298,1281,666,644,1274,1314,645,650,1290,1270,658,638,1307,1294,1285,1295,635,640,1296,656,635,1317,1271,639,666,647,644,634,638,661,643,1299,640,649,643,654,636,637,641,652,660,639,1292,1284,1291,1306,640,644,654,640,640,646,1296,639,652,1296,1285,648,644,1309,1276,649,635,1316,1271,661,640,649,644,1307,1277,648,633], "time": "2023-04-06T17:33:48.131+0400" }, {"encKey": 174, "address": 14173654, "rcode": 1214, "command": "Down", "rssi": -48, "bits": 56, "valid": true, "sync": 4, "pulses": [10451,7511,2496,2522,2518,2519,4832,1299,1279,1290,1295,1291,642,650,660,636,1298,1277,655,643,648,635,1293,643,652,635,667,626,666,627,663,1282,643,655,636,641,1296,657,637,1306,1270,640,667,643,647,1287,1301,1276,655,641,1304,1290,1293,1286,1291,635,668,640,643,646,636,640,653,1294,1290,1296,655,640,1282,643,657,639,656,1296,634,640,666,621,1297,640,653,643,651,1289,1297,654,636,658,643,1272], "time": "2023-04-06T17:33:49.354+0400" }, {"encKey": 175, "address": 14173654, "rcode": 1215, "command": "My", "rssi": -51, "bits": 56, "valid": true, "sync": 4, "pulses": [10470,7488,2494,2542,2500,2533,4833,1288,1296,1283,1301,1298,634,644,644,657,635,666,645,645,1284,1301,627,662,1283,1294,1286,643,649,1289,1295,1307,625,643,1301,641,647,643,658,638,655,643,647,636,660,640,643,647,635,1311,642,654,636,641,647,644,656,639,655,645,1271,1316,1270,1313,647,643,633,636,652,643,1301,641,646,1294,1286,643,651,1293,1293,655,639,1292,1297,637,641,646,644,1311,1289,646,634], "time": "2023-04-06T17:33:50.707+0400" }]

rstrouse commented 1 year ago

@binu02 which remote do you have? Also, do you know what model of motors you are pairing with?

binu02 commented 1 year ago

Hi, The motor is Somfy Glydea Ultra 60 RTS and the remote is Studio 2 RTS.

rstrouse commented 1 year ago

@binu02 On the back of the remote does it indicate whether it is US or any other country?

FlaMike commented 1 year ago

Just uploaded both files. I selected the SomfyController.ino.esp32.bin file & got the following message: This file is not a a valid firmware binary file.

Not sure how to proceed from here. I welcome your thoughts.

miczlo commented 1 year ago

You use these to update the existing firmware.

On Thu, 6 Apr 2023, 17:00 FlaMike, @.***> wrote:

Just uploaded both files. I selected the SomfyController.ino.esp32.bin file & got the following message: This file is not a a valid firmware binary file.

Not sure how to proceed from here. I welcome your thoughts.

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/15#issuecomment-1499293444, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRD5WO3NZK4FCWBGJS7UBDW73SARANCNFSM6AAAAAAWT5ST5Y . You are receiving this because you authored the thread.Message ID: @.***>

FlaMike commented 1 year ago

I understand that. I am trying to follow rstrouse's suggestion from yesterday but the update procedure failed.

FlaMike commented 1 year ago

I think I pulled the wrong file... Will try again with the correct one!

rstrouse commented 1 year ago

Use the .ino.esp32.bin to update the firmware and .littlefs.bin to update the application. You will get this message if you use the wrong file.

FlaMike commented 1 year ago

Just realized that!! Sorry. I guess that's what happens when I do this while on a phone call :-(

binu02 commented 1 year ago

@binu02 On the back of the remote does it indicate whether it is US or any other country?

Model

rstrouse commented 1 year ago

Thanks I just wanted to be sure because mine says US on it. I am trying a couple of things. I think there is potentially an oddball thing with the Glydea motors with regard to the last bit transmitted. I have already figured out that the expectation is that the protocol while it is only 56 bits for some motors the bit after that must be pulled to 0. That is what fixed @miczlo's issue. Perhaps with Glydea it needs to hold the carrier during the interframe silence period.

On 80 bit protocols it is a bit different but so far I only have one user with 80 bit remotes. These appear to be the remotes that have the nudge thumbwheel on them.

binu02 commented 1 year ago

An option to copy the code from the log file and paste it on the corresponding Up, My, and Down buttons can be an option. can it be implemented?

rstrouse commented 1 year ago

That is impossible as each command is different each time you press the button. This would also confuse the motors.

FlaMike commented 1 year ago

It's working!!!! I finally had an opportunity to update 1.4.6 (extended password beta) using the repo updates you created for pairing "problem" blinds & I was able to pair my blind on the first try!!! And even with my crappy transceiver signal strength (around -80dBm) I am able to open & close the blind with the transceiver at the opposite end of the house. So fun (at last!).

Question: I use only one remote per room--each remote controls only the blind(s) located in that room. Assuming I retain that setup, is there a need to link remotes? I ask because I tried to link the remote I used when pairing the motor & nothing happened when I pressed the buttons on the remote--the link screen never disappeared. I'm guessing I don't need to link the remote used when pairing the motor to ESPSomfy-RTS, but I would appreciate if you could clarify that I don't need to link remotes in my situation.

If it's all good as-is, I will pair the other shades & move on to the HA integration.

rstrouse commented 1 year ago

@binu02 I am a bit confused with your output. There should be a bit that enables the carrier between each command if the firmware file was uploaded or the radio failed to send the pulse. Can I get you to give me a log where you simply hold the up button down for a full second. This should result in a few repeats in the log.

rstrouse commented 1 year ago

@FlaMike yes you should link the remote. The reason for this is so that ESPSomfy RTS knows about any uses of such remote. I will do some testing to make sure I didn't induce any timing issues with the link detection by resurrecting our missing bit. You should be able to use the remote or ESPSomfy RTS and is will keep track of its position.

You should know that the reason you have a remote for each room and there isn't a bunch of remotes that can control motors throughout the house, is because the Somfy remotes have really poor range. That typically isn't an issue though because you hang a remote on the wall in each room. I'm sure much of this is so you don't have to change batteries all the time.

The transceiver is able to hear signals down to about -106dBm but even so that is about 30% better than the RX strength from the remote to the motor. You will find that the TX strength is really powerful. I can move my patio shades from about a 1/4 mile away which is excessive. If it comes down to ESPSomfy RTS not hearing the remotes from a distance you can install more than one device. This will work beautifully with HA.

binu02 commented 1 year ago

@binu02 I am a bit confused with your output. There should be a bit that enables the carrier between each command if the firmware file was uploaded or the radio failed to send the pulse. Can I get you to give me a log where you simply hold the up button down for a full second. This should result in a few repeats in the log.

[{"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -46, "bits": 56, "valid": true, "sync": 4, "pulses": [10454,7502,2509,2526,2514,2520,4867,1271,1307,1265,1296,1292,666,626,1313,1272,657,640,1305,644,635,635,652,1293,661,642,648,642,1279,1291,1295,640,652,641,652,1288,1296,1307,652,640,1278,1293,644,656,662,641,644,620,1309,650,642,654,639,1291,1293,1291,1296,632,661,630,660,627,663,640,649,1293,635,667,644,619,1310,649,642,1281,1303,1297,1289,646,634,1311,644,626,1313,645,645,1286,649,642], "time": "2023-04-06T22:17:16.575+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -44, "bits": 56, "valid": true, "sync": 14, "pulses": [631,26985,2530,2507,2513,2527,2517,2543,2490,2553,2495,2538,2494,2537,2502,2555,4812,1311,1290,1285,1298,1276,665,642,1278,1308,642,634,1285,667,627,661,639,1295,635,659,640,643,1307,1292,1270,666,625,643,651,1312,1293,1282,651,641,1283,1287,644,658,636,666,644,645,1285,649,644,654,636,1292,1294,1292,1293,634,660,651,640,653,637,631,670,1270,665,645,645,635,1285,669,627,1288,1296,1306,1275,649,661,1291,643,627,1313,644,646,1286,648,643], "time": "2023-04-06T22:17:16.718+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -45, "bits": 56, "valid": true, "sync": 14, "pulses": [630,26979,2523,2542,2483,2553,2513,2521,2512,2518,2515,2531,2519,2517,2496,24,2544,4827,1287,1299,1298,1282,1294,661,640,1294,1285,648,642,1280,666,649,639,635,1291,643,648,661,642,1275,1300,1282,643,659,639,654,1269,1310,1275,652,661,1282,1294,636,640,670,644,634,641,1302,648,633,659,642,1291,1287,1294,1286,647,643,657,635,641,646,25,644,659,1291,642,649,636,659,1290,628,663,1294,1291,1291,1295,633,661,1291,645,634,1286,643,650,1289,645,645], "time": "2023-04-06T22:17:16.861+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -45, "bits": 56, "valid": true, "sync": 14, "pulses": [633,26953,2519,2536,2501,2558,2484,2541,2487,2545,2490,2550,2492,2538,2495,2541,4826,1283,1302,1298,1289,1296,639,644,1298,1291,643,653,1288,645,645,634,662,1277,649,634,659,652,1290,1288,1293,635,661,640,645,1272,1309,1296,636,641,1297,1280,653,643,649,636,660,654,1289,639,656,620,670,1284,1299,1278,1287,649,637,667,625,667,627,662,633,1298,655,636,656,644,1272,666,625,1296,1287,1297,1309,638,644,1296,639,643,1300,639,641,1294,635,666], "time": "2023-04-06T22:17:16.998+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -44, "bits": 56, "valid": true, "sync": 14, "pulses": [619,26967,2521,2554,2474,2558,2497,2516,2524,2543,2483,2545,2483,2540,2514,2546,4811,1305,1271,1311,1269,1314,620,669,1285,1275,652,662,1284,643,656,636,630,1296,658,636,655,644,1299,1291,1268,663,633,650,640,1310,1276,1298,641,642,1302,1289,644,653,635,641,646,644,1309,640,644,645,635,1290,1295,1289,1297,654,636,643,645,643,658,639,655,1295,633,640,653,644,1298,641,649,1292,1287,1295,1286,649,643,1279,655,643,1299,640,649,1292,636,642], "time": "2023-04-06T22:17:17.137+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -44, "bits": 56, "valid": true, "sync": 14, "pulses": [622,27015,2517,2538,2496,2542,2498,2543,2506,2516,2511,2550,2488,2548,2483,2545,4844,1268,1312,1270,1309,1291,647,633,1285,1296,661,641,1298,626,661,641,649,1294,639,631,665,646,1287,1300,1278,640,665,645,633,1286,1291,1310,641,646,1286,1299,628,663,632,649,641,657,1286,644,649,635,658,1300,1278,1291,1294,639,654,644,648,635,660,649,642,1280,653,646,646,636,1309,643,655,1290,1269,1310,1274,650,660,1293,643,628,1312,645,646,1285,649,643], "time": "2023-04-06T22:17:17.279+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -46, "bits": 56, "valid": true, "sync": 14, "pulses": [630,26996,2503,2565,2483,2526,2514,2545,2490,2524,2521,2537,2494,2538,2499,2533,4836,1286,1289,1306,1290,1279,658,639,1298,1295,639,629,1313,645,645,635,661,1278,649,635,660,650,1293,1291,1294,633,636,666,645,1271,1309,1293,635,655,1293,1283,648,643,655,642,654,645,1271,641,651,642,651,1288,1296,1308,1275,648,661,642,652,639,629,663,633,1298,655,640,630,646,1295,641,655,1292,1286,1299,1280,654,642,1299,631,645,1295,661,638,1293,635,642], "time": "2023-04-06T22:17:17.417+0400" }, {"encKey": 173, "address": 14173654, "rcode": 1523, "command": "Up", "rssi": -45, "bits": 56, "valid": true, "sync": 14, "pulses": [645,26965,2503,2554,2495,2538,2497,2538,2501,2545,2506,2529,2511,2524,2511,2522,4854,1273,1307,1293,1271,1291,643,650,1314,1269,657,639,1304,645,634,640,653,1295,635,666,625,643,1301,1291,1295,634,664,644,627,1313,1289,1286,648,642,1281,1292,645,658,635,666,644,646,1286,649,643,655,635,1291,1294,1293,1289,638,656,650,643,652,636,655,642,1296,633,647,644,657,1286,644,649,1287,1296,1307,1276,648,661,1292,641,628,1313,646,645,1287,645,643], "time": "2023-04-06T22:17:17.556+0400" }]

FlaMike commented 1 year ago

I thought I should link the remotes, but when nothing happened when I attempted to do it, I began to second-guess my understanding of how you keep track of each shade's position regardless of how it is controlled. When you have an update I'll be happy to be your beta platform.

BTW, I showed my wife the one blind I have paired up & your animation of the shade's position & she was duly impressed :-) Kudos to you! (Recall I've been using a ZRTSI to enable shade automation until now. While they're minimally functional & have a less-than-ideal mechanism to integrate with HA (z-wave), not knowing the blind's position and the inability to keep blinds, remotes, & HA in synch is a hassle. Not to mention the outlandish price of the ZRTSI boxes! My wife's sisters will be here in about a week for a visit. I look forward to not having shade synchronization challenges!

Your project is a big win for us & I thank you so much for sharing & supporting it!!!!

rstrouse commented 1 year ago

@FlaMike I just tested the remote linking and it works as advertised for me. Try taking the remote closer to ESPSomfy RTS. It doesn't matter what button you push it should detect its existence.

I have threatened to buy that ZRTSI device probably 100 times so I didn't have to build this project. Each time I told myself that I would get around to creating this and waffled the purchase. What sparked me getting off my butt was my neighbor going on vacation. His house sitter closed the shades on his patio. Then the wind came and tore up a 20+ foot patio shade doing a bunch of damage as it flailed around his patio. In-laws do this kind of thing as well. Now I need to create some UV and wind sensors.

rstrouse commented 1 year ago

@binu02 there is our missing bit. That ~630 timing in front of each of the repeats is what I was looking for. I assume you only have one ESPSomfy RTS device so I will look at these timings to see if anything is off.

binu02 commented 1 year ago

@binu02 there is our missing bit. That ~630 timing in front of each of the repeats is what I was looking for. I assume you only have one ESPSomfy RTS device so I will look at these timings to see if anything is off.

Hi, Yes I have only one device with me now.

FlaMike commented 1 year ago

OK. I went completely radical & put the remote so close to the antenna they were nearly touching. Presto! It's now linked! I'll continue my timing, pairing, & linking chores, but I look forward to better signal strength with the Amazon transceivers.

I feel bad for your neighbor! What an unnecessary mess & expense!

Now I have to figure out to whom I can donate a couple of ZRTSIs. Truly overpriced crud. And, since they're not even Z-wave+ they slow down my network. I was very concerned when I purchased them, but I didn't know how else to control the shades in a meaningful way. Their retirement from my world can't come soon enough!

rstrouse commented 1 year ago

Just wait until you install the HA integration. It is stupid simple. The feeling you should experience is... It's done now what do I do? For me, I showed it to a few neighbors and ended up with a desk full of ESPSomfy RTS devices. You have been warned!