Creating a Custom Cover

Hello, I need some help making a custom cover for my blinds. They are powered by Tuya IR, and the only controls for them are by running a scene (down scene, stop scene, up scene). I need to integrate these into a cover, does anyone have any idea if this is even possible?

Did you already try the template Cover? See Template cover - Home Assistant

yes im just unsure of how to make that work using scenes rather than scripts, and im unfamiliar with YAML

Are these HA scenes?

Do you have a sensor for the position, at least for fully up or down? If not, you’d need to use the optimistic mode as defined in the template cover docs.

You can use the dev tools > actions tab to call a scene by doing it via the UI mode and then switch it to YAML to see what it looks like. It will show you what the service calls need to look like to use in your template cover definition.

I don’t know the UI for this well, but have you checked whether one can create a template cover via the UI? Otherwise, you’ll need to define this in YAML. We’ll need more info about those scenes though.

The template cover works also with other actions, not only with calling scripts. I assume you mention scripts, because the example in the docs uses scripts. You could turn on / off the scenes in the template cover, e. g.:

  open_cover:
    action: scene.turn_on
    target:
      entity_id: scene.scene_for_open

Alternatives without YAML:

  • Define a helper “input_boolean”. Execute an automation to call your scenes depending on input_boolean changes.
  • Define a helper button. In the UI you can define the action turn on scene if button pressed.

when i try this the state becomes undefined and the buttons are disabled