geertmeersman / mobile_vikings

Home Assistant component for Mobile Vikings BE services
MIT License
8 stars 1 forks source link

Remaining credit when monthly "bundle" has expired #66

Closed bavala3010 closed 11 months ago

bavala3010 commented 11 months ago

Hi, is it possible to add a sensor that shows the value of the remaining credit when the monthly bundle has expired?

Context: with a prepaid account, you can charge your account with a credit that lasts for 1 month. Eg. you charge 15 euro at the beginning of the month. During the month, you use internet and make a few calls. If you stay within the limits of the monthly use, there is no additional cost and by the end of the month, you will still have the initial 15 euro. When the monthly bundle has expired, you can use these 15 euro to use internet (x €/MB and x €/minute). Of course, it will only take a few days (sometimes a week, depending on your usuage) before that credit is totally used.

By having a sensor that shows the remaining credit, you could have a precise when you really need to recharge and pay for another monthly bundle.

Thanks for considering this change request.

geertmeersman commented 11 months ago

Hi, sure I can add it. But then I will need api data / possible for you to join on Discord so we can exchange some information that will help me out in building it?

tjorim commented 11 months ago

@geertmeersman, I sent you a message on Discord.

geertmeersman commented 11 months ago

The credit is already available as an extra attribute in the out of bundle sensor, but I will add it as a separate sensor :-)