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