hoymiles-wifi/README.md

59 lines
2.0 KiB
Markdown
Raw Normal View History

2023-11-17 12:07:21 +00:00
# hoymiles-wifi
2023-11-20 13:40:09 +00:00
2023-11-17 12:07:21 +00:00
This Python library facilitates communication with Hoymiles HMS microinverters, specifically targeting the HMS-XXXXW-T2 series. A special thank you to [DennisOSRM](https://github.com/DennisOSRM) for the inspiration and codebase from the [hms-mqtt-publisher](https://github.com/DennisOSRM/hms-mqtt-publisher) repository.
2023-11-20 13:40:09 +00:00
**Disclaimer: This library is not affiliated with Hoymiles. It is an independent project developed to provide tools for interacting with Hoymiles HMS-XXXXW-T2 series micro-inverters featuring integrated WiFi DTU. Any trademarks or product names mentioned are the property of their respective owners.**
2023-11-17 12:07:21 +00:00
## Installation
```
2023-11-17 12:07:53 +00:00
$ pip install hoymiles-wifi
2023-11-17 12:07:21 +00:00
```
## Usage
You can integrate the library into your own project, or simply use it in the command line.
### Command line:
```
hoymiles-wifi <ip_address>
2023-11-17 12:07:21 +00:00
```
This will retrieve the current inverter state.
### Python code
```
from hoymiles_wifi.inverter import Inverter
inverter = Inverter(<ip_address>)
2023-11-17 12:07:21 +00:00
response = inverter.update_state()
if response:
print(f"Inverter State: {response}")
else:
print("Unable to retrieve inverter state")
```
## Note
Please be aware of the following considerations:
2023-12-06 18:15:04 +00:00
- No DTU Implementation: This library
retrieves information directly from the internal DTU of Hoymiles Wifi
2023-11-17 12:07:21 +00:00
inverters.
## Caution
Use this library responsibly and be aware of potential risks. There are no guarantees provided, and any misuse or incorrect implementation may result in undesirable outcomes. Ensure that your inverter is not compromised during communication.
## Known Limitations
**Update Frequency:** The library may experience limitations in fetching updates, potentially around twice per minute. The inverter firmware may enforce a mandatory wait period of approximately 30 seconds between requests.
2023-11-20 13:40:09 +00:00
**Compatibility:** While developed for the HMS-800W-T2 inverter, compatibility with other inverters from the series is untested at the time of writing. Exercise caution and conduct thorough testing if using with different inverter models.