 
               if(data.indexOf("DI 2") > -1)
                 if data[5] == "0"
+                  @FI = on
+                else
                   @FI = off
-                else
-                  @FI = on
 
               if(data.indexOf("DI 3") > -1)
                 if data[5] == "0"
+                  @BT = on
+                else
                   @BT = off
-                else
-                  @BT = on
 
               if(data.indexOf("DI 4") > -1)
                 if data[5] == "0"
+                  @DR = on
+                else
                   @DR = off
-                else
-                  @DR = on
             )
 
             setTimeout(

      @writeVal("SET RO 10", @EV)

    fanspeed: ->
      if @H2
        return 2
      else if @H3
        return 3
      else
        return 1

    setfanspeed: (speed) ->
      if speed == 2
        @H2 = on
        @H3 = off
      else if speed == 3
        @H3 = on
        @H2 = off
      else
        @H2 = off
        @H3 = off

      @updateOutputs()


              if(data.indexOf("RO 8") > -1)
                if data[5] == "0"
                  @H2 = on
                else
                  @H2 = off

              if(data.indexOf("RO 9") > -1)
                if data[5] == "0"
