Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This Python library facilitates communication with Hoymiles HMS microinverters, specifically targeting the HMS-XXXXW-T2 series.
This Python library facilitates communication with Hoymiles DTUs and the HMS-XXXXW-2T HMS microinverters, utilizing protobuf messages.
For the Home Assistant integration have a look here: https://github.com/suaveolent/ha-hoymiles-wifi
Disclaimer: This library is not affiliated with Hoymiles. It is an independent project developed to provide tools for interacting with Hoymiles HMS-XXXXW series micro-inverters featuring integrated WiFi DTU. Any trademarks or product names mentioned are the property of their respective owners.
The library was successfully tested with:
$ pip install hoymiles-wifi
You can integrate the library into your own project, or simply use it in the command line.
hoymiles-wifi [-h] --host HOST [--local_addr IP_OF_INTERFACE_TO_USE] [--as-json] <command>
commands:
get-real-data-new,
get-real-data-hms,
get-real-data,
get-config,
network-info,
app-information-data,
app-get-hist-power,
set-power-limit,
set-wifi,
firmware-update,
restart-dtu,
turn-on-inverter,
turn-off-inverter,
get-information-data,
get-version-info,
heartbeat,
identify-dtu,
identify-inverters,
identify-meters,
The `--as-json` option is optional and allows formatting the output as JSON.
from hoymiles_wifi.dtu import DTU
...
dtu = DTU(<ip_address>)
response = await dtu.<command>
if response:
print(f"DTU Response: {response}")
else:
print("Unable to get response!")
async_get_real_data_new()
: Retrieve real-time dataasync_get_real_data_hms()
: Retrieve real-time dataasync_get_real_data()
: Retrieve real-time dataasync_get_config()
: Retrieve configuration informationasync_network_info()
: Retrieve network informationasync_app_information_data()
: Retrieve application information dataasync_app_get_hist_power()
: Retrieve historical power dataasync_set_power_limit(power_limit)
: Set the power limit of the inverter (0-100%)async_set_wifi(wifi_ssid, wifi_password)
: Configure the wifi networkasync_firmware_update()
: Update to latest firmwareasync_restart_dtu()
: Restart the DTUasync_turn_on_inverter()
: Turn the inverter onasync_turn_off_inverter()
: Turn the inverter offasync_get_information_data()
: Retrieve information dataasync_heartbeat()
: Request a heartbeat message from the DTUPlease be aware of the following considerations:
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.
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.
Compatibility: While developed for the HMS-800W-2T 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.
A special thank you for the inspiration and codebase to:
FAQs
This Python library facilitates communication with Hoymiles HMS microinverters, specifically targeting the HMS-XXXXW-T2 series.
We found that hoymiles-wifi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.