TrueNAS integration

Matuuu96, I have having this same issue. I am running Home Assistant as a virtual machine on the TrueNAS. Is this what you are doing. I was reading this thread, there is a post back on Feb7th that states that there is a bug with the way that TrueNAS deals with its internal bridge but should be fixed with its next release. I think this might be the issue. I’m running TrueNAS-SCALE-23.10-BETA.1.

1 Like

It may be pretty much anything in your network setup. Cant help much with that tho.
I see this question pop up from time to time, but there is nothing I can do from integration side if truenas is not responding on your network.

Yes, im running HA on TrueNAS Virtual machine. Version TrueNAS-SCALE-22.12.3.3

Good morning.

First of all, thank you for this integration. As a long-time NAS user, I can appreciate this. I was pleasantly surprised to find this.

I am running HAOS on an ODROID-M1 & connecting it to 2x Proxmox VMs with very traditional configurations. When I added the integration & API key for each TrueNAS, it took about 30 seconds & added it successfully. I can see the datasets & pools if I click Download Diagnostics… that’s the good news. Bad news? I am not sure I actually understand how this integration works, or perhaps mine is not adding the services? I’m a newer HA user (~1 month). I tried rebooting the whole system & do not see any changes in my Devices. I guess I’m not sure what to expect. Any help is appreciated. Feels like a user training issue, but it could be a technical oversight here. Thank you in advance!

1 Like

Thats not on your side, it is related to undocumented breaking change in 2023.8
All entities exist, you can find them. But links between entities are broken, so they dont appear in that part of UI. It will be fixed in next release.

2 Likes

@Tomaae Thank you sir/ma’am. I will look for changes in the next release. No big deal… just a little confusing for new TrueNAS integration users currently. Thank you again for this integration.

Unrelated note – as a SysAdmin by day… I secretly wonder if their should be more of an opt-out GUI option for automatic updates on the supervisor. I found it kind of a strange philosophy in HAOS to hit people with rapid release cycle automatic updates… the Microsoft way a little bit IMO. My 2 cents on automatic updates. The entire rest of the product has been an excellent replacement for a dying SmartThings installation in my home. A breath of fresh air.

It does not have automatic update, just notification for available update.

I had the same problem. Disabling this option is what solved it for me.

System > General
image

1 Like

I had this option already disabled. Still not figured it out.

Hi, can I use yaml style config option in this integration? I prefer to use yaml with packages but I see no yaml example.

This should also be watched, because I have noticed that with this error, its also causing a massive file system fill up on HA with errors pertaining to not being able to pull the data.

1 Like

Having the same issue, haven’t been able to use this integration for a long time now :frowning:

This is great. Thanks very much.

I was hoping to use this to detect when my backup server was idle and then shut it down. I can see replication tasks, cloudsync, snapshots but I can’t see when SMART or Scrub tasks are running.
Is there anyway to see when these are running?
Ideally I want to setup an automation that will shut the server down when none of these housekeeping tasks are running.

Thanks very much again. I’m not meaning ot be critical!!! :slight_smile:

Probably cobia? it is not supported yet.

Scrub tasks are available under pools.
image
I dont think there is a way to view active smart tasks in truenas.

Yes using cobia here. More than worth waiting for an update though :slight_smile:

Hi, I have some wierd thing going on. The integration is working and pulling the info from TN to my HA. But all the sensors (e.a. CPU%, temp etc) stay on 0(%). I just installed a app in TN and this also showed up in HA, so the connection is working, but the data is not showing. Is there some setting in TrueNas I missed?

edit:
Got this in the logs:

* TrueNAS 192.168.1.5 unable to fetch data "reporting/get_data" (422)
* TrueNAS 192.168.1.5 unable to fetch data "system/info" (401)
* TrueNAS 192.168.1.5 unable to fetch data "chart/release" (500)
* TrueNAS 192.168.1.5 unable to fetch data "system/info" (no_response

edit 2:
Found out its only a problem with the TrueNAS System entities. My HDD temp for instance DO get updated. The CPU and Motherboard speca don’t so i’m prety shire its a TN problem.

Most likely cobia, same as person above you.

Correct, i’m running Cobia, quess i’ll have to wait then.

Hello, first of all, thanks for the integration.

I’ve noticed something odd with the sensors for used and available space. The size of my boot medium is added to my main pool or something.
I’m sure I am missing something, maybe someone can explain it to me.

This is my truenas main pool, called tank:
image

These are my disks:

Now, take a look at sensor.tank and sensor.tank_free:

image

The free space is correct, what is sensor tank showing?

The “Total GiB” attribute of tank_free is 5266GB.
When you do the math, 4680GB + 475GB + 112GB = 5267GB (used pool space + free pool space + size of boot medium). Which i think fits to “Total GiB”.

Why is the size of boot medium added to the total volume of my pool tank?

After using freenas and truenas for years, maybe i dont understand it at all, lol.

Hi there, first of all. thank you for your awesome integration I’ve been using it for a long time. I moved my HA OS from independent Raspberry Pi to VM on TruneNAS Scale which has a different IP address (192.168.0.30 for TrN and 192.168.0.12 for VM+HAOS) yesterday. But there is no possibility to connect TrueNAS from integration anymore - access is refused even if the password, user name, and API are written down correctly. Is the problem just between a chair and a keyboard? Any hint? Thanks to everyone, your help is appreciated