Giter Club home page Giter Club logo

Comments (7)

jshatch avatar jshatch commented on August 17, 2024

Log entry that I believe is caused by this:

00:56:18.977 [WARN ] [assistant.internal.DiscoverComponents] - HomeAssistant discover error: Label for a ChannelType must not be empty.
00:56:21.024 [WARN ] [ommon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.IllegalArgumentException: Label for a ChannelGroupType must not be empty.
	at org.openhab.core.thing.type.ChannelGroupTypeBuilder.instance(ChannelGroupTypeBuilder.java:45) ~[?:?]
	at org.openhab.binding.mqtt.homeassistant.internal.component.AbstractComponent.getType(AbstractComponent.java:253) ~[?:?]
	at org.openhab.binding.mqtt.homeassistant.internal.component.AbstractComponent.addChannelTypes(AbstractComponent.java:161) ~[?:?]
	at org.openhab.binding.mqtt.homeassistant.internal.handler.HomeAssistantThingHandler.accept(HomeAssistantThingHandler.java:292) ~[?:?]
	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:833) [?:?]

from ring-mqtt.

jshatch avatar jshatch commented on August 17, 2024

I manually published the topic and added the missing name for alarm and the channel was immediately discovered and works. So the missing name indeed seems to be the cause of this error.

from ring-mqtt.

tsightler avatar tsightler commented on August 17, 2024

You'll need to open an issue with OpenHAB and have them update their HA discovery functions to follow the Home Assistant entity naming rules that went into effect in Aug 2023. Under these new rules entities with no name are allowed and are used to identify the default entity for a given device. From the Home Assistant MQTT Entity Naming documentation:

Unnamed binary_sensor, button, number and sensor entities will now be named by their device class instead of being named “MQTT binary sensor” etc. It’s allowed to set an MQTT entity’s name to None (use null in YAML) to mark it as the main feature of a device.

You can also reference the Home Assistant MQTT developer blog from August:

https://developers.home-assistant.io/blog/2023/07/21/change-naming-mqtt-entities/#naming-of-mqtt-entities

from ring-mqtt.

jshatch avatar jshatch commented on August 17, 2024

OK, I went back and found that you changed this in 5.6.0, installing 5.5.1 has fixed the issue for me. I'll open a bug report with openHAB.

from ring-mqtt.

jshatch avatar jshatch commented on August 17, 2024

Looks like they're already on it. openhab/openhab-addons#15427

from ring-mqtt.

jshatch avatar jshatch commented on August 17, 2024

For reference: openhab/openhab-addons#15918

from ring-mqtt.

tsightler avatar tsightler commented on August 17, 2024

Interesting, I had tried to use null when I initially coded this but I couldn't get it to work, maybe I should change this on my side.

from ring-mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.