Need help for custom button

Hello,

i need help. I want trigger this action with a switch for my wife
how can i set it to a push button ?

    action:
      - service: cover.set_cover_position
        data:
          entity_id: cover.qubino_goap_zmnhcdx_flush_shutter_level_3
          position: 3  

thanks for help

Hello IngoNRW and welcome to the forum. Order this from Amazon. Then go to IKEA and buy this. If everything is available, set up deConz and connect the IKEA remote control to it. When this is done you set up an automation by using a button on the remote control to trigger your roller shutter. Or did I misunderstand your question? Please take a look at this

Hi Volker,

thanks for the quick respone but i have no hardware issue.
My problem is a veranda sun cover that have no end stop.
so i must program the end Stop manually

so i need a (dummy) button who make the action described above

on press buttom set cover position to 3

Use template switch integration
The example showing there will work for you. Just be sure use “cover.set_cover_position” service for your ON

If you have issues post the code here and I help you correct it.

yes i need help.

on switch press my script work but on press again the cover doesnt go to position 100
I really dont unterstand the value section of the template but i thik its mandotory

 - platform: template
   switches:
      markise:
        friendly_name: "Terasse Markise"
        value_template: "{{ is_state_attr('switch.markise_toggle') }}"
        turn_on:
          service: cover.set_cover_position
          data:
            entity_id: cover.qubino_goap_zmnhcdx_flush_shutter_level_3
            position: 3
        turn_off:
          service: cover.set_cover_position
          data:
            entity_id: cover.qubino_goap_zmnhcdx_flush_shutter_level_3
            position: 100

and the Card

      - type: entity-button
        name: Markise
        entity: switch.markise  

Show the state and attributes of the cover.qubino_goap_zmnhcdx_flush_shutter_level_3 at Dev Tools/states.

If i look at my covers, the attribute should be ‘current_position’
So the value_template should be

value_template: "{{ is_state_attr('cover.qubino_goap_zmnhcdx_flush_shutter_level_3', 'current_position', 3) }}"

thx Rainer but it doesnt work

in my opinion the Switch must hold the state “on” until next klick. and then he must do the “turn_off” event ?
But my switch doesnt hold the state “on”

The value_template should return true when the switch is on.
Copy and paste the template {{ ... }} in Dev Tools/templates and you will see what it returns.

This means your value template is incorrect.
@VDRainer example should work for you. If not, you should verify it using dev-tools tab of HA

so the problem is solved
Thanks for your help.
The cover position was not 3 , it was 0 so the value goes to ON