]> git.basschouten.com Git - openhab-addons.git/commit
[shelly] Add check and ThingStatus for local IP issue (APIPA) (#16306)
authorMarkus Michels <markus7017@gmail.com>
Sat, 27 Jan 2024 20:58:44 +0000 (21:58 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 20:58:44 +0000 (21:58 +0100)
commitbed592c3a4e48f6eb8f88c6e025f598760c8a373
tree52a426b652b00cad808d577b93f44d7129c4ae77
parent1716d41b2854d2f0fc722565c66cbd96e6f204fe
[shelly] Add check and ThingStatus for local IP issue (APIPA) (#16306)

* Check for local_ip == 169.254.x.xm, which is the result when DHCP IP
assignment failed. Avoid that the binding passes this address to the
device as part of the callback url.

Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: markus7017 <markus7017@gmail..com>
bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyEventServlet.java
bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBaseHandler.java
bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerCache.java
bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties