Hi- I just downloaded a trial of Homeseer and your plug-in last night and am in the process of testing out announcements with embedded variables. I do not know any scripting but I used examples from the message board to create a test script (below). Initially I was able to load a variable called "say" with the value from a variable device using either of two statements. I was then able to construct a sentance using 3 seperate hs.speak statements to to speak the sentance in 3 parts (text, variable, text). This all worked fine. The final step was to use your plug-in to embed the variable into a single hs.speak statement following the examples in your docs. I tried each of the three statements commented out below but none of them worked so I still must be missing something. Can you point me in the right direction?
Thanks,
sub main()
Dim Say ' Text to speak
'say=hs.DeviceValueByName("JDS Pump")
say=hs.DeviceValue("[20")
hs.speak "the pump has operated"
hs.speak say
hs.speak "times so far today"
'hs.speak "the pump has operated $"[20" times today"
'hs.speak "the pump has operated $"JDS Pump" times today"
'hs.speak "the pump has operated $"say" times today"
end sub
Thanks,
sub main()
Dim Say ' Text to speak
'say=hs.DeviceValueByName("JDS Pump")
say=hs.DeviceValue("[20")
hs.speak "the pump has operated"
hs.speak say
hs.speak "times so far today"
'hs.speak "the pump has operated $"[20" times today"
'hs.speak "the pump has operated $"JDS Pump" times today"
'hs.speak "the pump has operated $"say" times today"
end sub
Comment