Hi there,
I’m new to openhab and also to raspberry. I want to create a small home-automation and therefore set up a raspberry 3 with a razberry. I installed openhabian with openhab Rel. 2.1.0-1.
I followed some manuals in the www and also had some problems getting the Serial Port working for openhab (ttyAMA0). Finally it seemed to work and the controller was visible in HABmin and PaperUI.
But after some minutes it always goes offline. I can’t imagine why and I find nothing in the web for this prolem.
2017-08-23 13:26:11.632 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to UNINITIALIZED
2017-08-23 13:26:14.713 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-08-23 13:26:15.462 [ThingRemovedEvent ] - Thing ‘zwave:serial_zstick:0c4223e9’ has been removed.
2017-08-23 13:27:12.729 [ThingAddedEvent ] - Thing ‘zwave:serial_zstick:0c4223e9’ has been added.
2017-08-23 13:27:21.042 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from UNINITIALIZED to INITIALIZING
2017-08-23 13:27:21.072 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
2017-08-23 13:39:52.444 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to UNINITIALIZED
2017-08-23 13:39:55.707 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2017-08-23 13:39:56.404 [ThingRemovedEvent ] - Thing ‘zwave:serial_zstick:0c4223e9’ has been removed.
2017-08-23 13:41:27.030 [ThingAddedEvent ] - Thing ‘zwave:serial_zstick:0c4223e9’ has been added.
2017-08-23 13:41:35.317 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from UNINITIALIZED to INITIALIZING
2017-08-23 13:41:35.323 [hingStatusInfoChangedEvent] - ‘zwave:serial_zstick:0c4223e9’ changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
Do you have prepare the serial port about openhabian-config?
When you have a Razberry 1, you have to check all three options: * Disable serial console * Disable bluetooth module * Add common serial ports to openHAB JVM
I’m not sure if the version makes a difference. But I had the the same messages in the logfile and after checking the three options it works!
“Add common serial ports to openHAB JVM” adds the port “/dev/ttyAMA0” to /etc/default/openhab2
and some other ports:
“EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"”
I followed the above mentioned tutorial (made a fresh install) and all seems to work fine. Even after some reboots and shutdowns with unplug and reboot.
Thanks a lot, there must something magic within one of the tutorial steps that I don’t understand.
By the way: I found out what the problem is :
I always installed the razberry z-way-server. After a reboot the controller went offline.
But without the z-way-server I cannot access the razberry directly.
Now I removed the z-way-server from autostart. So I can start and access the razberry on port 8083 whenever I need to but
in normal use it is off and the z-way-server is green in OH2 o)