If your Android phone doesn’t do quite what you want it to, MacroDroid can probably help.
A lot of RW customers first heard about MacroDroid as a way to keep their phones awake when the Android OS put the phones in doze mode. It worked very well for this. I don’t think it’s needed for that anymore, but it is useful for many other things.
It has access to most of the phone’s features. It has timers and can speak text, so you can have recurrent reminders that tell you to get up and walk. It has some math functions and a random number generator. It can plug into local weather and sunrise/sunset times. It lets you define geographic zones and trigger macros when you leave or enter the zones.
It uses a built-in programming language, but lets you build macros without doing any programming.
If you are inclined to tinker with your devices, this app is for you.
For any other Android users interested, MacroDroid maintains the following
MacroDroid Wiki - MacroDroid Wiki
These provide some good starting info, and you can always request a bit of help from other RW Users here.
This looks like an alternative to Tasker, which has been around for many years. I use Tasker to do things like auto-silence my phone when I am at theaters, set time-limited silent mode, set up custom ring tones to an extreme degree (one caller sets off different ring tones on alternating calls, which I brewed up just to see if I could). I have custom SMS alert tones based on sender and in some cases, message topic. My phone goes into silent mode based on time of day, and I can set criteria for overriding various silent modes. I have certain apps set volume when running due to programmer choices not fitting my preferences. My phone being rooted, I can do things like shut off that annoying green indicator for location use by a program when I am running video players. I will not list everything I’ve done with it here, but the $7 I spent on it back in the early days has been well worth it, enabling me to craft my own tasks and not have to get dozens of apps to get things done.
MacroDroid appears to be pitched at non-programmers, although as @johnc said there is an underlying language. Tasker is an event-driven programming language meant for controlling your Android phone. What Tasker calls Events MacroDroid calls Triggers.
There is a similar app called Easer available on the F-Droid store. I haven’t looked into it much as I had Tasker first. This is the first I’ve heard of MacroDroid.
You should be aware that for anything like this, a knowledge of programming will help you. Once you wrap your head around the concept of events/triggers, you can do some amazing things. The simpler modes may have uses, but if you can write programs you can really go to town.
It looks like MacroDroid has an active user community, as does Tasker, I couldn’t find a community for Easer, but it may just be low-profile.
I’m sure I would have enjoyed Tasker if I had encountered it first.
One of the MacroDroid triggers can be an NFC tag swipe. MacroDroid will then execute whatever action you like. For example, I have my front porch lights connected to an Alexa-controlled Smart Switch, and an NFC tag in my car. As I am on my way home at night, I swipe my Pixel phone against the tag, and my exterior lights are on when I arrive home.
Here are the tags I purchased: Amazon.com
And this is the Smart Switch I use: https://www.amazon.com/gp/product/B07HGW8N7R/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
You can execute any MacroDroid action, but to trigger a SmartSwitch I used https://VoiceMonkey.io to generate the http command that MacroDroid uses in the Action field to activate the SmartSwitch. Note that you don’t need the paid subscription to VoiceMonkey; the free one works just fine. (It’s actually quite easy and less complex than it sounds.