In lieu of DSDS I created this routine to allow me to easily swap between physical and eSIM on Pixel 3XL Android 10. It will probably work on other Android 10 devices but you may need to tweak some of the coordinate-based inputs. I'm posting here because a couple of people requested the routine from my and I thought it may be useful.:
https://taskernet.com/shares/?user=...1gNPa0H1P6JuqwklZxdYH5H7VOY3&id=Task:Swap+SIM
Full routine is below. No doubt people who are more practiced in Tasker will point out I've done things a very odd way.... There's a 16 second delay before using the 'go home' function - this is because when swapping to the eSIM it takes about 15 seconds to active. If you 'go home' before that process is finished, something weird happens and the next time you run the task it gets stuck at 'A9: AutoInput Action [ Configuration:Type: Point Value: 750,400' and you effectively need to tap the screen *twice* in the same place.
Some of my 'waits' are a bit long and could probably be shortened, but personally I'd rather have a bomb-proof task than chance speeding it up and it failing occasionally.
Good luck!
Swap SIM (2)
A1: Launch App [ App:Settings
Settings Data: Exclude From Recent Appsff Always Start New Copyn ]
A2: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A3: AutoInput Action [ Configuration:Type: Text
Value: network &
Action : Click Timeout (Seconds):20 ]
A4: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: AutoInput Action [ Configuration:Type: Text
Value: Mobile network
Action : Click Timeout (Seconds):20 ]
A6: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A7: AutoInput Action [ Configuration:Type: Text
Value: Active
Action : Click Timeout (Seconds):20 ]
A8: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A9: AutoInput Action [ Configuration:Type: Point
Value: 750,400
Action : Click Timeout (Seconds):20 Continue Task After Errorn ]
A10: [X] AutoInput Action [ Configuration:Type: Text
Value: Off
Action : Click Timeout (Seconds):2 ]
A11: [X] AutoInput Action [ Configuration:Type: Text
Value: Use SIM
Action : Click Timeout (Seconds):2 ]
A12: [X] Wait [ MS:141 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A13: [X] AutoInput Action [ Configuration:Type: Point
Value: 750,400
Action : Click Timeout (Seconds):20 Continue Task After Errorn ]
A14: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A15: AutoInput Action [ Configuration:Type: Point
Value: 1000,1690
Action : Click Timeout (Seconds):20 ]
A16: Wait [ MS:0 Seconds:16 Minutes:0 Hours:0 Days:0 ]
A17: Go Home [ Page:1 ]
https://taskernet.com/shares/?user=...1gNPa0H1P6JuqwklZxdYH5H7VOY3&id=Task:Swap+SIM
Full routine is below. No doubt people who are more practiced in Tasker will point out I've done things a very odd way.... There's a 16 second delay before using the 'go home' function - this is because when swapping to the eSIM it takes about 15 seconds to active. If you 'go home' before that process is finished, something weird happens and the next time you run the task it gets stuck at 'A9: AutoInput Action [ Configuration:Type: Point Value: 750,400' and you effectively need to tap the screen *twice* in the same place.
Some of my 'waits' are a bit long and could probably be shortened, but personally I'd rather have a bomb-proof task than chance speeding it up and it failing occasionally.
Good luck!
Swap SIM (2)
A1: Launch App [ App:Settings
Settings Data: Exclude From Recent Appsff Always Start New Copyn ]
A2: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A3: AutoInput Action [ Configuration:Type: Text
Value: network &
Action : Click Timeout (Seconds):20 ]
A4: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: AutoInput Action [ Configuration:Type: Text
Value: Mobile network
Action : Click Timeout (Seconds):20 ]
A6: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A7: AutoInput Action [ Configuration:Type: Text
Value: Active
Action : Click Timeout (Seconds):20 ]
A8: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A9: AutoInput Action [ Configuration:Type: Point
Value: 750,400
Action : Click Timeout (Seconds):20 Continue Task After Errorn ]
A10: [X] AutoInput Action [ Configuration:Type: Text
Value: Off
Action : Click Timeout (Seconds):2 ]
A11: [X] AutoInput Action [ Configuration:Type: Text
Value: Use SIM
Action : Click Timeout (Seconds):2 ]
A12: [X] Wait [ MS:141 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A13: [X] AutoInput Action [ Configuration:Type: Point
Value: 750,400
Action : Click Timeout (Seconds):20 Continue Task After Errorn ]
A14: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A15: AutoInput Action [ Configuration:Type: Point
Value: 1000,1690
Action : Click Timeout (Seconds):20 ]
A16: Wait [ MS:0 Seconds:16 Minutes:0 Hours:0 Days:0 ]
A17: Go Home [ Page:1 ]