home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.9k stars 30.12k forks source link

Curtains position are inversed in HA plugin (and not in Smart Life app nor in "real life") #63942

Closed jmcollin78 closed 3 months ago

jmcollin78 commented 2 years ago

The problem

I integrate the curtain switch named: DOOWIFI SHUTTER WINDOWS WIFI (lidznmwvzajiciqw)

The integration is fine, the curtain works but curtain position is inversed. It says open when it is closed and vice versa.

Note: that in the Smart Life app and the reverse button is NOT set and is coherent with the real curtain position.

What version of Home Assistant Core has the issue?

core-2021.12.8

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @tuya, @zlinoliver, @metisu, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

dougiteixeira commented 2 years ago

From version 2022.2 onwards you will have a diagnostic tool that will provide you with the data needed to find the answer to this problem. Please, when you update your version can you export this information from your device (by going to the device and clicking the download diagnostics button) and post it here?

image

jmcollin78 commented 2 years ago

ok. When will this version be available ? 2022.2 means februar ?

dougiteixeira commented 2 years ago

ok. When will this version be available ? 2022.2 means februar ?

If you have joined the beta for Home Assistant 2022.2, you'd have a "Download diagnostics" button on the device page.

NeWoKiKi commented 2 years ago

Hello,

I have exactly the same problem (and already mentioned it in #59099 and more precisely here) please find my diagnostic bellow.

tuya-0809b3de82b0bb4d3a09108b1f627475-Volet Salon-4b04e89e49a35e43d585f7f33e7f698c.json.txt

Many thanks, Regards,

jmcollin78 commented 2 years ago

@dougiteixeira here is my diagnostic file:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.3.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Paris",
    "os_name": "Linux",
    "os_version": "5.10.103",
    "supervisor": "2022.03.5",
    "host_os": "Home Assistant OS 7.5",
    "docker_version": "20.10.9",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "pyscript": {
      "version": "1.3.3",
      "requirements": [
        "croniter==1.3.4",
        "watchdog==2.1.6"
      ]
    },
    "meross_cloud": {
      "version": "1.2.0rc2",
      "requirements": [
        "meross_iot==0.4.4.4"
      ]
    },
    "var": {
      "version": "0.12.3",
      "requirements": []
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.22.0",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "sonoff": {
      "version": "v2.4.6",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "meross_lan": {
      "version": "2.5.7",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "tuya",
    "name": "Tuya",
    "documentation": "https://www.home-assistant.io/integrations/tuya",
    "requirements": [
      "tuya-iot-py-sdk==0.6.6"
    ],
    "dependencies": [
      "ffmpeg"
    ],
    "codeowners": [
      "@Tuya",
      "@zlinoliver",
      "@METISU",
      "@frenck"
    ],
    "config_flow": true,
    "iot_class": "cloud_push",
    "dhcp": [
      {
        "macaddress": "105A17*"
      },
      {
        "macaddress": "10D561*"
      },
      {
        "macaddress": "1869D8*"
      },
      {
        "macaddress": "381F8D*"
      },
      {
        "macaddress": "508A06*"
      },
      {
        "macaddress": "68572D*"
      },
      {
        "macaddress": "708976*"
      },
      {
        "macaddress": "7CF666*"
      },
      {
        "macaddress": "84E342*"
      },
      {
        "macaddress": "D4A651*"
      },
      {
        "macaddress": "D81F12*"
      }
    ],
    "loggers": [
      "tuya_iot"
    ],
    "is_built_in": true
  },
  "data": {
    "endpoint": "https://openapi.tuyaeu.com",
    "auth_type": 0,
    "country_code": "33",
    "app_type": "smartlife",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "name": "Volet roulant",
    "model": "DOOWIFI DWF-0204PN-RB",
    "category": "clkg",
    "product_id": "lidznmwvzajiciqw",
    "product_name": "DOOWIFI SHUTTER WINDOWS WIFI",
    "online": true,
    "sub": false,
    "time_zone": "+01:00",
    "active_time": "2022-01-11T21:44:37+00:00",
    "create_time": "2022-01-08T18:07:38+00:00",
    "update_time": "2022-03-12T09:13:50+00:00",
    "function": {
      "control": {
        "type": "Enum",
        "value": {
          "range": [
            "open",
            "stop",
            "close"
          ]
        }
      },
      "percent_control": {
        "type": "Integer",
        "value": {
          "unit": "%",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 10
        }
      },
      "cur_calibration": {
        "type": "Enum",
        "value": {
          "range": [
            "start",
            "end"
          ]
        }
      },
      "control_back_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "forward",
            "back"
          ]
        }
      },
      "tr_timecon": {
        "type": "Integer",
        "value": {
          "unit": "s",
          "min": 1,
          "max": 180,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status_range": {
      "control": {
        "type": "Enum",
        "value": {
          "range": [
            "open",
            "stop",
            "close"
          ]
        }
      },
      "percent_control": {
        "type": "Integer",
        "value": {
          "unit": "%",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 10
        }
      },
      "cur_calibration": {
        "type": "Enum",
        "value": {
          "range": [
            "start",
            "end"
          ]
        }
      },
      "control_back_mode": {
        "type": "Enum",
        "value": {
          "range": [
            "forward",
            "back"
          ]
        }
      },
      "tr_timecon": {
        "type": "Integer",
        "value": {
          "unit": "s",
          "min": 1,
          "max": 180,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status": {
      "control": "stop",
      "percent_control": 0,
      "cur_calibration": "start",
      "control_back_mode": "forward",
      "tr_timecon": 28
    },
    "home_assistant": {
      "name": "Volet roulant",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": "curtain",
          "original_device_class": "curtain",
          "icon": "mdi:window-shutter",
          "original_icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "cover.volet_roulant_curtain",
            "state": "open",
            "attributes": {
              "current_position": 100,
              "device_class": "curtain",
              "icon": "mdi:window-shutter",
              "friendly_name": "Volet roulant",
              "supported_features": 15
            },
            "last_changed": "2022-03-19T06:45:01.242006+00:00",
            "last_updated": "2022-03-19T06:51:22.469907+00:00"
          }
        }
      ]
    }
  }
}

I have notice one change: my rolling shutter is now displayed as an horizontal curtain and not as a vertical shutter. But the state opened/closed and the action "open" "close" are still inverted.

jmcollin78 commented 2 years ago

For information, I have migrated to the LocalTuya integration and all is now fine. I suggest to everyone to not use the Tuya integration which is cloud based and to migrate to the LocalTuya integration. The feedback state is much better and I never experienced some lost order or feedback status now.

Lesboy72 commented 2 years ago

How to install Local tuya integration under HA in 2022/05?

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

mihsu81 commented 2 years ago

Having the same issue as @jmcollin78. The roller shutters appear as curtains and are reversed compared to how they appear in Tuya Smart. Attached are the diagnostics.
tuya-f9e6e6bbfbdac2525da53102f8be29c0-Kitchen Shutters-93078c137180e1cb3befa006f484aa5d.json.txt tuya-f9e6e6bbfbdac2525da53102f8be29c0-Master Bedroom Shutters-664f7db07008ec35d3550f19d315048a.json.txt

jmcollin78 commented 2 years ago

I suggest to use the Local Tuya integration which is really much responsive and reliable (because Cloud less). Note that not all equipments are supported by Local Tuya integration. So you have both the integration which works great together. Documentation is here: https://github.com/rospogrigio/localtuya

Ping @Lesboy72 @mihsu81

mihsu81 commented 2 years ago

Thank for the suggestion @jmcollin78. Would be good though if this issue is solved as well, for the users which don't mind cloud access. Unfortunately the device doesn't work in LocalTuya or Tuya Local. But I did open support requests for the issues in both repos. 🤞 https://github.com/make-all/tuya-local/issues/228 https://github.com/rospogrigio/localtuya/issues/1004

Florian-Schmidt commented 2 years ago

Having had similar status issue (state is unknown) several times and before official Tuya integration already. Actually picked up again as my automations aren't working to open the other covers depending on sleeping room's cover state.

The old issues:

27251

30112

Similar issue:

59099

In my case the device categorie is "clkg": E217CE7C-22CA-4BB3-99EC-70FEBB13B753

arnenys89 commented 1 year ago

Having the same issue. The roller shutters appear as curtains and are reversed compared to how they appear in Tuya Smart.

gerardog commented 1 year ago

Same here with rollers too. Can we have a 'reverse' checkbox?

ChernykhAN commented 1 year ago

I have the same issue. Is there a solution for reverse curtain module in HA?

gerardog commented 1 year ago

No, but luckily I'havent removed Local tuya. There it works...

ChernykhAN commented 1 year ago

Unfortunately Local Tuya isn't works with module i have.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

gerardog commented 1 year ago

Updated to Home Assistant 2023.9.2. Same issue still ocurring for all my "Curtain switch":

config_entry-tuya-8ef973e56cf6580de56912e1aa2a1e47.json.txt

Harital commented 9 months ago

Updated to Home Assistant 2023.12.1 Same issue still occurring. tuya-0809b3de82b0bb4d3a09108b1f627475-Volet.Salon-4b04e89e49a35e43d585f7f33e7f698c.json.txt

brijeshsinghparihar commented 8 months ago

This issue is open from Jan 2022 and It is Feb 2024 why it is still not fixed! I do have 11 curtains which are in sub, and yes local is also not working

jmcollin78 commented 8 months ago

@brijeshsinghparihar

You should run when you see TuYa... The worst cloud of the world. This is cheap but it's not worth more

brijeshsinghparihar commented 8 months ago

@brijeshsinghparihar

You should run when you see TuYa... The worst cloud of the world. This is cheap but it's not worth more

I agree trash cloud but I am so much deep with 110 devices, will take a bite and will change all to esp devices long due

Osher-Levy commented 6 months ago

Home Assistant 2024.3.1. I'm using the offical Tuya integration, same issue... How can I reverse them in Home Assistant? Maybe by automation/script?

Benon-user commented 6 months ago

Home Assistant 2024.3.1. I'm using the offical Tuya integration, same issue... How can I reverse them in Home Assistant? Maybe by automation/script?

I am also interested in learning how to reverse doors state using yaml configuration.

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.