rospogrigio / localtuya

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

HELP: cover setup #1512

Open hros opened 11 months ago

hros commented 11 months ago

The integration can find all my Tuya devices, but I'm having trouble setting up cover devices for shutter controls. When trying to add entities to the device, I get the following list of options:

image

A short description of these options or a link to a site that describes them would be very helpful. The IDs seem cryptic. There are stop and forward and a couple of numeric values. How do I know which to choose? What do the different Open_Close_Stop Command Set options mean? As for Positioning mode, I'm guessing that position refers to a percentage (0-100), and timed sets the up/down motion in seconds. What does it mean to have none as positioning mode? Regarding the next two options that are relevant for positioning mode, namely Current Position and Set Position, they don't seem to refer to the actual state of the shutter at the time of configuration of the entity. What do they mean? Lastly, an inversion of 0-100 should state the current default setting. Does the value of 0 initially refer to the open or closed state?

  1. how would I set up position-based control: specifying the percentage of cover opening (0-closed, 100-fully open)?
  2. can I add another entity for the same device to have also time-based control?
  3. Please provide an example for setting up the entities
  4. Lastly, can a device and entities be deleted? I find it difficult when trying out various settings and wanting to start over. There doesn't seem to be a way to delete the device, and unselecting entities in edit mode to delete them does not work for me
xZetsubou commented 11 months ago

Usually these to can be both set the same DP. but Homeassistant cover have 2 properties [ current_position and set_position]

To delete a device just go to the device page in HA and delete it like any device. To delete an entity click on configure and edit device and uncheck the not needed entities then process with sumbits.

From your values I can say your device has 2 entites.

You can always edit the device and try different command.