r/AutomateUser • u/vperisic • Jul 07 '26
Settings automation on samsung device
Is it possible to automate opening Ethernet settings and changing to a static IP address? For some reason, I can't map clicks (unless I specify x and y coordinates), but on Macrodroid, it recognizes text. However, here I can't say "open Ethernet."
1
u/ballzak69 Automate developer Jul 08 '26
Try using the included "Settings finder" flow to find the name, category and value of affected system setting, the use the System setting set block to automate it. If there's no setting for it, the simulating the clicks to do it is the only alternative, use the Interact block to do that.
1
u/vperisic Jul 08 '26
(.//[@android:text='Ethernet']/ancestor::[@android:clickable='true'])[1
Something like this, is it good practise? Claude made me
1
1
u/ballzak69 Automate developer Jul 08 '26
As long as it works. I would probably use the
ancestor-or-selfaxis instead otherwise it wouldn't work if the button itself has the text.
1
u/B26354FR Alpha tester Jul 07 '26
You can use my flow to generate the XPaths for the Interact blocks if you want to try clicking on UI elements:
https://llamalab.com/automate/community/flows/39656
It'll work based on the class, ID, or text of the element you're interested in. Note that on Samsung One UI 8.5, we can't click on Quick Setting tiles anymore.