localtuya icon indicating copy to clipboard operation
localtuya copied to clipboard

Cover with two lights not supported

Open janivr opened this issue 2 years ago • 1 comments

The problem

I have AVATTO Tuya WiFi Roller Shutter Curtain with 2 Light Switches (link to product in AliExpress here)

localtuya identifies the product, but not very well.

  1. The entity Ids is not clear
  2. Not all entities are available

Entities list:

cover.100 switch.off cover.on cover.start cover.stop

How can I get those two light switch parameters?

Environment

  • Localtuya version:

"localtuya": { "version": "4.1.0", "requirements": [] },

  • Last working localtuya version (if known and relevant):
  • Home Assistant Core version:

"home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.9.7", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "aarch64", "timezone": "Asia/Jerusalem", "os_name": "Linux", "os_version": "5.15.61-v8", "supervisor": "2022.09.1", "host_os": "Home Assistant OS 9.0", "docker_version": "20.10.17", "chassis": "embedded", "run_as_root": true },

  • [] Are you using the Home Assistant Tuya Cloud component ?

YES

  • [] Are you using the Tuya App in parallel ?

YES, sometimes. Mainly for easier configuration of wifi devices. I don't have Zigbee Tuya Hub but using Sonoff.

Steps to reproduce

Configuration configuration.yaml or config_flow


DP dump

Provide Home Assistant taceback/logs


Additional information

"bfb377b51260aaccbbce9t": { "friendly_name": "Curtain switch", "local_key": "844...XXX9", "host": "192.168.X.XXX", "device_id": "bfb377b51260aaccbbce9t", "protocol_version": "3.3", "model": "Curtain switch", "dps_strings": [ "1 (value: stop)", "2 (value: 100)", "3 (value: start)", "7 (value: True)", "8 (value: forward)", "10 (value: 48)", "12 (value: strong_power)", "101 (value: False)", "102 (value: False)" ], "entities": [ { "id": 1, "friendly_name": "Stop", "positioning_mode": "none", "position_inverted": false, "span_time": 25.0, "commands_set": "open_close_stop", "platform": "cover" }, { "id": 2, "friendly_name": "100%", "positioning_mode": "position", "position_inverted": false, "span_time": 25.0, "commands_set": "open_close_stop", "current_position_dp": 2, "set_position_dp": 2, "platform": "cover" }, { "id": 3, "friendly_name": "Start", "positioning_mode": "none", "position_inverted": false, "span_time": 25.0, "commands_set": "open_close_stop", "platform": "cover" }, { "id": 101, "friendly_name": "On", "positioning_mode": "none", "position_inverted": false, "span_time": 25.0, "commands_set": "on_off_stop", "platform": "cover" }, { "id": 102, "friendly_name": "Off", "restore_on_reconnect": false, "platform": "switch" } ], "product_key": "keyvyuq98xfs9tam" } },

janivr avatar Oct 01 '22 15:10 janivr

Help?

janivr avatar Oct 05 '22 22:10 janivr