OMV Integration Error Log [Help]

I’ve been fighting this one for a few days, but no matter what I try the error seems to persist. Has anyone ever come across this or something similar? Pro tips?

Logger: homeassistant.config_entries
Source: custom_components/openmediavault/omv_controller.py:171
Integration: OpenMediaVault (documentation, issues)
First occurred: 3:32:30 PM (1 occurrences)
Last logged: 3:32:30 PM

Error setting up entry OMV for openmediavault
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/openmediavault/__init__.py", line 23, in async_setup_entry
    await controller.async_hwinfo_update()
  File "/config/custom_components/openmediavault/omv_controller.py", line 112, in async_hwinfo_update
    await self.hass.async_add_executor_job(self.get_hwinfo)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/openmediavault/omv_controller.py", line 171, in get_hwinfo
    tmp = self.data["hwinfo"]["uptime"].split(" ")
AttributeError: 'float' object has no attribute 'split'

Which version of OMV are you running?

6.0-34 (Shaitan)

That could be your problem. The integration is written for OMV 5.

OMV 6 is still not official and even after that, it will take time to get an updated integration.

I see. I’ve got the software installed on a raspi 4 4gb, using some leftover external drives I had to run the server. Any (relatively) painless ways to downgrade?

No idea, I do run on OMV 5 and will upgrade only, when is stable release and HA integration exist :slight_smile:

Here is your answer:

So, a new start will be the only way… Or just live without OMV in HA :wink:

Were it so easy. Thank you nonetheless, now to find if I can just point the hass media dir to the smb folder I have running on my nas

you mean, to be able to see the media stored on your NAS in Home Assistant?

Yes. Was a little pet project I wanted to learn to do.

Watch this:

And then play with the shell -command.

For me finally this one worked, I hope, it will not be different on OMV 6…

#MountNAS
shell_command:
  mount_nas_music: mkdir -p /media/NAS/Music;mount -t cifs -o username=YOURNAME,password=YOURPASS,domain=WORKGROUP //XXX.XXX.XXX.XX/Media/Music /media/NAS/Music
  mount_nas_movie: mkdir -p /media/NAS/Movie;mount -t cifs -o username=YOURNAME,password=YOURPASS,domain=WORKGROUP //XXX.XXX.XXX.XX/Media/Movie /media/NAS/Movie

Thumbing through it now, thank you again.

-Update Worked flawlessly, I’ll take it as a victory. Thank you!

1 Like