openHABian on Raspberry Pi 3, Systeminfo Binding

I am running openhab2 (openHABian) on a Raspberry Pi 3. When I install the Systeminfo Binding, I get the following log entry:

2017-05-08 15:11:23.448 [WARN ] [systeminfo.handler.SysteminfoHandler] - Channel with ID process#load can not be updated! No information available for the selected device.
2017-05-08 15:11:23.516 [ERROR] [systeminfo.handler.SysteminfoHandler] - No information for channel process#used0
org.openhab.binding.systeminfo.model.DeviceNotFoundException: Error while getting information for process with PID 0
        at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcess(OshiSysteminfo.java:83)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcessMemoryUsage(OshiSysteminfo.java:523)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:410)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:250)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:243)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.access$1(SysteminfoHandler.java:237)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler$1.run(SysteminfoHandler.java:215)[241:org.openhab.binding.systeminfo:2.0.0]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_121]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-05-08 15:11:23.519 [WARN ] [systeminfo.handler.SysteminfoHandler] - Channel with ID process#used can not be updated! No information available for the selected device.
2017-05-08 15:11:24.444 [ERROR] [systeminfo.handler.SysteminfoHandler] - No information for channel process#load0
org.openhab.binding.systeminfo.model.DeviceNotFoundException: Error while getting information for process with PID 0
        at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcess(OshiSysteminfo.java:83)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcessCpuUsage(OshiSysteminfo.java:515)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:407)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:250)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:243)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.access$1(SysteminfoHandler.java:237)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler$1.run(SysteminfoHandler.java:215)[241:org.openhab.binding.systeminfo:2.0.0]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_121]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-05-08 15:11:24.447 [WARN ] [systeminfo.handler.SysteminfoHandler] - Channel with ID process#load can not be updated! No information available for the selected device.
2017-05-08 15:11:24.511 [ERROR] [systeminfo.handler.SysteminfoHandler] - No information for channel process#used0
org.openhab.binding.systeminfo.model.DeviceNotFoundException: Error while getting information for process with PID 0
        at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcess(OshiSysteminfo.java:83)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcessMemoryUsage(OshiSysteminfo.java:523)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:410)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:250)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:243)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler.access$1(SysteminfoHandler.java:237)[241:org.openhab.binding.systeminfo:2.0.0]
        at org.openhab.binding.systeminfo.handler.SysteminfoHandler$1.run(SysteminfoHandler.java:215)[241:org.openhab.binding.systeminfo:2.0.0]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_121]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-05-08 15:11:24.515 [WARN ] [systeminfo.handler.SysteminfoHandler] - Channel with ID process#used can not be updated! No information available for the selected device.

My google research concluded that this is due to missing OSHI (Operating System and Hardware Information).

Unfortunately I found no information on how to “install” OSHI. All I know is that it is a Java “component”. Sorry if I don´t use the right nomenclature but I am still a beginner.

Is there anybody in the community who has openHABian running on a Raspberry Pi 3 and successfully installed the Systeminfo Binding who can give me a few tips how to get that working?

Thanks

My experience was negativ with this binding.
I tried CPU Temperature and received 0.
I tried CPU Load and received some values which make no sense.
I am receiving error message that only 1 core is found.

All in all I am not using it anymore.

Thanks Martin for the info!
I found another thread and I got it working now (partially)

Download the .jar file into /srv/openhab2-sys/addons/

and restart your Raspberry. Initially there will be a few error entries in the log but if you deactivate the appropriate channels (and you do not have the corresponding items in the .items file) the error entries in the log will cease.

Hope that helps…

Just installed this binding also on RPi3. I have no errors in logs but some channels gives undef values. Has anybody got this fully working on raspberry?

I am getting an UNDEF for the cpu load…
Anyone got this working for the raspberry pi 3?

Hello everybody,

i’ve reworked systeminfo binding to support multiple processes. Sadly, i must change the modeling: Now “comupter” is a bridge instead of thing. Process is described now with new “process” thing. More documentation is located here. And test jar can be found here. Pull-request is open and has currently “Work In Progress” state. On positive feedback, i’ll remove “WIP” label, that changes can be merged into master.

Kind regrads,

Alexander

1 Like