- Platform information:
- Hardware: ARM
- OS: Debian 9
- Java Runtime Environment: 11
- openHAB version: 3.0.0
- Issue of the topic: please be detailed explaining your issue
Have successfully installed the Systeminfo Binding.
Here are the ‘disks’ on my system
# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 10240 0 10240 0% /dev
tmpfs 413620 308 413312 1% /run
/dev/disk/by-label/userdata 1105856 562236 515668 53% /mnt/.rwfs
/dev/disk/by-partlabel/rootfs 160256 160256 0 100% /mnt/.rofs
aufs-root 1105856 562236 515668 53% /
tmpfs 1034048 0 1034048 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1034048 0 1034048 0% /sys/fs/cgroup
tmpfs 413620 0 413620 0% /tmp
/dev/mmcblk0p7 1515376 2304 1480960 1% /srv
/dev/mmcblk1 7529096 823872 6299720 12% /data
The sysinfo binding is reporting this partition:
/dev/disk/by-label/userdata 1105856 562236 515668 53% /mnt/.rwfs
So far - so good.
But also want to capture the data for
/dev/mmcblk1 7529096 823872 6299720 12% /data
I have read Systeminfo - Bindings | openHAB which says
The groups marked with “(deviceIndex)” may have device index attached to the Channel Group.
- channel ::= channel_group & (deviceIndex) & # channel_id
- deviceIndex ::= number > 0
- (e.g. storage1#available)
The group
process
is using a configuration parameter “pid” instead of “deviceIndex”. This makes it possible to change the tracked process at runtime.The binding uses this index to get information about a specific device from a list of devices (e.g on a single computer several local disks could be installed with names C:, D:, E:\ - the first will have deviceIndex=0, the second deviceIndex=1 etc). If device with this index is not existing, the binding will display an error message on the console.
Unfortunately this feature can’t be used at the moment without manually adding these new channel groups to the thing description (located in OH-INF/thing/computer.xml).
But those instructions do not seem to apply to OH3. Specifically not clear what to edit to see my other partition.
If I look at the item that is working fine for the main partition, I see:
systeminfo:computer:MQTT:storage#usedPercent
I think I need to add a new channel that looks like
systeminfo:computer:MQTT:storage1#usedPercent
But how?