Sombody tried to reply to the post for this script and was unable to.
Here is a little more information about setting up the script.
The purpose of this script is to log calls that are received while you are away and read them out to you when you return home. In order to do this, you must have a virtual device defined that indicates the occupancy of the house. When a new call comes in, the script tests this device to determine if the call should be logged (only while you are away).
This is an important concept. When you call the LogCall function the first thing it does is determine if the house if vacant. If it isn't then it will not log the call. You must edit the script and set the occupancySensor variable (Line 17) to the device code in your system. If you don't change this then it is probably pointing to a device code that you are not using.
Some other pointers.
First of all, save the file in the scripts directory of HS.
The main function of the script is LogCall. This should be the action for a device that is triggered when a call comes in.
Now you need to decide when to speak the log and when to clear the log.
I speak my log when I walk into the kitchen. This is triggered by an action on a motion sensor. I clear my log when the house becomes vacant.
Make your choices and use the following scripts to clear the log and speak the log (setup in Optional Parameters as shown above).
Clear Log --> ("ClearCallLog", "")
Speak Log --> ("SpeakCallLog", "")
I hope this helps. Let me know if you have any other questions.
I tried to post on the board, but for some reason it would not allow me to reply!
I need help with your script. I have set up all the events you call for and still can not agt anything to work. Could you give some exsamples of your events that call your script.
I need help with your script. I have set up all the events you call for and still can not agt anything to work. Could you give some exsamples of your events that call your script.
The purpose of this script is to log calls that are received while you are away and read them out to you when you return home. In order to do this, you must have a virtual device defined that indicates the occupancy of the house. When a new call comes in, the script tests this device to determine if the call should be logged (only while you are away).
This is an important concept. When you call the LogCall function the first thing it does is determine if the house if vacant. If it isn't then it will not log the call. You must edit the script and set the occupancySensor variable (Line 17) to the device code in your system. If you don't change this then it is probably pointing to a device code that you are not using.
Some other pointers.
First of all, save the file in the scripts directory of HS.
The main function of the script is LogCall. This should be the action for a device that is triggered when a call comes in.
- Create a new event
- In the trigger section, select Phone for current trigger type.
- Choose On Caller ID Available for the event
- In the action section, Add a run script action and choose PhoneManagement.vb for the script file
- In Optional parameters enter ("LogCall", "")
Now you need to decide when to speak the log and when to clear the log.
I speak my log when I walk into the kitchen. This is triggered by an action on a motion sensor. I clear my log when the house becomes vacant.
Make your choices and use the following scripts to clear the log and speak the log (setup in Optional Parameters as shown above).
Clear Log --> ("ClearCallLog", "")
Speak Log --> ("SpeakCallLog", "")
I hope this helps. Let me know if you have any other questions.
Comment