Auto answer DTMF

Pr0z3r

New member
Hello everyone,

My building's intercom calls on my android cell phone.
When the phone rings, I need to pick up the call, press 5 and hang up the call.
I have to do this 80 times a day at the moment as we have a lot of visit.
I would like to automate this pattern with Macrodroid but did not succeed.

➜ Could you please help me creating this automation?

Best regards,

Pr0z3r
 

dhj49er

Well-known member
Hello everyone,

My building's intercom calls on my android cell phone.
When the phone rings, I need to pick up the call, press 5 and hang up the call.
I have to do this 80 times a day at the moment as we have a lot of visit.
I would like to automate this pattern with Macrodroid but did not succeed.

➜ Could you please help me creating this automation?

Best regards,

Pr0z3r
Have you started to develop a macro?

It would help if you could provide a screenshot of the macro, what it did successfully and where it failed.

With that we should be able to help you.
 

Pr0z3r

New member
Thank you for your quick response.

For your information, my phone is in French.
However, in detail, the automation works as follows:
- The trigger is a call to a specific number (the front door number)
then :
1. Pick up the call
2. Display the numeric keypad
3. Press 5
4. Hang up call

All UI interactions are performed with a single click, then with x,y locations.

I took the precaution of waiting 2s between each action.

Today the call won't hang up, and I can't see if the other automations can work.

I'd like the calls to be triggered when the phone is locked.
 

Attachments

  • Resized_Screenshot_20230918-122052_MacroDroid.jpeg
    Resized_Screenshot_20230918-122052_MacroDroid.jpeg
    110.3 KB · Views: 10

dhj49er

Well-known member
In order for the macro to do what you want, the first action needs to answer the call and for the phone to show the numeric keypad, irrespective of the screen being on or off when the call is received.

Does the 1 UI Click action do all of that?

On my phone I have to swipe a button to accept a call.

The subsequent UI Click actions opens the keypad, presses 5 and ends the call. Since you are using x,y position these need to be in the same place irrespective of the screen being on or off when the call is received.

Its worth checking the phone operation by manually going through the steps to do what you want - then check that the macro does the exact same steps.
 

Pr0z3r

New member
Following your comment, I've reworked the automation a little to include the gesture for picking up the call. I've also put my application in English to facilitate our exchange.

At moment t, the automation is not triggered (at least I don't have an apparent sign).
 

Attachments

  • Resized_Screenshot_20230918-164209_MacroDroid.jpeg
    Resized_Screenshot_20230918-164209_MacroDroid.jpeg
    100.8 KB · Views: 8

Pr0z3r

New member
I'm wondering if these are the right contact details.
What means do you use to identify the right contact details?
 

Endercraft

Moderator (& bug finder :D)
Make sure to check system log to see if macro triggered and troubleshooting section.

On some devices calls are not received by MacroDroid is device is locked or MacroDroid isn't in foreground. I think there was a fix but I'm not sure what it was.
 

Dm114

Well-known member
Following your comment, I've reworked the automation a little to include the gesture for picking up the call. I've also put my application in English to facilitate our exchange.

At moment t, the automation is not triggered (at least I don't have an apparent sign).
Assuming your gesture automation is correct, you should begin your macro with a wait action because the trigger could fire before the screen is ready to accept gesture.
 

Pr0z3r

New member
1. How to check the system log on android ? (What kind of app should I download?)
2. I added a wait time but it had no effect.
3. For additional information, I have checked the “foreground view” option.
 

Qarboz

Well-known member
1. How to check the system log on android ? (What kind of app should I download?)
2. I added a wait time but it had no effect.
3. For additional information, I have checked the “foreground view” option.
1
You need to check the system log of MacroDroid (not Android). You can find it on the MacroDroid home screen, green tile
 

Endercraft

Moderator (& bug finder :D)
You could say Logcat is Android's system log but as @Qarboz said you need to check the MacroDroid system log.
Logcat may be useful if you can't make the call trigger work.
 

Pr0z3r

New member
I just saw the logs, and there was 1 trigger, but all the other tests do not appear. This means that it does not trigger.

What do you think I can do to resolve the situation?

Do we agree that this automation isn't supposed to be this complicated?
 

dhj49er

Well-known member
I just saw the logs, and there was 1 trigger, but all the other tests do not appear. This means that it does not trigger.

What do you think I can do to resolve the situation?

Do we agree that this automation isn't supposed to be this complicated?
I agree automation can be complicated, but not MD.
Fully understanding what the phone does when you want to automate something can be complicated. Android is not a straight forward operating system.
I assume by " 1 trigger, but all other tests do not appear" you mean the following
The Trigger is the call answering Tigger from your macro.
The other tests are all the actions in your macro.
If this is the case, I have never had a trigger fire and no actions from its macro run.

I suggest you turn on system log constraints and provide a copy of the log showing the trigger.
 

Endercraft

Moderator (& bug finder :D)
I have never had a trigger fire and no actions from its macro run.
I had an issue with notifications triggering actions blocks like that but doesn't come close to this problem.

Actually it is possible in rare cases where the macro has invalid values.
 
Top