TuyaLocal Cover Configuration

Continuing the discussion from Tuya local:

Thanks so much for posting this!

I was trying for hours to get the cover (curtains) to work in tuyalocal, but using what you posted solved it for me.

Just replying here so it’s easier to find for anyone else struggling with TuyaLocal Cover’s.

Using TuyaLocal v3.4.0 (January 2022), the following (quoted from linked post) works for me.

- host: xxxx.xxx.xxx.xxx
  device_id: xxxx
  local_key: xxxx
  friendly_name: Tuya tv
  protocol_version: "3.3"
  entities:
    - platform: cover
      friendly_name: NAME
      id: 1 # this is what open_close_stop use, not sure if you had this as 2 or something else
      commands_set: open_close_stop
      positioning_mode: position
      position_inverted: true
      current_position_dp: 2
      set_position_dp: 2