Edge security in smart inverters