Announcement

Collapse
No announcement yet.

Discussion for Family Status Manager Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #76
    Kirk,

    For some reason your script didn't get attached. You can edit your message to attach it or just post as a new message.
    Until then, you are probably having trouble with one of these lines:
    <pre class="ip-ubbcode-code-pre">
    set hsmb=hsp.MBGetByName(thePerson)
    set messages = hsmb.messages ' get the collection of messages
    </pre>
    The first thing to look at is the variable "thePerson". This variable should hold the exact name of the mailbox you are trying to grab. If you had an error on line 36, you might not see it until you try to use the object in line 37. My Default mailbox is named "the Default mailbox" for example, and the others are just as in my script. "Chris", "Sheri", and so on. I named these mailboxes so that I could use the names in my scripts as text for speech, and for other things.

    Let me know if you are still having problems.

    regards,

    GenevaDude

    http://AutomatedHome.org

    Comment


      #77
      Genevadude,

      Ok I have my system up again. I am having the same problem with my phone_Messages script. This time I actually added the attatchment. You were right in the part I am having problems with. I checked the mailboxes and they are the sa,e as I have in HSP2. Kirk, Kelley, Jesse, Justin and Default. # 1, 2, 3, 4, 0
      Attached Files
      Kirk

      http://cleverhouseautomation.ca
      http://southcoastwebsitedesign.ca

      Comment


        #78
        Kirk,

        You have a "spelling error" in line 8:
        Const default = "Defalt", Kirk = "Kirk", Kelley = "Kelly", Jesse = "Jesse", Justin = "Justin"

        &gt;&gt;&gt;&gt;"Defalt" &lt;&lt;&lt;
        Unless your default is spelled this way.

        If this isn't the problem, then let me know.

        regards,

        GenevaDude

        http://AutomatedHome.org

        Comment


          #79
          I am trying to use GenevaDude's FamManager script to turn on a device when A4 on is received twice.

          I have created an event that is triggered from any X10 code on Housecode A with any command to execute the script I named "Multi Press.txt"

          All I've changed is:
          <pre class="ip-ubbcode-code-pre">
          Const myHouseCodes = "A4" ' Define acceptable house codes
          Const myHouseBase = "A" ' this is for evaluating hs.LastX10 stuff

          'WhoIsHome

          ' **************************** PROCESS KEYPRESS ************************************
          sub EventProcessor
          ' ' Select Case GlobalStr ' new method!
          Select Case StatStr ' new method!
          ' Process Master Wall Switch keys
          Case "A4 DevOn,A4 DevOn" ' double
          hs.execX10ByName "Living Room Light2", "On"

          </pre>

          I am getting the following in my HS log:
          <pre class="ip-ubbcode-code-pre">
          A4 [Living Room Lamp] On
          X10 Trigger [Multi Press]
          A4 [Living Room Lamp] On
          X10 Trigger [Multi Press]
          StatStr= A4 DevOn
          aCounter= 0
          StatAnySize= 0
          </pre>

          The device "Living Room Light2" isn't turning on and I would expect aCounter to equal 2 after I've double pressed. I've tried extending the timeout to 4 seconds but that didn't help. I also tried setting the event to not retrigger within 1 minute but that didn't help either. Anyone have any ideas?

          Thanks,
          Jabran

          Comment


            #80
            jabrans,

            What kind of interface are you using to listen to the wall swithch? Is it an MR26? If you have an X10 receiver this might be a problem.

            I'm not sure what else can be wrong, so why don't you post your script and I'll take a look at it.



            GenevaDude

            http://genevadude.com http://GoldenBuffet.biz

            Comment


              #81
              The command that I am trying to "catch", A4, is coming from a leviton in wall 4 button transmitter not a RF transmitter.

              Comment


                #82
                I downloaded the latest family manager script and it doing what I need.

                Thanks,
                Jab

                Comment


                  #83
                  Great!

                  I'm glad you have it working. Let me know how the switches work for you. I'm thinking of getting one or two myself, to replace the "stickies".



                  GenevaDude

                  http://genevadude.com http://GoldenBuffet.biz

                  Comment


                    #84
                    GDude,
                    Apparently I was a little premature. It doesn't seem to be working, I wasn't testing it properly.

                    Here's the log snippet:
                    <pre class="ip-ubbcode-code-pre">
                    X10 Rece A4 [Living Room Lamp] A On
                    Trigger X10 Trigger [Multi Press]
                    FamStat aHcOnly =A
                    FamStat AHcUc =A4
                    FamStat aCmd =2
                    FamStat aCommand=A;A4;2;0;0
                    Send X10 Living Room Light2 On dim: 0 etra: 0
                    </pre>
                    As you can see from the log I only sent one A4 ON but the script has aCmd=2 and sent the Living Room Light2 On command. In one of you older scripts I configured it to detect two presses something like:
                    DevOn A4, DevOn A4. In this script:
                    <pre class="ip-ubbcode-code-pre">Case DevOn, 2"</pre>
                    does the 2 mean 2 DevOn commands? What I am trying to do is turn on device Living Room Light2 if two A4 On commands are received. I am sending this from a Levition in wall 4 button transmitter. I am controlling two LampLinc modules, one is A4 the other, Living Room Light2, is on A12.

                    Thanks,
                    Jab

                    [This message was edited by jabrans on Tue, 17 February 2004 at 10:58 PM.]

                    Comment


                      #85
                      I'm going to need to look at your script. My script was written to work with the Stick-A-Switch, and I'm not too sure about your Leviton, but it ought to work.

                      If I had one it would be easy to test, but I don't. Regardless, your switch sends out X10 codes via the line and HS ought to be able to see them.

                      You didn't post the complete script. What you might want to do is post a message with an upload. To do this use the Post Attachment checkbox at the bottom of your post when writing a reply. You should be ble to navigate to the scrit and select it
                      If you can post everything, I'll take a look and do ehat I can to figure this out.


                      GenevaDude

                      http://genevadude.com http://GoldenBuffet.biz

                      Comment


                        #86
                        Duh, this works much better. Sorry for the brain fade...
                        Here's the entire script and yes my in wall controller should be just the same if not more reliable than the stick a switch. I can see HS receives all commands that I transmit from my in wall controller.

                        Jab
                        Attached Files

                        Comment


                          #87
                          GDude,
                          The last post that I made was a modified version of your FamilyManager V1. I got confused about what was your latest version. I now have Family Manager 2 and have modified it. It isn't working for me either. Anyway, here it is.

                          Jab
                          Attached Files

                          Comment

                          Working...
                          X