Questions about Systeminfo Binding

Hi,

I have installed the binding and created a items file with the information that interests me:

Group gopenHABServer
 "Information zum openHAB Server"
 <line>
 (C_Technik)

 /* Network information*/
String Network_AdapterName        "Adapter name"        <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#networkDisplayName" }
String Network_Name               "Name"                <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#networkName" }
String Network_IP                 "IP address"          <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#ip" }
String Network_Mac                "Mac address"         <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#mac" }
Number Network_DataSent           "Data sent"           <flowpipe>    (gopenHABServer)   { channel="systeminfo:computer:openhab:network#dataSent" }
Number Network_DataReceived       "Data received"       <returnpipe>  (gopenHABServer)   { channel="systeminfo:computer:openhab:network#dataReceived" }
Number Network_PacketsSent        "Packets sent"        <flowpipe>    (gopenHABServer)   { channel="systeminfo:computer:openhab:network#packetsSent" }
Number Network_PacketsReceived    "Packets received"    <returnpipe>  (gopenHABServer)   { channel="systeminfo:computer:openhab:network#packetsReceived" }

/* CPU information*/
String CPU_Name                   "Name"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#name" }
String CPU_Description            "Description"         <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#description" }
Number CPU_Load1                  "Load (1 min)"        <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#load1" }
Number CPU_Load5                  "Load (5 min)"        <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#load5" }
Number CPU_Load15                 "Load (15 min)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#load15" }
Number CPU_Threads                "Threads"             <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#threads" }
Number CPU_Uptime                 "Uptime"              <time>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#uptime" }

/* Drive information*/
String Drive_Name                 "Name"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:drive#name" }
String Drive_Model                "Model"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:drive#model" }
String Drive_Serial               "Serial"              <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:drive#serial" }

/* Storage information*/
String Storage_Name               "Name"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#name" }
String Storage_Type               "Type"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#type" }
String Storage_Description        "Description"         <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#description" }
Number Storage_Available          "Available"           <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#available" }
Number Storage_Used               "Used"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#used" }
Number Storage_Total              "Total"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#total" }
Number Storage_Available_Percent  "Available (%)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#availablePercent" }
Number Storage_Used_Percent       "Used (%)"            <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#usedPercent" }

/* Memory information*/
Number Memory_Available           "Available"           <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#available" }
Number Memory_Used                "Used"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#used" }
Number Memory_Total               "Total"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#total" }
Number Memory_Available_Percent   "Available (%)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#availablePercent" }
Number Memory_Used_Percent        "Used (%)"            <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#usedPercent" }

/* Swap memory information*/
Number Swap_Available             "Available"           <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#available" }
Number Swap_Used                  "Used"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#used" }
Number Swap_Total                 "Total"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#total" }
Number Swap_Available_Percent     "Available (%)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#availablePercent" }
Number Swap_Used_Percent          "Used (%)"            <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#usedPercent" }

/* Sensors information*/
Number Sensor_CPUTemp             "CPU Temperature"     <temperature>(gopenHABServer)    { channel="systeminfo:computer:openhab:sensors#cpuTemp" }

I have not used any data to query the battery since I have openhab running on a Raspberry Pi 4 …

But oh my, the following two errors appear in the log:

2019-12-06 16:30:39.279 [ERROR] [o.internal.handler.SysteminfoHandler] - No information for channel battery#remainingTime with device intex 0 :

org.openhab.binding.systeminfo.internal.model.DeviceNotFoundException: Device with index: 0 can not be found!

at org.openhab.binding.systeminfo.internal.model.OshiSysteminfo.getDevice(OshiSysteminfo.java:101) ~[?:?]

at org.openhab.binding.systeminfo.internal.model.OshiSysteminfo.getBatteryRemainingTime(OshiSysteminfo.java:353) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:304) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:249) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:242) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.lambda$1(SysteminfoHandler.java:226) ~[?:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

and

2019-12-06 16:30:39.358 [ERROR] [o.internal.handler.SysteminfoHandler] - No information for channel battery#remainingCapacity with device intex 0 :

org.openhab.binding.systeminfo.internal.model.DeviceNotFoundException: Device with index: 0 can not be found!

at org.openhab.binding.systeminfo.internal.model.OshiSysteminfo.getDevice(OshiSysteminfo.java:101) ~[?:?]

at org.openhab.binding.systeminfo.internal.model.OshiSysteminfo.getBatteryRemainingCapacity(OshiSysteminfo.java:365) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:301) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:249) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:242) ~[?:?]

at org.openhab.binding.systeminfo.internal.handler.SysteminfoHandler.lambda$1(SysteminfoHandler.java:226) ~[?:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

And … of course have the Binding times uninstalled and reinstalled … has brought nothing and then I once cleared the cache:

sudo /etc/init.d/openhab2 stop
sudo rm -rf /var/lib/openhab2/cache/*
sudo rm -rf /var/lib/openhab2/tmp/*
sudo /etc/init.d/openhab2 start

has brought nothing

Can someone tell me why and even better how can I fix the mistakes?

Greetings Henning

Hi.
Can you please also give us the *.items file aswell to see the links

@ allen: Sorry - you need the file physically or what is inside him?

Only what is in the file ?
you can copy it and use code fences . to ease the reading .

Hello, now I am surprised because I had already posted the content at the very beginning.

But no Problem here again:

Group gopenHABServer
 "Information zum openHAB Server"
 <line>
 (C_Technik)

 /* Network information*/
String Network_AdapterName        "Adapter name"        <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#networkDisplayName" }
String Network_Name               "Name"                <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#networkName" }
String Network_IP                 "IP address"          <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#ip" }
String Network_Mac                "Mac address"         <network>     (gopenHABServer)   { channel="systeminfo:computer:openhab:network#mac" }
Number Network_DataSent           "Data sent"           <flowpipe>    (gopenHABServer)   { channel="systeminfo:computer:openhab:network#dataSent" }
Number Network_DataReceived       "Data received"       <returnpipe>  (gopenHABServer)   { channel="systeminfo:computer:openhab:network#dataReceived" }
Number Network_PacketsSent        "Packets sent"        <flowpipe>    (gopenHABServer)   { channel="systeminfo:computer:openhab:network#packetsSent" }
Number Network_PacketsReceived    "Packets received"    <returnpipe>  (gopenHABServer)   { channel="systeminfo:computer:openhab:network#packetsReceived" }

/* CPU information*/
String CPU_Name                   "Name"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#name" }
String CPU_Description            "Description"         <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#description" }
Number CPU_Load1                  "Load (1 min)"        <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#load1" }
Number CPU_Load5                  "Load (5 min)"        <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#load5" }
Number CPU_Load15                 "Load (15 min)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#load15" }
Number CPU_Threads                "Threads"             <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#threads" }
Number CPU_Uptime                 "Uptime"              <time>        (gopenHABServer)   { channel="systeminfo:computer:openhab:cpu#uptime" }

/* Drive information*/
String Drive_Name                 "Name"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:drive#name" }
String Drive_Model                "Model"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:drive#model" }
String Drive_Serial               "Serial"              <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:drive#serial" }

/* Storage information*/
String Storage_Name               "Name"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#name" }
String Storage_Type               "Type"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#type" }
String Storage_Description        "Description"         <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#description" }
Number Storage_Available          "Available"           <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#available" }
Number Storage_Used               "Used"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#used" }
Number Storage_Total              "Total"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#total" }
Number Storage_Available_Percent  "Available (%)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#availablePercent" }
Number Storage_Used_Percent       "Used (%)"            <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:storage#usedPercent" }

/* Memory information*/
Number Memory_Available           "Available"           <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#available" }
Number Memory_Used                "Used"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#used" }
Number Memory_Total               "Total"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#total" }
Number Memory_Available_Percent   "Available (%)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#availablePercent" }
Number Memory_Used_Percent        "Used (%)"            <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:memory#usedPercent" }

/* Swap memory information*/
Number Swap_Available             "Available"           <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#available" }
Number Swap_Used                  "Used"                <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#used" }
Number Swap_Total                 "Total"               <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#total" }
Number Swap_Available_Percent     "Available (%)"       <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#availablePercent" }
Number Swap_Used_Percent          "Used (%)"            <none>        (gopenHABServer)   { channel="systeminfo:computer:openhab:swap#usedPercent" }

/* Sensors information*/
Number Sensor_CPUTemp             "CPU Temperature"     <temperature>(gopenHABServer)    { channel="systeminfo:computer:openhab:sensors#cpuTemp" }

Greetings Henning

I would check on PaperUI if an item (created via PaperUI?) is linked to any of the battery channels.

Great idea,

i found in PaperUI under Control following:

80

Now two questions… how to delete them ?

No picture shown!
If the itmes was created via PaperUI or automatically (Simple Mode for item linking is/was on?) you should be able to delete this item via PaperUI. You will be shown a dustbin symbol in this case. You have to look under Configuration - Items. I’d suggest to unlink this item (undder Things) before deleting it. Having said that, the Simple Mode should be turned off as a starter.

1 Like

thats something you need to consider. as @opus said unlink them in the paper ui. and then turn off the simple mode. then just use files to create the links. or use paperui. but using both creates confusion.

Yea, great after de- activating the simple mode and re- installation of the binding it works … No errors
Thanks alot

You have to unlink these channels and remove the items, then the error messages will be gone.

1 Like