Entity, customizing function

Hello forum,
I’m trying to solve to work with Asus GPIO, with fairly success, just a bit more to fiddle.

Then I’d like to add another function for the ToggleEntity, which is the pulser. Indeed I need to command a couple of latching relays, which are not acting with a feedback, so it might take to note an initial state and suppose that has switched to ON.
Later I’ll try to add a feedback.
So, the point is to expose the function that it will be listed to use by the configuration yaml listing.