Yes it's a bug in the tag parsing. I'll get it corrected in the next version.
Announcement
Collapse
No announcement yet.
Jon00 Homeseer/Echo Skill Helper for Homeseer 3 & Homeseer 4
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
This looks fantastic!
But one thing I have yet to understand. Is it possible to make Alexa read directly from Events (instead of using the HS speaker client which doesn't work for me at the moment)?HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
Running on Windows 10 (64) virtualized on ESXi (Fujitsu Primergy TX150 S8).
WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample
Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!
Comment
-
Just playing with this and it is working really well here. Thanks!
One question - I would like to pass commands back to Mainlobby/MLServer. I use the script immediate function such as
&nhs.PluginFunction("BLML2HS", "", "MLServeCmd", new Object(){"MLCAV66|SetVolume~1~5~0"})
Can an equivalent script be executed using the RunScript parameter in JOn00Alexa.ini?
Comment
-
Originally posted by greyt View PostJust playing with this and it is working really well here. Thanks!
One question - I would like to pass commands back to Mainlobby/MLServer. I use the script immediate function such as
&nhs.PluginFunction("BLML2HS", "", "MLServeCmd", new Object(){"MLCAV66|SetVolume~1~5~0"})
Can an equivalent script be executed using the RunScript parameter in JOn00Alexa.ini?
PHP Code:Sub Main(ByVal Parm As String)
Dim MLS As String = ""
For Each c As Char In Parm
MLS &= "~" & c
Next
hs.PluginFunction("BLML2HS", "", "MLServeCmd", New Object() {"MLCAV66|SetVolume" & MLS & ""})
End Sub
If your Trigger word is volume (AlexaText=volume), you can say:
Alexa, tell Homeseer to set the volume to 120.
The number 120 is passed to the script parameter called Parm.
I have then added ~ characters as per your example which should convert that to ~1~2~0
That string is then included in the final Plugin command which should send 120 to MainLobby.
If the commands you want to send are not numeric and you just want to run different commands as a result of a trigger, you can use the ScriptParm entry of the script to define what is sent to Mainlobby i.e.
PHP Code:Sub Main(ByVal Parm As String)
Select Case Parm
Case Is = "1"
hs.PluginFunction("BLML2HS", "", "MLServeCmd", New Object() {"MLCAV66|SetVolume~1~0~0"})
Case Is = "2"
hs.PluginFunction("BLML2HS", "", "MLServeCmd", New Object() {"MLCAV66|SetVolume~1~2~0"})
Case Is = "3"
hs.PluginFunction("BLML2HS", "", "MLServeCmd", New Object() {"MLCAV66|SetVolume~1~4~0"})
End Select
End Sub
If ScriptParm=2 then the line hs.PluginFunction("BLML2HS", "", "MLServeCmd", New Object() {"MLCAV66|SetVolume~1~2~0"}) would be executed.
Etc.
Comment
-
I have been away for a few days. I received my dot today, installed that. Both Echo and dot are working fine with the api. Then I went on to test again with Crocy22's custom skill which I have been using to test the helper (I am still on 0.3b). That stopped working completely. So when I say anything Alexa tell the house...response I'm sorry that command was not recognised. Very strange. Anybody else experiencing these issues ?
I had a look in the log and cannot see anything Alexa related. So that's the issue. Maybe I should ask that question in the other thread, ops probably more custom skill relatedLast edited by mikee123; October 21, 2016, 03:04 PM.
Comment
-
Originally posted by mikee123 View PostI have been away for a few days. I received my dot today, installed that. Both Echo and dot are working fine with the api. Then I went on to test again with Crocy22's custom skill which I have been using to test the helper (I am still on 0.3b). That stopped working completely. So when I say anything Alexa tell the house...response I'm sorry that command was not recognised. Very strange. Anybody else experiencing these issues ?
I had a look in the log and cannot see anything Alexa related. So that's the issue. Maybe I should ask that question in the other thread, ops probably more custom skill related
Comment
-
Originally posted by Simonk View PostI've installed this and it seems to be working great.
Apart from devicetime which I'm using in the AlexaResponse
AlexaResponse=The temperature in the office [devicetime 255] minutes ago was [Devicevalue 255] degrees centigrade
When devicetime is in the AlexaResponse it fails to work with the error below
Oct-20 20:32:18 TTS Speak (json:
Oct-20 20:32:18 Info Heard: the office temperature
Oct-20 20:32:18 Jon00_Alexa Script processing time: 34 ms
Oct-20 20:32:18 Jon00_Alexa Response sent to Alexa: ''
Oct-20 20:32:18 Jon00_Alexa Successful trigger under [Trigger1]
Oct-20 20:32:18 Jon00_Alexa Error in tags function: (Conversion from string "255]" to type 'Integer' is not valid.)
Oct-20 20:32:18 Jon00_Alexa Integer Parsed: -9999
Oct-20 20:32:18 Jon00_Alexa Alexa Number String:
Oct-20 20:32:18 Jon00_Alexa Alexa command heard: 'office temperature'
Any ideas what might be causing this?
Comment
-
Originally posted by jon00 View PostThere was a DNS attack yesterday: http://board.homeseer.com/showthread.php?t=184606
Comment
Comment