Shelly 2.5 shutter control with endstop based on current

Flashed my shelly 2.5s to esphome and can control my shutters using a timebased shutter.
However using the current to detect the endstops would be nicer and would recalibrate after a reboot.

Did anyone get this to work?
I was thinking to set up a 2 status binary sensors and set those based on measuring the current and dropping to 0 (meaning it hit the endstop).