This project gives you an abstraction layer to communicate with your Bell Home Hub 2000 router. You get nice session management functions, like session.login(user, pass)
and session.exec_action(someaction)
.
First, grab Python 2.7 and Requests. Then, try something simple:
from bell_protocol import Session,ActionPayload
s = Session("192.168.2.1")
s.login("admin", "password")
try:
# Restart my router
action = ActionPayload("reboot", xpath = "Device")
s.exec_action(action)
finally:
s.logout()
This works on my Bell Home Hub 2000 router (Sagemcom F@st 5250). That’s the only guarantee I can give, unfortunately! Since the API used is undocumented, this is unlikely to work on other Home Hub series routers. Or any other routers, for that matter.