Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

Script not working

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

  • Script not working

    I'm trying this plugin out but it appears that the ' Example 2: Conditional processing based on phone number' is not working correctly. It will announce the items with a flag=1 (this is the custom inputs) But if it is an unknown number nothing happens :

    If flag = 0 then
    'Couldn't find name in list, using name from CID box
    hs.Speak "Call from " & s_ncid_name
    end if

    Here is the code:
    '--------------------------------------------
    ' Example 2: Conditional processing based on
    ' phone number
    '--------------------------------------------
    Select Case s_ncid_number

    Case "xxxxxxxxx"
    hs.Speak "Call from Bryan's Cellphone"
    flag = 1

    If flag = 0 then
    'Couldn't find name in list, using name from CID box
    hs.Speak "Call from " & s_ncid_name
    end if



    End Select

  • #2
    *BUMP* I take it there is NO support for this plug-in? It should be free.......

    Comment


    • #3
      David has been checking the BB from time to time so hopefully he'll see this request soon. I'll try to get in touch with him as soon as I can.
      -Rupp
      sigpic

      Comment


      • #4
        Are there any errors in your log?

        Also, please post the whole script.

        You can also insert debuggng into scripts.

        Before the line:
        If flag = 0 then

        Insert this line:
        hs.writelog "NETCID DEBUG" , "Before check: Flag = " & flag


        If flag equals something other than 0 you start inserting other debugs like
        after the line:
        Case "xxxxxxxxx"

        Insert this line:
        hs.writelog "NETCID DEBUG" , "Bryan's Cellphone recognized"


        ~Bill

        Comment

        Working...
        X