smarthomej / addons

SmartHome/J addons for openHAB
Eclipse Public License 2.0
59 stars 24 forks source link

Error with amazonechocontrol binding in openHAB 3.3M1 #316

Closed BigGeorgeTx closed 2 years ago

BigGeorgeTx commented 2 years ago

Using openhabian and switched my system to openHAB 3.3M1. As instructed in the read.me, I deleted the smarthome/j bindings before switching. When I installed the bindings I use (Tuya and amazonechocontrol), the Tuya binding appears to work. The amazonechocontrol binding produces the following:

2022-02-07 18:16:54.925 [ERROR] [trol.internal.handler.AccountHandler] - check login fails with unexpected error java.lang.NullPointerException: null at org.smarthomej.binding.amazonechocontrol.internal.smarthome.HandlerColorController.getStateDescription(HandlerColorController.java:169) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.SmartHomeDeviceHandler.setDeviceAndUpdateThingState(SmartHomeDeviceHandler.java:146) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.lambda$19(AccountHandler.java:862) ~[?:?] at java.util.concurrent.CopyOnWriteArrayList.forEach(Unknown Source) ~[?:?] at java.util.concurrent.CopyOnWriteArraySet.forEach(Unknown Source) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.updateSmartHomeDeviceList(AccountHandler.java:862) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.setConnection(AccountHandler.java:425) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.checkLogin(AccountHandler.java:393) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?] at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?] at java.lang.Thread.run(Unknown Source) [?:?] 2022-02-07 18:16:54.985 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: java.lang.NullPointerException: null at org.smarthomej.binding.amazonechocontrol.internal.smarthome.HandlerColorController.getStateDescription(HandlerColorController.java:169) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.SmartHomeDeviceHandler.setDeviceAndUpdateThingState(SmartHomeDeviceHandler.java:146) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.lambda$19(AccountHandler.java:862) ~[?:?] at java.util.concurrent.CopyOnWriteArrayList.forEach(Unknown Source) ~[?:?] at java.util.concurrent.CopyOnWriteArraySet.forEach(Unknown Source) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.updateSmartHomeDeviceList(AccountHandler.java:862) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.discovery.SmartHomeDevicesDiscovery.startScan(SmartHomeDevicesDiscovery.java:85) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?] at java.util.concurrent.FutureTask.runAndReset(Unknown Source) ~[?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?] at java.lang.Thread.run(Unknown Source) [?:?] 2022-02-07 18:16:55.806 [ERROR] [trol.internal.handler.AccountHandler] - refresh data fails with unexpected error java.lang.NullPointerException: null at org.smarthomej.binding.amazonechocontrol.internal.smarthome.HandlerColorController.getStateDescription(HandlerColorController.java:169) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.SmartHomeDeviceHandler.setDeviceAndUpdateThingState(SmartHomeDeviceHandler.java:146) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.lambda$19(AccountHandler.java:862) ~[?:?] at java.util.concurrent.CopyOnWriteArrayList.forEach(Unknown Source) ~[?:?] at java.util.concurrent.CopyOnWriteArraySet.forEach(Unknown Source) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.updateSmartHomeDeviceList(AccountHandler.java:862) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.refreshData(AccountHandler.java:522) ~[?:?] at org.smarthomej.binding.amazonechocontrol.internal.handler.AccountHandler.checkData(AccountHandler.java:472) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?] at java.util.concurrent.FutureTask.run(Unknown Source) [?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?] at java.lang.Thread.run(Unknown Source) [?:?]

Not a big deal. The functionality I was chasing in 3.3M1 falls into the nice to have bucket. But I thought you might want to know. I'm going to switch back to 3.2.

BigGeorgeTx commented 2 years ago

When I switched back to 3.2, I get the same error. I tried logging out of amazon and back in, but that didn't change anything.

J-N-K commented 2 years ago

Fixed with #307. I‘ll add a fixed version to the develop addons later today.

BigGeorgeTx commented 2 years ago

Thanks. I installed the devop version of the amazonechocontrol binding today and it is working in openHAB 3.2. I will try switching to 3.3M1 later today and report back.

On Mon, Feb 7, 2022 at 11:52 PM J-N-K @.***> wrote:

Fixed with #307 https://github.com/smarthomej/addons/pull/307. I‘ll add a fixed version to the develop addons later today.

— Reply to this email directly, view it on GitHub https://github.com/smarthomej/addons/issues/316#issuecomment-1032239351, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEQZL7FJF3DIWFV33RQOPLU2CVSNANCNFSM5NZBWLDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- George Hyde Mobile +1-281-620-3039

BigGeorgeTx commented 2 years ago

Still working in 3.2, but I did notice some new Error messages in the log

2022-02-09 09:06:15.331 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:02:03Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:25.12Z"} 2022-02-09 09:06:15.341 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:06:14.12Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T16:06:14.12Z"} 2022-02-09 09:06:15.362 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T15:44:13Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:25.1Z"} 2022-02-09 09:06:15.369 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T15:59:57Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:24.74Z"} 2022-02-09 09:06:15.380 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:06:14.37Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T16:06:14.37Z"} 2022-02-09 09:06:15.391 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T15:58:54Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:24.46Z"} 2022-02-09 09:06:15.397 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:06:12.21Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T16:06:11.19Z"} 2022-02-09 09:06:15.403 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:03:06Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:56:44.81Z"} 2022-02-09 09:06:15.415 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T15:48:25Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:24.52Z"} 2022-02-09 09:06:15.421 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T15:59:57Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:30.52Z"} 2022-02-09 09:06:15.427 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:06:14.33Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T16:06:14.33Z"} 2022-02-09 09:06:15.430 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T15:53:39Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T09:50:27.52Z"} 2022-02-09 09:06:15.436 [ERROR] [rnal.smarthome.HandlerEndpointHealth] - state {"namespace":"Alexa.EndpointHealth","name":"connectivity","value":{"value":"OK"},"timeOfSample":"2022-02-09T16:06:12.28Z","uncertaintyInMilliseconds":0,"deepQuery":false,"timeOfStateChange":"2022-02-09T16:06:11.56Z"}

J-N-K commented 2 years ago

That's not an error, that was a debug message. I have updated the bundle, if you uninstall/re-install it should be gone.