Esphome latest version

I did a upgrade of OH to 5.1.3 and is working :grinning_face:. Thanks.

I checked for the latest version of the ESPHome jar file and found

image

I tried that but didn’t work. See login below. The file size of the jar file is strange. Size used version 3.764kB and version above 12.811 kB

026-03-05 21:22:21.174 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/openhab/addons/no.seime.openhab.binding.esphome-4.1.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: no.seime.openhab.binding.esphome [377]
  Unresolved requirement: Import-Package: org.openhab.binding.bluetooth

	at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.7.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.7.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.7.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.7.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.7.4]

Install the Bluetooth binding.

Thanks.

Why is the binding not more flexible/smarter and checks if the bluetooth binding is installed and if not install ESPHome without BT features?

IMHO the best solution would be to have the OSGi framework triggering automatic installation of the Bluetooth binding if not already installed, but AFAIK (far from sure) Marketplace bindings cannot do this.

Another option would be to split the Bluetooth part into another binding, but that would just shift the problem to another bundle.

I’m no expert in OSGi bundle dependencies, so if you or someone else can assist I’m happy to give it a try.