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

Cover position Unknown #168

Open
matteoraf opened this issue Feb 23, 2025 · 1 comment
Open

Cover position Unknown #168

matteoraf opened this issue Feb 23, 2025 · 1 comment

Comments

@matteoraf
Copy link

Hello,

I am using this integration with an MH200N gateway to control covers (Bticino LN4661M2).
Below you can find my configuration.

My issue is that I can see the covers changing state while moving (closing/opening), but once they reach the final position their state changes to unknown.

myhome.yaml

MH200N:
  mac: '00:03:50:02:2b:93'
  cover:
    closet_shutter:
      where: '81'
      name: Tapparella Cabina Armadio
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    bedroom_shutter:
      where: '82'
      name: Tapparella Camera da Letto
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    bedroom_2_shutter:
      where: '83'
      name: Tapparella Cameretta
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    bathroom_shutter:
      where: '84'
      name: Tapparella Bagno
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    kitchen_shutter:
      where: '85'
      name: Tapparella Cucina
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    soggiorno_shutter:
      where: '86'
      name: Tapparella Soggiorno
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    vetrata_1_shutter:
      where: '87'
      name: Tapparella Vetrata Sinistra
      advanced: True
      manufacturer: BTicino
      model: LN4661M2
    vetrata_2_shutter:
      where: '88'
      name: Tapparella Vetrata Destra
      advanced: True
      manufacturer: BTicino
      model: LN4661M2

Here are the debug logs. I closed all covers (cover group) from HA.

2025-02-23 19:49:39.184 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*85##` was successfully queued.
2025-02-23 19:49:39.185 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*82##` was successfully queued.
2025-02-23 19:49:39.185 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*88##` was successfully queued.
2025-02-23 19:49:39.186 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*87##` was successfully queued.
2025-02-23 19:49:39.186 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*86##` was successfully queued.
2025-02-23 19:49:39.186 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*84##` was successfully queued.
2025-02-23 19:49:39.187 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*81##` was successfully queued.
2025-02-23 19:49:39.187 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*83##` was successfully queued.
2025-02-23 19:49:39.219 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Command session connection reset, retrying...
2025-02-23 19:49:39.219 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Opening command session.
2025-02-23 19:49:39.224 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Negotiating command session.
2025-02-23 19:49:39.227 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Received nonce: `*#110020768##`
2025-02-23 19:49:39.228 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Sending command session password.
2025-02-23 19:49:39.230 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Command session established.
2025-02-23 19:49:39.342 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*85##` was successfully sent.
2025-02-23 19:49:39.379 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*85##`
2025-02-23 19:49:39.379 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 85 stopped.
2025-02-23 19:49:39.481 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*82##` was successfully sent.
2025-02-23 19:49:39.517 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*82##`
2025-02-23 19:49:39.517 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 82 stopped.
2025-02-23 19:49:39.618 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*82##`
2025-02-23 19:49:39.619 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 82 is closing.
2025-02-23 19:49:39.641 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*88##` was successfully sent.
2025-02-23 19:49:39.752 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*85##`
2025-02-23 19:49:39.752 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 85 is closing.
2025-02-23 19:49:39.771 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*87##` was successfully sent.
2025-02-23 19:49:39.870 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*87##`
2025-02-23 19:49:39.870 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 87 stopped.
2025-02-23 19:49:39.952 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*86##` was successfully sent.
2025-02-23 19:49:40.134 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*84##` was successfully sent.
2025-02-23 19:49:40.144 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*84##`
2025-02-23 19:49:40.144 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 84 stopped.
2025-02-23 19:49:40.297 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*81##` was successfully sent.
2025-02-23 19:49:40.307 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*81##`
2025-02-23 19:49:40.307 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 81 stopped.
2025-02-23 19:49:40.419 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*81##`
2025-02-23 19:49:40.420 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 81 is closing.
2025-02-23 19:49:40.441 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message `*2*2*83##` was successfully sent.
2025-02-23 19:49:40.519 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*82##`
2025-02-23 19:49:40.519 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 82 stopped.
2025-02-23 19:49:40.608 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*83##`
2025-02-23 19:49:40.608 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 83 stopped.
2025-02-23 19:49:40.709 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*83##`
2025-02-23 19:49:40.709 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 83 is closing.
2025-02-23 19:49:40.750 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*84##`
2025-02-23 19:49:40.750 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 84 is closing.
2025-02-23 19:49:40.849 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*85##`
2025-02-23 19:49:40.849 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 85 stopped.
2025-02-23 19:49:40.949 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*84##`
2025-02-23 19:49:40.949 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 84 stopped.
2025-02-23 19:49:40.988 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*86##`
2025-02-23 19:49:40.988 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 86 stopped.
2025-02-23 19:49:41.085 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*86##`
2025-02-23 19:49:41.086 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 86 is closing.
2025-02-23 19:49:41.247 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*81##`
2025-02-23 19:49:41.247 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 81 stopped.
2025-02-23 19:49:41.337 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*83##`
2025-02-23 19:49:41.337 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 83 stopped.
2025-02-23 19:49:41.364 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*86##`
2025-02-23 19:49:41.364 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 86 stopped.
2025-02-23 19:49:41.429 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*87##`
2025-02-23 19:49:41.430 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 87 is closing.
2025-02-23 19:49:41.539 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*88##`
2025-02-23 19:49:41.540 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 88 stopped.
2025-02-23 19:49:41.650 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*87##`
2025-02-23 19:49:41.650 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 87 stopped.
2025-02-23 19:49:41.760 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*2*88##`
2025-02-23 19:49:41.760 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 88 is closing.
2025-02-23 19:49:41.871 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*2*0*88##`
2025-02-23 19:49:41.871 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Cover 88 stopped.
2025-02-23 19:49:58.240 DEBUG (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Message received: `*#13**22*19*51*27*001*00*23*02*2025##`
2025-02-23 19:49:58.240 INFO (MainThread) [custom_components.myhome] [MH200N gateway - 192.168.100.201] Gateway's internal datetime is: 2025-02-23 19:51:27+01:00.
@cyrilcordoba
Copy link

Hi @matteoraf

I had the same issue and there is no plan to mofify HA or inside the plugin to make this feature available.

I have made the following workaround :

1- Creation of a variable in the “helpers” of a type “number”. In my example this is “input_number.fenetre_camille_position”.

2- Creation of an automation using the user interface:

alias: Fenêtre Camille
description: ""
mode: single
triggers:
  - device_id: 174562a42051dcbfebb6388ebb127b76
    domain: cover
    entity_id: cover.chambre_camille_fenetre
    type: opening
    trigger: device
  - device_id: 174562a42051dcbfebb6388ebb127b76
    domain: cover
    entity_id: cover.chambre_camille_fenetre
    type: closing
    trigger: device
conditions: []
actions:
  - if:
      - condition: device
        device_id: 174562a42051dcbfebb6388ebb127b76
        domain: cover
        entity_id: cover.chambre_camille_fenetre
        type: is_closing
    then:
      - repeat:
          while:
            - condition: device
              device_id: 174562a42051dcbfebb6388ebb127b76
              domain: cover
              entity_id: cover.chambre_camille_fenetre
              type: is_closing
          sequence:
            - delay:
                hours: 0
                minutes: 0
                seconds: 0
                milliseconds: 250
            - data: {}
              target:
                entity_id: input_number.fenetre_camille_position
              action: input_number.increment
    else:
      - repeat:
          while:
            - condition: device
              device_id: 174562a42051dcbfebb6388ebb127b76
              domain: cover
              entity_id: cover.chambre_camille_fenetre
              type: is_opening
          sequence:
            - delay:
                hours: 0
                minutes: 0
                seconds: 0
                milliseconds: 285
            - data: {}
              target:
                entity_id: input_number.fenetre_camille_position
              action: input_number.decrement

3- Next step is integration of control & position in the same view :

Image

type: entities
entities:

entity: cover.chambre_camille_fenetre
entity: input_number.fenetre_camille_position

You may replace the delay with 1% of your cover opening/closing time.

Best regards
Cyril

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