From 81168117cee502ee07ac83e31af1aef83e8cf762 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Fri, 6 Dec 2024 10:02:17 -0700 Subject: [PATCH 1/2] [wiz] Enable addon finder support Just use a dummy IP and Mac; we're "not" registering, so it doesn't really matter Signed-off-by: Cody Cutrer --- .../src/main/resources/OH-INF/addon/addon.xml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml b/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml index 4878c61dfc82c..583f7232fc320 100644 --- a/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml +++ b/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml @@ -8,4 +8,38 @@ Binding for WiZ smart devices. local + + + ip + + + type + ipBroadcast + + + destPort + 38899 + + + requestPlain + {"method":"registration","id":1,"params":{"phoneIp":"$srcIp","register":false,"phoneMac":"$srcMac"}} + + + fmtMac + %02X + + + timeoutMs + 5000 + + + + + response + .* + + + + + From e84c14b408921aeeb7d2519b49f6f0f0eab2f76e Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Fri, 6 Dec 2024 19:50:08 -0700 Subject: [PATCH 2/2] spotless Signed-off-by: Cody Cutrer --- .../src/main/resources/OH-INF/addon/addon.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml b/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml index 583f7232fc320..620c84d014882 100644 --- a/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml +++ b/bundles/org.openhab.binding.wiz/src/main/resources/OH-INF/addon/addon.xml @@ -25,7 +25,7 @@ {"method":"registration","id":1,"params":{"phoneIp":"$srcIp","register":false,"phoneMac":"$srcMac"}} - fmtMac + fmtMac %02X