Modpoll with command “Modpoll COM2” doesn’t seem to find anything.
It’s a little suspicious that TX/RX lights blink only when I plug in the USB-interface
After couple of weeks the great ideas are coming to end. Any help from professionals?
2016-12-10 18:40:15.953 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.8.3).
2016-12-10 18:40:20.500 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2016-12-10 18:40:21.078 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2016-12-10 18:40:29.125 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap’
2016-12-10 18:40:29.593 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2016-12-10 18:40:34.953 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /classicui/openhab.app
2016-12-10 18:40:40.109 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'nilanrules.rules’
2016-12-10 18:40:42.468 [ERROR] [.o.m.r.i.engine.ExecuteRuleJob] - Error during the execution of rule nilan t0-15 sensor division
java.lang.RuntimeException: The name ‘heat_nilan’ cannot be resolved to an item or type.
at org.openhab.model.script.interpreter.ScriptInterpreter.internalFeatureCallDispatch(ScriptInterpreter.java:67) ~[na:na]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._evaluateAbstractFeatureCall(XbaseInterpreter.java:658) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_111]
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java
For serial, it is really worth using Modbus binding version 1.9 not the bundled 1.8.3 version
Lights on which end? But yes, if Modpoll doesn’t work either you need to look at basics - baud settings, wiring, COM port etc.
RS485 markings for A/B wires can be inconsistent sometimes, worth swapping to try?
Using an old mains cable as RS485 really isn’t going to work well, this ought to be twisted pair - a pair in a Cat5 cable do.
Please try to keep signal cables away from mains power cables, for safety as well as interference.
Something is still broken but I can’t figure out what.
This is maybe the biggest question:
18:11:47.494 [ERROR] [.o.m.r.i.engine.ExecuteRuleJob:57 ] - Error during the execution of rule nilan t0-15 sensor division
java.lang.RuntimeException: The name ‘heat_nilan’ cannot be resolved to an item or type.
It looks like the items are not parsed or what? Can you paste the configurations as is, without combining different configurations to same file. I’m thinking of syntax issue preventing anything working??
At least there is no modbus mentioned in the logs so it’s something with the actual configurations
Perhaps you should try to continue the troubleshooting and have minimal configuration.
Regarding error in the logs: Note that read is eventually successfull on second try.
Does the log reveal cases where three retries is not enough?
Do not know what the usb parameter means, have not worked with these really… It’s possible that tuning those parameters help but not sure really. Remember to restart openhab if you change parameters.
Do you have anything in the events log? I wonder why the temperatures are missing if the modbus reads successfully. Do you have any other errors in the logs?
I would like you to try out an experimental modbus binding that tries to read again even though the serial library returns EOF (end of file). I will come back to this next week.
2016-12-12 18:35:31 - nilan_onoff state updated to ON
2016-12-12 18:35:31 - nilan_user_operation_mode state updated to 3
2016-12-12 18:35:31 - nilan_vent state updated to 1
2016-12-12 18:35:31 - nilan_user_tempset state updated to 3000
2016-12-12 19:09:46 - nilan_onoff state updated to ON
2016-12-12 19:09:46 - nilan_user_operation_mode state updated to 3
2016-12-12 19:09:46 - nilan_vent state updated to 1
2016-12-12 19:09:46 - nilan_user_tempset state updated to 3000
2016-12-12 19:16:16 - nilan_vent state updated to 2
I have a feeling that it might be something to do with items or the sitemap maybe.It’s still a bit mystery why it shows everything except none of the temperatures.
Are these in sync?
SITEMAP
Text item=nilan_t8_div
ITEMS
Number nilan_t8_div “Outdoor (t8) [%2.2f °C]” (nilan_aggregated)