Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strong Router

A Python library and Home Assistant integration to interact with Strong Router admin pages using async HTTP requests.

Features

  • Async Python client for Strong Router (login, device info, overview status, reboot, etc.)
  • Home Assistant sensor and button platform for router status and reboot
  • Integration and unit test examples

Installation

As a Python Library

pip install -e .

For Home Assistant

  1. Copy the stronger_router directory to your Home Assistant custom_components folder.

  2. Add configuration to your configuration.yaml:

    sensor:
      - platform: stronger_router
        base_url: "http://192.168.0.1"
        username: "your_username"
        password: "your_password"
    
    button:
      - platform: stronger_router
        base_url: "http://192.168.0.1"
        username: "your_username"
        password: "your_password"
  3. Restart Home Assistant.

Development Setup

  1. Clone the repository and install dependencies:

    pip install -e .
  2. Create a .env file in the project root with your router credentials:

    BASE_URL=http://192.168.0.1
    USERNAME=your_username
    PASSWORD=your_password
    

Running Tests

  • Integration tests:

    pytest -s -m integration
  • All tests:

    pytest

Project Structure

stronger-router/
├── stronger_router/
│   ├── __init__.py
│   ├── client.py
│   ├── sensor.py
│   └── button.py
├── tests/
│   ├── test_client.py
│   └── test_it_client.py
├── pyproject.toml
├── README.md
└── .env

Supported/Tested Devices

Model Name Link
5GROUTERAX3000 5G MOBILE ROUTER 3000 Product Page

License

MIT


Maintainer: Alexandre Almeida
GitHub: amfalmeida/stronger-router

About

A Python library and Home Assistant integration to interact with Strong Router admin pages using async HTTP requests.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages