danielperna84 / hahomematic

Python 3 Interface for Home Assistant to interact with HomeMatic devices
MIT License
130 stars 22 forks source link

HmIP-MOD-TM "closing" and "opening" states inverted. #878

Closed miguelangel-nubla closed 1 year ago

miguelangel-nubla commented 1 year ago

Garage door controller HmIP-MOD-TM is showing state "opening" while closing and "closing" while opening. Fully closed and fully open correctly reported as "closed" and "open". Everything else is working correctly.

SukramJ commented 1 year ago

DON'T DELETE THIS

The issue template seems to be removed, please restore our default issue template in the issue description and fill it out.

miguelangel-nubla commented 1 year ago

DONT'T DELETE THIS.

This is for issues only If you have a feature request, add it as a new discussion, or add your point of view to an existing discussion.

Please answer all questions as good as possible.

Language: as you like -> english

Make sure you have read the documentation at https://github.com/danielperna84/custom_homematic#custom_homematic.

Make sure you have read the release notes at https://github.com/danielperna84/custom_homematic/releases.

Make sure you are running the latest version of the custom_component (and Home Assistant) before reporting an issue.

ENSURE that your Backend (CCU/Homegear/...) is working as expected and connected devices are controllable.

custom_component version (if applicable): 1.27.0

known last working custom_component version (if applicable): N/A

Home Assistant:

CCU:

Problem-relevant configuration:

Do you use tls? yes Do you use callback? no Do you use username and password? yes Which interfaces do you use (hmip/bidcos/wired)? hmip

Describe the bug Garage door controller HmIP-MOD-TM is showing state "opening" while closing and "closing" while opening.

To Reproduce

  1. Go to the entity in the developer tools of ha.
  2. Click on the entity
  3. Click on open
  4. State is "closing" while the door is opening.
  5. State turns to "open" when fully opened.

Screenshots (if applicable)

Relevant HA log entries (press full log) VERY IMPORTANT I had set logging to debug for the integration, individual messages for the state changes not shown in logs.

2023-01-22 14:53:38.617 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503 Duty Cycle
2023-01-22 14:53:38.642 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503
2023-01-22 14:53:38.643 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503 Rssi Device
2023-01-22 14:53:38.643 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503 Operating Voltage
2023-01-22 14:53:38.643 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503 Rssi Peer
2023-01-22 14:53:38.643 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503 Door State
2023-01-22 14:53:38.644 DEBUG (MainThread) [custom_components.homematicip_local.generic_entity] init: Setting up HmIP-MOD-TM 001E5E12FAF503 State

Diagnostic Information (available on every device)

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.1.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Madrid",
    "os_name": "Linux",
    "os_version": "5.15.80",
    "supervisor": "2022.12.1",
    "host_os": "Home Assistant OS 9.4",
    "docker_version": "20.10.19",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "dahua": {
      "version": "0.5.0",
      "requirements": []
    },
    "shopping_list_with_grocy": {
      "version": "0.0.1",
      "requirements": []
    },
    "tesla_custom": {
      "version": "3.9.1",
      "requirements": [
        "teslajsonpy==3.7.1"
      ]
    },
    "meross_cloud": {
      "version": "1.2.8",
      "requirements": [
        "meross_iot==0.4.5.7"
      ]
    },
    "grocy": {
      "version": "v4.5.2",
      "requirements": [
        "pygrocy==1.4.1"
      ]
    },
    "ics_calendar": {
      "version": "3.1.6",
      "requirements": [
        "ics>=0.7.2",
        "recurring_ical_events>=1.0.2b0",
        "icalendar>=4.1.0"
      ]
    },
    "shopping_list": {
      "version": "0.7",
      "requirements": []
    },
    "homematicip_local": {
      "version": "1.27.0",
      "requirements": [
        "hahomematic==2023.1.5"
      ]
    },
    "electrolux_status": {
      "version": "1.2.0",
      "requirements": [
        "pyelectroluxconnect==0.3.12"
      ]
    },
    "localtuya": {
      "version": "5.0.0",
      "requirements": []
    },
    "dash_cast": {
      "version": "1.0.0",
      "requirements": []
    },
    "smart_thermostat": {
      "version": "2021.11.1",
      "requirements": []
    },
    "hacs": {
      "version": "1.29.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "browser_mod": {
      "version": "2.2.0",
      "requirements": []
    },
    "dwains_dashboard": {
      "version": "3.3.0",
      "requirements": []
    },
    "thermal_comfort": {
      "version": "2.0.1",
      "requirements": []
    },
    "smartir": {
      "version": "1.17.6",
      "requirements": [
        "aiofiles==0.6.0"
      ]
    },
    "frigate": {
      "version": "3.0.0",
      "requirements": []
    },
    "bodymiscale": {
      "version": "3.0.6",
      "requirements": [
        "cachetools==5.1.0"
      ]
    },
    "platerecognizer": {
      "version": "1.0.0",
      "requirements": [
        "pillow",
        "requests"
      ]
    }
  },
  "integration_manifest": {
    "domain": "homematicip_local",
    "name": "Homematic(IP) Local",
    "config_flow": true,
    "documentation": "https://github.com/danielperna84/custom_homematic",
    "issue_tracker": "https://github.com/danielperna84/hahomematic/issues",
    "requirements": [
      "hahomematic==2023.1.5"
    ],
    "ssdp": [
      {
        "manufacturer": "EQ3",
        "manufacturerURL": "http://www.homematic.com"
      }
    ],
    "zeroconf": [],
    "homekit": {},
    "dependencies": [],
    "codeowners": [
      "@danielperna84",
      "@SukramJ"
    ],
    "iot_class": "local_push",
    "loggers": [
      "hahomematic"
    ],
    "version": "1.27.0",
    "integration_type": "hub",
    "is_built_in": false
  },
  "data": {
    "config": {
      "entry_id": "19932e8eccc15b06176f332eaaa4e0ed",
      "version": 1,
      "domain": "homematicip_local",
      "title": "RaspberryMatic",
      "data": {
        "instance_name": "RaspberryMatic",
        "host": "10.2.3.181",
        "username": "**REDACTED**",
        "password": "**REDACTED**",
        "tls": true,
        "verify_tls": false,
        "callback_host": null,
        "callback_port": null,
        "json_port": null,
        "interface": {
          "HmIP-RF": {
            "port": 42010
          },
          "BidCos-RF": {
            "port": 42001
          }
        }
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": "DBE997517F",
      "disabled_by": null
    },
    "platform_stats": {
      "cover": 1,
      "switch": 1
    },
    "devices": [
      "HmIP-MOD-TM"
    ]
  }
}

Expected behavior State to be "opening" while opening and "closing" while closing.

Additional context Add any other context about the problem here.

SukramJ commented 1 year ago

We have no device definitions for HmIP-MOD-TM in pydevccu.

Please execute the export service and attach the files as zip here.

miguelangel-nubla commented 1 year ago

HmIP-MOD-TM.zip