├── bin ├── classes.dex ├── SmartHome.apk ├── resources.ap_ ├── res │ ├── drawable-hdpi │ │ ├── meter.png │ │ ├── homelogo.png │ │ ├── ic_launcher.png │ │ ├── temperature.png │ │ ├── light_switch_on.png │ │ └── light_switch_off.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ └── drawable-mdpi │ │ └── ic_launcher.png └── classes │ └── upb │ └── smarthome │ ├── R.class │ ├── R$id.class │ ├── R$anim.class │ ├── R$attr.class │ ├── R$layout.class │ ├── R$string.class │ ├── R$drawable.class │ ├── MyViewFlipper.class │ ├── SensorDetails.class │ ├── SensorDetails$1$1.class │ ├── SensorDetails$1.class │ ├── SmartHomeActivity.class │ ├── ThermostatControl.class │ ├── restcomm │ ├── RestComm.class │ └── JSONParser.class │ ├── SmartHomeActivity$1.class │ ├── SmartHomeActivity$2.class │ ├── ThermostatControl$1.class │ ├── devices │ ├── FlowSensor.class │ ├── LogicalDevice.class │ ├── OnOffActuator.class │ ├── DeviceConstants.class │ ├── TemperatureSensor.class │ └── ThermostatActuator.class │ ├── SmartHomeActivity$2$1.class │ ├── clusters │ ├── BasicCluster.class │ ├── FlowCluster.class │ ├── OnOffCluster.class │ ├── PowerCluster.class │ ├── BasicClusterStatus.class │ ├── ClusterConstants.class │ ├── FlowClusterStatus.class │ ├── OnOffClusterStatus.class │ ├── PowerClusterStatus.class │ ├── TemperatureCluster.class │ ├── ThermostatCluster.class │ ├── ThermostatClusterStatus.class │ └── TemperatureClusterStatus.class │ ├── data │ ├── SmartHomeProvider.class │ ├── SmartHomeProvider$1.class │ └── SmartHomeProvider$DatabaseHelper.class │ ├── SmartHomeActivity$2$1$1.class │ ├── SmartHomeActivity$MyUiUpdate.class │ ├── SmartHomeActivity$ToggleOnOff.class │ ├── SmartHomeActivity$ListWithImageAdapter.class │ ├── ThermostatControl$SaveThermostatValues.class │ └── SmartHomeActivity$MyOnItemSelectedListener.class ├── res ├── drawable-hdpi │ ├── meter.png │ ├── homelogo.png │ ├── ic_launcher.png │ ├── temperature.png │ ├── thermostat.jpeg │ ├── light_switch_off.png │ └── light_switch_on.png ├── drawable-ldpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── layout │ ├── actuators.xml │ ├── sensors.xml │ ├── list_item.xml │ ├── thermostat.xml │ └── sensor_details.xml ├── values │ └── strings.xml └── anim │ ├── slide_left_out.xml │ ├── slide_left_in.xml │ ├── slide_right_in.xml │ └── slide_right_out.xml ├── lib └── Androidplot-core-0.4.4-release.jar ├── project.properties ├── src └── upb │ └── smarthome │ ├── clusters │ ├── PowerCluster.java │ ├── PowerClusterStatus.java │ ├── BasicCluster.java │ ├── ThermostatCluster.java │ ├── FlowCluster.java │ ├── OnOffCluster.java │ ├── TemperatureCluster.java │ ├── BasicClusterStatus.java │ ├── OnOffClusterStatus.java │ ├── TemperatureClusterStatus.java │ ├── FlowClusterStatus.java │ ├── ThermostatClusterStatus.java │ └── ClusterConstants.java │ ├── devices │ ├── DeviceConstants.java │ ├── OnOffActuator.java │ ├── FlowSensor.java │ ├── TemperatureSensor.java │ ├── ThermostatActuator.java │ └── LogicalDevice.java │ ├── MyViewFlipper.java │ ├── restcomm │ ├── RestComm.java │ └── JSONParser.java │ ├── ThermostatControl.java │ ├── SensorDetails.java │ ├── SmartHomeActivity.java │ └── data │ └── SmartHomeProvider.java ├── proguard.cfg ├── AndroidManifest.xml ├── README └── gen └── upb └── smarthome └── R.java /bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes.dex -------------------------------------------------------------------------------- /bin/SmartHome.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/SmartHome.apk -------------------------------------------------------------------------------- /bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/resources.ap_ -------------------------------------------------------------------------------- /res/drawable-hdpi/meter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/meter.png -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/meter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-hdpi/meter.png -------------------------------------------------------------------------------- /res/drawable-hdpi/homelogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/homelogo.png -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R.class -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/homelogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-hdpi/homelogo.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-hdpi/temperature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/temperature.png -------------------------------------------------------------------------------- /res/drawable-hdpi/thermostat.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/thermostat.jpeg -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R$id.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R$anim.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R$anim.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R$attr.class -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/temperature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-hdpi/temperature.png -------------------------------------------------------------------------------- /bin/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/Androidplot-core-0.4.4-release.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/lib/Androidplot-core-0.4.4-release.jar -------------------------------------------------------------------------------- /res/drawable-hdpi/light_switch_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/light_switch_off.png -------------------------------------------------------------------------------- /res/drawable-hdpi/light_switch_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/res/drawable-hdpi/light_switch_on.png -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R$layout.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R$string.class -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/light_switch_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-hdpi/light_switch_on.png -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/R$drawable.class -------------------------------------------------------------------------------- /bin/res/drawable-hdpi/light_switch_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/res/drawable-hdpi/light_switch_off.png -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/MyViewFlipper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/MyViewFlipper.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SensorDetails.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SensorDetails.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SensorDetails$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SensorDetails$1$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SensorDetails$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SensorDetails$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/ThermostatControl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/ThermostatControl.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/restcomm/RestComm.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/restcomm/RestComm.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$2.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/ThermostatControl$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/ThermostatControl$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/devices/FlowSensor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/devices/FlowSensor.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/restcomm/JSONParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/restcomm/JSONParser.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$2$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$2$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/BasicCluster.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/BasicCluster.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/FlowCluster.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/FlowCluster.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/OnOffCluster.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/OnOffCluster.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/PowerCluster.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/PowerCluster.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/data/SmartHomeProvider.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/data/SmartHomeProvider.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/devices/LogicalDevice.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/devices/LogicalDevice.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/devices/OnOffActuator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/devices/OnOffActuator.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$2$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$2$1$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/data/SmartHomeProvider$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/data/SmartHomeProvider$1.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/devices/DeviceConstants.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/devices/DeviceConstants.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/BasicClusterStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/BasicClusterStatus.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/ClusterConstants.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/ClusterConstants.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/FlowClusterStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/FlowClusterStatus.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/OnOffClusterStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/OnOffClusterStatus.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/PowerClusterStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/PowerClusterStatus.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/TemperatureCluster.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/TemperatureCluster.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/ThermostatCluster.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/ThermostatCluster.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/devices/TemperatureSensor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/devices/TemperatureSensor.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/devices/ThermostatActuator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/devices/ThermostatActuator.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$MyUiUpdate.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$MyUiUpdate.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$ToggleOnOff.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$ToggleOnOff.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/ThermostatClusterStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/ThermostatClusterStatus.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/clusters/TemperatureClusterStatus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/clusters/TemperatureClusterStatus.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/data/SmartHomeProvider$DatabaseHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/data/SmartHomeProvider$DatabaseHelper.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$ListWithImageAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$ListWithImageAdapter.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/ThermostatControl$SaveThermostatValues.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/ThermostatControl$SaveThermostatValues.class -------------------------------------------------------------------------------- /bin/classes/upb/smarthome/SmartHomeActivity$MyOnItemSelectedListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielrizea/SmartHome-Android/HEAD/bin/classes/upb/smarthome/SmartHomeActivity$MyOnItemSelectedListener.class -------------------------------------------------------------------------------- /res/layout/actuators.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello World, SmartHomeActivity! 5 | SmartHome 6 | Chose senzor type 7 | Save values 8 | 9 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-9 12 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/PowerCluster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | import java.util.ArrayList; 10 | 11 | /** 12 | * The Class PowerCluster. 13 | */ 14 | public class PowerCluster { 15 | 16 | 17 | 18 | /** The statuses. */ 19 | public ArrayList statuses; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/PowerClusterStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | /** 10 | * The Class PowerClusterStatus. 11 | */ 12 | public class PowerClusterStatus { 13 | 14 | /** The mains voltage. */ 15 | public float mainsVoltage; 16 | 17 | /** The mains frequency. */ 18 | public float mainsFrequency; 19 | 20 | /** The battery voltage. */ 21 | public float batteryVoltage; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/BasicCluster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | import java.util.ArrayList; 10 | 11 | /** 12 | * The Class BasicCluster. 13 | * Class used in ZigBee standard 14 | */ 15 | public class BasicCluster { 16 | 17 | /** The statuses. */ 18 | private ArrayList statuses; 19 | 20 | //null constructor 21 | /** 22 | * Instantiates a new basic cluster. 23 | */ 24 | public BasicCluster(){ 25 | 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/ThermostatCluster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | import java.util.ArrayList; 10 | 11 | public class ThermostatCluster { 12 | 13 | public ArrayList statuses ; 14 | 15 | public ThermostatClusterStatus currentStatus; 16 | 17 | /** 18 | * Instantiates a new thermostat cluster. 19 | */ 20 | public ThermostatCluster(){ 21 | 22 | statuses = new ArrayList(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /res/layout/sensors.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 13 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/FlowCluster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | import java.util.ArrayList; 10 | 11 | /** 12 | * The Class FlowCluster. 13 | */ 14 | public class FlowCluster { 15 | 16 | /** The statuses. */ 17 | public ArrayList statuses; 18 | 19 | /** The current status. */ 20 | public FlowClusterStatus currentStatus; 21 | 22 | /** 23 | * Instantiates a new flow cluster. 24 | */ 25 | public FlowCluster(){ 26 | 27 | statuses = new ArrayList(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/OnOffCluster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | import java.util.ArrayList; 10 | 11 | /** 12 | * The Class OnOffCluster. 13 | */ 14 | public class OnOffCluster { 15 | 16 | /** The statuses. */ 17 | public ArrayList statuses; 18 | 19 | /** The current status. */ 20 | public OnOffClusterStatus currentStatus; 21 | 22 | /** 23 | * Instantiates a new on off cluster. 24 | */ 25 | public OnOffCluster(){ 26 | 27 | statuses = new ArrayList(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/upb/smarthome/devices/DeviceConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.devices; 8 | 9 | /** 10 | * The Class DeviceConstants. 11 | */ 12 | public class DeviceConstants { 13 | 14 | /** The Constant TYPE_TEMPERATURE_SENSOR. */ 15 | public static final int TYPE_TEMPERATURE_SENSOR = 1; 16 | 17 | /** The Constant TYPE_ON_OFF. */ 18 | public static final int TYPE_ON_OFF = 2; 19 | 20 | /** The Constant TYPE_FLOW_METER. */ 21 | public static final int TYPE_FLOW_METER = 3; 22 | 23 | /** The Constant TYPE_THERMOSTAT. */ 24 | public static final int TYPE_THERMOSTAT = 4; 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/TemperatureCluster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | import java.util.ArrayList; 10 | 11 | /** 12 | * The Class TemperatureCluster. 13 | */ 14 | public class TemperatureCluster { 15 | 16 | /** The statuses. */ 17 | public ArrayList statuses; 18 | 19 | /** The current status. */ 20 | public TemperatureClusterStatus currentStatus; 21 | 22 | /** 23 | * Instantiates a new temperature cluster. 24 | */ 25 | public TemperatureCluster(){ 26 | 27 | statuses = new ArrayList(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/BasicClusterStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | /** 10 | * The Class BasicClusterStatus. 11 | * Class used in ZigBee standard 12 | */ 13 | public class BasicClusterStatus { 14 | 15 | /** The Power source value. */ 16 | public int PowerSourceValue; 17 | 18 | /** The Location description. */ 19 | public String LocationDescription; 20 | 21 | /** The Device enabled. */ 22 | public Boolean DeviceEnabled; 23 | 24 | /** The ZCL version. */ 25 | public int ZCLVersion; 26 | 27 | /** The timestamp. */ 28 | public long timestamp; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/OnOffClusterStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | /** 10 | * The Class OnOffClusterStatus. 11 | */ 12 | public class OnOffClusterStatus { 13 | 14 | /** The status. */ 15 | public int status; 16 | 17 | /** The timestamp. */ 18 | public int timestamp; 19 | 20 | /** 21 | * Instantiates a new on off cluster status. 22 | * 23 | * @param status the status 24 | * @param timestamp the timestamp 25 | */ 26 | public OnOffClusterStatus(int status,int timestamp){ 27 | 28 | this.status = status; 29 | this.timestamp = timestamp; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/TemperatureClusterStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | public class TemperatureClusterStatus { 10 | 11 | public static String unit = "°C"; 12 | 13 | public float measuredValue; 14 | public int timestamp; 15 | 16 | /** 17 | * Instantiates a new temperature cluster status. 18 | * 19 | * @param measuredValue the measured value 20 | * @param timestamp the timestamp 21 | */ 22 | public TemperatureClusterStatus(float measuredValue,int timestamp) { 23 | super(); 24 | this.measuredValue = measuredValue; 25 | this.timestamp = timestamp; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/upb/smarthome/devices/OnOffActuator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.devices; 8 | 9 | import upb.smarthome.clusters.OnOffCluster; 10 | 11 | public class OnOffActuator extends LogicalDevice{ 12 | 13 | public OnOffCluster onOffcluster; 14 | 15 | /** 16 | * Instantiates a new on off actuator. 17 | * 18 | * @param extAddString the ext add string 19 | * @param endPoint the end point 20 | * @param type the type 21 | */ 22 | public OnOffActuator(String extAddString, int endPoint, int type) { 23 | super(extAddString, endPoint, type); 24 | // TODO Auto-generated constructor stub 25 | 26 | onOffcluster = new OnOffCluster(); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/upb/smarthome/devices/FlowSensor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.devices; 8 | 9 | import upb.smarthome.clusters.FlowCluster; 10 | 11 | /** 12 | * The Class FlowSensor. 13 | */ 14 | public class FlowSensor extends LogicalDevice{ 15 | 16 | 17 | /** The flow cluster. */ 18 | public FlowCluster flowCluster; 19 | 20 | /** 21 | * Instantiates a new flow sensor. 22 | * 23 | * @param extAddString the ext add string 24 | * @param endPoint the end point 25 | * @param type the type 26 | */ 27 | public FlowSensor(String extAddString, int endPoint, int type) { 28 | super(extAddString, endPoint, type); 29 | // TODO Auto-generated constructor stub 30 | 31 | flowCluster = new FlowCluster(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/FlowClusterStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | /** 10 | * The Class FlowClusterStatus. 11 | */ 12 | public class FlowClusterStatus { 13 | 14 | /** The unit. */ 15 | public static String unit = "l"; 16 | 17 | /** The measured value. */ 18 | public float measuredValue; 19 | 20 | /** The timestamp. */ 21 | public int timestamp; 22 | 23 | /** 24 | * Instantiates a new flow cluster status. 25 | * 26 | * @param measuredValue the measured value 27 | * @param timestamp the timestamp 28 | */ 29 | public FlowClusterStatus(float measuredValue, int timestamp) { 30 | super(); 31 | this.measuredValue = measuredValue; 32 | this.timestamp = timestamp; 33 | } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/upb/smarthome/devices/TemperatureSensor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.devices; 8 | 9 | import upb.smarthome.clusters.TemperatureCluster; 10 | 11 | /** 12 | * The Class TemperatureSensor. 13 | */ 14 | public class TemperatureSensor extends LogicalDevice{ 15 | 16 | 17 | /** The temp cluster. */ 18 | public TemperatureCluster tempCluster; 19 | 20 | /** 21 | * Instantiates a new temperature sensor. 22 | * 23 | * @param extAddString the ext add string 24 | * @param endPoint the end point 25 | * @param type the type 26 | */ 27 | public TemperatureSensor(String extAddString, int endPoint, int type) { 28 | super(extAddString, endPoint, type); 29 | // TODO Auto-generated constructor stub 30 | 31 | tempCluster = new TemperatureCluster(); 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/upb/smarthome/devices/ThermostatActuator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.devices; 8 | 9 | import upb.smarthome.clusters.ThermostatCluster; 10 | 11 | /** 12 | * The Class ThermostatActuator. 13 | */ 14 | public class ThermostatActuator extends LogicalDevice{ 15 | 16 | 17 | /** The thermostat cluster. */ 18 | public ThermostatCluster thermostatCluster; 19 | 20 | /** 21 | * Instantiates a new thermostat actuator. 22 | * 23 | * @param extAddString the ext add string 24 | * @param endPoint the end point 25 | * @param type the type 26 | */ 27 | public ThermostatActuator(String extAddString, int endPoint, int type) { 28 | super(extAddString, endPoint, type); 29 | // TODO Auto-generated constructor stub 30 | 31 | thermostatCluster = new ThermostatCluster(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /res/anim/slide_left_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 24 | 26 | -------------------------------------------------------------------------------- /res/anim/slide_left_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 24 | 26 | 27 | -------------------------------------------------------------------------------- /res/anim/slide_right_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 24 | 26 | 27 | -------------------------------------------------------------------------------- /res/anim/slide_right_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 24 | 26 | -------------------------------------------------------------------------------- /proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class * extends android.app.backup.BackupAgentHelper 14 | -keep public class * extends android.preference.Preference 15 | -keep public class com.android.vending.licensing.ILicensingService 16 | 17 | -keepclasseswithmembernames class * { 18 | native ; 19 | } 20 | 21 | -keepclasseswithmembers class * { 22 | public (android.content.Context, android.util.AttributeSet); 23 | } 24 | 25 | -keepclasseswithmembers class * { 26 | public (android.content.Context, android.util.AttributeSet, int); 27 | } 28 | 29 | -keepclassmembers class * extends android.app.Activity { 30 | public void *(android.view.View); 31 | } 32 | 33 | -keepclassmembers enum * { 34 | public static **[] values(); 35 | public static ** valueOf(java.lang.String); 36 | } 37 | 38 | -keep class * implements android.os.Parcelable { 39 | public static final android.os.Parcelable$Creator *; 40 | } 41 | -------------------------------------------------------------------------------- /src/upb/smarthome/clusters/ThermostatClusterStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.clusters; 8 | 9 | /** 10 | * The Class ThermostatClusterStatus. 11 | */ 12 | public class ThermostatClusterStatus { 13 | 14 | /** The unit. */ 15 | public static String unit = "°C"; 16 | 17 | /** The Local temperature. */ 18 | public float LocalTemperature; 19 | 20 | /** The Min heat setpoint limit. */ 21 | public float MinHeatSetpointLimit; 22 | 23 | /** The Max heat setpoint limit. */ 24 | public float MaxHeatSetpointLimit; 25 | 26 | /** The timestamp. */ 27 | public int timestamp; 28 | 29 | /** 30 | * Instantiates a new thermostat cluster status. 31 | * 32 | * @param localTemperature the local temperature 33 | * @param minHeatSetpointLimit the min heat setpoint limit 34 | * @param maxHeatSetpointLimit the max heat setpoint limit 35 | * @param timestamp the timestamp 36 | */ 37 | public ThermostatClusterStatus(float localTemperature, 38 | float minHeatSetpointLimit, float maxHeatSetpointLimit, 39 | int timestamp) { 40 | super(); 41 | LocalTemperature = localTemperature; 42 | MinHeatSetpointLimit = minHeatSetpointLimit; 43 | MaxHeatSetpointLimit = maxHeatSetpointLimit; 44 | this.timestamp = timestamp; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/upb/smarthome/devices/LogicalDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Smart Home Project 3 | * Copyright (c) 2011 All rights reserved. 4 | * Polytehnic University of Bucharest 5 | * Developed by Daniel-Octavian Rizea 6 | */ 7 | package upb.smarthome.devices; 8 | 9 | import upb.smarthome.clusters.BasicCluster; 10 | import upb.smarthome.clusters.PowerCluster; 11 | 12 | /** 13 | * The Class LogicalDevice. 14 | */ 15 | public class LogicalDevice { 16 | 17 | /** The ext address. */ 18 | public String extAddress; 19 | 20 | /** The end point. */ 21 | public int endPoint = -1; 22 | 23 | /** The type. */ 24 | public int type; 25 | 26 | /** The unit. */ 27 | public String unit; 28 | 29 | //basic clusters 30 | /** The basic cluster. */ 31 | private BasicCluster basicCluster; 32 | 33 | /** The power cluster. */ 34 | private PowerCluster powerCluster; 35 | 36 | /** The position. */ 37 | public String position ; 38 | 39 | /** 40 | * Instantiates a new logical device. 41 | * 42 | * @param extAddress the ext address 43 | * @param endPoint the end point 44 | * @param type the type 45 | */ 46 | public LogicalDevice(String extAddress, int endPoint, int type){ 47 | 48 | this.extAddress = extAddress; 49 | this.endPoint = endPoint; 50 | this.type = type; 51 | 52 | basicCluster = new BasicCluster(); 53 | powerCluster = new PowerCluster(); 54 | 55 | } 56 | 57 | /** 58 | * Gets the unit. 59 | * 60 | * @return the unit 61 | */ 62 | public String getUnit(){ 63 | return unit; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /res/layout/list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | 13 | 20 | 21 | 28 | 34 | 35 | 36 | 43 | -------------------------------------------------------------------------------- /res/layout/thermostat.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | > 12 | 16 | 24 | 33 | 34 | 35 | 43 |