Shutter - open_cover_tilt

Hello Community,

i use a template for the defintion of a shutter (cover)

platform: template
covers:
  logo1shutter1:
    device_class: shutter
    friendly_name: "Logo1Shutter1 (Kids Area)"

    #position_template: "{{ 100 - (states('sensor.LogoShutter1Position') | int) }}"
    position_template: "{{ states('sensor.Logo1Shutter1Position') | int }}"

    # Action to open the shutter
    open_cover:
      - action: cover.open_cover
        target:
          entity_id: cover.Logo1Shutter1Cover

    # Action to close the shutter
    close_cover:
      - action: cover.close_cover
        data:
          entity_id: cover.Logo1Shutter1Cover

    # Action to stop the shutter
    stop_cover:
      - action: switch.turn_on
        target:
          entity_id: switch.LogoKidsAreaShutter1AppStop
      - delay: "00:00:01" # Wait for 1 second
      - action: switch.turn_off
        target:
          entity_id: switch.LogoKidsAreaShutter1AppStop

    # Action to set shutter position (drag and drop)
    set_cover_position:
      - action: modbus.write_register
        data:
          hub: SiemensLogo1
          address: 153 # Modbus Adress
          #value: "{{100 - (position) }}" # Write the target position (0-100 scale) to register
          value: "{{position}}" # Write the target position (0-100 scale) to register

this entity is used by the customShutterCard

which supports
can_tilt

in my case it is not possible to add these two parameters
unitl i add one, i get this error:

image

open_cover_tilt
close_cover_tilt
`

all i want is to change the value of the position from the shutter whennthe Button for tilt up or down ist pressed

how can this be solved?

Many thanks for any help
Daniel

Good morning,

Bring this Post Up again. :grin:
Any Ideas are welcome

Many Thanks
Daniel

Hello. Iā€™m trying to solve a similar problem. Found below thread which looks interesting:
Template cover - how to get position in set_cover_position

1 Like