LZW45 LED Strip Toolbox

No i do not know how to add config files to OZW. I thought it wasnt possible (right now at least)

It is, give me a few minutes to put some stuff together on the process. What type of install do you have?

Im using HA on their new “blue” hardware. So I guess Im running HassOS?

Someone linked me to this to follow? Seem correct? I just went thru it, appeared to do everything right. I tried to add again, but still unknown. Perhaps I have to restart OZW addon; im doing that now but it will take about 15min to come back up fully

Edit: I dont think that is gonna work as it has me listing config folder in my configuration.yaml file, which is how I did it for Z wave 1.4

Ill wait to see your instructions…

The process is similar, but you need access to the host system and if i remember correctly the SSH addon doesn’t provide that level of access. I don’t have a HassOS install so it wasn’t too terrible to get access to the data folder for the OZW:
/usr/share/hassio/addons/data/core_zwave/ozw/config

I use a different terminal add-on which says I have full access. What do I need to type in? (Im HORRIBLE at command line). Says there is no hassio folder in share

image

Supervised Install

sudo curl -o /usr/share/hassio/addons/data/core_zwave/ozw/config/inovelli/lzw45.xml https://raw.githubusercontent.com/InovelliUSA/OpenZWave/master/config/inovelli/lzw45.xml
sudo sed -i -r 's/(.*<Manufacturer id="031E" name="Inovelli">.*)/\1\n    <Product type="000a" id="0001" name="LZW45 Light Strip" config="inovelli/lzw45.xml"/>/g' /usr/share/hassio/addons/data/core_zwave/ozw/config/manufacturer_specific.xml

HassOS (Not tested)

sudo curl -o /mnt/data/supervisor/addons/data/core_zwave/ozw/config/inovelli/lzw45.xml https://raw.githubusercontent.com/InovelliUSA/OpenZWave/master/config/inovelli/lzw45.xml
sudo sed -i -r 's/(.*<Manufacturer id="031E" name="Inovelli">.*)/\1\n    <Product type="000a" id="0001" name="LZW45 Light Strip" config="inovelli/lzw45.xml"/>/g' /mnt/data/supervisor/addons/data/core_zwave/ozw/config/manufacturer_specific.xml

Once you run those lines, the addon needs to be restarted and then you should be able to refresh the node from the UI to pick-up the xml.

1 Like

Edit: It didnt click in my head, your last reply was showing the supervised install method (even though I read it) and then your untested, HassOS installed method. I tried the supervised method and it failed; of course, since Im not runnig a supervised install. I will try HassOS method tonight when I get home from work and see what happens.

Tried remote login from work and just running the commands, but no go on first command.

Trying to enter the directoty path one by one, I can only make it into /mnt/data before it tells me there is no supervisor directory.
image

There is an /mnt/data/addons/data folder, but no /core_zwave after that.
image

Thats about the extent of my self-directed troubleshooting. I’ll try anything else ya go, but if you think i just need to wait for @EricM_Inovelli to add the XML to the repo, so be it.

Yeah I was guessing based off another forum post in the home assistant community where that directory was located. You could try a search and see if it can pull up the location: sudo find / -name core_zwave

Read this page for how to enable host-level SSH: https://developers.home-assistant.io/docs/operating-system/debugging/

I did that and now can SSH directly to my HassOS install, and have normal host-level SSH, not SSH access through a docker container which is inherently limited. Be careful though if not good on command line, as you don’t have the protections of a disposable docker container giving you somewhat safe access to HA related files.

1 Like

@nathanfiscus it doesnt show any results??
image

@dailyherold
I’m using a SSH client made by HA developer, Frenck. I have protection disable and at top of addon, it says I have full access. Or am I am not understanding something fully?

I searched for manufacturer_specific.xml and I got 2 results, both those are both configs I set up that are not good for OZW beta.

image

Addons are docker containers behind the scenes. Docker containers by design (security) don’t allow access to host system. Think of them like mini VMs. The “protection mode” most likely maps to something called “privileged” mode with docker which I read does indeed give you access to host OS. But to me it’s still kind of abstracted and I personally would rather just SSH to the host itself when I need to change/tweak/test host level things.

I’d still try to follow that guide I posted on getting host level access to your HassOS install and see if you can find what you want. I will say I’m not using the OZW beta stuff so I don’t know what the architecture is, or how the components are managed by HA. I do know it can run independent of HA (no more zwave restarts when HA restarts, yay!!), but don’t know if that means the components are running on the host or in docker containers. Could impact where you look once you have host access. OZW beta docs or HA’s discord would probably be best place to ask about where/how to modify the OZW beta config.

@dailyherold

Thanks for that explanation. I’m new to linux so dockers confuse me. But that makes sense. Yah I’ll try generating a key with putty on my windows machine and then see if I can SSH into “blue” and find those config files that Nathan listed.

@dailyherold

Trying to follow the guide, but getting connection refused on 2222. I downloaded putty keygen and generated a new key. Followed the steps of saving the private key, loading the private key back up in order to get the public key to display correctly
image

Copied the public key into a txt file, saved the txt file as ANSI as instructions say.

Removed the file extension from the txt file
image

Went to supervisor > control > import from usb. tried to putty in on port 2222, no dice.

You may not want to post your actual public key for security reasons…

Also the guide says port 22222 not 2222

Thats just example, not using that exact one. Yes, I meant port 22222

@nathanfiscus your a very smart man. Since EricM has updated the repo, how do I get those changes to replicate to my HA so I can use your auto setter?

Not 100% sure on this, but from it should auto update with a restart of the addon I think. If I remember correctly, in the logs I recall seeing a line that goes out and checks for update in the repo.

Also for future reference, I built a HassOS install and the SSH addon doesn’t appear to give you file system access. You either have to use the dev setup for SSH or directly connect to device with a keyboard and monitor.

Restarting now…

Oh, I didnt know you could do keyboard/monitor to get full access. Why didnt you say something yesterday?!? lol