Closed edwolfe3 closed 3 years ago
Hi:
I'm not using any of the openHAB voice services. What did you do to upgrade the voice services? Did you have to install a new version of openHAB? I'm running 2.5.6-2.
I took the json discovery result from above and pasted it into a json formatter web page and it is valid json.
Please tell me exactly what you did that started the problems. Is the problem consistent? Have you added or changed any devices? Especially have you changed any device names?
When I get more time I'll try to run my openHAB in the debugger and capture a discovery result and will compare that with yours from above.
Bob
Hi Bob,
The voice services are related to Amazon Echo. It was necessary to upgrade the SmartThings app (per the email) in order for my Alexa commands to continue to work with SmartThings devices. They are not related to Openhab except it started the issue reported.
Nothing changed except for upgrading to the SmartThings voice services as they required me to do.
It seems to happen on average every 10-20 minutes.
Ed
From: Bob Raker notifications@github.com Sent: Sunday, September 6, 2020 4:24 PM To: BobRak/OpenHAB-Smartthings OpenHAB-Smartthings@noreply.github.com Cc: edwolfe3 edwolfe@wolfecomputerservices.com; Author author@noreply.github.com Subject: Re: [BobRak/OpenHAB-Smartthings] Warning appeared after enabling new voice assistants integration (#96)
Hi:
I'm not using any of the openHAB voice services. What did you do to upgrade the voice services? Did you have to install a new version of openHAB? I'm running 2.5.6-2.
I took the json discovery result from above and pasted it into a json formatter web page and it is valid json.
Please tell me exactly what you did that started the problems. Is the problem consistent? Have you added or changed any devices? Especially have you changed any device names?
When I get more time I'll try to run my openHAB in the debugger and capture a discovery result and will compare that with yours from above.
Bob
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BobRak/OpenHAB-Smartthings/issues/96#issuecomment-687891848 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRFDT4SHB5DAEEZC76CTR3SEPVVVANCNFSM4QZZXOQQ . https://github.com/notifications/beacon/AJRFDT7BKP7K6SKDLPSPC3TSEPVVVA5CNFSM4QZZXOQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFEAGLCA.gif
When I put the displayed json (after changing all \” to just “) in a json validator (https://jsonlint.com/?code=) I get the following error:
Error: Parse error on line 1:
{ data = { "data": [
--^
Expecting 'STRING', '}', got 'undefined'
From: Bob Raker notifications@github.com Sent: Sunday, September 6, 2020 4:24 PM To: BobRak/OpenHAB-Smartthings OpenHAB-Smartthings@noreply.github.com Cc: edwolfe3 edwolfe@wolfecomputerservices.com; Author author@noreply.github.com Subject: Re: [BobRak/OpenHAB-Smartthings] Warning appeared after enabling new voice assistants integration (#96)
Hi:
I'm not using any of the openHAB voice services. What did you do to upgrade the voice services? Did you have to install a new version of openHAB? I'm running 2.5.6-2.
I took the json discovery result from above and pasted it into a json formatter web page and it is valid json.
Please tell me exactly what you did that started the problems. Is the problem consistent? Have you added or changed any devices? Especially have you changed any device names?
When I get more time I'll try to run my openHAB in the debugger and capture a discovery result and will compare that with yours from above.
Bob
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BobRak/OpenHAB-Smartthings/issues/96#issuecomment-687891848 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRFDT4SHB5DAEEZC76CTR3SEPVVVANCNFSM4QZZXOQQ . https://github.com/notifications/beacon/AJRFDT7BKP7K6SKDLPSPC3TSEPVVVA5CNFSM4QZZXOQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFEAGLCA.gif
Ed:
That structure is quite complicated. The "data":["{\"capability\":...
part of it is a series of strings. First I use the Java GSON class to extract the "data:" as an array of strings and the other data at the end. Then I used GSON again on each element in the array to extract the discovery data. So, you can't just convert the \" to " and expect it to work. A few months ago openHAB was reviewing it for inclusion in the base openhab.. As part of that I removed much of the complication. I'll see if I can get that code and port it into my workspace and recompile. In the meantime can you try just reinstalling the two smartthings files and see if that helps.
Bob
Bob,
I have not seen the JSON error occur since I installed the new module this morning.
Ed
I received the following email:
After that I did the upgrade, I started receiving the following.