Modbus is the protocol that Home Assistant and Energy Manager will use to access your inverter. It is important that this is configured correctly. Since Modbus is started very early in the Home Assistant startup process, it must obtain some settings from the /config/secrets.yaml file, and not from other entities within Home Assistant.
Note - You don't need to actually press save; the file is updated the moment you edit it, but you will need to restart Home Assistant for the settings to take effect.
If you are using an AlphaESS inverter, you should also update the modbus_slave from 1 to 85.
For the Modbus integration to start working, you must restart Home Assistant. Please do that before continuing with your configuration. The recommendation is to perform this through Developer Tools > Check Configuration > Restart so you can see if there are any errors that may prevent Home Assistant from restarting.
The following modbus warnings are ok if you have not rebooted your Home Assistant since you updated the secrets.yaml file. The modifications to your secrets.yaml file have not been loaded yet, so modbus will issue warnings.