It works now!!! Even if I don’t understand the use of input_boolean.turn_off… 
I was also able to change the color of the fan/water level to indicate the selected one 
- type: 'custom:config-template-card'
entities:
- sensor.deebot_water_level
variables:
- states['sensor.deebot_water_level'].state
card:
color: "${vars[0] === 'ultrahigh' ? 'yellow' : 'white'}"
entity: null
icon: 'mdi:flask-empty-plus'
name: Altissima
styles:
card:
- font-size: 12px
- background-color: black
- color: white
tap_action:
action: call-service
service: vacuum.send_command
service_data:
command: set_water
entity_id: vacuum.aspirapolvere
params:
amount: ultrahigh
type: 'custom:button-card'
My last two problems and I can consider this integration completed 
- How to make the number of cleanings a parameter in the script you provided
- How to read the status of the vacuum (in dock, charging, cleaning… etc…)
