Template sensor - don't want to assume state up/down

Hi there,

I have a template cover on my Home Assistant that is using a Broadlink Rf bridge to transmit the open/close signal to my blinds.

I have no way of tracking the state of the blinds, and don’t care much for it at this time. However, Home Assistant remembers the last command sent to the blinds, and assumes the state of the blinds.

The problem is that in case anyone at home used the remote to open/close the blinds, then the remembered state will be wrong and the front end button will be greyed out and not usable.

Here is what my config looks like, any help is appreciated.

  - platform: template
    covers:             
      back_door:                                                     
        friendly_name: "Back Door"
        open_cover:                         
          service: switch.turn_on
          data:                                                                 
            entity_id: switch.blinds_up_down
        close_cover:  
          service: switch.turn_off  
          data:
            entity_id: switch.blinds_up_down 
        stop_cover:
          service: switch.turn_off
          data:       
            entity_id: switch.blinds_stop_middle

Have you tried adding

optimistic: true

to your cover ?

Else another option would be to have an input Boolean state change trigger the scripts and it will still look like a switch.

If you’re not concerned with how it looks just group the two scripts together and you can press the ‘Activates’ to work your blinds