Skip to content

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

Merged
Adminiuga merged 1 commit into
home-assistant:devfrom
andre-richter:dev
Dec 17, 2019
Merged

Venetian blind support for proprietary Fibaro FGRM-222 Roller Shutter devices#29701
Adminiuga merged 1 commit into
home-assistant:devfrom
andre-richter:dev

Conversation

@andre-richter
Copy link
Copy Markdown
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.

@probot-home-assistant
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Someone from the zwave team should review first.

@andre-richter
Copy link
Copy Markdown
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?

@Adminiuga Adminiuga merged commit 115aa2e into home-assistant:dev 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

None yet

Development

Successfully merging this pull request may close these issues.

6 participants