Add zwave_js speed configuration for Leviton ZW4SF fans#60677
Add zwave_js speed configuration for Leviton ZW4SF fans#60677MartinHjelmare merged 9 commits intohome-assistant:devfrom mkowalchuk:levfans
Conversation
|
Hey there @home-assistant/z-wave, mind taking a look at this pull request as it has been labeled with an integration ( |
|
Please try to find a user that can test this. |
|
This is my first time posting on this project, but I have two of these controllers and can test if that helps. |
|
That would be great, thanks! |
|
Switched back to draft; going to update this PR to use the new format from #60947. |
|
Great. After that is done and if it would be helpful for testing, please let me know. Side note: I came to HA 6 months ago and have gone “all-in” in my home. I’ve read the architecture documents and read the GitHub PRs and am on various discord channels. Is there a document or other resources that show how to load and test code like this in an otherwise production environment? I’ll do the homework but haven’t found this information yet (although this is my first time asking). |
Coincidentally, I have a PR open to add this info to the dev docs: https://github.com/home-assistant/developers.home-assistant/pull/1241/files#diff-3cd9dd50e143937424e6fd9cce939e07cfa3c5780103cbc8a5664d0205dd3751R25 |
|
Hope all is well, i just installed a couple of these switches and was wondering if there was any timeline on this PR being closed out. Thanks |
|
If you can help test this PR we can move it forward. |
|
Happy too, im a developer, but dont have any experience with hass dev env and how to test code with my system. Any docs on how to go about it/config my env? |
|
https://developers.home-assistant.io/docs/development_environment for setting up your environment. You just have to clone this locally where you are setting up your environment and follow the instructions to start HA locally. Your zwave-js-server instance will need to be exposed to the network if it's running on another system. If you are using the addon, you can expose the port in the configuration section of the addon |
|
I now have a Leviton ZW4SF in my possession, so I'll be able to test this soon myself. |
|
Everything seems to work well from my testing. Here's the sequence I ran through:
I also experimented a bit with the 'Minimum Dim Level' and 'Maximum Dim Level settings', but don't appear to have any impact on Z-Wave commands - they only affect what happens when you hit the buttons on the device. |
|
Great! Now we just need to improve test coverage and then we can merge |
|
Updating the branch again seemed to fix the code coverage complaints. It looks like either codecov was doing something strange and not just looking at the files changed in the PR, or I was doing something wrong with the merge. |
|
Do we already have a test for this fan? It would be good to exercise the changed discovery code in a fan test for this device. |
Added a fixture+test. |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Great! Thanks for your commitment to this PR.
Breaking change
The fan speed levels of Leviton ZW4SF fan controllers are now mapped correctly to corresponding percentage levels in Home Assistant. This may change which fan speed is selected at certain percentages. Users should adjust any automations and scripts that target these devices as needed.
Proposed change
Add speed information for Leviton ZW4SF fan controllers. I got the speed information used here from Leviton's tech support.
Type of change
Additional information
Checklist
I verified that HA starts and works and tests pass, but I haven't verified this on an actual Leviton ZW4SF.
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: