diff --git a/src/main/java/com/github/kaklakariada/fritzbox/model/homeautomation/Group.java b/src/main/java/com/github/kaklakariada/fritzbox/model/homeautomation/Group.java index d55434c..e53d97b 100644 --- a/src/main/java/com/github/kaklakariada/fritzbox/model/homeautomation/Group.java +++ b/src/main/java/com/github/kaklakariada/fritzbox/model/homeautomation/Group.java @@ -24,6 +24,8 @@ @Root(name = "group") public class Group { + @Attribute(name = "synchronized", required = false) + private String isSynchronized; @Attribute(name = "identifier") private String identifier; @Attribute(name = "id") @@ -38,15 +40,23 @@ public class Group { private String productName; @Element(name = "present") private String present; + @Element(name = "txbusy", required = false) + private String txBusy; @Element(name = "name") private String name; @Element(name = "switch", required = false) private SwitchState switchState; + @Element(name = "simpleonoff", required = false) + private SimpleOnOffState simpleOnOff; @Element(name = "powermeter", required = false) private PowerMeter powerMeter; @Element(name = "groupinfo", required = false) private GroupInfo groupInfo; + public boolean isSynchronized() { + return "1".equals(isSynchronized); + } + public String getId() { return id; } @@ -71,6 +81,10 @@ public String getPresent() { return present; } + public boolean isTxBusy() { + return "1".equals(txBusy); + } + public String getName() { return name; } @@ -79,6 +93,10 @@ public SwitchState getSwitchState() { return switchState; } + public SimpleOnOffState getSimpleOnOff() { + return simpleOnOff; + } + public PowerMeter getPowerMeter() { return powerMeter; }