tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
183 stars 16 forks source link

Tried with Dragonfish ? #163

Closed Deldion closed 1 month ago

Deldion commented 2 months ago

Has anyone tried this with Dragonfish release of TrueNAS Scale?

Deldion commented 2 months ago

To answer my question. Yes everything is working on Dragonscale.

There is a false system update flag that is popping on HA upon reboot, but apart from that, everything works more than fine!!!

tomaae commented 2 months ago

Good to know. Can you take a screenshot of update entity?

Deldion commented 2 months ago

Ok, this is very strange... When reloading the integration, I am getting this: Screenshot_20240706-140913.png

However, when I went into the integration and got to the update entity from there, it showed this:
Screenshot_20240706-141030.png

tomaae commented 2 months ago

looks like you were too fast. I will think of how to filter out when version detection fails.

Deldion commented 2 months ago

New information!!! Updating to 24.04.2. Update was initiated from the integration. Works great!

However. After the upgrade was installed on TrueNAS, got the following on the integration.

Screenshot_20240709-235225.png

And this from the log:

This error originated from a custom integration.

Logger: custom_components.truenas.coordinator
Source: helpers/update_coordinator.py:312
integration: TrueNAS (documentation, issues)
First occurred: 11:24:46 PM (1 occurrences)
Last logged: 11:24:46 PM

Unexpected error fetching TrueNAS data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/truenas/coordinator.py", line 96, in _async_update_data
    await self.hass.async_add_executor_job(self.get_systemstats)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/truenas/coordinator.py", line 427, in get_systemstats
    max(tmp_graph[i]["aggregations"]["mean"].values()), 2
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: max() iterable argument is empty
rboe1 commented 2 months ago

After updating, I am in the same boat.

image_2024-07-11_130425096

tomaae commented 1 month ago

I had 24.04.2 for some time now and it works fine. Seems like you have issue with CPU graph. Check in truenas UI if CPU graph is working. If it is, post debugs so we can see what is coming in via api.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 5 days with no activity.