10-01-2010, 12:45 PM
I have a couple triggered events that broadcasts an alert if someone pulls up the driveway or rings the doorbell. I keep getting:
CQCKit, CQCKit_ThisFacility.cpp.530, Failed/Data Format, Error: 6257/0/0
Token expansion failed during command processing
Variable LVar:Z01Source was not found
The context is that the first thing it does when the event is triggered is:
Then after using TTS to announce it in the house, I have it try to restore the volume and source using the LVars created above.
There must be something I'm missing in here. Is it because I didn't do an If/Else statement? My logic (or il-logic) in my head was that if the local variable exists, then it was on before and only then an action needs to take place. But if it was not on, and the variable doesn't exist, then nothing needs to take place.
Thanks in advance!
CQCKit, CQCKit_ThisFacility.cpp.530, Failed/Data Format, Error: 6257/0/0
Token expansion failed during command processing
Variable LVar:Z01Source was not found
The context is that the first thing it does when the event is triggered is:
Code:
If System::Equals
P1=$(RussoundCSeries.Z01_Power)
P2=True
Devices::FieldRead
P1=RussoundCSeries.Z01_Source
P2=LVar:Z01Source
P3=True
Devices::FieldRead
P1=RussoundCSeries.Z01_Volume
P2=LVar:Z01Volume
P3=True
Devices::FieldWrite
P1=RussoundCSeries.Z01_Source
P2=6
P3=True
Devices::FieldWrite
P1=RussoundCSeries.Z01_Volume
P2=45
P3=True
End
Then after using TTS to announce it in the house, I have it try to restore the volume and source using the LVars created above.
Code:
If LocalVars::Exists
P1=LVar:Z01Source
Devices::FieldWrite
P1=RussoundCSeries.Z01_Source
P2=%(LVar:Z01Source)
P3=True
Devices::FieldWrite
P1=RussoundCSeries.Z01_Volume
P2=%(LVar:Z01Volume)
P3=True
// If the power was on, variable for source was created
// Restore source and volume if the variable exists
//
End
There must be something I'm missing in here. Is it because I didn't do an If/Else statement? My logic (or il-logic) in my head was that if the local variable exists, then it was on before and only then an action needs to take place. But if it was not on, and the variable doesn't exist, then nothing needs to take place.
Thanks in advance!