RE: “Which hub model are you trying to connect ?” >>>
I have a PlubHub 2 (Model: PlugHub Energy). Date code 2039. FCCID: 2AMY9PLUGHUB. IC ID: 22968 - Plughub.
I believe this uses the WebSocket protocol. I was provided this REST API call below which I can get a token. I’ve not figured out how to get WebSockets to work.
I am able to run the “Ezlo_create_curl_config.py” Python script to generate a token. The problem I see is that the authentication shows “Basic: ” and most of the time I use “Bearer: ”.
@osman ^^^ I posted two posts above replies. I’d like to be able to integrate with my devices.
I can run the script “python3 Ezlo_create_curl_config.py”, all passwords and info removed here…
see below:
c:\Ezlo>Ezlo_create_curl_config_test.bat
c:\Ezlo>echo “Running Ezlo Create Curl config file”
“Running Ezlo Create Curl config file”
I tried following the instructions in the document “CW’s IDIOT GUIDE - Ezlo platform HTTP API commands aka Luup Requests”. I don’t see these “offline…” values at all.
Seems I am being directed by support to the MiOS website as being the proper API… I am I am reading about that website, I found the Lua Language is the basis of development and it seems to be in a container form, almost like docker. Am I on the right track here for being able to work with my PlugHub???
The Lua language is used for developing plugins for MiOS, which is a home automation platform. Plugins are used to extend the functionality of MiOS systems by adding custom features or integrating with other devices or services. Lua is a lightweight and easy-to-learn scripting language that is commonly used for embedded systems and scripting tasks. It is well-suited for creating MiOS plugins due to its flexibility, speed, and ability to interface with other programming languages and systems. Lua is often used in home automation systems due to its simplicity and versatility, making it a popular choice for developing plugins for MiOS.
NOTE!!! A light bulb is finally going off about this MiOS website… It actually looks really cool…
Sorry for responding late.
You have already figured out to use the apitool website. That site obviously uses cloud API endpoints but still can send/receive commands to the plughub. SO you can use the API mentioned in the developer.mios.com through apitool.
But I think your main request is to use it locally via local IP am I right ?
Hello @osman,
Yes, my main interest is to use my PlugHub locally using local IP first… please help me solve that but…
I’m interested in exploring the programming capabilities of my Ezlo hardware for home automation. Specifically, I want to learn how I can integrate locally with my hardware to automate tasks such as monitoring the battery levels of my shades. If I find this system useful, I plan to purchase more interfaces. Can you provide me with organized information, starting from the basics and guiding me on what to try first, including details about Ezlo’s API and Mios/Lua systems?
Reviewing the help is in progress (THE HELP IS EXCELLENT — why no one in support pointed me there first is surprising). I was able to create one MeshBot… images below. I would like to locally access my PlugHub… where do I get exact instructions for that? That is in line with this thread. I’ll move my questions about MiOS to another thread. Can we get back to the question of using IP calls to access my PlugHub???