lots of changes
diff --git a/xml/sensor2.xml b/xml/sensor2.xml
new file mode 100644
index 0000000..8d2798a
--- /dev/null
+++ b/xml/sensor2.xml
@@ -0,0 +1,67 @@
+<node>
+ <interface name="org.openbmc.SensorInteger">
+ <method name="getValue">
+ <arg name="value" type="i" direction="out"/>
+ </method>
+ <method name="setValue">
+ <arg name="value" type="i" direction="in"/>
+ </method>
+ <method name="getUnits">
+ <arg name="units" type="s" direction="out"/>
+ </method>
+ <method name="setPollInterval">
+ <arg name="poll_interval" type="i" direction="in"/>
+ </method>
+ <method name="setConfigData">
+ <arg name="config" type="as" direction="in"/>
+ </method>
+
+ <property name="value" type="i" access="read"/>
+ <property name="units" type="s" access="read"/>
+
+ <property name="poll_interval" type="i" access="read"/>
+ <property name="config_data" type="as" access="read"/>
+
+ <property name="heatbeat" type="i" access="read"/>
+
+ <signal name="Changed">
+ <arg name="value" type="i"/>
+ </signal>
+ <signal name="Heartbeat">
+ <arg name="bus_name" type="s"/>
+ </signal>
+ </interface>
+ <interface name="org.openbmc.SensorString">
+ <method name="getValue">
+ <arg name="value" type="s" direction="out"/>
+ </method>
+ <method name="getUnits">
+ <arg name="units" type="s" direction="out"/>
+ </method>
+ <property name="value" type="i" access="read"/>
+ <property name="units" type="s" access="read"/>
+ <signal name="Changed">
+ <arg name="value" type="s"/>
+ </signal>
+ </interface>
+ <interface name="org.openbmc.SensorIntegerThreshold">
+ <method name="set">
+ <arg name="lower_critical" type="i" direction="in"/>
+ <arg name="lower_warning" type="i" direction="in"/>
+ <arg name="upper_warning" type="i" direction="in"/>
+ <arg name="upper_critical" type="i" direction="in"/>
+ </method>
+ <method name="getState">
+ <arg name="state" type="i" direction="out"/>
+ </method>
+
+ <property name="lower_critical" type="i" access="read"/>
+ <property name="lower_warning" type="i" access="read"/>
+ <property name="upper_warning" type="i" access="read"/>
+ <property name="upper_critical" type="i" access="read"/>
+ <property name="state" type="i" access="read"/>
+
+ <signal name="Warning"/>
+ <signal name="Critical"/>
+ </interface>
+</node>
diff --git a/xml/sensor_threshold.xml b/xml/sensor_threshold.xml
new file mode 100644
index 0000000..022db64
--- /dev/null
+++ b/xml/sensor_threshold.xml
@@ -0,0 +1,21 @@
+<node>
+ <!-- Can I do have interfaces as children of other interfaces? -->
+ <interface name="org.openbmc.SensorIntegerThreshold">
+ <method name="setThresholds">
+ <arg name="lower_critical" type="i" direction="in"/>
+ <arg name="lower_warning" type="i" direction="in"/>
+ <arg name="upper_warning" type="i" direction="in"/>
+ <arg name="upper_critical" type="i" direction="in"/>
+ </method>
+ <method name="getThresholdState">
+ <arg name="threshold_state" type="i" direction="out"/>
+ </method>
+ <property name="threshold_lower_warning" type="i" access="read"/>
+ <property name="threshold_upper_warning" type="i" access="read"/>
+ <property name="threshold_upper_critical" type="i" access="read"/>
+ <property name="threshold_state" type="i" access="read"/>
+
+ <signal name="Warning"/>
+ <signal name="Critical"/>
+ </interface>
+</node>