]> git.basschouten.com Git - openhab-addons.git/commitdiff
[Tapocontrol] Restore child device querying (#14788)
authorGaël L'hopital <gael@lhopital.org>
Wed, 12 Apr 2023 07:58:08 +0000 (09:58 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Apr 2023 07:58:08 +0000 (09:58 +0200)
Signed-off-by: Gael L'hopital <gael@lhopital.org>
bundles/org.openhab.binding.tapocontrol/pom.xml
bundles/org.openhab.binding.tapocontrol/src/main/java/org/openhab/binding/tapocontrol/internal/api/TapoDeviceConnector.java
bundles/org.openhab.binding.tapocontrol/src/main/resources/OH-INF/addon/addon.xml

index 3599672e5c590614fe7222f8b5a290240cd3213e..a926af84d172e3d3ffba389174f320d53857725d 100644 (file)
@@ -11,5 +11,7 @@
   </parent>
 
   <artifactId>org.openhab.binding.tapocontrol</artifactId>
+
   <name>openHAB Add-ons :: Bundles :: TapoControl Binding</name>
+
 </project>
index 56bb3d1f1c18e9dd5d971f22f69f9abcb50fd5e6..33594f4d6fd0b8804e1f8baba1fe2508ab68acdd 100644 (file)
@@ -214,11 +214,11 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
     /**
      * Query Info from Device and refresh deviceInfo
      *
-     * 
+     *
      * @param ignoreGap ignore gap to last query. query anyway
      */
     public void queryInfo(boolean ignoreGap) {
-        logger.trace("({}) DeviceConnetor_queryInfo from '{}'", uid, deviceURL);
+        logger.trace("({}) DeviceConnector_queryInfo from '{}'", uid, deviceURL);
         queryCommand(DEVICE_CMD_GETINFO, ignoreGap);
     }
 
@@ -227,8 +227,8 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
      */
     @Override
     public void queryChildDevices() {
-        logger.trace("({}) DeviceConnetor_queryChildDevices from '{}'", uid, deviceURL);
-        queryCommand(DEVICE_CMD_CHILD_DEVICE_LIST, false);
+        logger.trace("({}) DeviceConnector_queryChildDevices from '{}'", uid, deviceURL);
+        queryCommand(DEVICE_CMD_CHILD_DEVICE_LIST, true);
     }
 
     /**
@@ -240,12 +240,12 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
 
     /**
      * Send Custom DeviceQuery
-     * 
+     *
      * @param queryCommand Command to be queried
      * @param ignoreGap ignore gap to last query. query anyway
      */
     public void queryCommand(String queryCommand, boolean ignoreGap) {
-        logger.trace("({}) DeviceConnetor_queryCommand '{}' from '{}'", uid, queryCommand, deviceURL);
+        logger.trace("({}) DeviceConnector_queryCommand '{}' from '{}'", uid, queryCommand, deviceURL);
         long now = System.currentTimeMillis();
         if (ignoreGap || now > this.lastQuery + TAPO_SEND_MIN_GAP_MS) {
             this.lastQuery = now;
index 51bc86cbce72f2dc4a6602ed87cf7dc2a2109f04..80b67f9b659923d47c1b4299b04cbaffee82142d 100644 (file)
@@ -5,4 +5,6 @@
        <type>binding</type>
        <name>TapoControl Binding</name>
        <description>Control your TAPO-SmartHome Devices</description>
+       <connection>cloud</connection>
+
 </addon:addon>