arjenhiemstra / ithowifi

Itho wifi add-on module (ESP32 wifi to itho I2C protocol)
GNU General Public License v3.0
169 stars 29 forks source link

[Feature request] Add spider remote #248

Open antonvdl opened 2 months ago

antonvdl commented 2 months ago

Describe the bug I want to pair a Spider remote control. The join message gets received, but the spider expects a response. When no response has been received the pairing proces ends with an error

To Reproduce Steps to reproduce the behaviour:

  1. Switch on Join/Leave mode
  2. Restart Spider and enter pairing menu
  3. Choose ventilation and confirm
  4. Pairing ends with "--" on the spider

Expected behaviour Succesfully paired remote

Device information

Debug logging 30-4-2024 20:28:45: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 30-4-2024 20:28:43: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 30-4-2024 20:28:29: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 30-4-2024 20:28:23: H:1A _I P0:01 P1:-- 54,BD,A7 --,--,-- 54,BD,A7 2E10 02:00,01 (cmd:unknown) 30-4-2024 20:28:23: H:1A _I P0:01 P1:-- 54,BD,A7 --,--,-- 54,BD,A7 2E10 02:00,01 (cmd:unknown) 30-4-2024 20:28:23: H:1A _I P0:01 P1:-- 54,BD,A7 --,--,-- 54,BD,A7 2E10 02:00,01 (cmd:unknown) 30-4-2024 20:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1060 03:00,FF,01 (cmd:unknown) 30-4-2024 20:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 3120 07:00,70,B0,00,00,00,FF (cmd:unknown) 30-4-2024 20:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 3110 04:00,00,00,00 (cmd:unknown) 30-4-2024 20:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 12C0 04:00,30,01,FF (cmd:unknown) 30-4-2024 20:28:15: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 22C9 06:00,07,08,07,D0,00 (cmd:unknown) 30-4-2024 20:28:15: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 30C9 03:00,09,7B (cmd:unknown) 30-4-2024 20:28:11: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1060 03:00,FF,01 (cmd:unknown) 30-4-2024 20:28:11: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 042F 09:00,07,00,00,1F,00,26,40,10 (cmd:unknown)

arjenhiemstra commented 2 months ago

Hi @antonvdl , thanks for this issue! Indeed there is no spider support and only limited support for bi-directional joins. The last few weeks I have spend many hours on cracking the way the handshake works and how status is exchanged. The last few days I made some noticeable progress but it is still not error free (there is still an warning wrench message displayed on the spider remote). But luckily now the join actually works bidirectionally and the fan mode is being updated on the spider screen. You may expect this (still somewhat limited) support to be included in the next update

arjenhiemstra commented 2 months ago

FYI; could you try with the latest beta release: https://github.com/arjenhiemstra/ithowifi/releases/tag/Version-2.9.0-beta1

if it works with your spider?

There are two ways to join: 1- uni-directional - you can use your spider to send remote commands to the add-on, commands communicated from the spider to the itho can also be seen, ie. temp status. Use either send or monitor as remote function for this option and start the join process as described in the spider manual.

2- bi-directional - after this spider won't be connected to your itho (fan?) anymore, only to the add-on. Fan status updates are communicated to the spider but other parts might do not work (ie. heating commands) but this is untested as I do only have the spider itself to test. Feedback about how this works out for you is welcome! Set remote function to bi-directional for the first free RF remote and start the join process as described in the spider manual.

antonvdl commented 2 months ago

I've tried both methods; but the join does not succeed:

Join - Third attempt 2-5-2024 19:29:38: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 2-5-2024 19:29:36: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join)

Join - second attempt 2-5-2024 19:29:20: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 2-5-2024 19:29:19: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 2-5-2024 19:29:18: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join)

Join - first attempt 2-5-2024 19:28:53: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join) 2-5-2024 19:28:51: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1FC9 12:00,22,F1,54,BD,A7,01,10,E0,54,BD,A7,00,1F,C9,54,BD,A7 (cmd:join)

Spider boots (without connection) 2-5-2024 19:28:25: H:18 _I P0:-- P1:-- 50,0E,F5 --,--,-- 50,0E,F5 31DA 1D:00,EF,00,7F,FF,EF,EF,7F,FF,7F,FF,7F,FF,7F,FF,F8,00,EF,18,05,00,00,00,EF,EF,7F,FF,7F,FF (cmd:unknown) 2-5-2024 19:28:17: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 1060 03:00,FF,01 (cmd:unknown) 2-5-2024 19:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 3120 07:00,70,B0,00,00,00,FF (cmd:unknown) 2-5-2024 19:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 3110 04:00,00,00,00 (cmd:unknown) 2-5-2024 19:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 12C0 04:00,34,01,FF (cmd:unknown) 2-5-2024 19:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 22C9 06:00,07,08,07,D0,00 (cmd:unknown) 2-5-2024 19:28:16: H:18 _I P0:-- P1:-- 54,BD,A7 --,--,-- 54,BD,A7 30C9 03:00,0A,4F (cmd:unknown)

After the failed join the remote status in the ithowifi is "Receive" and the remtype = "Spider"

I use the spider stand-alone so only for fan control; the heating part is not in use anymore (was controlled by a Gateway, but Itho discontinued the product)

arjenhiemstra commented 2 months ago

After the failed join the remote status in the ithowifi is "Receive" and the remtype = "Spider"

This should be indication that the uni-directional join worked. Ie. the add-on will now accept commands from your spider.

The bi-directional join should start and end with remote function "bi-directional". Lemme check again with my own spider. I'll try to make a video of the join process.

antonvdl commented 2 months ago

Hi Arjen,

Thanks; will be waiting for the results. At my end the pairing proces on the Spider just fails with "--"; and after that it shows that the fan is not connected.

arjenhiemstra commented 2 months ago

That will always be the case after an uni-directional join. The spider will still send the remote commands though. At least, that is my experience.On 3 May 2024, at 19:43, antonvdl @.***> wrote: Hi Arjen, Thanks; will be waiting for the results. At my end the pairing proces on the Spider just fails with "--"; and after that it shows that the fan is not connected.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

antonvdl commented 2 months ago

Hi Arjen,

When the pairing fails the Spider can not send any commands, since the buttons do not show up on the interface. Or do you mean that the "--" is normal?

In the beta firmware I notice that in Home Assistant the "preset_mode" does not work correctly anymore. I wrote an automation that automatically converts the fan percentage to the right preset_mode so that I can work with 3 buttons (low, medium, high). In 2.80 that works correctly but in the beta firmware it does not work anymore.

stale[bot] commented 4 days ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.