RainerStaude / hass-becker-component-plus-pybecker

A native home assistant component to control becker RF shutters with a Becker Centronic USB Stick.
MIT License
44 stars 3 forks source link

problems with pairing #33

Closed StartDustTC closed 4 months ago

StartDustTC commented 4 months ago

Hi and thank you for this great add-on.

First of all, I would like to highlight that the default device name is wrong, as the wording "Becker Antriebe" is not written in uppercase characters (anymore). Maybe this is something new from HA and/or OS update?

This is how it is right now (and I have read from others that they have the same issue): /dev/serial/by-id/usb-Becker-Antriebe_GmbH_CDC_RS232_v125_Centronic-if00

Anyway, by providing the device path at HA config I solved it myself.

Second, the pairing does not seem to work properly. When using the becker.pair service, the cover only confirms with one "clac". This is the same for all covers I have tried. When I try to control the cover on the paired channel from HA, nothing happens. I also enabled the debug mode and I see HA sending a command (which does nothing on the cover). I also see the received messages from my master control and added the channels to HA config. I see the cover movements now when using the master control, but still can't control any cover via HA.

Thank you very much, Best regards.

RainerStaude commented 4 months ago

Could you please try to run the Becker pair service twice. Let me know if this helps.

StartDustTC commented 4 months ago

Sorry, I forgot to mention that I already tried to execute it multiple times. Only the first execute results in one "clac". Any further have no effect. Here are the HA logs. I did put the cover in pairing mode and then executed the becker.apit three times.

2024-02-17 18:05:42.690 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: TRAIN, argument: 0, packet: b'\x020000000002010B00000000007BF490210204008031\x03' 2024-02-17 18:05:42.691 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-17 18:05:42.692 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-17 18:05:45.576 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: TRAIN, argument: 1, packet: b'\x020000000002010B00000000007BF490210204008130\x03' 2024-02-17 18:05:45.576 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-17 18:05:45.578 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-17 18:05:46.056 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-17 18:05:46.056 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-17 18:05:46.058 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-17 18:05:47.589 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-17 18:05:47.590 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-17 18:05:47.605 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00480000001737E02101010081DB\x03' 2024-02-17 18:05:47.708 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00490000001737E021010100005B\x03' 2024-02-17 18:05:47.811 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B004A0000001737E02101010081D9\x03' 2024-02-17 18:05:50.445 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-17 18:05:50.445 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-17 18:05:50.460 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B004B0000001737E02101010081D8\x03' 2024-02-17 18:05:50.563 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B004C0000001737E0210101000058\x03' 2024-02-17 18:05:50.666 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B004D0000001737E02101010081D6\x03' 2024-02-17 18:05:53.090 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-17 18:05:53.090 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-17 18:05:53.098 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B004E0000001737E02101010081D5\x03' 2024-02-17 18:05:53.201 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B004F0000001737E0210101000055\x03' 2024-02-17 18:05:53.304 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00500000001737E02101010081D3\x03'

RainerStaude commented 4 months ago

Could you send me a link to your motors manual for reference. I have some idea. Are you familiar with (python) programming? There would be a few things to try.

StartDustTC commented 4 months ago

Hi Rainer,

I am not really very familiar with Python but several other coding languages... so should not be a big problem if you tell me what I need to do. About the motors, the company which installed them did not mention the exact part number, so I will remove the metal cover to see the motor and hopefully grab the number/model.

Best regards.

RainerStaude commented 4 months ago

If you haven't got a manual it's fine. There's no need to open the cover. I will send you a file to try later.

RainerStaude commented 4 months ago

I created the develop2 branch with changed training sequence. Please switch to this branch and download the files. Then replace the files in your custom_components/becker folder with these files. Let me know it it works and provide the HA logs.

StartDustTC commented 4 months ago

Hi Rainer,

I downloaded "develop2", replaced all files and restarted HA. Then I have put one cover in pairing mode and executed becker.pair three times. The first time I did hear one "clac" like before, the other two times nothing. Here are the logs:

2024-02-18 21:58:33.840 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: TRAIN, argument: 0, packet: b'\x020000000002010B00000000007BF490210204008031\x03' 2024-02-18 21:58:33.840 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:33.843 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:36.832 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: TRAIN, argument: 1, packet: b'\x020000000002010B00000000007BF490210204008130\x03' 2024-02-18 21:58:36.832 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:36.834 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:37.362 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-18 21:58:37.363 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:37.365 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:38.853 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-18 21:58:38.853 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-18 21:58:38.862 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00510000001737E02101010080D3\x03' 2024-02-18 21:58:38.967 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00520000001737E02101010081D1\x03' 2024-02-18 21:58:39.070 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00530000001737E0210101000051\x03' 2024-02-18 21:58:39.173 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00540000001737E02101010080D0\x03' 2024-02-18 21:58:39.276 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00550000001737E02101010081CE\x03' 2024-02-18 21:58:42.272 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-18 21:58:42.273 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-18 21:58:42.287 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00560000001737E02101010080CE\x03' 2024-02-18 21:58:42.390 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00570000001737E02101010081CC\x03' 2024-02-18 21:58:42.493 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00580000001737E021010100004C\x03' 2024-02-18 21:58:42.596 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00590000001737E02101010080CB\x03' 2024-02-18 21:58:42.699 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B005A0000001737E02101010081C9\x03' 2024-02-18 21:58:45.186 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-18 21:58:45.187 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-18 21:58:45.205 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B005B0000001737E02101010080C9\x03' 2024-02-18 21:58:45.313 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B005C0000001737E02101010081C7\x03' 2024-02-18 21:58:45.416 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B005D0000001737E0210101000047\x03' 2024-02-18 21:58:45.519 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B005E0000001737E02101010080C6\x03' 2024-02-18 21:58:45.624 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B005F0000001737E02101010081C4\x03' 2024-02-18 21:58:49.306 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-18 21:58:49.307 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:49.308 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:50.305 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-18 21:58:50.306 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:50.308 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:50.978 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040010A1\x03' 2024-02-18 21:58:50.979 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:50.981 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:50.981 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts stopped at position 100 2024-02-18 21:58:50.981 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-02-18 21:58:51.063 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-18 21:58:51.063 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:51.065 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:51.685 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: UP, argument: 0, packet: b'\x020000000002010B00000000007BF490210204002091\x03' 2024-02-18 21:58:51.685 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:51.687 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:51.688 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts is travelling from position 100 to 100 in 0.0 seconds 2024-02-18 21:58:51.688 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-02-18 21:58:53.110 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040010A1\x03' 2024-02-18 21:58:53.110 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:53.112 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-18 21:58:53.113 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts stopped at position 100 2024-02-18 21:58:53.113 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-02-18 21:58:53.213 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-18 21:58:53.214 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-18 21:58:53.216 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher

RainerStaude commented 4 months ago

I still have some ideas, but they need some more time to change the code. Maybe it would be helpful to get the motor model/number.

StartDustTC commented 4 months ago

Hi and thank you for the support! How to get the motor number best? I removed the cover already but only see the end of the motor and the switch to trigger pairing. I guess the number is on the part which is covered by the blind?

I searched a bit on the Becker website and Google and it seems, that I have the classical Centronic system with C01-Motors. They work on 868,3 MHz and I am using the remote control Becker TC445-II. If this helps, I have trained all motors also to the mediola AIO-Gateway (which I am trying to replace by HA).

RainerStaude commented 4 months ago

If your mediola is still working, please control the motors from there and issue also a training (without putting the motor into training mode) and send me the HA Becker debug log.

StartDustTC commented 4 months ago

Hi Rainer,

I executed the following from mediola Gateway: 1) TRAIN (without any motor in pairing mode) -> executed twice 3) one cover down 4) in total three covers up (it was triggered from a mediola scene I have confogured)

2024-02-25 17:18:58.343 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 2, command: TRAIN, argument: 0, packet: b'\x020000000002010B00000000003126C021000200803B\x03' 2024-02-25 17:18:58.343 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:18:58.640 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 2, command: TRAIN, argument: 1, packet: b'\x020000000002010B00000000003126C021000200813A\x03' 2024-02-25 17:18:58.640 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:18:58.936 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 2, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000003126C02100020000BB\x03' 2024-02-25 17:18:58.937 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher

2024-02-25 17:19:08.219 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 2, command: TRAIN, argument: 0, packet: b'\x020000000002010B00000000003126C021000200803B\x03' 2024-02-25 17:19:08.219 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:08.516 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 2, command: TRAIN, argument: 1, packet: b'\x020000000002010B00000000003126C021000200813A\x03' 2024-02-25 17:19:08.516 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:08.814 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 2, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000003126C02100020000BB\x03' 2024-02-25 17:19:08.814 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher

2024-02-25 17:19:44.094 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 1, command: DOWN, argument: 0, packet: b'\x020000000002010B00000000003126C021000100407C\x03' 2024-02-25 17:19:44.095 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:44.299 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 1, command: DOWN, argument: 1, packet: b'\x020000000002010B00000000003126C021000100417B\x03' 2024-02-25 17:19:44.300 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:44.494 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126C, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000003126C02100010000BC\x03' 2024-02-25 17:19:44.495 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:44.853 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126D, channel: 1, command: UP, argument: 0, packet: b'\x020000000002010B00000000003126D021000100208C\x03' 2024-02-25 17:19:44.853 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:45.048 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126D, channel: 1, command: UP, argument: 1, packet: b'\x020000000002010B00000000003126D021000100218B\x03' 2024-02-25 17:19:45.048 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:45.244 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126D, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000003126D02100010000AC\x03' 2024-02-25 17:19:45.244 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:45.612 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126E, channel: 1, command: UP, argument: 0, packet: b'\x020000000002010B00000000003126E021000100207C\x03' 2024-02-25 17:19:45.612 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:45.846 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126E, channel: 1, command: UP, argument: 1, packet: b'\x020000000002010B00000000003126E021000100217B\x03' 2024-02-25 17:19:45.846 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:46.033 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000003126E021000100009C\x03' 2024-02-25 17:19:46.034 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:46.407 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126F, channel: 1, command: UP, argument: 0, packet: b'\x020000000002010B00000000003126F021000100206C\x03' 2024-02-25 17:19:46.407 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:46.612 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126F, channel: 1, command: UP, argument: 1, packet: b'\x020000000002010B00000000003126F021000100216B\x03' 2024-02-25 17:19:46.612 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-25 17:19:46.807 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 3126F, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000003126F021000100008C\x03' 2024-02-25 17:19:46.808 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher

RainerStaude commented 4 months ago

Thanks, the main difference between your mediola gateway and the HA implementation is the timeout between the packets. Mediola uses 0.3 seconds instead of 0.1 seconds. To change this timeout was easy. Again I updated the develop2 branch. Please switch to this branch and download the files. Then replace the files in your custom_components/becker folder with these files. Let me know it it works and provide the HA logs.

StartDustTC commented 4 months ago

Hi Rainer,

I updated the files but unfortunately I still only get one "clac".

2024-02-27 18:42:49.283 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: TRAIN, argument: 0, packet: b'\x020000000002010B00000000007BF490210204008031\x03' 2024-02-27 18:42:49.284 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-27 18:42:49.287 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-27 18:42:52.236 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: TRAIN, argument: 1, packet: b'\x020000000002010B00000000007BF490210204008130\x03' 2024-02-27 18:42:52.236 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-27 18:42:52.238 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-27 18:42:52.980 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-02-27 18:42:52.980 DEBUG (Thread-5) [custom_components.becker.rf_device] Received packet for dispatcher 2024-02-27 18:42:52.982 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-02-27 18:42:54.891 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-27 18:42:54.891 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-27 18:42:54.907 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00600000001737E02101010080C4\x03' 2024-02-27 18:42:55.213 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00610000001737E02101010081C2\x03' 2024-02-27 18:42:55.517 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00620000001737E0210101000042\x03' 2024-02-27 18:42:55.826 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00630000001737E02101010080C1\x03' 2024-02-27 18:42:56.132 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00640000001737E02101010081BF\x03' 2024-02-27 18:42:59.481 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-27 18:42:59.481 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-27 18:42:59.496 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00650000001737E02101010080BF\x03' 2024-02-27 18:42:59.802 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00660000001737E02101010081BD\x03' 2024-02-27 18:43:00.106 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B00670000001737E021010100003D\x03' 2024-02-27 18:43:00.412 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B00680000001737E02101010080BC\x03' 2024-02-27 18:43:00.719 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B00690000001737E02101010081BA\x03' 2024-02-27 18:43:06.062 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script 2024-02-27 18:43:06.062 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service 2024-02-27 18:43:06.070 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B006A0000001737E02101010080BA\x03' 2024-02-27 18:43:06.376 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B006B0000001737E02101010081B8\x03' 2024-02-27 18:43:06.682 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: RELEASE, argument: 0, packet: b'\x020000000002010B006C0000001737E0210101000038\x03' 2024-02-27 18:43:06.989 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 0, packet: b'\x020000000002010B006D0000001737E02101010080B7\x03' 2024-02-27 18:43:07.295 DEBUG (Thread-5) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737E, channel: 1, command: TRAIN, argument: 1, packet: b'\x020000000002010B006E0000001737E02101010081B5\x03'

RainerStaude commented 4 months ago

Seems to be quite complicated. Sorry for that.

Just to ensure:

There's one more thing. I found that the RELEASE command was missing after 2nd training sequence. Maybe this helps. Please give the latest version in develop2 branch a try.

One more thing, if the above code is not working:

Downside: your mediola remote will be removed as well for this motor.

One more options to try if you have a Linux system: Try centroniy-py from ole: https://github.com/ole1986/centronic-py

One more option if you have a Windows system with python installed: Try pybecker: https://github.com/nicolasberthel/pybecker

Note: you need to change serial port to to COMxx for Windows. Of course you need to remove the stick from HA and plug into your PC for both options. After testing and plugging back into HA, you need to restart HA.

StartDustTC commented 4 months ago

Hi Rainer, I feel a bit stupid now, but I managed to pair the covers now. I formerly thought the HA configured channel is related to the USB stick, so I used channel 1... but seems this is the channel at the cover? As it was not working, I tried channel 2 with units 1, 2... and all paired successfully now. At least I have heard three clacks now.

However, I still can't control the covers from HA (I moved back to github "main" branch). What also seems strange is that when using the master control, while it was moving up, HA did not update the final position even if a RELEASE was received from the motor (you see it at the logs at the end).

2024-03-01 18:36:10.082 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test is travelling from position 0 to 100 in 0.0 seconds 2024-03-01 18:36:10.082 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test update ha-state now 2024-03-01 18:36:10.093 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737D, channel: 4, command: UP, argument: 0, packet: b'\x020000000002010B00090000001737D0210104002088\x03' 2024-03-01 18:36:14.842 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test stopped at position 50 2024-03-01 18:36:14.842 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test update ha-state now 2024-03-01 18:36:14.857 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737D, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B000A0000001737D0210104001097\x03' 2024-03-01 18:36:15.752 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test is travelling from position 50 to 0 in 0.0 seconds 2024-03-01 18:36:15.752 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test update ha-state now 2024-03-01 18:36:15.759 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737D, channel: 4, command: DOWN, argument: 0, packet: b'\x020000000002010B000B0000001737D0210104004066\x03' 2024-03-01 18:36:23.560 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test stopped at position 50 2024-03-01 18:36:23.561 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen Mitte Test update ha-state now 2024-03-01 18:36:23.576 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737D, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B000C0000001737D0210104001095\x03' 2024-03-01 18:37:38.610 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts is travelling from position 0 to 100 in 23.0 seconds 2024-03-01 18:37:38.610 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:38.611 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts setup update ha-state callback in 23.0 seconds 2024-03-01 18:37:38.629 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737C, channel: 4, command: UP, argument: 0, packet: b'\x020000000002010B00480000001737C0210104002059\x03' 2024-03-01 18:37:42.997 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts stopped at position 20 2024-03-01 18:37:42.998 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:43.013 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737C, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B00490000001737C0210104001068\x03' 2024-03-01 18:37:43.886 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts is travelling from position 20 to 0 in 4.52 seconds 2024-03-01 18:37:43.886 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:43.887 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts setup update ha-state callback in 4.52 seconds 2024-03-01 18:37:43.907 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737C, channel: 4, command: DOWN, argument: 0, packet: b'\x020000000002010B004A0000001737C0210104004037\x03' 2024-03-01 18:37:47.711 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts stopped at position 4 2024-03-01 18:37:47.711 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:47.720 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Sent packet: unit_id: 1737C, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B004B0000001737C0210104001066\x03'

2024-03-01 18:37:48.930 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: DOWN, argument: 0, packet: b'\x020000000002010B00000000007BF490210204004071\x03' 2024-03-01 18:37:48.931 DEBUG (Thread-6) [custom_components.becker.rf_device] Received packet for dispatcher 2024-03-01 18:37:48.934 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-03-01 18:37:48.934 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts is travelling from position 4 to 0 in 0.904 seconds 2024-03-01 18:37:48.934 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:48.935 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts setup update ha-state callback in 0.904 seconds 2024-03-01 18:37:49.035 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-03-01 18:37:49.035 DEBUG (Thread-6) [custom_components.becker.rf_device] Received packet for dispatcher 2024-03-01 18:37:49.037 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-03-01 18:37:49.840 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:52.712 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: HALT, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040010A1\x03' 2024-03-01 18:37:52.713 DEBUG (Thread-6) [custom_components.becker.rf_device] Received packet for dispatcher 2024-03-01 18:37:52.715 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-03-01 18:37:52.715 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts stopped at position 0 2024-03-01 18:37:52.715 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:52.795 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-03-01 18:37:52.795 DEBUG (Thread-6) [custom_components.becker.rf_device] Received packet for dispatcher 2024-03-01 18:37:52.797 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-03-01 18:37:53.521 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: UP, argument: 0, packet: b'\x020000000002010B00000000007BF490210204002091\x03' 2024-03-01 18:37:53.522 DEBUG (Thread-6) [custom_components.becker.rf_device] Received packet for dispatcher 2024-03-01 18:37:53.524 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-03-01 18:37:53.524 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts is travelling from position 0 to 100 in 23.0 seconds 2024-03-01 18:37:53.524 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now 2024-03-01 18:37:53.525 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts setup update ha-state callback in 23.0 seconds 2024-03-01 18:37:53.696 DEBUG (Thread-6) [custom_components.becker.pybecker.becker_helper] Received packet: unit_id: 7BF49, channel: 4, command: RELEASE, argument: 0, packet: b'\x020000000002010B00000000007BF4902102040000B1\x03' 2024-03-01 18:37:53.696 DEBUG (Thread-6) [custom_components.becker.rf_device] Received packet for dispatcher 2024-03-01 18:37:53.698 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts received a packet from dispatcher 2024-03-01 18:38:16.527 DEBUG (MainThread) [custom_components.becker.cover] Wohnzimmer Rolladen rechts update ha-state now

RainerStaude commented 4 months ago

Could you please send me the configuration

StartDustTC commented 4 months ago

Hi Rainer, I made it working now. In the other HA Community thread, I have read that for the configuration channel and unit are reversed, and I also now recognized this in the README. Maybe you flip the channel & unit example at the README, so the order is the same as you configure it later.

So thank you very much for your time and support, and sorry for my confusion.

As a side note, during my last tests, twice the stick did not receive a UP/DOWN command from the master remote (in the logs I only found the RELEASE) so HA did not show the position correctly. I guess this is something which just might happen?

Best regards.

RainerStaude commented 4 months ago

Good to hear that it is working now. If you don't receive the commands from the remotes, then there is maybe a range issue. Have you placed the HA Becker USB Stick at the same place of the mediola box? Maybe placing the Becker USB Stick with an extension cable at a better position might help.