A python library to communicate with Read Your Meter Pro.
You can install pyvolumio from PyPI:
pip3 install pyrympro
Python 3.7 and above are supported.
With predefined client session
import aiohttp
from pyrympro.rympro import RymPro
session = aiohttp.ClientSession()
rym = RymPro(session)
Let client generate session
from pyrympro.rympro import RymPro
rym = RymPro()
from pyrympro.rympro import RymPro
rym = RymPro()
await rym.initialize("<username>", "<password>")
from pyrympro.rympro import RymPro
rym = RymPro()
await rym.initialize("<username>", "<password>")
await rym.update()
print(f"profile: {rym.profile}")
print(f"meters: {rym.meters}")
print(f"customer_service: {rym.customer_service}")
print(f"settings: {rym.settings}")
from pyrympro.helpers.enums import MediaTypes, AlertTypes
from pyrympro.rympro import RymPro
rym = RymPro()
await rym.initialize("<username>", "<password>")
await rym.update()
print(f"settings: {rym.settings}")
await rym.set_alert_settings(AlertTypes.LEAK, MediaTypes.ALL, True)
print(f"settings: {rym.settings}")
Channels
- None (MediaTypes.NONE)
- Email (MediaTypes.EMAIL)
- SMS (MediaTypes.SMS)
- All (MediaTypes.ALL)
Alert Types
- Daily exception (AlertTypes.DAILY_EXCEPTION)
- Leak (AlertTypes.LEAK)
- Consumption identified will away or vacation (AlertTypes.CONSUMPTION_WHILE_AWAY)