How to link an input select list to/from a modbus list of integers

Hi @doezel,

Could you please provide the code of the Automations.yaml the way how to add this to an dashboard, to switch the energy state?

many thanks!