Can't open blind (cover) created out of scenes

Building on the answer from my last question, I’m now trying to make a cover from scripts the same way. However, for some reason I can only close the blind, the open option does not work. Manually changing the state of the input_boolean does not seem to trigger the cover to show that it is open or closed either.

Can anyone see what I’m doing wrong? Here is what I’m working with:

input_boolean:
  exterior_bedroom_blind:
    name: exterior_bedroom_blind
    initial: on

script:
  exterior_bedroom_blind_open:
    sequence:
      - service: input_boolean.turn_on
        data:
          entity_id: input_boolean.exterior_bedroom_blind
      - service: scene.turn_on
        data:
          entity_id: scene.exterior_bedroom_blind_open
  exterior_bedroom_blind_close:
    sequence:
      - service: input_boolean.turn_off
        data:
          entity_id: input_boolean.exterior_bedroom_blind
      - service: scene.turn_on
        data:
          entity_id: scene.exterior_bedroom_blind_close

cover:
  - platform: template
    covers:
      exterior_bedroom_blind:
        unique_id: exterior_bedroom_blind_cover
        device_class: blind
        friendly_name: "Exterior Bedroom Blind"
        position_template: "{{ states('input_boolean.exterior_bedroom_blind') }}"
        open_cover:
          service: script.exterior_bedroom_blind_open
        close_cover:
          service: script.exterior_bedroom_blind_close

I think that you have to look into your position_template. It cant be of state on/off but a number between 0(close) and 100(open). Dont know if this will work but please try something like this.

        position_template: >
          {% if states.input_boolean.exterior_bedroom_blind == 'on' %}
            100
          {% elif states.input_boolean.exterior_bedroom_blind == 'off' %}
            0
          {% endif %}

You’re using scripts not an automation.

You need an automation that triggers the blinds to open or close when the input boolean is toggled.

Edited just to add that you seem to be making this incredibly complicated for no reason. You have an input_boolean that monitors the state of the blind, a template cover that duplicates it, and soon you will have an automation, that calls a script, that calls a scene to open and close the blinds.

That’s 5 moving parts, where you probably only need 2 at the most.

Thank you both for your replies, I managed to get it working :slight_smile:

sheminasalam pointed out that I was looking at position_template wrong, I re-evaluated my approach and eliminated a few parts and now it’s going strong.

I’d post the solution but mf_socialMarc :uk: has my inner technician nervous about my scripting ability :wink:

I wanted to use a script instead of an automation for consistency with the rest of my configuration.yml, I managed to get it working with just the 4 moving parts. I should point out that this is is a temporary measure until I flash the remote, and then I’ll be able to reduce it further.

could i use this to control the state of my tuya blinds?