Hello,
This is my first post on the forums because so far I have always been able to find a post and solution for any problem I had albeit not this one.
I’m running openhabian (1.4) on a Raspberry pi 3.
I installed the AirVisual Node Binding and configured a thing according to the instructions in the binding documentation.
https://www.openhab.org/addons/bindings/airvisualnode/
airvisual.things
airvisualnode:avnode:1a2b3c4 [ address="192.168.3.112", username="airvisual", password="twmmmx23#ALf", share="airvisual", refresh=60 ]
The thing shows up in paper UI as INITIALIZING and there it stays.
The events log shows the following.
events.log
2019-01-04 14:20:41.911 [hingStatusInfoChangedEvent] - 'airvisualnode:avnode:1a2b3c4' changed from UNINITIALIZED to INITIALIZING
then about 4 seconds later the openhab log show the following.
openhab.log
2019-01-04 14:20:46.091 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 7 column 22 path $.measurements
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224) ~[?:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) ~[?:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:887) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:852) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:801) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:773) ~[?:?]
at org.openhab.binding.airvisualnode.internal.handler.AirVisualNodeHandler.pollNode(AirVisualNodeHandler.java:162) ~[?:?]
at org.openhab.binding.airvisualnode.internal.handler.AirVisualNodeHandler.poll(AirVisualNodeHandler.java:152) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[?:?]
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 BEGIN_ARRAY at line 7 column 22 path $.measurements
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385) ~[?:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213) ~[?:?]
... 15 more
Does anyone have any ideas or suggestions how I might rectify this problem?
I have tested reinstalling the binding and restarting the raspberry pi.
EDIT:
Forgot to say I’m in mainland China so anything google is blocked for my openhab installation.
EDIT2:
I tested adding the discovered thing from the inbox in papper UI, but the result and error remain exactly the same.