Successfully Configuring Leviton ZW4SF Fan Speed Controller

I recently faced a challenge with my Leviton ZW4SF fan speed controller and thought I’d share my journey and solution in case it helps someone else. Initially, I couldn’t figure out how to set the fan speed through an automation. The device didn’t seem to have a straightforward entity for speed control, which was quite puzzling. After some research and trial and error, I discovered the solution through the Z-Wave diagnostics.

The key was to use the targetValue property within the Multilevel Switch Command Class. By sending a value between 0 and 99, I could adjust the fan speed precisely. Here’s the configuration I used:

device_id: device-id-here
domain: zwave_js
type: set_value
command_class: 38
property: targetValue
value: ‘75’
wait_for_result: true

This setup not only turns the fan on but also sets it to the desired speed. It was a bit of a learning curve, but now it’s working seamlessly in my smart home setup. If anyone else is struggling with similar issues, I hope this helps you get started! :rocket: