Ghost device

Tags: #<Tag:0x00007fc90eddc640> #<Tag:0x00007fc90eddc2d0>

Hi

I try to install openHAB with modbus support
But during me try i have created a device “serial.light1.type” and after i have remove it

but when openhab start i have this bug

2018-10-22 00:02:34.943 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-10-22 00:03:32.565 [INFO ] [er.internal.HomeBuilderDashboardTile] - Started Home Builder at /homebuilder
2018-10-22 00:03:32.644 [ERROR] [inding.modbus.internal.ModbusBinding] - Exception when parsing configuration parameter serial.light1.type = “discrete” – org.osgi.service.cm.ConfigurationException type : the given slave type ‘“discrete”’ is invalid
2018-10-22 00:03:32.649 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-10-22 00:03:32.645 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=305, bundle=202/mvn:org.openhab.binding/org.openhab.binding.modbus/1.12.0]: Updating property serial.light1.type of configuration org.openhab.modbus caused a problem: Exception when parsing configuration parameter serial.light1.type = “discrete” – org.osgi.service.cm.ConfigurationException type : the given slave type ‘“discrete”’ is invalid
org.osgi.service.cm.ConfigurationException: serial.light1.type : Exception when parsing configuration parameter serial.light1.type = “discrete” – org.osgi.service.cm.ConfigurationException type : the given slave type ‘“discrete”’ is invalid
at org.openhab.binding.modbus.internal.ModbusBinding.updated(ModbusBinding.java:702) ~[?:?]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) ~[8:org.apache.felix.configadmin:1.8.16]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [8:org.apache.felix.configadmin:1.8.16]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [8:org.apache.felix.configadmin:1.8.16]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1479) [8:org.apache.felix.configadmin:1.8.16]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1435) [8:org.apache.felix.configadmin:1.8.16]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [8:org.apache.felix.configadmin:1.8.16]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [8:org.apache.felix.configadmin:1.8.16]
at java.lang.Thread.run(Thread.java:844) [?:?]
2018-10-22 00:03:32.670 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-10-22 00:03:32.746 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app

my modbus.cfg containe

poll=100
serial.slave3.connection=/dev/ttyUSB0:115200:8:none:1:rtu:1:500:none:none
serial.slave3.type=“holding”
serial.slave3.id=1
serial.slave3.start=1
serial.slave3.length=1
serial.slave3.valuetype=“uint16”
serial.slave2.connection=/dev/ttyUSB0:115200:8:none:1:rtu:1:500:none:none
serial.slave2.id=1
serial.slave2.type=“holding”
serial.slave2.start=1home/simon
serial.slave2.length=1
serial.slave2.valuetype=“uint16”

I have try to use
sudo openhab-cli clean-cache
but that not solve the bug

can you help me?

  • Platform information:
    • Hardware: arm64
    • OS: debian
    • Java Runtime Environment:openjdk 9-Debian
    • openHAB version: 2.3.0

If you are just starting out with OH + Modbus, you might be better off using the new Modbus2 binding instead of the old v1. It is configured very differently, so you cannot simply upgrade later.

Clear the cache

Is OH working with this version now?

Not quite yet. They are working on it and when it works we will go to Java 11.

There has been progress made though. It used to be OH wouldn’t even start on anything but Java 8. With the latest upgrade of Karaf it will start, but there are known problems.

Thanks you modbus2 are realy best not easy to install but best :slight_smile: