Adding a voltage does not work in spice

Hi,
I am trying to create a model for ACS712 30V and it works well when I use a voltage source in the schematic. I have tried to replace the the VDC by adding the 2.5 V in the program which failed. What is the reason? The schematic is attached.
I have tried the following statement
Hsub out+ out- Vnam {gain*2.5/30+2.5} which results in an error
model ACS715

I’m not very good with ngSpice stuff. I can’t even find an HSOURCE in my KiCad V8 libraries. The closest is an ESOURCE. You can add “stuff” directly into the Simulation Model part of the Symbol Properties

The syntax of your text block does not make sense to me. How is KiCad to know that whatever text you added there is related to the H1 symbol?

When
Hsub out+ out- Vnam {gain*2.5/30}
is ok, the above should be o.k. as well. Of course it will not be the same as when you add the VDC source.

What is the error message?