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

[ism8] Binding ism8 doesn't support UoM, values don't update #9598

Closed
schmidmuc opened this issue Dec 30, 2020 · 38 comments · Fixed by #14206
Closed

[ism8] Binding ism8 doesn't support UoM, values don't update #9598

schmidmuc opened this issue Dec 30, 2020 · 38 comments · Fixed by #14206
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@schmidmuc
Copy link
Contributor

Expected Behavior

It should be possible to link ism8 channels to items with UoM, such as Number:Temperature for all temperature values, etc.

Current Behavior

When linking an ism8 temperature channel to a Number:Temperature item values are not updated.

Possible Solution

Integrate UoM support to binding.

@schmidmuc schmidmuc added the bug An unexpected problem or unintended behavior of an add-on label Dec 30, 2020
schmidmuc added a commit to schmidmuc/openhab2-addons that referenced this issue Dec 30, 2020
It should pointed out that so far UoM item types are not supported.
Related issue about UoM support is opened here: openhab#9598
@Hilbrand Hilbrand added enhancement An enhancement or new feature for an existing add-on and removed bug An unexpected problem or unintended behavior of an add-on labels Dec 30, 2020
@Hilbrand
Copy link
Member

This is not a bug. But by design. I suspect this binding was created before UoM types was introduced.

@schmidmuc
Copy link
Contributor Author

schmidmuc commented Dec 30, 2020

The binding was introduced as a new binding with release 2.5.9 - UoM were introduced a long time before.
Anyhow it doesn't matter if bug or enhancement - especially for OH3 a missing UoM support is getting more and more a problem.

@lsiepel
Copy link
Contributor

lsiepel commented Jan 6, 2023

@schmidmuc looking at the binding, it internally allready has units specified in many cases. So i don't think it will be hard to implement it. The problem is that i don't have a ism8 device and that makes testing and polishing tedious.

@holgerfriedrich did a PR last week to this binding, don't know if he is planning to do more changes?

Anyway, i'm fine spending some time on it, but i do need others to test and verify.

@holgerfriedrich
Copy link
Member

@lsiepel I do not plan to spend more time here, still busy with knx binding. I just went through the bindings I have used before and did some quick fixes. My ism8 is now connected to a BAOS device and no loger available for testing.

@lsiepel
Copy link
Contributor

lsiepel commented Jan 6, 2023

Thanks for the quick response, maybe @schmidmuc is available for testing, otherwise i pass on this.

@schmidmuc
Copy link
Contributor Author

Thanks for the quick response, maybe @schmidmuc is available for testing, otherwise i pass on this.

Thanks, that you would spend efforts to work on this topic. I have the ISM8 still in use, so I could support with testing when getting the jar file including the changes.

@lsiepel lsiepel self-assigned this Jan 6, 2023
@lsiepel
Copy link
Contributor

lsiepel commented Jan 7, 2023

Made a first attempt. 3.4.1 Jar is available here: https://1drv.ms/u/s!AnMcxmvEeupwjp4L347Q22cnMI1QQg?e=ROo8Y1
Sources (4.0.0) here: https://github.com/lsiepel/openhab-addons/tree/ism8-uom-400

Used UoM types.

QuantityType<Temperature>((Double) value, SIUnits.CELSIUS);
QuantityType<Temperature>((Double) value, Units.KELVIN);
QuantityType<VolumetricFlowRate>((Double) value, Units.CUBICMETRE_PER_HOUR);
QuantityType<Pressure>((Double) value, Units.BAR);
QuantityType<Dimensionless>((Double) value, Units.PERCENT);
QuantityType<Dimensionless>((Double) value, Units.ONE);
OnOffType.from((boolean) value);

If you test, please enable debug loging if you have any issues. I mainly focused on data flowing from the device to openHAB.
When all that works fine, i hope you can also test sending commands from openHAB to the device and specific when you have units setup in a different locale (Fahrenheit vs Celsius etc.)

Edit: The channel types have changes, so you need to setup the channels again. I added a table to the readme.md half -way: https://github.com/lsiepel/openhab-addons/blob/ism8-uom-400/bundles/org.openhab.binding.ism8/README.md

@schmidmuc
Copy link
Contributor Author

Did some first tests with 3.4.1 version:

Getting values from read-only ISM values to OpenHab items seems to work.

But I'm wondering if in things configuration menu with channel ribbon opened (shown in following screenshot) channel type shouldn't be "Number:Temperature" instead of "Number"?
image

Setting a writeable value didn't work in a first try, but not sure if this worked with former version, as I do not use this regularly:
image

@lsiepel
Copy link
Contributor

lsiepel commented Jan 7, 2023

Yes that should have been Number:Temperature. Did you re-create this channel? (delete and add it)
Can you share more of the configured Thing/ChannelItem. Do you have any profiles/transformations in place?

Writing the value failed because the unit was also send to the channel. It should only send the number. Do you use some formatting on the item? I'll also look on the code side if there is anything i have missed or can be improved.

Thanks for first results!

@lsiepel
Copy link
Contributor

lsiepel commented Jan 8, 2023

Just finished a new version. You can use the same download link. Version is as of 2023-01-08 13:09
The binding should have support for writing UoM channels.
There are some more improvements code wise.

Let me know any results. Please provide a debug log if you encounter any issues including the actions before the issue.

@schmidmuc
Copy link
Contributor Author

schmidmuc commented Jan 8, 2023

After some time thing goes OFFLINE:

2023-01-08 22:38:15.430 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-08 22:38:21.431 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12005.
2023-01-08 22:38:21.432 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Die Adresse wird bereits verwendet (Bind failed)
2023-01-08 22:38:21.432 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.

I changed the port in OH and in ISM, but after some time same error occurs.

Interesting is, that between the connection losses the binding/thing receives data, like seen in the log below:

2023-01-08 22:38:45.438 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-08 22:38:46.364 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600060001000603021474
2023-01-08 22:38:46.364 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860006000000
2023-01-08 22:38:46.365 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 6 000603021474
2023-01-08 22:38:51.438 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12005.
2023-01-08 22:38:51.439 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Die Adresse wird bereits verwendet (Bind failed)

Things configuration menu with channel ribbon opened (shown in following screenshot) channel typeis now shown correctly with "Number:Temperature" instead of "Number":
image

@schmidmuc
Copy link
Contributor Author

After connection problems occur also values are updated wrong although data interpreation in log seems correct:

2023-01-08 22:41:57.481 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-08 22:41:58.795 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600040001000403020FE9
2023-01-08 22:41:58.795 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860004000000
2023-01-08 22:41:58.795 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 000403020FE9
2023-01-08 22:41:58.796 [DEBUG] [g.openhab.binding.ism8.server.Server] - Kesseltemperatur 40,5
2023-01-08 22:41:58.796 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: dataPointChanged DataPoint 4=40,5

But shown in UI like
image

@lsiepel
Copy link
Contributor

lsiepel commented Jan 8, 2023

So i guess there are two issues:

  1. Seems some kind of conversion error. As -232,7 - 40,5 = -273.2 celsius as in 0 Kelvin.
  2. Connection logic as the address (port) seems to be allready in use.

I'll look into it later this week. Thanks for your testing efforts!

@schmidmuc
Copy link
Contributor Author

Deleting the ism8 thing for a new start and even deleting the binding jar does not stop the failure messages in log file. Something still tries to bind the port 12005:

2023-01-08 22:51:20.811 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12005.
2023-01-08 22:51:20.812 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Die Adresse wird bereits verwendet (Bind failed)
2023-01-08 22:51:20.812 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.

@schmidmuc
Copy link
Contributor Author

Things seems not to unbind the ports after deletion:

thomas@server:$ sudo netstat -tulpen | grep -v '127.0.0.1' | grep -v '::1:' | grep 12004
tcp6 0 0 :::12004 :::* LISTEN 109 633442399 2847251/java
thomas@server:
$ sudo netstat -tulpen | grep -v '127.0.0.1' | grep -v '::1:' | grep 12005
tcp6 0 0 :::12005 :::* LISTEN 109 642973386 2847251/java

Both ports are still blocked although no active thing is existing anymore.

@schmidmuc
Copy link
Contributor Author

Ok, startet from skretch with a changed port to 12006:

Deleted and installed the binding again:

2023-01-08 23:02:14.152 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : BundleComponentActivator : ComponentHolder created.
2023-01-08 23:02:14.153 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component created: DS=DS13, implementation=org.openhab.binding.ism8.internal.Ism8HandlerFactory, immediate=false, default-enabled=true, factory=null, configuration-policy=optional, activate=activate, deactivate=deactivate, modified=null configuration-pid=[binding.ism8]
2023-01-08 23:02:14.153 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component Services: scope=singleton, services=[org.openhab.core.thing.binding.ThingHandlerFactory]
2023-01-08 23:02:14.153 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component Properties: {}
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Querying state disabled
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Querying state disabled
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component can not be activated since it is in state disabled
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Querying state disabled
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Updating target filters
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Changed state from disabled to unsatisfiedReference
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Component enabled
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : ActivateInternal
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-08 23:02:14.154 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-08 23:02:14.155 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Activating component from state unsatisfiedReference
2023-01-08 23:02:14.155 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-08 23:02:14.155 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-08 23:02:14.155 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Changed state from unsatisfiedReference to satisfied
2023-01-08 23:02:14.155 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : registration change queue [registered]
2023-01-08 23:02:14.156 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Checking constructor public org.openhab.binding.ism8.internal.Ism8HandlerFactory()
2023-01-08 23:02:14.156 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Found constructor with 0 arguments : public org.openhab.binding.ism8.internal.Ism8HandlerFactory()
2023-01-08 23:02:14.156 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : This thread collected dependencies
2023-01-08 23:02:14.157 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : getService (single component manager) dependencies collected.
2023-01-08 23:02:14.157 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state satisfied
2023-01-08 23:02:14.157 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state satisfied
2023-01-08 23:02:14.157 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : getting activate: activate
2023-01-08 23:02:14.157 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Locating method activate in class org.openhab.binding.ism8.internal.Ism8HandlerFactory
2023-01-08 23:02:14.158 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Declared Method org.openhab.binding.ism8.internal.Ism8HandlerFactory.activate([interface org.osgi.service.component.ComponentContext]) not found
2023-01-08 23:02:14.158 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Locating method activate in class org.openhab.core.thing.binding.BaseThingHandlerFactory
2023-01-08 23:02:14.158 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Found activate method: protected void org.openhab.core.thing.binding.BaseThingHandlerFactory.activate(org.osgi.service.component.ComponentContext)
2023-01-08 23:02:14.158 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : invoking activate: activate: parameters [org.apache.felix.scr.impl.manager.ComponentContextImpl]
2023-01-08 23:02:14.158 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : invoked activate: activate
2023-01-08 23:02:14.158 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Set implementation object for component
2023-01-08 23:02:14.159 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301081209 (331)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Changed state from satisfied to active

Thing recreated:

2023-01-08 23:04:17.249 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12006.
2023-01-08 23:04:24.922 [DEBUG] [g.openhab.binding.ism8.server.Server] - Connection from Partner established /xxx.xxx.x.xx:xxxxx
2023-01-08 23:04:24.923 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001604000000F0D0
2023-01-08 23:04:24.962 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000100010001030101
2023-01-08 23:04:24.966 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860001000000
2023-01-08 23:04:24.966 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 1 0001030101
2023-01-08 23:04:24.967 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003500010035030101
2023-01-08 23:04:24.968 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860035000000
2023-01-08 23:04:24.968 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 53 0035030101
2023-01-08 23:04:24.969 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008700010087030101
2023-01-08 23:04:24.970 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860087000000
2023-01-08 23:04:24.970 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 135 0087030101
2023-01-08 23:04:25.185 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000100010001030100
2023-01-08 23:04:25.185 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860001000000
...

Channel #1 created:

2023-01-08 23:07:15.177 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: Channel=Configuration[{key=type; type=String; value=9.002}, {key=id; type=BigDecimal; value=4}]
2023-01-08 23:07:15.177 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: Channel=Configuration[{key=type; type=String; value=9.002}, {key=id; type=BigDecimal; value=4}]
2023-01-08 23:07:15.202 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-08 23:07:15.202 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: Channel=Configuration[{key=type; type=String; value=9.002}, {key=id; type=BigDecimal; value=4}]
2023-01-08 23:07:15.203 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: Channel=Configuration[{key=type; type=String; value=9.002}, {key=id; type=BigDecimal; value=4}]
2023-01-08 23:07:17.510 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12006.
2023-01-08 23:07:17.511 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12006.
2023-01-08 23:07:17.511 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Die Adresse wird bereits verwendet (Bind failed)
2023-01-08 23:07:17.511 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-08 23:07:17.511 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12006.
2023-01-08 23:07:17.511 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Die Adresse wird bereits verwendet (Bind failed)
2023-01-08 23:07:17.511 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-08 23:07:17.512 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12006.

From this point on the thing goes OFFLINE again

@schmidmuc
Copy link
Contributor Author

schmidmuc commented Jan 8, 2023

Not sure if this is the same issue:

When adding a channel with channel type "Temperature Readonly DataPoint" there is only choice to select type "DPT_Value_Tempd" (9.002), but not "DPT_Value_Temp" (9.001)

image

@lsiepel
Copy link
Contributor

lsiepel commented Jan 9, 2023

Might all be the same issue. 9.001 was accidently removed in the proces from the both channels. I reinstated them with new version: 2023-01-09 13:23.

I also wrote some tests, to assure this back and forth data exchange is stable. Thanks for giving the details. Hope this new version is more stable. I have one remaining concern for writing channels, but your (hopefully) last test will show if it is ok or not.

@schmidmuc
Copy link
Contributor Author

schmidmuc commented Jan 9, 2023

Connection and things' state now is stable. 9.001 type is shown too. Configuration works, but values are not taken over to the items.

With former version debug looked like this:
2023-01-08 22:41:58.795 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 000403020FE9
2023-01-08 22:41:58.796 [DEBUG] [g.openhab.binding.ism8.server.Server] - Kesseltemperatur 40,5
2023-01-08 22:41:58.796 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: dataPointChanged DataPoint 4=40,5

Now it look this way (for the same parameter ID = 4:
2023-01-09 20:48:52.600 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000400010004030216C4
2023-01-09 20:48:52.600 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860004000000
2023-01-09 20:48:52.601 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 0004030216C4

Did you change the logging format or are there some processing steps missing which show the following two lines before:
2023-01-08 22:41:58.796 [DEBUG] [g.openhab.binding.ism8.server.Server] - Kesseltemperatur 40,5
2023-01-08 22:41:58.796 [DEBUG] [ab.binding.ism8.internal.Ism8Handler] - Ism8: dataPointChanged DataPoint 4=40,5

@lsiepel
Copy link
Contributor

lsiepel commented Jan 9, 2023

Yep, found it. The link is updated version 2023-01-09 21:21
Due to a wrong statement only the first registered channel was updated, all others where ignored. I adjusted the statement and added more channels to the test to prevent this from happening.

Did not yet document it, but the behavior has changed. Previously the DataPoint ID could be added to as many channels as needed. As side effect, every message was looped and matches to every channel. Now the behavior is different, as soon as it finds a channel with mathing datapoint id in the config, it stops looking for others. (way more efficient)

TL:DR the binding demands unique DataPoint Id's per channel. I can not think of a situation where one would need the same DataPoint Id on different channels. (effectively that would be clones).

@schmidmuc
Copy link
Contributor Author

Hhmm, the item still doesn't get an update. But still searching if there might be another reason for this.

2023-01-09 23:10:36.102 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600040001000403020F4E
2023-01-09 23:10:36.102 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860004000000
2023-01-09 23:10:36.102 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 000403020F4E

@lsiepel
Copy link
Contributor

lsiepel commented Jan 9, 2023

Does any item get updated? Or non at all? Maybe stupid question, but the item is properly linked? Will continue to search further. But the tests are concluding that the channel is updated, the rest is up to the openHAB framework.
I might do an update with very verbose logging.

@lsiepel
Copy link
Contributor

lsiepel commented Jan 10, 2023

Added a new version 2022-10-01 16:56 . No funcitonal change, alot more verbose logging. About every code path has a log. as i don;t understand (yet) why it is not working. Did you recently re-create the channel?

@schmidmuc
Copy link
Contributor Author

Thanks for the new file - below the log outputs after I removed the old thing incl. all channels and deleted the old jar.

After uploading the new jar file:

2023-01-10 21:59:09.203 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : BundleComponentActivator : ComponentHolder created.
2023-01-10 21:59:09.203 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component created: DS=DS13, implementation=org.openhab.binding.ism8.internal.Ism8HandlerFactory, immediate=false, default-enabled=true, factory=null, configuration-policy=optional, activate=activate, deactivate=deactivate, modified=null configuration-pid=[binding.ism8]
2023-01-10 21:59:09.203 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component Services: scope=singleton, services=[org.openhab.core.thing.binding.ThingHandlerFactory]
2023-01-10 21:59:09.203 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component Properties: {}
2023-01-10 21:59:09.203 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Querying state disabled
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Querying state disabled
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Component can not be activated since it is in state disabled
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory] : Querying state disabled
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Updating target filters
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Changed state from disabled to unsatisfiedReference
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Component enabled
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : ActivateInternal
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Activating component from state unsatisfiedReference
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state unsatisfiedReference
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Changed state from unsatisfiedReference to satisfied
2023-01-10 21:59:09.204 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : registration change queue [registered]
2023-01-10 21:59:09.205 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Checking constructor public org.openhab.binding.ism8.internal.Ism8HandlerFactory()
2023-01-10 21:59:09.205 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Found constructor with 0 arguments : public org.openhab.binding.ism8.internal.Ism8HandlerFactory()
2023-01-10 21:59:09.205 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : This thread collected dependencies
2023-01-10 21:59:09.205 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : getService (single component manager) dependencies collected.
2023-01-10 21:59:09.205 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state satisfied
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Querying state satisfied
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : getting activate: activate
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Locating method activate in class org.openhab.binding.ism8.internal.Ism8HandlerFactory
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Declared Method org.openhab.binding.ism8.internal.Ism8HandlerFactory.activate([interface org.osgi.service.component.ComponentContext]) not found
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Locating method activate in class org.openhab.core.thing.binding.BaseThingHandlerFactory
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Found activate method: protected void org.openhab.core.thing.binding.BaseThingHandlerFactory.activate(org.osgi.service.component.ComponentContext)
2023-01-10 21:59:09.206 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : invoking activate: activate: parameters [org.apache.felix.scr.impl.manager.ComponentContextImpl]
2023-01-10 21:59:09.207 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : invoked activate: activate
2023-01-10 21:59:09.207 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Set implementation object for component
2023-01-10 21:59:09.207 [DEBUG] [ing.ism8.internal.Ism8HandlerFactory] - bundle org.openhab.binding.ism8:3.4.1.202301101556 (336)[org.openhab.binding.ism8.internal.Ism8HandlerFactory(453)] : Changed state from satisfied to active

After creation of thing:

2023-01-10 22:01:46.579 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12008.
2023-01-10 22:02:03.086 [DEBUG] [g.openhab.binding.ism8.server.Server] - Connection from Partner established /192.168.0.81:56841
2023-01-10 22:02:03.086 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001604000000F0D0
2023-01-10 22:02:03.125 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000100010001030101
2023-01-10 22:02:03.126 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860001000000
2023-01-10 22:02:03.126 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 1 0001030101
2023-01-10 22:02:03.127 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003500010035030101
2023-01-10 22:02:03.127 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860035000000
2023-01-10 22:02:03.127 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 53 0035030101
2023-01-10 22:02:03.128 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008700010087030101
2023-01-10 22:02:03.128 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860087000000
2023-01-10 22:02:03.128 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 135 0087030101
2023-01-10 22:02:03.228 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008700010087030101
2023-01-10 22:02:03.228 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860087000000

After creation of a channel for ID 4:

2023-01-10 22:02:52.587 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-10 22:02:52.588 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Socket closed
2023-01-10 22:02:52.588 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-10 22:02:52.593 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12008.
2023-01-10 22:02:52.609 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-10 22:02:52.610 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Socket closed
2023-01-10 22:02:52.610 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-10 22:02:52.612 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12008.
2023-01-10 22:02:53.285 [DEBUG] [g.openhab.binding.ism8.server.Server] - Connection from Partner established /192.168.0.81:61484
2023-01-10 22:02:53.286 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001604000000F0D0
2023-01-10 22:02:59.205 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000100010001030100
2023-01-10 22:02:59.205 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860001000000
2023-01-10 22:02:59.206 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 1 0001030100
2023-01-10 22:02:59.350 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000200010002030101
2023-01-10 22:02:59.351 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860002000000
2023-01-10 22:02:59.351 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 2 0002030101
2023-01-10 22:02:59.507 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000300010003030100
2023-01-10 22:02:59.507 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860003000000
2023-01-10 22:02:59.507 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 3 0003030100
2023-01-10 22:02:59.659 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000400010004030214CB
2023-01-10 22:02:59.659 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860004000000
2023-01-10 22:02:59.660 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 0004030214CB
2023-01-10 22:02:59.820 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600050001000503020000
2023-01-10 22:02:59.820 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860005000000
...

@lsiepel
Copy link
Contributor

lsiepel commented Jan 10, 2023

There where no more lines after 2023-01-10 22:02:59.820 ? As exactly after this data send line there should be aditional logging.

Edit: looks something is going wrong with binding init.

public void initialize() {
        this.config = getConfigAs(Ism8Configuration.class);
        Ism8Configuration cfg = this.config;
        final String uid = this.getThing().getUID().getAsString();
        Server svr = new Server(cfg.getPortNumber(), uid);

        for (Channel channel : getThing().getChannels()) {
            registerDataPointToServer(channel.getConfiguration(), channel.getLabel());
            this.logger.debug("Ism8: Channel={}", channel.getConfiguration().toString());
        }
//...

i don not see this Ism8: Channel= in the logs. So the datapoint is not registered and that certainly leads to no channel updated.

@schmidmuc
Copy link
Contributor Author

schmidmuc commented Jan 10, 2023

Just to be sure, the latest version is the following one?

336 │ Active │ 80 │ 3.4.1.202301101556 │ org.openhab.binding.ism8

After this only a lot more channel / id data was sent:

2023-01-10 22:02:59.820 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860005000000
2023-01-10 22:02:59.821 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 5 000503020000
2023-01-10 22:02:59.977 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000600010006030214CB
2023-01-10 22:02:59.977 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860006000000
2023-01-10 22:02:59.977 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 6 0006030214CB
2023-01-10 22:03:00.129 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600070001000703021514
2023-01-10 22:03:00.129 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860007000000
2023-01-10 22:03:00.129 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 7 000703021514
2023-01-10 22:03:00.289 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600080001000803020000
2023-01-10 22:03:00.289 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860008000000
2023-01-10 22:03:00.289 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 8 000803020000
2023-01-10 22:03:01.189 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000900010009030100
2023-01-10 22:03:01.189 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860009000000
2023-01-10 22:03:01.189 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 9 0009030100
2023-01-10 22:03:01.329 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000A0001000A030101
2023-01-10 22:03:01.329 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000A000000
2023-01-10 22:03:01.329 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 10 000A030101
2023-01-10 22:03:01.330 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000B0001000B030100
2023-01-10 22:03:01.330 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000B000000
2023-01-10 22:03:01.330 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 11 000B030100
2023-01-10 22:03:01.331 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000C0001000C030100
2023-01-10 22:03:01.331 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000C000000
2023-01-10 22:03:01.331 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 12 000C030100
2023-01-10 22:03:01.430 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000C0001000C030100
2023-01-10 22:03:01.430 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000C000000
2023-01-10 22:03:01.430 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 12 000C030100
2023-01-10 22:03:01.489 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000D0001000D03026FF6
2023-01-10 22:03:01.489 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000D000000
2023-01-10 22:03:01.489 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 13 000D03026FF6
2023-01-10 22:03:02.389 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003500010035030100
2023-01-10 22:03:02.389 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860035000000
2023-01-10 22:03:02.389 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 53 0035030100
2023-01-10 22:03:02.529 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006003600010036030200A0
2023-01-10 22:03:02.529 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860036000000
2023-01-10 22:03:02.529 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 54 0036030200A0
2023-01-10 22:03:02.677 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600370001003703020000
2023-01-10 22:03:02.677 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860037000000
2023-01-10 22:03:02.677 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 55 003703020000
2023-01-10 22:03:03.588 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F0060038000100380302155F
2023-01-10 22:03:03.588 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860038000000
2023-01-10 22:03:03.588 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 56 00380302155F
2023-01-10 22:03:04.660 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003A0001003A030100
2023-01-10 22:03:04.660 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086003A000000
2023-01-10 22:03:04.660 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 58 003A030100
2023-01-10 22:03:04.809 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003C0001003C030100
2023-01-10 22:03:04.809 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086003C000000
2023-01-10 22:03:04.809 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 60 003C030100
2023-01-10 22:03:04.810 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003D0001003D030100
2023-01-10 22:03:04.810 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086003D000000
2023-01-10 22:03:04.810 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 61 003D030100
2023-01-10 22:03:04.811 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003B0001003B030101
2023-01-10 22:03:04.811 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086003B000000
2023-01-10 22:03:04.811 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 59 003B030101
2023-01-10 22:03:04.910 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003B0001003B030101
2023-01-10 22:03:04.910 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086003B000000
2023-01-10 22:03:04.910 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 59 003B030101
2023-01-10 22:03:05.910 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600410001004103020064
2023-01-10 22:03:05.910 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860041000000
2023-01-10 22:03:05.910 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 65 004103020064
2023-01-10 22:03:06.062 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600420001004203020190
2023-01-10 22:03:06.062 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860042000000
2023-01-10 22:03:06.062 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 66 004203020190
2023-01-10 22:03:06.971 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008700010087030100
2023-01-10 22:03:06.971 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860087000000
2023-01-10 22:03:06.971 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 135 0087030100
2023-01-10 22:03:07.159 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600880001008803020E63
2023-01-10 22:03:07.160 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860088000000
2023-01-10 22:03:07.160 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 136 008803020E63
2023-01-10 22:03:07.340 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F0060089000100890302871A
2023-01-10 22:03:07.340 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860089000000
2023-01-10 22:03:07.340 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 137 00890302871A
2023-01-10 22:03:07.512 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006008A0001008A03028830
2023-01-10 22:03:07.512 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086008A000000
2023-01-10 22:03:07.512 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 138 008A03028830
2023-01-10 22:03:07.699 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006008B0001008B03020000
2023-01-10 22:03:07.700 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086008B000000
2023-01-10 22:03:07.700 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 139 008B03020000
2023-01-10 22:03:08.632 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006008C0001008C03020000
2023-01-10 22:03:08.632 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086008C000000
2023-01-10 22:03:08.632 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 140 008C03020000
2023-01-10 22:03:08.800 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008D0001008D030100
2023-01-10 22:03:08.800 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086008D000000
2023-01-10 22:03:08.800 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 141 008D030100
2023-01-10 22:03:08.980 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008E0001008E030100
2023-01-10 22:03:08.980 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086008E000000
2023-01-10 22:03:08.980 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 142 008E030100
2023-01-10 22:03:09.160 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006008F0001008F030100
2023-01-10 22:03:09.160 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086008F000000
2023-01-10 22:03:09.160 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 143 008F030100
2023-01-10 22:03:09.352 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006009000010090030100
2023-01-10 22:03:09.352 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860090000000
2023-01-10 22:03:09.352 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 144 0090030100
2023-01-10 22:03:09.529 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006009100010091030100
2023-01-10 22:03:09.529 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860091000000
2023-01-10 22:03:09.529 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 145 0091030100
2023-01-10 22:03:09.709 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600920001009203020000
2023-01-10 22:03:09.709 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860092000000
2023-01-10 22:03:09.709 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 146 009203020000
2023-01-10 22:03:09.901 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600930001009303024500
2023-01-10 22:03:09.901 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860093000000
2023-01-10 22:03:09.901 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 147 009303024500
2023-01-10 22:03:10.050 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F00600C2000100C2030100
2023-01-10 22:03:10.051 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F08600C2000000
2023-01-10 22:03:10.051 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 194 00C2030100
2023-01-10 22:03:11.130 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001804000000F00600C3000100C3030400008000
2023-01-10 22:03:11.131 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F08600C3000000
2023-01-10 22:03:11.131 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 195 00C3030400008000
2023-01-10 22:03:11.650 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001804000000F00600C4000100C4030400000000
2023-01-10 22:03:11.651 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F08600C4000000
2023-01-10 22:03:11.651 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 196 00C4030400000000
2023-01-10 22:03:11.802 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600C5000100C50302147E
2023-01-10 22:03:11.802 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F08600C5000000
2023-01-10 22:03:11.803 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 197 00C50302147E
2023-01-10 22:03:11.962 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F00600C6000100C6030100
2023-01-10 22:03:11.962 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F08600C6000000
2023-01-10 22:03:11.962 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 198 00C6030100
2023-01-10 22:03:12.122 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600C7000100C703020000
2023-01-10 22:03:12.123 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F08600C7000000
2023-01-10 22:03:12.123 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 199 00C703020000
2023-01-10 22:04:25.606 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000400010004030214BC
2023-01-10 22:04:25.606 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860004000000
2023-01-10 22:04:25.606 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 0004030214BC
2023-01-10 22:04:29.036 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000600010006030214BF
2023-01-10 22:04:29.036 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860006000000
2023-01-10 22:04:29.036 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 6 0006030214BF
2023-01-10 22:06:12.907 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000400010004030214AD
2023-01-10 22:06:12.907 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860004000000
2023-01-10 22:06:12.907 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 4 0004030214AD
2023-01-10 22:06:13.215 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000600010006030214B0
2023-01-10 22:06:13.215 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860006000000
2023-01-10 22:06:13.216 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 6 0006030214B0

@lsiepel
Copy link
Contributor

lsiepel commented Jan 10, 2023

oke, i'm interested in the logging when you disable the binding and enable it again.

@schmidmuc
Copy link
Contributor Author

Disable and enable = delete the jar file and upload again?

@lsiepel
Copy link
Contributor

lsiepel commented Jan 10, 2023

Disable and enable = delete the jar file and upload again?

Sorry, hold on, think i found it.

@lsiepel
Copy link
Contributor

lsiepel commented Jan 10, 2023

Yep, think i found it, the lack of logs was an indicator. Please retry with the newest version
sorry it took me 3 rounds.

Edit: i refactored the init method. This method is not part of the tests so it was not clear that a var was declared and all fine, but in the wrong scope :-( leading to not registering the datapoints ... leading to not updating the channels.

@schmidmuc
Copy link
Contributor Author

schmidmuc commented Jan 10, 2023

First tests with new version successful. Item states get updates. Will add some more channels/items with different units and a writeable channel as well. Will send an update later.

337 │ Active │ 80 │ 3.4.1.202301102135 │ org.openhab.binding.ism8

@schmidmuc
Copy link
Contributor Author

Some more test results - more to come tomorrow maybe.

1.) Crash of thing

After adding some more channels thing changed to error state. Same behavior like described two days ago. Deleting thing and deleting the binding jar still blocks the selected port.

2023-01-10 22:55:31.931 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.
2023-01-10 22:55:31.931 [DEBUG] [g.openhab.binding.ism8.server.Server] - Waiting for connection in port 12008.
2023-01-10 22:55:31.932 [WARN ] [g.openhab.binding.ism8.server.Server] - Error handle client data stream. Die Adresse wird bereits verwendet (Bind failed)
2023-01-10 22:55:31.932 [DEBUG] [g.openhab.binding.ism8.server.Server] - Stop Ism8 server.

Deleting the thing, deleting the jar file, restarting OH, uploading jar file again, recreating the thing incl. channels -> works again.

After this reinstall/recreation such a crash did not happen again. Maybe this was caused to so many times create/delete and again and again.

2.) Boolean values

DpID 9 is of type DPT_Switch - chosed DPT_Switch in channel configuration menu. Log file shows following DEBUG information - seems that switch type and boolean type are mixed somehow:

2023-01-10 23:18:02.209 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000900010009030100
2023-01-10 23:18:02.209 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860009000000
2023-01-10 23:18:02.210 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 9 0009030100
2023-01-10 23:18:02.210 [DEBUG] [g.openhab.binding.ism8.server.Server] - Status Brenner / Flamme False
2023-01-10 23:18:02.211 [DEBUG] [ing.ism8.internal.util.Ism8DomainMap] - Failed to map DataPoint id: 9 val: False, to UoM state. Performing fallback.

Changed to DPT_Bool, same logging:

2023-01-10 23:25:53.091 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 9 0009030100
2023-01-10 23:25:53.091 [DEBUG] [g.openhab.binding.ism8.server.Server] - Status Brenner / Flamme False
2023-01-10 23:25:53.092 [DEBUG] [ing.ism8.internal.util.Ism8DomainMap] - Failed to map DataPoint id: 9 val: False, to UoM state. Performing fallback.

Same behaviour for a DPT_OpenClose datapoint:

2023-01-10 23:29:09.828 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 12 000C030100
2023-01-10 23:29:09.828 [DEBUG] [g.openhab.binding.ism8.server.Server] - Status 3-Wege-Umschaltventil False
2023-01-10 23:29:09.828 [DEBUG] [ing.ism8.internal.util.Ism8DomainMap] - Failed to map DataPoint id: 12 val: False, to UoM state. Performing fallback.
2023-01-10 23:29:09.926 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000C0001000C030100
2023-01-10 23:29:09.926 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000C000000

3.) Setting a writable value

3.1) Setting a number value

Parameter was succesfully changed within the Wolf heating device.
Debug Log shows:

2023-01-10 23:36:39.388 [DEBUG] [ab.binding.ism8.server.DataPointBase] - Convert into byte array '56.0'
2023-01-10 23:36:39.390 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001604000000F0C100380001003800021578
[...]
2023-01-11 00:02:01.246 [DEBUG] [ab.binding.ism8.server.DataPointBase] - Convert into byte array '57.0'
2023-01-11 00:02:01.247 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001604000000F0C100380001003800021591

3.2) Setting a DPT_DHWMode value

Parameter was succesfully changed within the Wolf heating device.
Debug Log shows:

2023-01-10 23:50:43.530 [DEBUG] [ab.binding.ism8.server.DataPointBase] - Convert into byte array '4'
2023-01-10 23:50:43.531 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001504000000F0C1003A0001003A000104
[...]
2023-01-11 00:01:16.072 [DEBUG] [ab.binding.ism8.server.DataPointBase] - Convert into byte array '0'
2023-01-11 00:01:16.072 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001504000000F0C1003A0001003A000100

@lsiepel
Copy link
Contributor

lsiepel commented Jan 11, 2023

Great results, thanks.
Fixed all boolean types and adjusted the logging a bit with version 2023-101-1 11:25

Should be cool if we can also hit the last remaining types:

  • Percentage/scaling
  • Pressure
  • Flowrate

@schmidmuc
Copy link
Contributor Author

Ok, then lets go on with the testing, now with new version 3.4.1.202301111025 installed.

2.) Boolean values
Now correct false/true statements

2023-01-11 20:48:38.173 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000900010009030100
2023-01-11 20:48:38.173 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860009000000
2023-01-11 20:48:38.173 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 9 0009030100
2023-01-11 20:48:38.173 [DEBUG] [g.openhab.binding.ism8.server.Server] - Status Brenner / Flamme False

4.) DPT_DHWMode and DPT_HVACContrMode values
A "failed to map" message is shown in log. So not sure what's the reason for the failure message, because received values (0 or 1 in the example below) are valid values.

2023-01-11 20:48:43.335 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006003A0001003A030100
2023-01-11 20:48:43.336 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086003A000000
2023-01-11 20:48:43.336 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 58 003A030100
2023-01-11 20:48:43.336 [DEBUG] [g.openhab.binding.ism8.server.Server] - Programmwahl Warmwasser 0
2023-01-11 20:48:43.336 [DEBUG] [ing.ism8.internal.util.Ism8DomainMap] - Failed to map DataPoint id: 58 val: 0, to UoM state. Performing fallback.

2023-01-11 20:48:34.852 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000200010002030101
2023-01-11 20:48:34.853 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860002000000
2023-01-11 20:48:34.853 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 2 0002030101
2023-01-11 20:48:34.853 [DEBUG] [g.openhab.binding.ism8.server.Server] - Betriebsart 1
2023-01-11 20:48:34.854 [DEBUG] [ing.ism8.internal.util.Ism8DomainMap] - Failed to map DataPoint id: 2 val: 1, to UoM state. Performing fallback.

**5.) Percentage value **

Works as expected.

2023-01-11 20:48:35.013 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001504000000F006000300010003030100
2023-01-11 20:48:35.013 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860003000000
2023-01-11 20:48:35.013 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 3 0003030100
2023-01-11 20:48:35.013 [DEBUG] [g.openhab.binding.ism8.server.Server] - Modulationsgrad / Brennerleistung 0,0

6.) Pressure value

Works as expected.

2023-01-11 21:01:39.883 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F006000D0001000D03027407
2023-01-11 21:01:39.883 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F086000D000000
2023-01-11 21:01:39.883 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 13 000D03027407
2023-01-11 21:01:39.883 [DEBUG] [g.openhab.binding.ism8.server.Server] - Anlagendruck 1,69

7.) Flow rate

Do not have a flow rate channel, so I have no chance to test this type.

8.) Tempd value

Receiving values and setting a value works as expected.

2023-01-11 21:20:09.771 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data received: 0620F080001604000000F00600420001004203020190
2023-01-11 21:20:09.772 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001104000000F0860042000000
2023-01-11 21:20:09.772 [DEBUG] [g.openhab.binding.ism8.server.Server] - Message received: 66 004203020190
2023-01-11 21:20:09.772 [DEBUG] [g.openhab.binding.ism8.server.Server] - Sparfaktor 4,0

2023-01-11 21:31:27.428 [DEBUG] [ab.binding.ism8.server.DataPointBase] - Convert into byte array '3.0'
2023-01-11 21:31:27.430 [DEBUG] [g.openhab.binding.ism8.server.Server] - Data sent: 0620F080001604000000F0C10042000100420002012C

@lsiepel
Copy link
Contributor

lsiepel commented Jan 11, 2023

Do you know if the Mode channels are always 0/1 or are there more states?
Good to hear all other channels are fine.

@schmidmuc
Copy link
Contributor Author

Screenshot from the ISM8 manual:
image

@lsiepel
Copy link
Contributor

lsiepel commented Jan 11, 2023

Would be nice to map that to a channel with preset values, but this data list is different for each device :-(
So map file will be best.

Anyway, i think the DataPointByteValue is now also covered and added some tests for those too. I guess we are all set now.

Edit version: 2023-01-11 23:22 is available

@schmidmuc
Copy link
Contributor Author

Think so too.
Many thanks for your efforts to do this improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants