-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miio] Automatic create experimental support for (unsupported) miot d…
…evices (#11149) Signed-off-by: Marcel Verpaalen <[email protected]>
- Loading branch information
Showing
20 changed files
with
1,283 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
....openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/miot/ActionDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright (c) 2010-2021 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.miio.internal.miot; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Mapping properties from json for miot device info | ||
* | ||
* @author Marcel Verpaalen - Initial contribution | ||
*/ | ||
public class ActionDTO { | ||
|
||
@SerializedName("iid") | ||
@Expose | ||
public Integer iid; | ||
@SerializedName("type") | ||
@Expose | ||
public String type; | ||
@SerializedName("description") | ||
@Expose | ||
public String description; | ||
@SerializedName("in") | ||
@Expose | ||
public List<Object> in = null; | ||
@SerializedName("out") | ||
@Expose | ||
public List<Object> out = null; | ||
} |
39 changes: 39 additions & 0 deletions
39
...g.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/miot/EventDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Copyright (c) 2010-2021 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.miio.internal.miot; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Mapping properties from json for miot device info | ||
* | ||
* @author Marcel Verpaalen - Initial contribution | ||
*/ | ||
public class EventDTO { | ||
|
||
@SerializedName("iid") | ||
@Expose | ||
public Integer iid; | ||
@SerializedName("type") | ||
@Expose | ||
public String type; | ||
@SerializedName("description") | ||
@Expose | ||
public String description; | ||
@SerializedName("arguments") | ||
@Expose | ||
public List<Integer> arguments = null; | ||
} |
Oops, something went wrong.