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

Issue with D2-05-00 cover position #94

Open
mak-gitdev opened this issue Nov 14, 2023 Discussed in #93 · 2 comments
Open

Issue with D2-05-00 cover position #94

mak-gitdev opened this issue Nov 14, 2023 Discussed in #93 · 2 comments

Comments

@mak-gitdev
Copy link
Owner

Discussed in #93

Originally posted by didi31 November 13, 2023
I would like to move from Domoticz to Home assistant.
I have 3 covers module EVOLOGY (Leroy merlin) which are provided by Nodon and Nodon told me that they are exactly the same than the Nodon ones.
I got the identity of each module from the enocean hardware of Domoticz.
Contact switch are working perfectly.
I did the following for the cover.

  • Set the conf:
    [Volet/chambre]
    address = 0x05A21EE5
    rorg = 0xD2
    func = 0x05
    type = 0x00
  • Switch the learn button to On
  • Follow the procedure for pairing.

The module does not react as written In the EVOLOGY procedure but I can move the cover up with HA.
However as soon as the cover is open, the arrow to move the cover down is greyed and I cannot close it.
Is there something wrong in what I did?

@mak-gitdev
Copy link
Owner Author

mak-gitdev commented Nov 14, 2023

This issue might be related to some previously reported issues in the discussion panel:
#36 (reply in thread)
#36 (reply in thread)
#65

In fact the position reported from the EEP is 0 when the cover is open and 100 when the cover is closed.
But HA expect 0 when the cover is closed and 100 when the cover is open.

The mapping below will be added to create a second cover entity to fix that:

            - component: "cover"
              name: "cover2"
              config:
                 command_topic: "req"
                 payload_open: >-
                    {"CMD":"1","POS":"0","ANG":"127","REPO":"0","LOCK":"0","CHN":"0","send":"clear"}
                 payload_close: >-
                    {"CMD":"1","POS":"100","ANG":"127","REPO":"0","LOCK":"0","CHN":"0","send":"clear"}
                 payload_stop: >-
                    {"CMD":"2","CHN":"0","send":"clear"}
                 position_topic: "CMD4"
                 position_open: 0
                 position_closed: 100
                 position_template: "{{ value_json.POS }}"
                 set_position_topic: "req"
                 set_position_template: >-
                    {"CMD":"1","POS":"{{ 100 - position }}","ANG":"127","REPO":"0","LOCK":"0","CHN":"0","send":"clear"}
                 tilt_status_topic: "CMD4"
                 tilt_status_template: "{{ value_json.ANG }}"
                 tilt_command_topic: "req"
                 tilt_command_template: >-
                    {"CMD":"1","POS":"127","ANG":"{{ tilt_position }}","REPO":"0","LOCK":"0","CHN":"0","send":"clear"}

I won't replace the existing cover entity for the moment as it seems to work in some cases.
I will recommend every users with that issue to migrate to use this cover2 entity instead of using custom mapping file.

@olivierkeke
Copy link

Thanks! I confirm cover position is now correct with suggested cover2 code and NODON/ubiwiz rollershutter modules.

mak-gitdev added a commit that referenced this issue Nov 28, 2023
- Fix issue #94: Add a new cover entity for D2-05-00 that should fix inverted position issue (thanks to @didi31)
- Set default values for measurement entities in D2-01-xx.
- Add support for D2-14-30 (Netsecur smoke detector with temperature and humidity sensors)
- Add support for F6-04-01. All NodOn devices to date are now supported.
- Add support for D2-50-00, D2-50-01, D2-50-10 and D2-50-11 (thanks to @billeranton for testing and initial mapping)
- Add full support for A5-20-01
- Add full support for A5-20-04
- Add full support for A5-20-06 (thanks to @stefanhofmann2)
- Add switches for F6-02-01/02 virtual entities in addition to the existing select entities.
- Dockerfile now use tagged archives for installation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants