Text Input to update IP Address in modbus.yaml

Hi All
I am trying to get something to work.
I would like to have a text input helper where i can enter IP and update the host: IP ADDRESS of modbus.yaml

host:  "{{ states('input_text.hub_ip') }}"

returns as host: 192.168.0.xxx under developer options, but in the yaml it wont connect to the Victron GX device, but if I add in the IP Address all is well, so the yaml does not return the IP Address.

Any assistance would be greatly appreciated.

Hi and welcome to the forum.

You can’t template integration configuration options.

You can only template items that appear under the following:

data:
service:
target:

And a few other special exceptions for integration configuration like value_template:, payload_template: etc…

If the documentation does not explicitly state that a template can be used for a configuration option, then it can’t.

Are you trying to change the IP address because of DHCP? I think it would be better to use a static DHCP lease (DHCP reservation) in that case.

1 Like

Thanks Tom

No so I do some power monitoring and analysis for a few clients so I just take my unit with my Shelly relays and give a report on loads and then I do load balancing, so i just wanted to configure the IP via the lovelace.