Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use set_position on LocalTuya Covers #66

Open
mandishshah opened this issue May 21, 2023 · 1 comment
Open

Unable to use set_position on LocalTuya Covers #66

mandishshah opened this issue May 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mandishshah
Copy link

The problem

I'd like to use the set_position functionality from HA for my covers. I have configured all my covers at the moment using YAML which didn't let me know set the min_value, max_value, or the step_size values during the initial configuration. However, the config flow did allow for this so I am not sure if this is the root issue or not. Are there any workarounds for me to set these and try debugging further.

Environment

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

Steps to reproduce

Developer Tools -> Services -> Cover: Set Position -> 50% -> Run into an error

Configuration configuration.yaml or config_flow

- parent_gateway: <> # This tells it is a sub-device dependent on a parent gateway
  device_id: <> # The cid of sub-device
  friendly_name: Dining Room Blind
  entities:
    - platform: cover
      friendly_name: Dining Room Blind
      id: 1
      commands_set: "open_close_stop"
    - platform: number
      friendly_name: Dining Room Blind Percent Control
      id: 2
    - platform: sensor
      friendly_name: Dining Room Blind Current Position
      id: 3
    - platform: sensor
      friendly_name: Dining Room Blind State
      id: 7

Some Logs

websocket_api script: Error executing script. Error for call_service at pos 1: Entity cover.dining_room_blind does not support this service.
[139624471009056] Error handling message: Entity cover.dining_room_blind does not support this service. (unknown_error)
@mandishshah mandishshah added the bug Something isn't working label May 21, 2023
@hectorzin
Copy link

I have the same problem, but I configured the cover using the UI.
I selected the timed option, and every time I open or close the cover it says unable to call service cover/open_cover. 'set_position_dp'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants