I just got a new Zwave Fan Speed controller from Leviton and it’s not currently listed in OpenZwave and therefore doesn’t show up correctly in Home Assistant.
I’ve started to add the device myself and contribute to their open source project, but I’ve hit my technicaly ability limitation and don’t know what to do from here.
And I’ve got a pull request pending to add the device to the device list. I have one waiting for the device image and I have a config file I’m editing.
But I don’t know how to finish this config file.
This section on Creating Configuration Variables is above my pay grade, I don’t understand at all.
I would start by looking at how other fan controls are done. The one I have is mapped to the configuration file of a dimmer of the same brand - the code in the manufactorer configuration looks like:
<Product config="ge/12724-dimmer.xml" id="3131" name="14287 Fan Control Switch" type="4944"/>
You could probably do the same - since the basic class would probably look the same - it sets a numeric value between 0 and 255 to set the speed.
What you may have to implement differently is the configuration parameters block - your switch has a couple specified.
In the command class 112, for example, you could add a configuration like this:
The values come from the configuration parameters of your device in the z-wave alliance page. The example above is for the parameter 5 - index in the configuration file, just to confuse things. The values you can figure out from the documentation.
And so on.
I recommend you change the files in your open-zwave local configuration to make sure it works before submitting upstream.
I did my first (and so far only) pull request for a new device several months ago, and like mrwho, I did a compare of the xml files for a device(s) from the same manufacturer, and also a compare of xml files for a similar device from a different manufacturer to get a feel for how to do your own.
Assuming you’re using the OpenZWave integration, you should be able to edit the files in the addon data folder. You would find it in the configuration folder of home assistant, under the addons folder.