Mark,
I just noticed something that is no longer working as intended.
I have a script that gets loaded when the panel indicates an alarm. To accomplish this my event is looking for a Vista Alarm Message to become "P1 DISARM ORALARM WILL OCCUR" and the event does run. But somewhere between loading the script and getting to the scripts' conditional statements the message must be changing because they never speak. Instead, the script ends without speaking the conditional warnings and then reloads. I see multiple log entries that show this.
The script is set to only allow one instance to run.
Maybe it was a bug and now fixed that make my script no longer work. I'm guessing I find another way to accomplish the task (The reason for the if is to mute the script if the system is disarmed.
Sep-21 3:41:18 PM Event Event Trigger "Ademco Alarm has been disarmed"
Sep-21 3:41:17 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:41:17 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:41:17 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:41:11 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:41:11 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:41:11 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:41:05 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:41:05 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:41:05 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:40:59 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:40:59 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:40:59 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:40:59 PM Vista Alarm P1 DISARM ORALARM WILL OCCUR
Here is the script:
I just noticed something that is no longer working as intended.
I have a script that gets loaded when the panel indicates an alarm. To accomplish this my event is looking for a Vista Alarm Message to become "P1 DISARM ORALARM WILL OCCUR" and the event does run. But somewhere between loading the script and getting to the scripts' conditional statements the message must be changing because they never speak. Instead, the script ends without speaking the conditional warnings and then reloads. I see multiple log entries that show this.
The script is set to only allow one instance to run.
Maybe it was a bug and now fixed that make my script no longer work. I'm guessing I find another way to accomplish the task (The reason for the if is to mute the script if the system is disarmed.
Sep-21 3:41:18 PM Event Event Trigger "Ademco Alarm has been disarmed"
Sep-21 3:41:17 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:41:17 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:41:17 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:41:11 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:41:11 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:41:11 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:41:05 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:41:05 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:41:05 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:40:59 PM TTS Speak ():The alarm's siren will activate in less than 60 seconds.
Sep-21 3:40:59 PM Event Running script in background: C:/Program Files/HomeSeer HS3/scripts/SpeakAlarmTripped.txt
Sep-21 3:40:59 PM Event Event Trigger "Ademco Alarm has been tripped"
Sep-21 3:40:59 PM Vista Alarm P1 DISARM ORALARM WILL OCCUR
Here is the script:
Code:
sub main() hs.speak "The alarm's siren will activate in less than 60 seconds." if hs.DeviceString(265) = "P1 DISARM ORALARM WILL OCCUR" then hs.speak "Proceed to nearest keypad and enter your code.",true,"*:*" hs.waitsecs 5 End if if hs.DeviceString(265) = "P1 DISARM ORALARM WILL OCCUR" then hs.speak "The home's perimeter video surveillance has recorded your entry and that is now stored in the cloud.",true,"*:*" hs.waitsecs 5 End if if hs.DeviceString(265) = "P1 DISARM ORALARM WILL OCCUR" then hs.speak "Upon siren activation the police will be notified and these recordings will be made available to them.",true,"*:*" hs.waitsecs 5 End if end sub
Comment