Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mqtt.homeassistant] 4.3.1 seems to break zigbee2mqtt light things #18022

Closed
zolakk opened this issue Jan 2, 2025 · 3 comments · Fixed by #18021
Closed

[mqtt.homeassistant] 4.3.1 seems to break zigbee2mqtt light things #18022

zolakk opened this issue Jan 2, 2025 · 3 comments · Fixed by #18021
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@zolakk
Copy link

zolakk commented Jan 2, 2025

After upgrading from 4.3.0 to 4.3.1 all of my zigbee2mqtt things for lights/bulbs (various brands) come online but have no channels or show HANDLER_INITIALIZING_ERROR Cannot invoke "String.isBlank()" because "result" is null. Removing and re-adding seems to have the same result. Reverting to 4.3.0, everything works as expected again. Tried a fresh install of 4.3.1 to test with same results (broken in 4.3.1, working in 4.3.0). Also have an Inovelli zigbee fan module that is showing the same behavior, possibly because it has a light channel?

Have zigbee sensors and buttons that all seem to work fine on 4.3.1 so far.

Expected Behavior

all zigbee things come online, populate the proper channels, and work

Current Behavior

zigbee2mqtt light things either don't populate channels or show HANDLER_INITIALIZING_ERROR
Cannot invoke "String.isBlank()" because "result" is null.

Log file shows this when getting the String.isBlank(), nothing showing when no channels:
2025-01-02 09:31:41.922 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: java.lang.NullPointerException: Cannot invoke "String.isBlank()" because "result" is null at org.openhab.binding.mqtt.homeassistant.internal.component.AbstractComponent.getName(AbstractComponent.java:307) ~[?:?] at java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:473) ~[?:?] at java.util.Comparator.lambda$thenComparing$36697e65$1(Comparator.java:221) ~[?:?] at java.util.TimSort.binarySort(TimSort.java:296) ~[?:?] at java.util.TimSort.sort(TimSort.java:239) ~[?:?] at java.util.Arrays.sort(Arrays.java:1307) ~[?:?] at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:353) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?] at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?] at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?] at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?] at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?] at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.updateThingType(HomeAssistantThingHandler.java:425) ~[?:?] at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.addComponents(HomeAssistantThingHandler.java:352) ~[?:?] at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:296) ~[?:?] at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:1) ~[?:?] at org.openhab.binding.mqtt.generic.tools.DelayedBatchProcessing.run(DelayedBatchProcessing.java:110) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:840) [?:?]

Possible Solution

Unknown

Steps to Reproduce (for Bugs)

  1. Upgrade to 4.3.1

Context

None of my zigbee light devices are functional on 4.3.1

Your Environment

  • Version used: openHAB 4.3.1 - Release Build - Main UI Commit a695375f
  • Environment name and version (e.g. Chrome 76, Java 8, Node.js 12.9, ...): Docker, openhab:latest
  • Operating System and version (desktop or mobile, Windows 10, Raspbian Buster, ...): Docker 25.0.2, build 29vf629 running on Ubuntu
    23.04
@zolakk zolakk added the bug An unexpected problem or unintended behavior of an add-on label Jan 2, 2025
@zolakk
Copy link
Author

zolakk commented Jan 2, 2025

Noticed #18021 after posting, built the latest binding from source and it seems to be working as expected now so closing this one

@zolakk zolakk closed this as completed Jan 2, 2025
@gargamelonly
Copy link

I updated and facing the same problem.
How do I fix it now without waiting for 4.3.2 ?!

@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-4-3-release-discussion/160888/276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants