rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.94k stars 562 forks source link

Cover with two lights not supported #1054

Open janivr opened 2 years ago

janivr commented 2 years ago

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": "4.1.0", "requirements": [] },

"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 },

YES

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

Steps to reproduce

1.

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 commented 2 years ago

Help?