[SOLVED] Amazon binding problems

i have some problems with amazon device. sometimes it works
but in log i often see … lost connection
if i go to openhab:8080/amazonechocontrol and click on account i see

reinstalled the binding… but still problems

2018-11-21 16:59:39.957 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:ac2360da:1' changed from ONLINE to UNINITIALIZED

2018-11-21 16:59:40.034 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:ac2360da:1' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

2018-11-21 16:59:40.038 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:ac2360da:G090LF09648305G5' changed from UNKNOWN to UNINITIALIZED

2018-11-21 16:59:40.069 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:ac2360da:G090LF09648305G5' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

2018-11-21 16:59:40.078 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:ac2360da' changed from OFFLINE (CONFIGURATION_PENDING): Wait for login to UNINITIALIZED

2018-11-21 16:59:40.103 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:ac2360da' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

==> /var/log/openhab2/openhab.log <==

2018-11-21 16:59:40.441 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-amazonechocontrol'

==> /var/log/openhab2/events.log <==

2018-11-21 16:59:40.463 [thome.event.ExtensionEvent] - Extension 'binding-amazonechocontrol' has been uninstalled.

2018-11-21 16:59:57.483 [vent.ItemStateChangedEvent] - TemperatuurTrap_ changed from 2018-11-21T16:58:57.000+0100 to 2018-11-21T16:59:57.000+0100

2018-11-21 17:00:00.033 [ome.event.ItemCommandEvent] - Item 'kk_keukenkast_verlichting' received command ON

2018-11-21 17:00:00.083 [vent.ItemStateChangedEvent] - kk_keukenkast_verlichting changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2018-11-21 17:00:18.372 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable V_TEMP not present

==> /var/log/openhab2/events.log <==

2018-11-21 17:00:18.534 [vent.ItemStateChangedEvent] - kwhperdag changed from 6.81200000 to 6.82600000

2018-11-21 17:00:18.545 [vent.ItemStateChangedEvent] - kwhtotaal changed from 6.81200000 to 6.82600000

2018-11-21 17:00:18.564 [vent.ItemStateChangedEvent] - kwhprijs changed from 1.200955600000 to 1.203423800000

2018-11-21 17:00:27.745 [thome.event.ExtensionEvent] - Extension 'binding-amazonechocontrol' has been installed.

2018-11-21 17:00:27.883 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:ac2360da:1' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2018-11-21 17:00:27.906 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:ac2360da:G090LF09648305G5' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2018-11-21 17:00:28.109 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:ac2360da' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING

2018-11-21 17:00:28.313 [hingStatusInfoChangedEvent] - 'amazonechocontrol:account:ac2360da' changed from INITIALIZING to OFFLINE (CONFIGURATION_PENDING): Wait for login

==> /var/log/openhab2/openhab.log <==

2018-11-21 17:00:28.396 [INFO ] [.handler.FlashBriefingProfileHandler] - FlashBriefingProfileHandler initialized

==> /var/log/openhab2/events.log <==

2018-11-21 17:00:28.399 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:ac2360da:1' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2018-11-21 17:00:28.429 [hingStatusInfoChangedEvent] - 'amazonechocontrol:flashbriefingprofile:ac2360da:1' changed from INITIALIZING to UNKNOWN

2018-11-21 17:00:28.543 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:ac2360da:G090LF09648305G5' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING

2018-11-21 17:00:28.554 [hingStatusInfoChangedEvent] - 'amazonechocontrol:echo:ac2360da:G090LF09648305G5' changed from INITIALIZING to UNKNOWN

==> /var/log/openhab2/openhab.log <==

2018-11-21 17:00:29.386 [WARN ] [mazonechocontrol.internal.Connection] - Parsing json failed {}

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224) [23:com.google.gson:2.7.0]

	at com.google.gson.Gson.fromJson(Gson.java:887) [23:com.google.gson:2.7.0]

	at com.google.gson.Gson.fromJson(Gson.java:852) [23:com.google.gson:2.7.0]

	at com.google.gson.Gson.fromJson(Gson.java:801) [23:com.google.gson:2.7.0]

	at com.google.gson.Gson.fromJson(Gson.java:773) [23:com.google.gson:2.7.0]

	at org.openhab.binding.amazonechocontrol.internal.Connection.parseJson(Connection.java:565) [241:org.openhab.binding.amazonechocontrol:2.3.0]

	at org.openhab.binding.amazonechocontrol.internal.Connection.getEnabledFlashBriefings(Connection.java:802) [241:org.openhab.binding.amazonechocontrol:2.3.0]

	at org.openhab.binding.amazonechocontrol.handler.AccountHandler.updateFlashBriefingProfiles(AccountHandler.java:541) [241:org.openhab.binding.amazonechocontrol:2.3.0]

	at org.openhab.binding.amazonechocontrol.handler.AccountHandler.addFlashBriefingProfileHandler(AccountHandler.java:174) [241:org.openhab.binding.amazonechocontrol:2.3.0]

	at org.openhab.binding.amazonechocontrol.handler.FlashBriefingProfileHandler.initialize(FlashBriefingProfileHandler.java:74) [241:org.openhab.binding.amazonechocontrol:2.3.0]

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh230]

	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh230]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

	at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385) ~[?:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213) ~[?:?]

	... 19 more

2018-11-21 17:00:29.416 [WARN ] [mazonechocontrol.internal.Connection] - Illegal json: ��Y[s�8�~ׯ�X[

��i�ٜ��FT�8�3�3Ie23����@���U���5����ڗ�T$��h4���d��Nfa!��RM�&K_���T����%���K=aM��1��"HReMCш��Kq�B��q++�uQ��z5�NOb%�W��ZVI�L�8֨�������Օ��[u�q��۹��������Р�G*��$�k4�8�����M{@�'

���;]��$z��9�.���d�r'�

4

�զ�

:h��Ď��l�"�C��*�������,�����n��:��j�Uޓ���

y�t��v�`u�$���C�u�

F�L8�Idςsqa����§))�r[�����4�ʓ"MmQ���ʛ�a��v�>'	/p�*U���kQQ�t��a�8���	lq~t����>�{

I�+����F�G�w78�e�?P��T�f���Lo�&Nj6\`/E#c[:�[uV�O�

|Jv/��J�-�^����桊�\�K����R������_���ǟce�C����$TU]�X�0�g_j���g,�)��Mc;b�Q�-<%_	/�Q�|9��kTe�9~�2�h.�:�v���r>�3�7�+3_��*w;:�u[���G^)��Ogܲ\[���V�Ћ+--

���q��Hp�j4#�FS�U��ν�YF,ɣb�8{q��X�$Sl�ܓ��*�ϖ�Eˀ�K�$q�t�kUE�!�X�i�^��޳��j�c�ͮ�;�WE"�Ǝf�=I|í��?�>�Xƭ�O�>|�X΍A��[�>����^�;}g1��\1���RO�� U�<�`P+}A��G�nD�|N2G�

���L��s�_����h�s��	)q>'ȍm��pN�=[��

�S��$��JH�~�h�9�?9���,�

8e�+

N{�g���

������/���o�{���Ͽ�����/���Y �UJH��<�*J�R.��$K�5=43T_/���������ỏæ�,�xy�8:�����������?�h�����D&�`β�a=j����@ma�lD�E��������\���ȇ�C����^g^�n��L�yeU��$o@�h`DjV#i��~^��e^#R�a�

���냭QiA~s+0P������|B�˧4��=^/a�Z>�N&��|�����v��������>X=E1

�e�N	#���*_7�I9��R��<�

(xzE���\���!��_Q!��w� [7�@�

�se��i�(xP���2�V*E?#�����l��yv������R�&\le���8	C�[K�*��Ց�z�u0.]���azI�a�Ps'u:����R�p(~��6�G,bk�!6�[��U�I

��j�(�

���G,�G~|�����B?v]ab<?�/P��b�&c�q-sP���H���ɸ���<�p�ؚ�$M�[ʅkEa����$��t�6���O6������\y"

��Β�Q;��mB��a(F锴~O�n	��U�=	��J�P��d�E�=��`U��:��e{(6�X]�H5ڇ��g����/�k��8�j�=� x/!1��*�+���t^�Wxg�I�h��5�\��Z��W�js�TB\�\�n

�<:��^�_��A�T�����aXfwuR�܏��kT/p:R�0 �x���g�4Q�w�Ad���u�t�^��!e�`�d7�;�1�����:��}@)�)�.J

���O�v,���HOU�3��RU��R�5�����M$Y�|Ԃ��'Z"#��oԨ!PI֨�PP::4�yf<M�i΃�_

8���/

W,?/�

�^,���G���[;�rЎ�xdW�L�#�D�[�k�%υ�ϡ�U���<�X�~�h�v�����0Q(�

�!�+�1�%�2��߶≨P��*r˕چc��

��PG��:��b�;�x�{P+ !�ՠPx&>|DIg��	�Ӛ�D�e_��������-�D-��1H���p��,X��*`���/d����Y��\!8���"��[��)������p����

_��Gfn,��ed?�1�H`)OW?�.J]�㧖����.���Ȉ����φ^�e$%M�MS�0���id-�sP��:�MG{�hS��	

��M�������D	�D�ٌ�In[�G�!�3�����ލʲ�)����♖

s���N���v��̐��{�j{

��m%������|����E�6�ǷEV���e��ՈX@-P��}jX��E�v?bEQ�lXYvwѼ�=��@R��)D�n2�LYe���*Y��hl�l��aG�Z,��K��#sb}⪳���7������}�н��e�7�CI9���Ӷ7�,�TI�����.ՙ��{�֍"*�fj2��Kt����=���i!L��.��Å�<�

	�RaR���

What version of OH are you using?

Also see this post, others are having the same issue https://community.openhab.org/t/released-openhab2-amazon-echo-control-binding-controlling-alexa-from-openhab2/37844/1133?u=h102

Switch to the latest 2.4 Beta binding. On the first post. Amazon changed the response back and it’s breaking the old binding.

I switched to it last weekend and all is working great and no longer require a weekly log on for new tokens.

1 Like

openHAB 2.3.0-1

That’s the openHAB version. The Latest binding version is 2.4 Beta 7. it’s in the link I posted.

Just remove the Official binding, drop in the new 2.4 Beta 7. You may need to clear cache and restart OH. I didn’t and it works great with 2.3.0-1.

ok ill try the new binding

dropped in the beta… and worked straight away

2 Likes

Glad it worked out.

have the newest version of openhab2 and put the file into the addons folder, cleared the cache but the version and the errors using the binding stay the same.
I think it isn´t installed. how can I manage it?! tried several times

stopped openhab via systemctl
cleared the cache
started openhab
old file is remaining in bindings

did you remove the old binding first trough paperui?

Yes, by clicking uninstall

did you try to login in amazone
http://openhav:8080/amazonechocontrol

works now…had sth to do with permissions of the file I´ve copied to the addons folder.

Another question: TTS (Texttospeech) doesn´t work anymore???