Recent Posts

Pages: [1] 2 3 ... 10
1
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by jitterjames on January 27, 2025, 09:28:22 AM »
You are welcome.

It would not surprise me if a system restore were responsible for the problem in the first place.

Anyway the solution is as follows.

Open options, then go to the "variables" tab.
uncheck "save and restore variables automatically"
restart VC.

If you use this feature you can turn it back on again after restarting VC.
2
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by Tom_G_2010 on January 27, 2025, 07:36:12 AM »
@jitterjames

I thought I'd come back here and post a Thank You for your assistance yesterday in trouble shooting this issue and post the solution in case others hit this issue.

First, THANK YOU!  Your willingness to work on this with me is greatly appreciated!!!

Second, I was going to type up what you did but I'm not sure I got it right because yesterday evening Windows did an update, crashed my pc and I had to run recovery to get the machine to run again.  After completing the recovery, the bug was back but I can't replicate the fix so I must not have correctly understood what you did.

If you don't mind, could you post what you did to clear the bug.

Double Thanks!!!
Tom G.
3
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by Tom_G_2010 on January 25, 2025, 10:14:45 PM »
PM Sent, THANKS!
4
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by jitterjames on January 25, 2025, 09:23:07 PM »
If so, send me a private message. I should have some time tomorrow.
5
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by jitterjames on January 25, 2025, 09:17:18 PM »
I'm very confused by the error in the log. Any chance we could screen share and look at it together?
6
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by Tom_G_2010 on January 25, 2025, 08:34:10 PM »
What's running in Vox Commando and showing in my actual logs is the correct access token.

When posting I mask my access tokens.
7
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by jitterjames on January 25, 2025, 08:20:17 PM »
Are you running these actions with the correct access token and then replacing them in the log?  Or did you forget to put the correct URL with the correct access token back into the action fields?
8
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by Tom_G_2010 on January 25, 2025, 07:40:57 PM »
Here's the log from one execution of the command:

Code: [Select]
1/25/2025 6:22:34 PM 207 Something was recognized
1/25/2025 6:22:34 PM 207 Rulename: root # Semantics: 3
1/25/2025 6:22:34 PM 207 Group: Device Montor Speech: Maggie What Color is Ambient Lighting
1/25/2025 6:22:34 PM 208 semanticID: 171
1/25/2025 6:22:34 PM 208 kvp: prefix | Maggie
1/25/2025 6:22:34 PM 208 kvp: command | 171
1/25/2025 6:22:34 PM 208 kvp: payload1 | <171:Ambient Lighting>710
1/25/2025 6:22:34 PM 208 no regex match found
1/25/2025 6:22:34 PM 208 id from payload value: 171
1/25/2025 6:22:34 PM 210 semanticID: 171
1/25/2025 6:22:34 PM 210 kvp: prefix | Maggie
1/25/2025 6:22:34 PM 210 kvp: command | 171
1/25/2025 6:22:34 PM 210 kvp: payload1 | <171:Ambient Lighting>710
1/25/2025 6:22:34 PM 210 no regex match found
1/25/2025 6:22:34 PM 210 id from payload value: 171
1/25/2025 6:22:34 PM 210 alternate:Maggie What Color is Ambient Lighting
1/25/2025 6:22:34 PM 220 A prefix is required to execute this command.
1/25/2025 6:22:34 PM 246 addHistoryItem [vcevent] VC.Prefix.End

1/25/2025 6:22:34 PM 250 doCommand:What Color
1/25/2025 6:22:34 PM 250 Action claims to be threadsafe.
1/25/2025 6:22:34 PM 250 action repeat set to: 1
1/25/2025 6:22:34 PM 250 Action:  Scrape
1/25/2025 6:22:34 PM 250 Param1:http://192.168.123.123/apps/api/543/devices/710/attribute/colorName?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1/25/2025 6:22:34 PM 250 addHistoryItem [action] Scrape:http://192.168.123.123/apps/api/543/devices/710/attribute/colorName?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

1/25/2025 6:22:34 PM 300 Action RESULT:
1/25/2025 6:22:34 PM 300 Action is NOT threadsafe: Results.RegEx
1/25/2025 6:22:34 PM 300 action repeat set to: 1
1/25/2025 6:22:34 PM 300 Action:  Results.RegEx
1/25/2025 6:22:34 PM 300 Param1:"value":"(.*?)"
1/25/2025 6:22:34 PM 300 addHistoryItem [action] Results.RegEx:"value":"(.*?)"

1/25/2025 6:22:34 PM 308 addHistoryItem [error] Results.RegExUnexpected error:
System.NullReferenceException: Object reference not set to an instance of an object.
   at VoxCommando.ResultsVars.RegExMyResults(String[] parsedParams, Boolean useSingleLine)
   at eval_g.eval_ᜃ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_g.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)
1/25/2025 6:22:34 PM 314 Unexpected error in action: Results.RegEx
System.NullReferenceException: Object reference not set to an instance of an object.
   at VoxCommando.ResultsVars.RegExMyResults(String[] parsedParams, Boolean useSingleLine)
   at eval_g.eval_ᜃ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_g.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)
1/25/2025 6:22:34 PM 314 Action claims to be threadsafe.
1/25/2025 6:22:34 PM 314 action repeat set to: 1
1/25/2025 6:22:34 PM 314 Action:  TTSMS.Speak
1/25/2025 6:22:34 PM 314 error replacing variables: {Match.1}
1/25/2025 6:22:34 PM 314 Param1:{Match.1}
1/25/2025 6:22:34 PM 314 addHistoryItem [action] TTSMS.Speak:{Match.1}

1/25/2025 6:22:34 PM 319 Action from plugin: C:\VOX COMMANDO\Plugins\TTSMS\TTSMS.dll
1/25/2025 6:22:34 PM 320 Action INFO: speaking (asynchronous): {Match.1}
1/25/2025 6:22:34 PM 324 Action is NOT threadsafe: OSD.ShowText
1/25/2025 6:22:34 PM 324 action repeat set to: 1
1/25/2025 6:22:34 PM 324 Action:  OSD.ShowText
1/25/2025 6:22:34 PM 325 Param1:{"id":"710","attribute":"colorName","value":"Red"}
1/25/2025 6:22:34 PM 325 addHistoryItem [action] OSD.ShowText:{"id":"710","attribute":"colorName","value":"Red"}

1/25/2025 6:22:34 PM 355 Action INFO: OK
1/25/2025 6:22:34 PM 356 addHistoryItem [vcevent] tts.start

1/25/2025 6:22:36 PM 4 addHistoryItem [vcevent] tts.end

1/25/2025 6:22:37 PM 852 addHistoryItem [vcevent] VC.NotRecognized

1/25/2025 6:22:38 PM 351 guessed text:Is The ?? (Device Montor)
1/25/2025 6:22:39 PM 471 addHistoryItem [vcevent] VC.NotRecognized

I see what looks like regex related error in the middle of the log but I'm not sure how to interpret them.
9
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by jitterjames on January 25, 2025, 12:37:02 PM »
It looks correct to me.  I would need to see a log to help you further.
10
VoxCommando Basics and Core Features / Re: How to get Attributes back from hubitat
« Last post by Tom_G_2010 on January 25, 2025, 12:15:07 PM »
I built the following and the OSD shows the sting coming back with the color at the end of it, but the TTS is speaking the variable name "Match One" instead of the variable result "Red."

Code: [Select]
            <command id="171" name="What Color" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
                <action>
                    <cmdType>Scrape</cmdType>
                    <params>
                        <param>http://192.168.123.123/apps/api/543/devices/{1}/attribute/colorName?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</param>
                    </params>
                    <cmdRepeat>1</cmdRepeat>
                </action>
                <action>
                    <cmdType>Results.RegEx</cmdType>
                    <params>
                        <param>"value":"(.*?)"</param>
                    </params>
                    <cmdRepeat>1</cmdRepeat>
                </action>
                <action>
                    <cmdType>TTSMS.Speak</cmdType>
                    <params>
                        <param>{Match.1}</param>
                    </params>
                    <cmdRepeat>1</cmdRepeat>
                </action>
                <action>
                    <cmdType>OSD.ShowText</cmdType>
                    <params>
                        <param>{LastResult}</param>
                    </params>
                    <cmdRepeat>1</cmdRepeat>
                </action>
                <phrase>What Color is</phrase>
                <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">Hubitat Device List.xml</payloadFromXML>
            </command>

I tested the regex syntax in the Expression Helper, and it returns 1:"value":"Red"

I did a couple tests with fixed device IDs to be sure it wasn't my payload table.
All of them returned a string with either the lights color or null for none RGB bulbs.
But the TTS always comes back "match one".

Did I botch something in my setup?
Pages: [1] 2 3 ... 10