Template for VIctron Project

Hello

i am trying to complete my integration with “Victron” solar System
i did a good progress but i am not stock on a specific configuration
i spend many hours trying to figure out on how to do this
i try to used template but i always get a error message

what i am trying to do is the “display” a text instead of the value provided by the MQTT
Any help would be appreciated

My first case is this one… but i got others that are more complex

1=On
4=Off

============================================
Error Message:

Invalid config for [sensor.modbus]: [value_template] is an invalid option for [sensor.modbus]. Check: sensor.modbus->registers->11->value_template. (See ?, line ?).

===================================================
Configurations of the MQTT

modbus.yaml
#Victron Mqtt
- name: victron
host: 192.168.2.xx
type: tcp
port: 502

=================================================

# Configure a default setup of Home Assistant (frontend, api, etc)a
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
modbus: !include modbus.yaml
#sensors: !include_dir_merge_list /config/sensors/
homeassistant:
 customize: !include customize.yaml


sensorpush:
  username: xxxxxxxxxxxxxxxxxxx
  password: xxxxxxxxxxxxxxxx
sensor:
   - platform: sensorpush
   
# -- HOME SYSTEM
 # Modbus device (slave) IDs: /!\ Only for my system
 # BMV               238
 # MPPT              239
 # Main System       100
   - platform: modbus
     scan_interval: 00:00:15
     registers:

      - name: "MPTT Charge state 775"
        hub: victron
        data_type: uint
        slave: 239
        register: 775

looking to do the same, will try to use the mapping approach noted here

This looks promising https://community.victronenergy.com/questions/63997/home-assitant-integration-with-victron.html