arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.71k stars 4.72k forks source link

Matter auto-fix IPv6 link-local zone id when network reconnects #21494

Closed s-hadinger closed 1 month ago

s-hadinger commented 1 month ago

Description:

In case of network reconnection (for example after a Wifi scan), the IPv6 link-local zone id changes, which makes the IPv6 address of the Matter controller invalid (for subscriptions).

This adds an auto-fix of zone-id. For example, if an address was fe80::221f:3bff:fe93:60b5%st1 but %st1 does not exist anymore, and new Wifi is on %st2, the address is automatically updated to fe80::221f:3bff:fe93:60b5%st2.

This works also for Ethernet address with %en<x> zone ids.

On ESP8266, there is no change since Matter is not used.

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass