Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Venetian blind support for proprietary Fibaro FGRM-222 Roller Shutter devices #29701

Merged
merged 1 commit into from Dec 17, 2019
Merged

Conversation

andre-richter
Copy link
Contributor

This is a second attempt at @ChristianKuehnel's original patch from closed and unmerged PR #24405.
I attributed you in the commit message, hope that's okay!

The needed open-zwave dependency has landed in the meantime (home-assistant/open-zwave#6), so we can give it another try.

I changed the heuristic for detecting a device with tilt support slightly. In Christian's original patch, we needed to observe a tilt-angle > 0 to turn tilt-support on. From personal experience I found this to be very impracticable, because chances are high that when you need to restart home-assistant, one of your covers has the blinds down and therefore reports angle 0.
I removed the angle check. Reasoning is commented inline in the code.

The patch has been tested with my Fibaro devices (I've been running it locally for half a year now).

CC @MartinHjelmare

Breaking Change:

Should not break anything.

Description:

The Fibaro FGR-222/FGRM-2222 ZWave roller shutter devices have a proprietary
command class to support setting the tilt angle of venetian blinds (= type of
window cover). This PR adds the support to HA for this. This allows the user to
set the height of the blinds and the tilt angle separately.

Related issue (if applicable): N/A

Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>

Example entry for configuration.yaml (if applicable):

zwave:
  device_config:
    cover.mycover:
      tilt_open_position: 60

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@andre-richter andre-richter requested a review from a team as a code owner December 8, 2019 21:10
@project-bot project-bot bot added this to Needs review in Dev Dec 8, 2019
@probot-home-assistant
Copy link

Hey there @home-assistant/z-wave, mind taking a look at this pull request as its been labeled with a integration (zwave) you are listed as a codeowner for? Thanks!

@ChristianKuehnel
Copy link
Contributor

Thank you for following up on this!

The Fibaro FGR-222/FGRM-2222 ZWave roller shutter devices have a proprietary
command class to support setting the tilt angle of venetian blinds (= type of
window cover). This PR adds the support to HA for this. This allows the user to
set the height of the blinds and the tilt angle separately.

Original patch by @ChristianKuehnel #24405.
@andre-richter
Copy link
Contributor Author

Rebased due to conflict introduced by 16a7408

@MartinHjelmare do you feel like reviewing this? :)
Asking because you already reviewed Christian's original PR at #24405.

@MartinHjelmare
Copy link
Member

Someone from the zwave team should review first.

@andre-richter
Copy link
Contributor Author

CC @cgarwood who was involved in review in the original PR as well. Can you take a look, or know someone who is responsible?

Dev automation moved this from Needs review to Reviewer approved Dec 17, 2019
@Adminiuga Adminiuga merged commit 115aa2e into home-assistant:dev Dec 17, 2019
Dev automation moved this from Reviewer approved to Done Dec 17, 2019
@lock lock bot locked and limited conversation to collaborators Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Dev
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants