Simplified prepaid phone balance with Tasker On my prepaid phone, I can receive current balance as text message responses. They are five messages, four indicating the balance itself and some additional bonuses, and one more indicating the remaining SMS count. However this requires sending a message to the balance number, reading each of the responses, then deleting them manually. How can I set up a simple notification as replacement for this using Tasker?
Here is a summary of how I have implemented it. Besides Tasker, I also used:


AutoNotification, for a richer notification.
SMS Popup, for suppressing SMS notification for the balance responses.
SMS Auto Delete, for silently deleting those SMS responses after a while.




Profiles


Request Balance on Calls - on outgoing call: Balance Before Call, on exit: Balance After Call.
Process Received Balance - on SMS received from the balance numbers: Process Balance.
Show Balance Summary - on Balance variable set: Show Balance.


Tasks


Balance Before Call

AutomatedBalance = Yes
CheckConsumption = Yes
Request balance by SMS

Balance After Call

Wait 15 seconds
Unset CheckConsumption
Request balance by SMS
Flash "Balance has been requested"

Process Balance

response = number from each SMS response
Case SMS sender is the one responsible for
    Bonus balance
        BonusBalance = response
    SMS balance
        SMSBalance = response
    Normal balance
        BalanceConsumption = (Balance - response)
        Balace = response
    Favorite-number balance
        FavoriteBalanceConsumption = (FavoriteBalance - response)
        FavoriteBalance = response
    Same-carrier balance
        CarrierBalanceConsumption = (CarrierBalance - response)
        CarrierBalance = response
    Local landline balance, then
        LocalBalanceConsumption = (LocalBalance - response)
        LocalBalance = response
    Unknown sender
        # This normally means an error, when none of the above have been fired
        Append "(previous)" to Balance

Show Balance

If CheckConsumption
    If Balance is not currency
        notify "Error while getting the balance in the beginning of call"
    Exit from task
Wait 5 seconds
If Balance is currency
    If FavoriteBalanceConsumption &gt; 0
        consumption = FavoriteBalanceConsumption
        Prefix consumption with "Call to favorite (min) consumed"
    Else if CarrierBalanceConsumption &gt; 0
        consumption = CarrierBalanceConsumption + LocalBalanceConsumption +
            BalanceConsumption
        Prefix consumption with "Call to same-carrier number consumed"
    Else if LocalBalanceConsumption &gt; 0
        consumption = LocalBalanceConsumption + BalanceConsumption
        Prefix consumption with "Call to local number consumed"
    Else if BalanceConsumption &gt; 0
        consumption = BalanceConsumption
        Prefix consumption with "Regular call consumed"
    Else if AutomatedBalance
        consumption = "Free call"
    Else
        consumption = "Phone balance"
    Notify consumption and all balances
    Set all unset balances to zero
    Set all consumptions to zero
Else
    previous_balance = number from balance prefixed with "Previous balance is"
    notify "Error while getting the balance", previous_balance
Unset AutomatedBalance