-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[netatmo] Fix erroneous local URL handling #16492
Conversation
Signed-off-by: clinique <gael@lhopital.org>
…resence) so they remain reachable if API answer is in an incorrect network Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
This is a corner case. It does not happen all time (yesterday all day, this evening a part of my work session) where the vpnUrl returned by the API is not on the local network (http://169.254.xxx instead of http://192.168.xxxxx). The other option was to use the vpn url as a fallback - losing ability of actions (e.g. lights on/off) that requires local access. |
...g.netatmo/src/main/java/org/openhab/binding/netatmo/internal/config/CameraConfiguration.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/config/config.xml
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/netatmo/internal/handler/capability/CameraCapability.java
Outdated
Show resolved
Hide resolved
Doing a bit a cleansing. I know it is not bug directly connected to bug correction but when I see some opportunities to enhance code... Signed-off-by: clinique <gael@lhopital.org>
…guration is not up-to-date Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
* Wrong local URL handling * Adds configuration element ipAddress to Cameras (Welcome, Doorbell, Presence) so they remain reachable if API answer is in an incorrect network * Removing CameraConfiguration so binding does not break if thing configuration is not up-to-date --------- Signed-off-by: clinique <gael@lhopital.org> Signed-off-by: gael@lhopital.org <gael@lhopital.org>
…penhab#16546) * Corrects and completes PR openhab#16492 --------- Signed-off-by: gael@lhopital.org <gael@lhopital.org>
…penhab#16546) * Corrects and completes PR openhab#16492 --------- Signed-off-by: gael@lhopital.org <gael@lhopital.org>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/netatmo-bridge-offline-99-of-time/149168/28 |
* Wrong local URL handling * Adds configuration element ipAddress to Cameras (Welcome, Doorbell, Presence) so they remain reachable if API answer is in an incorrect network * Removing CameraConfiguration so binding does not break if thing configuration is not up-to-date --------- Signed-off-by: clinique <gael@lhopital.org> Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
…penhab#16546) * Corrects and completes PR openhab#16492 --------- Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
* Wrong local URL handling * Adds configuration element ipAddress to Cameras (Welcome, Doorbell, Presence) so they remain reachable if API answer is in an incorrect network * Removing CameraConfiguration so binding does not break if thing configuration is not up-to-date --------- Signed-off-by: clinique <gael@lhopital.org> Signed-off-by: gael@lhopital.org <gael@lhopital.org>
…penhab#16546) * Corrects and completes PR openhab#16492 --------- Signed-off-by: gael@lhopital.org <gael@lhopital.org>
…penhab#16546) * Corrects and completes PR openhab#16492 --------- Signed-off-by: gael@lhopital.org <gael@lhopital.org>
…penhab#16546) * Corrects and completes PR openhab#16492 --------- Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
While investigating issue #15883 I identified this issue.
I has also hit HA other extensions the same way.