Announcement

Collapse
No announcement yet.

actvating a UPB device using Perl Script doesn't work

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

    actvating a UPB device using Perl Script doesn't work

    I exit early in this script just to allow the one command to run with this

    sub main()
    {
    hs.SetDeviceValue("\30", 10);exit;


    I get this...

    9/24/2008 9:09:30 PM - Error - Running script, script run or compile error in file: humidity_shower_lights_master.pl-2147467259:Can't call method "Dispatch" on an undefined value at -e line 5. in line 0 More info: Can't call method "Dispatch" on an undefined value at -e line 5.


    I get no error message when I us

    $hs->SetDeviceValue ("\30", 10);exit;
    but also no response<!-- / message -->
    <!-- controls -->

    #2
    Is there a reason you do not want to use a vb script?
    -Rupp
    sigpic

    Comment


      #3
      I use Perl not Visual basic it was a big reason for going with HomeSeer. So UPB doesn't work for perl?

      Comment


        #4
        This code snippet is so small (main plus the code line) that I'm not sure that's the issue....can you give me a VB script that activates a UPB light through a HAI panel serial interface?
        Thank you in advance

        Comment


          #5
          watch the device code... it is a backslash, and Perl probably thinks you are specifying an escape sequence. you can either try using a double-backslash in the string, or change the device code for UPB objects.

          Comment


            #6
            YES! Been perlizing for quite some time should have thought of that. That fixed it!!

            Comment

            Working...
            X