xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
291 stars 30 forks source link

Cover not available after localtuya restart #121

Closed gomble closed 5 months ago

gomble commented 5 months ago

The problem

Following Cover, does not work after localtuya is restarted. The entity for the cover is unavailable. The other entities like motor direction is working: image If i push the cover switch manualy and the cover opens fully or closing fully then the entity gets available. After every localtuya restart but it is unavailable.

Environment

  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.1.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.71-haos",
    "supervisor": "2023.12.1",
    "host_os": "Home Assistant OS 11.4",
    "docker_version": "24.0.7",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "cryptostate": {
      "version": "2.0.0",
      "requirements": []
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    },
    "spotcast": {
      "version": "v3.6.30",
      "requirements": []
    },
    "gruenbeck_cloud": {
      "version": "0.0.2",
      "requirements": [
        "pygruenbeck_cloud==0.0.4"
      ]
    },
    "asterisk": {
      "version": "1.0.3",
      "requirements": [
        "asterisk-ami==0.1.6"
      ]
    },
    "proxmoxve": {
      "version": "3.4.0",
      "requirements": [
        "proxmoxer==2.0.1"
      ]
    },
    "var": {
      "version": "0.15.0",
      "requirements": []
    },
    "roborock": {
      "version": "1.0.13",
      "requirements": [
        "python-roborock==0.36.0",
        "ical==6.1.0",
        "dacite==1.8.0"
      ]
    },
    "illuminance": {
      "version": "5.4.1",
      "requirements": []
    },
    "sonoff": {
      "version": "3.5.4",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "browser_mod": {
      "version": "2.3.0",
      "requirements": []
    },
    "localtuya": {
      "version": "3.2.4",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.5.1",
      "requirements": []
    },
    "waste_collection_schedule": {
      "version": "1.45.1",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "beautifulsoup4",
        "lxml"
      ]
    },
    "climate_group": {
      "version": "0.4.2",
      "requirements": []
    },
    "better_thermostat": {
      "version": "1.5.0-beta4",
      "requirements": []
    },
    "opnsense": {
      "version": "0.1.0",
      "requirements": [
        "mac-vendor-lookup>=0.1.11",
        "python-dateutil"
      ]
    },
    "iphonedetect": {
      "version": "1.4.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "deebot": {
      "version": "3.1.1",
      "requirements": [
        "deebot-client==4.1.0",
        "numpy>=1.23.2"
      ]
    },
    "alarmo": {
      "version": "v1.9.14",
      "requirements": []
    },
    "yi_hack": {
      "version": "0.4.7",
      "requirements": []
    },
    "auto_backup": {
      "version": "1.4.1",
      "requirements": []
    },
    "nodered": {
      "version": "3.1.3",
      "requirements": []
    },
    "alexa_media": {
      "version": "4.9.0",
      "requirements": [
        "alexapy==1.27.10",
        "packaging>=20.3",
        "wrapt>=1.14.0"
      ]
    },
    "frigate": {
      "version": "4.0.1",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "blueiris": {
      "version": "1.0.16",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "localtuya",
    "name": "Local Tuya",
    "codeowners": [],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/xZetsubou/hass-localtuya/",
    "integration_type": "hub",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/xZetsubou/hass-localtuya/issues",
    "requirements": [],
    "version": "3.2.4",
    "is_built_in": false
  },
  "data": {
    "device_config": {
      "friendly_name": "Terasse",
      "host": "192.168.59.29",
      "local_key": "5c1fb9b06dbbe280",
      "protocol_version": "3.3",
      "enable_debug": true,
      "scan_interval": ,
      "reset_dpids": "",
      "entities": [
        {
          "friendly_name": "Rolladen",
          "entity_category": "None",
          "commands_set": "open_close_stop",
          "positioning_mode": "position",
          "current_position_dp": "3",
          "set_position_dp": "2",
          "position_inverted": true,
          "span_time": 25.0,
          "id": "1",
          "platform": "cover",
          "icon": ""
        },
        {
          "friendly_name": "Cover Mode",
          "entity_category": "config",
          "select_options": {
            "morning": "Morgens",
            "night": "Abend"
          },
          "restore_on_reconnect": false,
          "is_passive_entity": false,
          "id": "4",
          "platform": "select",
          "icon": ""
        },
        {
          "friendly_name": "Fehler",
          "entity_category": "diagnostic",
          "state_on": "1",
          "device_class": "problem",
          "id": "10",
          "platform": "binary_sensor",
          "icon": ""
        },
        {
          "friendly_name": "Dauer",
          "entity_category": "diagnostic",
          "unit_of_measurement": "ms",
          "device_class": "duration",
          "id": "11",
          "platform": "sensor",
          "icon": "mdi:progress-clock"
        },
        {
          "friendly_name": "Motor Direction",
          "entity_category": "config",
          "current": "5",
          "restore_on_reconnect": false,
          "is_passive_entity": false,
          "device_class": "switch",
          "id": "5",
          "platform": "switch",
          "icon": ""
        }
      ],
      "model": "Wi-Fi Curtain Switch ",
      "product_key": "h8hit5awxfraops2",
      "device_id": "bf984eb57d92c8bf9dzy7b",
      "node_id": null,
      "dps_strings": [
        "1 ( code: control , value: stop )",
        "2 ( code: percent_control , value: 0 )",
        "3 ( code: percent_state , value: 0 )",
        "4 ( code: mode , value: morning )",
        "5 ( code: control_back , value: False )",
        "7 ( code: work_state , value: opening )",
        "10 ( code: fault , value: 0, cloud pull )",
        "11 ( code: time_total , value: 30540 )"
      ]
    },
    "device_cloud_info": {
      "active_time": 1681672815,
      "biz_type": 18,
      "category": "cl",
      "create_time": 1580852837,
      "icon": "smart/program_category_icon/cl.png",
      "id": "bf984eb57d92c8bf9dzy7b",
      "ip": "1...9",
      "lat": "50.1700",
      "local_key": "5c1fb9b06dbbe280",
      "lon": "8.9900",
      "model": "",
      "name": "Terasse",
      "online": true,
      "owner_id": "10145172",
      "product_id": "h8hit5awxfraops2",
      "product_name": "Wi-Fi Curtain Switch ",
      "status": [
        {
          "code": "control",
          "value": "stop"
        },
        {
          "code": "percent_control",
          "value": 0
        },
        {
          "code": "percent_state",
          "value": 0
        },
        {
          "code": "mode",
          "value": "morning"
        },
        {
          "code": "control_back",
          "value": false
        },
        {
          "code": "work_state",
          "value": "opening"
        },
        {
          "code": "time_total",
          "value": 30540
        }
      ],
      "sub": false,
      "time_zone": "+02:00",
      "uid": "eu1580570982309dZVPE",
      "update_time": 1706570923,
      "uuid": "35d71b0ce8d67dc5",
      "dps_data": {
        "1": {
          "code": "control",
          "custom_name": "",
          "dp_id": 1,
          "time": 1706606752020,
          "value": "stop",
          "type": "Enum",
          "values": "{\"range\": [\"open\", \"stop\", \"close\"], \"type\": \"enum\", \"typeDefaultValue\": \"open\"}",
          "id": 1,
          "accessMode": "rw"
        },
        "2": {
          "code": "percent_control",
          "custom_name": "",
          "dp_id": 2,
          "time": 1706572010987,
          "value": 0,
          "type": "Integer",
          "values": "{\"max\": 100, \"min\": 0, \"scale\": 0, \"step\": 1, \"type\": \"value\", \"typeDefaultValue\": 0, \"unit\": \"%\"}",
          "id": 2,
          "accessMode": "rw"
        },
        "3": {
          "code": "percent_state",
          "custom_name": "",
          "dp_id": 3,
          "time": 1706574230076,
          "value": 0,
          "id": 3,
          "accessMode": "ro",
          "values": "{\"max\": 100, \"min\": 0, \"scale\": 0, \"step\": 1, \"type\": \"value\", \"typeDefaultValue\": 0, \"unit\": \"%\"}"
        },
        "4": {
          "code": "mode",
          "custom_name": "",
          "dp_id": 4,
          "time": 1706606752020,
          "value": "morning",
          "type": "Enum",
          "values": "{\"range\": [\"morning\", \"night\"], \"type\": \"enum\", \"typeDefaultValue\": \"morning\"}",
          "id": 4,
          "accessMode": "rw"
        },
        "5": {
          "code": "control_back",
          "custom_name": "",
          "dp_id": 5,
          "time": 1706606752020,
          "value": false,
          "type": "Boolean",
          "values": "{\"type\": \"bool\", \"typeDefaultValue\": False}",
          "id": 5,
          "accessMode": "rw"
        },
        "7": {
          "code": "work_state",
          "custom_name": "",
          "dp_id": 7,
          "time": 1706572010987,
          "value": "opening",
          "id": 7,
          "accessMode": "rw",
          "values": "{\"range\": [\"opening\", \"closing\"], \"type\": \"enum\", \"typeDefaultValue\": \"opening\"}"
        },
        "10": {
          "code": "fault",
          "custom_name": "",
          "dp_id": 10,
          "time": 1681672815784,
          "value": 0,
          "id": 10,
          "accessMode": "ro",
          "values": "{\"label\": [\"motor_fault\"], \"maxlen\": 1, \"type\": \"bitmap\", \"typeDefaultValue\": 0}"
        },
        "11": {
          "code": "time_total",
          "custom_name": "",
          "dp_id": 11,
          "time": 1706606752020,
          "value": 30540,
          "id": 11,
          "accessMode": "ro",
          "values": "{\"max\": 120000, \"min\": 0, \"scale\": 0, \"step\": 1, \"type\": \"value\", \"typeDefaultValue\": 0, \"unit\": \"ms\"}"
        }
      }
    }
  }
} 

Steps to reproduce

Reload of localtuya then the cover gets unavailable until i manualy open or close fully the cover or go in the smart life app and open close fully the cover.

DP dump

Provide Home Assistant traceback/logs

2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.common] [bff...qb8] Closed connection with Klima
2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...ykd] Closed connection with Deckenventilator
2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Closing connection
2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Stopped heartbeat loop
2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...h6a] Closed connection with Rolladen-Schlafzimmer
2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.common] [bf5...t2t] Closed connection with Rolladen-Kinderzimmer1
2024-01-30 10:47:31.240 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...diz] Closed connection with Wohnzimmer-Spots-Led-Stripe
2024-01-30 10:47:31.242 DEBUG (MainThread) [custom_components.localtuya.common] [bfe...hj4] Closed connection with Wohnzimmer-Lampen
2024-01-30 10:47:31.242 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...esr] Closed connection with Esszimmer-Spots-Led-Stripe
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [bf6...2ak] Closed connection with Esszimmer-Lampe
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [332...608] Closed connection with Küche Strom #1
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [332...b96] Closed connection with Küche Strom Toaster #3
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [332...e9f] Closed connection with Küche Strom #4
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [332...6e8] Closed connection with Küche Strom Türk Kaffee #5
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [347...504] Closed connection with Küche Strom Wasserkocher #6
2024-01-30 10:47:31.243 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...psy] Closed connection with Rolladen-Esszimmer
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [332...bc9] Closed connection with Küche #2
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...snt] Closed connection with Rolladen-Küche
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...lut] Closed connection with Abstellraum-Licht
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...yf5] Closed connection with Garten-Licht
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...zde] Closed connection with Garten-Markise
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7zy] Closed connection with Abstellraum-Strom #1
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...byd] Closed connection with Rolladen-TV
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bff...ztk] Closed connection with Rolladen-Kinderzimmer-Gartenseite
2024-01-30 10:47:31.244 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...as8] Closed connection with Rolladen-Gästezimmer
2024-01-30 10:47:31.245 DEBUG (MainThread) [custom_components.localtuya.common] [bfd...nee] Closed connection with Rolladen Abstellraum
2024-01-30 10:47:31.245 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Closed connection with Terasse
2024-01-30 10:47:31.245 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf1...h6a] Connection lost: None
2024-01-30 10:47:31.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf5...t2t] Connection lost: None
2024-01-30 10:47:31.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...diz] Connection lost: None
2024-01-30 10:47:31.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfe...hj4] Connection lost: None
2024-01-30 10:47:31.246 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...esr] Connection lost: None
2024-01-30 10:47:31.247 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf6...2ak] Connection lost: None
2024-01-30 10:47:31.247 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [332...608] Connection lost: None
2024-01-30 10:47:31.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [332...b96] Connection lost: None
2024-01-30 10:47:31.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [332...e9f] Connection lost: None
2024-01-30 10:47:31.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [332...6e8] Connection lost: None
2024-01-30 10:47:31.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [347...504] Connection lost: None
2024-01-30 10:47:31.248 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...psy] Connection lost: None
2024-01-30 10:47:31.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [332...bc9] Connection lost: None
2024-01-30 10:47:31.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfa...snt] Connection lost: None
2024-01-30 10:47:31.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...lut] Connection lost: None
2024-01-30 10:47:31.249 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf2...yf5] Connection lost: None
2024-01-30 10:47:31.250 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfa...zde] Connection lost: None
2024-01-30 10:47:31.250 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfb...7zy] Connection lost: None
2024-01-30 10:47:31.250 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfb...byd] Connection lost: None
2024-01-30 10:47:31.250 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bff...ztk] Connection lost: None
2024-01-30 10:47:31.251 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfa...as8] Connection lost: None
2024-01-30 10:47:31.251 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bfd...nee] Connection lost: None
2024-01-30 10:47:31.251 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Connection lost: None
2024-01-30 10:47:31.267 DEBUG (MainThread) [custom_components.localtuya.fan] Fan _use_ordered_list: False
2024-01-30 10:47:31.275 DEBUG (MainThread) [custom_components.localtuya.select] Display Options Configured: ['Morgens', 'Abend']
2024-01-30 10:47:31.275 DEBUG (MainThread) [custom_components.localtuya.select] Total Raw Options: 2 - Total Display Options: 2
2024-01-30 10:47:31.312 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...h6a] Trying to connect to 192.168.59.41...
2024-01-30 10:47:31.313 DEBUG (MainThread) [custom_components.localtuya.common] [bf5...t2t] Trying to connect to 192.168.59.48...
2024-01-30 10:47:31.314 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...diz] Trying to connect to 192.168.59.49...
2024-01-30 10:47:31.315 DEBUG (MainThread) [custom_components.localtuya.common] [bfe...hj4] Trying to connect to 192.168.59.50...
2024-01-30 10:47:31.318 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...esr] Trying to connect to 192.168.59.52...
2024-01-30 10:47:31.320 DEBUG (MainThread) [custom_components.localtuya.common] [bf6...2ak] Trying to connect to 192.168.59.51...
2024-01-30 10:47:31.322 DEBUG (MainThread) [custom_components.localtuya.common] [332...608] Trying to connect to 192.168.59.27...
2024-01-30 10:47:31.323 DEBUG (MainThread) [custom_components.localtuya.common] [332...b96] Trying to connect to 192.168.59.25...
2024-01-30 10:47:31.325 DEBUG (MainThread) [custom_components.localtuya.common] [332...e9f] Trying to connect to 192.168.59.24...
2024-01-30 10:47:31.326 DEBUG (MainThread) [custom_components.localtuya.common] [332...6e8] Trying to connect to 192.168.59.23...
2024-01-30 10:47:31.327 DEBUG (MainThread) [custom_components.localtuya.common] [347...504] Trying to connect to 192.168.59.26...
2024-01-30 10:47:31.327 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...psy] Trying to connect to 192.168.59.31...
2024-01-30 10:47:31.328 DEBUG (MainThread) [custom_components.localtuya.common] [332...bc9] Trying to connect to 192.168.59.28...
2024-01-30 10:47:31.329 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...snt] Trying to connect to 192.168.59.39...
2024-01-30 10:47:31.331 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...lut] Trying to connect to 192.168.59.55...
2024-01-30 10:47:31.331 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...yf5] Trying to connect to 192.168.59.56...
2024-01-30 10:47:31.332 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...zde] Trying to connect to 192.168.59.53...
2024-01-30 10:47:31.334 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7zy] Trying to connect to 192.168.59.40...
2024-01-30 10:47:31.335 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...byd] Trying to connect to 192.168.59.30...
2024-01-30 10:47:31.336 DEBUG (MainThread) [custom_components.localtuya.common] [bff...ztk] Trying to connect to 192.168.59.47...
2024-01-30 10:47:31.337 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...as8] Trying to connect to 192.168.59.54...
2024-01-30 10:47:31.338 DEBUG (MainThread) [custom_components.localtuya.common] [bff...qb8] Trying to connect to 192.168.59.129...
2024-01-30 10:47:31.341 DEBUG (MainThread) [custom_components.localtuya.common] [bfd...nee] Trying to connect to 192.168.59.43...
2024-01-30 10:47:31.342 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...ykd] Trying to connect to 192.168.59.190...
2024-01-30 10:47:31.342 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Trying to connect to 192.168.59.29...
2024-01-30 10:47:31.706 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Resetting cmd for DP IDs: [18, 19, 20]
2024-01-30 10:47:31.706 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] reset switching to dev_type type_0a
2024-01-30 10:47:31.706 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 18 (device type: type_0a)
2024-01-30 10:47:31.706 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[18,19,20]}'
2024-01-30 10:47:31.708 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 18 waiting for seq. number -101
2024-01-30 10:47:31.712 DEBUG (MainThread) [custom_components.localtuya.common] [332...b96] Success: connected to 192.168.59.25
2024-01-30 10:47:31.714 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...h6a] Success: connected to 192.168.59.41
2024-01-30 10:47:31.715 DEBUG (MainThread) [custom_components.localtuya.common] [bf5...t2t] Success: connected to 192.168.59.48
2024-01-30 10:47:31.715 DEBUG (MainThread) [custom_components.localtuya.common] [332...6e8] Success: connected to 192.168.59.23
2024-01-30 10:47:31.820 DEBUG (MainThread) [custom_components.localtuya.common] [332...e9f] Success: connected to 192.168.59.24
2024-01-30 10:47:31.821 DEBUG (MainThread) [custom_components.localtuya.common] [332...608] Success: connected to 192.168.59.27
2024-01-30 10:47:31.822 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=1, cmd=18, retcode=0, payload=b'', crc=1129492010, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:31.822 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:31.826 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...lut] Success: connected to 192.168.59.55
2024-01-30 10:47:31.827 DEBUG (MainThread) [custom_components.localtuya.common] [332...bc9] Success: connected to 192.168.59.28
2024-01-30 10:47:31.829 DEBUG (MainThread) [custom_components.localtuya.common] [347...504] Success: connected to 192.168.59.26
2024-01-30 10:47:31.838 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...diz] Success: connected to 192.168.59.49
2024-01-30 10:47:31.839 DEBUG (MainThread) [custom_components.localtuya.common] [bf6...2ak] Success: connected to 192.168.59.51
2024-01-30 10:47:31.840 DEBUG (MainThread) [custom_components.localtuya.common] [bfe...hj4] Success: connected to 192.168.59.50
2024-01-30 10:47:31.843 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...zde] Success: connected to 192.168.59.53
2024-01-30 10:47:31.844 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...yf5] Success: connected to 192.168.59.56
2024-01-30 10:47:31.846 DEBUG (MainThread) [custom_components.localtuya.common] [bf2...esr] Success: connected to 192.168.59.52
2024-01-30 10:47:31.846 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] incomplete payload=b'' with len:0 (ord() expected a character, but string of length 0 found)
2024-01-30 10:47:31.846 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ERROR Unexpected Payload from Device - 904 - payload: null
2024-01-30 10:47:31.847 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Retrieving initial state
2024-01-30 10:47:31.847 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 10 (device type: type_0a)
2024-01-30 10:47:31.847 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b","uid":"bf984eb57d92c8bf9dzy7b","t":"1706608051"}'
2024-01-30 10:47:31.848 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 10 waiting for seq. number 2
2024-01-30 10:47:31.849 DEBUG (MainThread) [custom_components.localtuya.common] [bff...ztk] Success: connected to 192.168.59.47
2024-01-30 10:47:31.851 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...as8] Success: connected to 192.168.59.54
2024-01-30 10:47:31.871 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...7zy] Success: connected to 192.168.59.40
2024-01-30 10:47:31.879 DEBUG (MainThread) [custom_components.localtuya.common] [bfd...nee] Success: connected to 192.168.59.43
2024-01-30 10:47:31.885 DEBUG (MainThread) [custom_components.localtuya.common] [bfa...snt] Success: connected to 192.168.59.39
2024-01-30 10:47:31.965 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 10 TuyaMessage(seqno=2, cmd=10, retcode=1, payload=b'\x94\xe4\xc9\x82\xecI\xbb\x87R\xe0{@\x917\xf0\xc8\xc1\x04\x82\tV\x07x\xaa\xe9}\xf2cL\xc4\x80`', crc=3437331670, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:31.966 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] 'data unvalid' error detected: switching to dev_type 'type_0d'
2024-01-30 10:47:31.966 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Re-send 10 due to device type change (type_0a -> type_0d)
2024-01-30 10:47:31.966 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 10 (device type: type_0d)
2024-01-30 10:47:31.966 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"devId":"bf984eb57d92c8bf9dzy7b","uid":"bf984eb57d92c8bf9dzy7b","t":"1706608051","dps":{"1":null,"4":null,"10":null,"11":null,"5":null}}'
2024-01-30 10:47:31.967 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 13 waiting for seq. number 3
2024-01-30 10:47:31.973 DEBUG (SyncWorker_63) [custom_components.localtuya.cover] [bf9...psy] Rolladen-Esszimmer-Befehl: is requesting unknown DP Value current_position_dp
2024-01-30 10:47:31.977 ERROR (SyncWorker_63) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bf99924f169e97c6ddapsy': ({'1': 'stop', '7': 'opening'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 549, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 253, in status_updated
self._current_cover_position = 100 - curr_pos
~~~~^~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
2024-01-30 10:47:31.978 DEBUG (SyncWorker_9) [custom_components.localtuya.cover] [bfb...byd] Rolladen-TV-Befehl: is requesting unknown DP Value current_position_dp
2024-01-30 10:47:31.981 ERROR (SyncWorker_9) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bfb67003418ef07b1atbyd': ({'1': 'stop', '7': 'opening'},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 549, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 253, in status_updated
self._current_cover_position = 100 - curr_pos
~~~~^~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
2024-01-30 10:47:31.983 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 8 TuyaMessage(seqno=0, cmd=8, retcode=0, payload=b'3.3\x00\x00\x00\x00\x00\x00\x01\x04\x00\x00\x00\x01\xb7\xfb\x88b!J\xc6\xd3\xf1\xfa\x93\x13\xeck\x99=x\x9e\xf8\xbb\xaf\xd8`\xb6\xc8\xc4\xd8f\xab,E\x8d\xa3y\x1d\x9e\xb7\x04\x1b\xb1\xb0\x89\xcb\xa2!\xcf#\x06s$\xcd\xdd\x0c\xf1\xceM\xf2Kf\x00&\xc3\xb9\xa5\xc1\xf2\x1a\xb1~\x03\x8e\xc5\x9b\x92\xda\xef\xcf\xac\x07\x8c', crc=3470476256, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:31.983 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got status update
2024-01-30 10:47:31.984 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Deciphered data = '{"dps":{"1":"stop","4":"morning","11":30540,"5":false},"t":1706608050}'
2024-01-30 10:47:31.984 DEBUG (SyncWorker_26) [custom_components.localtuya.cover] [bf9...y7b] Rolladen: is requesting unknown DP Value current_position_dp
2024-01-30 10:47:31.985 DEBUG (SyncWorker_61) [custom_components.localtuya.binary_sensor] [bf9...y7b] Fehler: is requesting unknown DP Value 10
2024-01-30 10:47:31.986 DEBUG (SyncWorker_61) [custom_components.localtuya.binary_sensor] [bf9...y7b] Fehler: is requesting unknown DP Value 10
2024-01-30 10:47:31.987 ERROR (SyncWorker_26) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bf984eb57d92c8bf9dzy7b': ({'1': 'stop', '4': 'morning', '11': 30540, '5': False},)
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 549, in _update_handler
self.status_updated()
File "/config/custom_components/localtuya/cover.py", line 253, in status_updated
self._current_cover_position = 100 - curr_pos
~~~~^~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
2024-01-30 10:47:31.990 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...byd] Success: connected to 192.168.59.30
2024-01-30 10:47:31.990 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...psy] Success: connected to 192.168.59.31
2024-01-30 10:47:32.050 INFO (MainThread) [custom_components.localtuya.cloud_api] Cloud API connection succeeded.
2024-01-30 10:47:32.065 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 13 TuyaMessage(seqno=3, cmd=13, retcode=0, payload=b'', crc=1350014657, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:32.065 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 13: ignoring it
2024-01-30 10:47:32.069 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Started heartbeat loop
2024-01-30 10:47:32.069 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:47:32.069 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:47:32.080 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:47:32.083 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:32.083 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:47:32.084 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:47:33.492 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Success: connected to 192.168.59.29
2024-01-30 10:47:35.492 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:35.492 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:35.532 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=5, cmd=18, retcode=0, payload=b'', crc=2213266620, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:35.533 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:37.493 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:37.493 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:37.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=6, cmd=18, retcode=0, payload=b'', crc=1042393202, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:37.584 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:39.223 WARNING (MainThread) [custom_components.localtuya.common] [bff...qb8] Failed to connect to 192.168.59.129: [Errno 113] Connect call failed ('192.168.59.129', 6668)
2024-01-30 10:47:39.224 WARNING (MainThread) [custom_components.localtuya.common] [bfb...ykd] Failed to connect to 192.168.59.190: [Errno 113] Connect call failed ('192.168.59.190', 6668)
2024-01-30 10:47:39.493 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:39.493 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:39.533 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=7, cmd=18, retcode=0, payload=b'', crc=3820450295, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:39.533 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:41.494 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:41.494 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:41.576 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=8, cmd=18, retcode=0, payload=b'', crc=3301418178, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:41.577 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:42.084 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:47:42.084 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:47:42.086 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:47:42.194 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:42.194 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:47:42.194 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:47:43.494 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:43.494 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:43.498 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=10, cmd=18, retcode=0, payload=b'', crc=2761625993, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:43.499 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:45.495 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:45.495 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:45.577 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=11, cmd=18, retcode=0, payload=b'', crc=2030946316, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:45.577 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:47.495 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:47.496 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:47.619 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=12, cmd=18, retcode=0, payload=b'', crc=75419220, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:47.619 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:49.496 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:49.496 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:49.582 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=13, cmd=18, retcode=0, payload=b'', crc=3655866321, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:49.582 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:51.497 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:51.497 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:51.613 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=14, cmd=18, retcode=0, payload=b'', crc=1679981343, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:51.613 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:52.201 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:47:52.202 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:47:52.204 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:47:52.228 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:52.228 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:47:52.228 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:47:53.497 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:53.498 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:53.502 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=16, cmd=18, retcode=0, payload=b'', crc=717476213, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:53.502 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:55.498 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:55.498 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:55.608 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=17, cmd=18, retcode=0, payload=b'', crc=4149545200, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:55.609 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:57.498 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:57.499 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:57.549 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=18, cmd=18, retcode=0, payload=b'', crc=1251959870, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:57.549 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:47:59.499 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:47:59.500 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:47:59.602 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=19, cmd=18, retcode=0, payload=b'', crc=2533998011, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:47:59.602 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:01.501 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:01.501 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:01.543 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=20, cmd=18, retcode=0, payload=b'', crc=3933912035, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:01.543 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:02.231 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:48:02.231 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:48:02.232 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:48:02.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:02.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:48:02.237 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:48:03.501 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:03.502 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:03.506 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=22, cmd=18, retcode=0, payload=b'', crc=2317749928, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:03.506 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:05.502 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:05.502 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:05.536 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=23, cmd=18, retcode=0, payload=b'', crc=1471207213, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:05.537 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:07.504 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:07.504 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:07.587 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=24, cmd=18, retcode=0, payload=b'', crc=1891631640, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:07.587 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:09.504 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:09.504 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:09.533 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=25, cmd=18, retcode=0, payload=b'', crc=2908150685, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:09.533 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:11.505 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:11.505 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:11.580 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=26, cmd=18, retcode=0, payload=b'', crc=278706003, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:11.580 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:12.239 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:48:12.239 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:48:12.241 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:48:12.321 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:12.321 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:48:12.322 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:48:13.506 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:13.506 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:13.510 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=28, cmd=18, retcode=0, payload=b'', crc=2960746638, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:13.510 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:15.507 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:15.507 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:15.581 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=29, cmd=18, retcode=0, payload=b'', crc=1844424971, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:15.581 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:17.508 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:17.508 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:17.622 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=30, cmd=18, retcode=0, payload=b'', crc=3492142533, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:17.623 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:19.508 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:19.509 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:19.572 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=31, cmd=18, retcode=0, payload=b'', crc=229835840, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:19.572 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:21.509 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:21.509 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:21.617 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=32, cmd=18, retcode=0, payload=b'', crc=767179866, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:21.617 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:22.323 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:48:22.324 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:48:22.324 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:48:22.435 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:22.435 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:48:22.435 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:48:23.510 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:23.511 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:23.519 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=34, cmd=18, retcode=0, payload=b'', crc=1306954001, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:23.519 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:25.511 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:25.511 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:25.624 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=35, cmd=18, retcode=0, payload=b'', crc=2423279764, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:25.624 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:27.513 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:27.513 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:27.555 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=36, cmd=18, retcode=0, payload=b'', crc=3976419020, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:27.556 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:29.513 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:29.514 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:29.605 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=37, cmd=18, retcode=0, payload=b'', crc=815107913, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:29.605 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:31.514 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:31.514 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:31.549 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=38, cmd=18, retcode=0, payload=b'', crc=2371871623, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:31.549 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:32.436 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:48:32.437 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:48:32.438 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:48:32.469 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:32.469 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:48:32.470 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:48:33.514 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:33.515 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:33.530 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=40, cmd=18, retcode=0, payload=b'', crc=2008674103, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:33.530 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:35.515 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:35.515 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:35.540 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=41, cmd=18, retcode=0, payload=b'', crc=2855220914, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:35.540 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:37.516 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:37.516 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:37.590 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=42, cmd=18, retcode=0, payload=b'', crc=400906876, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:37.591 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:39.225 DEBUG (MainThread) [custom_components.localtuya.common] [bff...qb8] Trying to connect to 192.168.59.129...
2024-01-30 10:48:39.226 DEBUG (MainThread) [custom_components.localtuya.common] [bfb...ykd] Trying to connect to 192.168.59.190...
2024-01-30 10:48:39.516 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:39.516 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:39.641 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=43, cmd=18, retcode=0, payload=b'', crc=3396568057, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:39.642 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:41.517 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:41.517 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:41.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=44, cmd=18, retcode=0, payload=b'', crc=3070264737, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:41.583 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response
2024-01-30 10:48:42.471 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending command 9 (device type: type_0d)
2024-01-30 10:48:42.471 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"gwId":"bf984eb57d92c8bf9dzy7b","devId":"bf984eb57d92c8bf9dzy7b"}'
2024-01-30 10:48:42.472 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Command 9 waiting for seq. number -100
2024-01-30 10:48:42.604 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 9 TuyaMessage(seqno=0, cmd=9, retcode=0, payload=b'', crc=2958142211, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:42.605 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got heartbeat response
2024-01-30 10:48:42.605 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] ACK received for command 9: ignoring it
2024-01-30 10:48:43.518 DEBUG (MainThread) [custom_components.localtuya.common] [bf9...y7b] Refreshing dps for device
2024-01-30 10:48:43.519 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Sending payload: b'{"dpId":[]}'
2024-01-30 10:48:43.642 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Dispatching message CMD 18 TuyaMessage(seqno=46, cmd=18, retcode=0, payload=b'', crc=3613143274, crc_good=True, prefix=21930, iv=None)
2024-01-30 10:48:43.642 DEBUG (MainThread) [custom_components.localtuya.core.pytuya] [bf9...y7b] Got normal updatedps response

Additional information

DeviceID= bf984eb57d92c8bf9dzy7b

xZetsubou commented 5 months ago

Can you try master branch if it will resolve the issue or not, Go to HACS -> Local Tuya -> click on the three dot at the top right corner -> Redownload -> select master version.

gomble commented 5 months ago

Can you try master branch if it will resolve the issue or not, Go to HACS -> Local Tuya -> click on the three dot at the top right corner -> Redownload -> select master version.

did not worked, its the same

gomble commented 5 months ago

hey check this, i deleted the device and added it again. First i can control the cover but if it reachs the endposition i cant control it.

https://github.com/xZetsubou/hass-localtuya/assets/6769445/751759af-77fd-44f4-92b1-bf0a849ae441

With the slider it is working

gomble commented 5 months ago

One more thing, the cover is wrong inverted. So i go into the settings and reconvigured the cover: image If i click invert and finish the setting, the cover gets unavailable. Even if I restart localtuya. image

xZetsubou commented 5 months ago

Enable the debug for the device after enable invert position then go to settings -> system -> logs search for bf9...y7b then copy everything inside open full logs I might misunderstood something here.

gomble commented 5 months ago

Enable the debug for the device after enable invert position then go to settings -> system -> logs search for bf9...y7b then copy everything inside open full logs I might misunderstood something here.

home-assistant_2024-01-31T13-02-25.370Z.log

xZetsubou commented 5 months ago

So your device doesn't reports the positions values anymore! it only reports 1,4,11 and 5 not sure why however can delete and add the device and make sure that DPID 2 and DPID 3 exists or post device diagnostics again while device is offline.

2024-01-31 11:29:20.872 DEBUG  [bf9...y7b] Got status update
2024-01-31 11:29:20.874 DEBUG Deciphered data = '{"dps":{"1":"stop","4":"morning","11":30540,"5":false},"t":1706696960}'

note: adding DPID 2 and 3 to manual and rest dps may fix this issue tho.

gomble commented 5 months ago

So your device doesn't reports the positions values anymore! it only reports 1,4,11 and 5 not sure why however can delete and add the device and make sure that DPID 2 and DPID 3 exists or post device diagnostics again while device is offline.

2024-01-31 11:29:20.872 DEBUG  [bf9...y7b] Got status update
2024-01-31 11:29:20.874 DEBUG Deciphered data = '{"dps":{"1":"stop","4":"morning","11":30540,"5":false},"t":1706696960}'

note: adding DPID 2 and 3 to manual and rest dps may fix this issue tho.

both are added: image

image

image

image

image

image

xZetsubou commented 5 months ago

Posting device diagnostics will be more clear ^^

gomble commented 5 months ago

Okay, my mistake. Starting over: The roller shutter is completely open. I deleted the device and re-created it as shown in the video earlier. At first glance, it seems to be working. The device indicates that it's open, and I can only close it. However, once it's fully closed, I can't open it again. Only the Stop button can be pressed, then he shows me the down button again but the shutter is already at the endposition. But, if I switch to the slider in Home Assistant, I can control it up or down. What should I do now, what exactly do you need from me, and when? :D I uploaded now a homeassistant.log after i recreated the device and enabled debugging immeaditly. And a device log. homeassistant.log localtuya-5230f817d127b201f97e3c27098e647e-Terasse-45e75206ef810b25e1456620a3a55cb8.json.txt

https://github.com/xZetsubou/hass-localtuya/assets/6769445/6da1e4df-e4ec-47c1-8068-f2a3b2cb6a6c

xZetsubou commented 5 months ago

once it's fully closed, I can't open it again. Only the Stop button can be pressed

This what I did fix on master version not sure if HACS actually installed master correctly however try once more to enable beta version and choose 3.2.4.1b1 you have to choose it manually HACS will be bugged if it the first time enabling the BETA Version say it chose it for you.

HACS -> Local Tuya -> On top right corner click on the ⋮ and choose redownload and select 3.2.4.1b1

gomble commented 5 months ago

once it's fully closed, I can't open it again. Only the Stop button can be pressed

This what I did fix on master version not sure if HACS actually installed master correctly however try once more to enable beta version and choose 3.2.4.1b1 you have to choose it manually HACS will be bugged if it the first time enabling the BETA Version say it chose it for you.

HACS -> Local Tuya -> On top right corner click on the ⋮ and choose redownload and select 3.2.4.1b1

I now definitely have the master branch, as I have checked the last commits. Unfortunately, it still does not work. I have completely removed the device and added it again via auto configuration. The shutter is at the top I can move it down, but when it has reached the end position I can no longer move it up. See screenshot

image

gomble commented 5 months ago

if i slide this slider down then the shutter opens again image

but if i switch to the arrows i can only click stop

image

xZetsubou commented 5 months ago

Can you repeat the same steps here https://github.com/xZetsubou/hass-localtuya/issues/121#issuecomment-1919059596 If the device still doesn't reports your shutter current position then it probably this what caused the issue.

gomble commented 5 months ago

Can you repeat the same steps here #121 (comment) If the device still doesn't reports your shutter current position then it probably this what caused the issue.

I deleted the device restarted homeassistant, added the device again, then activated invert, then activated debug for this device. The entity got unavailable after activating invert. Here are the logs: 2024-02-01 ha.log

gomble commented 5 months ago

One sideinfo, i came from this integration: https://github.com/rospogrigio/localtuya On this integration it worked. I have this shutter 5 times. One which i am experimenting now the other 4 i did not changed the configuration, see this one: image image image

These ones are unavailable after i restart localtuya but after some time they are showing up and they work. i can also force it by physically going to the wall switch and pressing up or down, then the entity is available again and i can operate the shutter

xZetsubou commented 5 months ago

Yes this is what happen to clarify it, your set position and current position doesn't reports there values when localtuya ask for status from your logs. Deciphered data = '{"dps":{"1":"stop","4":"morning","5":false,"11":30540},"t":1706827071}'

when you toggle on invert what happen is it will invert your current position value 100 - current_position but because current position didn't reports in status data it raise an error because it can no longer do the math as current_position is missing.

So why the device doesn't reports the positions values not sure to be honest, when you add new device it pulls the DPs using detect_available_dps function but after adding them it will pull dps data using status function.

If changing the status detection function will fix the issue I may try do that and you can test it.

xZetsubou commented 5 months ago

I made some changes hoping it may fix this, you need to re-download the master version 7d6dc788124f340a126e4d71996a6da8059394ec

gomble commented 5 months ago

I made some changes hoping it may fix this, you need to re-download the master version 7d6dc78

yeah its working thank you How can i send you some tip?

xZetsubou commented 5 months ago

I really appreciate it, but there is no need ^^ Glad it works for you now.

github-actions[bot] commented 5 months ago

This issue was closed because it was resolved on the release: 3.2.4.1

cannondale0815 commented 4 months ago

I want to add that my tuya shades also only work when I add, remove, then re-add them to localtuya. Otherwise the cover control shows up as unavailable. Reading through the discussion above, it appears the OP had the same issue of it only working when they re-added the device to localtuya.

Edit: Sometimes it works on first try, sometimes on second try, sometimes the shades show unavailable even after trying to add them several times. I am on 3.2.4.1.

Edit 2: I discovered that just renaming the "unavailable" control to something else (i.e. *_localtuya) suddenly makes those entities available. Perhaps this workaround helps someone else.