I assume you have a NaviCirc valve which uses the cold water line as a return in lieu of a dedicated recirculation loop? Either way, as far as I can tell, the water heater seems to trigger off flow rate, so when that closes, the flow drops to 0 resulting in the recirc pump turning off.
By monitoring my unit for a while, I’m confident that a high flow rate (in my case >~3 gpm) is only caused by the recirculation pump. So, a template sensor could provide that sort of feedback. But, the switch entity already provided by this integration already turns on when recirc is on since it’s always a Hot Button actuation - whether manual or via automation.