Thanks, here is #2, can it combined within the first one?
I've combined the 2 macros.
The combined macro is attached, along with an Action Block - this saves having copies of setting the hearing aid program actions.
I'm unable to test the macro, as I don't have Phonak app installed nor am I near to the areas you have defined for the geofence actions.
Geofence takes time to react to changes in location. I've included time based triggers if the geofence enter and exit triggers haven't already fired.
I find WiFi at a location, if available, is more reliable to use. If the church has WiFi I would use this either alone or with Geofence.
The macro should work as follows.
When you turn on your hearing aids & bluetooth connection to the phone is established and the phone screen is ON, then program 1 is set
Later you go to the church. Either geofence enter area or the time triggers and program 2 is set, providing the phone screen is ON.
On leaving the church. Either geofence exit area or the time triggers and program 1 is set, providing the phone screen is ON.
At 22:00, the variables are reset, ready for the next day.
I have assumed that this macro runs every day of the week. If you only want it to run on specific days of the week, enable the constraint and select the days required. I have set it to Sunday only.
The macro will not work if the screen is OFF when any of the triggers fire (except the last one) as the UI actions only work with the screen ON.
This means the phone screen will need to be on while travelling to the church, otherwise program 2 will not be set.
I think it might be better to let the triggers fire with the phone screen OFF and run the set program when the phone is turned ON after a trigger has fired.
First test the macro and let me know what you think.