Installing HAOS in a VM on TrueNAS SCALE

I have the P dongle and am receiving the following error with your settings:

)
[2024-09-30 22:14:14] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-30 22:14:14] warning: 	zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-09-30 22:14:14] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Error: No such file or directory, cannot open /dev/ttyACM0
[2024-09-30 22:14:19] error: 	zh:ezsp:ezsp: Connection attempt 2 error: Error: Error: No such file or directory, cannot open /dev/ttyACM0
[2024-09-30 22:14:29] error: 	zh:ezsp:ezsp: Connection attempt 3 error: Error: Error: No such file or directory, cannot open /dev/ttyACM0
[2024-09-30 22:14:44] error: 	zh:ezsp:ezsp: Connection attempt 4 error: Error: Error: No such file or directory, cannot open /dev/ttyACM0
[2024-09-30 22:14:44] error: 	z2m: Error while starting zigbee-herdsman
[2024-09-30 22:14:44] error: 	z2m: Failed to start zigbee
[2024-09-30 22:14:44] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-30 22:14:44] error: 	z2m: Exiting...
[2024-09-30 22:14:45] error: 	z2m: Error: Failure to connect
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:364:19)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:183:13)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:138:29)
    at Zigbee.start (/app/lib/zigbee.ts:64:27)
    at Controller.start (/app/lib/controller.ts:140:27)
    at start (/app/index.js:154:5)

If you have the p, you dont need “ezsp” i think.

Os your dongle at the same port? (You can check it in your hardware in Homeassistant (in my case “Gerätepfad”))

1 Like

Interestingly, the built-in Zigbee integration works, but I can’t use it because I have devices like heating thermostats that aren’t compatible with it.




[07:15:40] INFO: Preparing to start...
[07:15:40] INFO: Socat not enabled
[07:15:41] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-01 07:15:45] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-01 07:15:45] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-10-01 07:15:45] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-10-01 07:15:56] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-01 07:15:56] error: 	z2m: Failed to start zigbee
[2024-10-01 07:15:56] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-01 07:15:56] error: 	z2m: Exiting...
[2024-10-01 07:15:56] error: 	z2m: undefined

Now it Work With „zstsck“
Ty

1 Like

Thank you so much for writing this up! I got it working, couldn’t find the config files to change the auth for my network so changed it on the old HA machine and re-backed it up. Made some dumb mistakes in TrueNAS but I got to practice making a zvol and VM a ton. This was really fun, and all the info is here and concise. Super proud of both of us, lol. Thanks again!

1 Like

@sorz212 how to reach that hardware visualization in truenas? I have same issue as @fapandnap and no idea how to make the sonoff reach HA :frowning:

Where exactly are you having problems? Have you added the device in TrueNAS? It’s important that the TYPE is set to: USB Passthrough Device and the Controller Type to qemu-xhci, and then select your device—just like in my screenshot. Afterwards, restart your VM and look under Settings, System, Hardware, All Hardware for your “Sonoff” and copy the device path. For me, it was /dev/ttyUSB0; for you, it might be /dev/ttyACM0 or something similar. Copy that. Now install Zigbee2mqtt. My MQTT broker runs in Home Assistant as an addon, so you don’t need to configure anything else in Zigbee2mqtt except the SERIAL PATH as shown in my screenshot. I tried out the “Adapters” here; for me, it was “zstack”. If you don’t enter an adapter, you’ll see adapter options displayed in red text. ( zstack , deconz, ember, zigate)

It is absolutely essential that you use a USB extension cable. For some reason, it only works for me when I use one.

1 Like

i have an issue on my ha… i’m not able to open web pages from ha. it is installed on a vm in a separeted pool on my truenas. it seems as if it is disconnected but i’m able to download app and integrations. what could it be?

Hello! Thank you for the tutorial, but I’m getting an error and I need some help.

I’m trying to install HAOS on my Truenas Scale, but don’t have many (or almost any) experience writing commands on Truenas.

I created the Zvol with 64 GiB and when on shell writing the first command I get the following error:

Also tried with sudo before but the result is the same.

Anyone can please help? Thank you

Thanks for the very nice guide! I followed it through, and it worked just nicely. Up until I thought I could just update HA from the Apps management page in TNS :S
Now most of my added integrations are gone (not all though), and I cannot use addons (so all of them and their config are gone too), possibly what TNS saw as app was now written over with the actual TNS HA app, which is a very different thing from the HAOS on VM.
Luckily I was just starting to mess about with it all, so not much time lost on my side, but, what would be the preferred way of updating HAOS, following this route?
Do a full backup of the configuration, and go through it anew with a completely new zvol and delete the old one?

In the end, that’s what I guess I have to do now at least, since the old one seems to be thoroughly broken - and especially after trying to “revert” (having forgotten about the “HAOS on VM” part already) the update xD
Now it does not start anymore at all. :innocent:

Update 2024-12-08: It turns out, I was confused with the parallel setup of two Home Assistant instances, one in the VM, and one as App of TNS. Both instances were just fine, just the App in TNS has not the same capabilities as the HAOS VM installation.
The recent update to HAOS 14 and the new Home Assistant Core worked flawlessly from the HA settings though.