Welcome to MerossApi - your gateway to controlling Meross devices using a REST API built with Flask. This application seamlessly integrates the latest meross-iot library, providing you with the power to load and toggle your devices with multiple accounts simultaneously.
-
Multi-Account Control: Effortlessly manage your Meross devices with multiple accounts concurrently.
-
Token-based Authentication: Security is paramount. This application ensures authentication through tokens, keeping your devices and data safe.
-
JSON Output: The application outputs data in JSON format, allowing you to implement a custom front-end for a personalized device management experience.
Note: This is my inaugural Python project, so your understanding and mercy are greatly appreciated! ๐ I have plans to release a front-end, possibly using Vue or React, along with ongoing improvements to the back-end.
Project Status: Work in progress. Expect exciting updates and enhancements in the future!
To get started with MerossApi, follow these steps:
-
Install python:
see Python Downloads for Windows https://www.python.org/downloads/windows
-
Clone the Repository:
git clone https://github.com/your-username/MerossApi.git
cd MerossApi
- Install Dependencies:
pip install -r requirements.txt
- Running the Application Once you've completed the installation, running MerossApi is a breeze:
python main.py
This will start the Flask development server, and you'll be ready to interact with your Meross devices through the provided API.
Feel free to explore, contribute, and provide feedback! Together, we'll shape the future of MerossApi.
Feel free to customize this README further to suit your project's specific needs and style!
Request type [POST] In the body add:
{
"user": "[email protected]",
"password": "YourPassword"
}
{"token":"k782qW65U6sUyCqHACorMjAIcw-Xt9tAIxCr4VhkuLofmhy80lwfd"}
Request type [GET] In the body add filters:
[
{"model":"mss710"},
{"model":"mssXXX"}
]
In the headers add:
{"token":"k782qW65U6sUyCqHACorMjAIcw-Xt9tAIxCr4VhkuLofmhy80lwfd"}
[
{
"deviceName": "Luci Platani",
"deviceUid": "2006XXXXXXXX",
"firmwareVersion": "3.1.6",
"hardwareVersion": "3.0.0",
"model": "mss710",
"status": "ONLINE"
},
{
"deviceName": "Luce Ufficio Dx",
"deviceUid": "2006XXXXXXXX",
"firmwareVersion": "3.1.6",
"hardwareVersion": "3.0.0",
"model": "mss710",
"status": "ONLINE"
},
{
"deviceName": "Luce Ufficio Sx",
"deviceUid": "2006XXXXXXXX",
"firmwareVersion": "3.1.6",
"hardwareVersion": "3.0.0",
"model": "mss710",
"status": "ONLINE"
}
]
Request type [POST] In the body add filters:
[
{
"deviceId": "2006XXXXXXXX",
"enabled": false
},
{
"deviceId": "22006XXXXXXXX",
"enabled": true
}
]
In the headers add:
{"token":"k782qW65U6sUyCqHACorMjAIcw-Xt9tAIxCr4VhkuLofmhy80lwfd"}
[
"2006XXXXXXXX",
"2006XXXXXXXX"
]
Request type [GET]
In the headers add:
{"token":"k782qW65U6sUyCqHACorMjAIcw-Xt9tAIxCr4VhkuLofmhy80lwfd"}