Skip to content

zs1rcm/sunsynk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

sunsynk script

This script queries Sunsynk api for inverter and pv data:

Usage: python3 SunSynkToolf.py

##########################################################################################

I use this as a ghetto loadshedding detector, eg:

if(float(grids_voltage) < 100): load_shedding = True

Then I post to iftt webhooks to control some internal scenes in smartlife for high load devices like pool pumps, dryers etc.

Eg:
if(load_shedding == True): ifttt_url = 'https://maker.ifttt.com/trigger/power_off_plugs/json/with/key/xxxxx' headers = {'Content-Type': 'application/json'} r = requests.post(ifttt_url, json={"event": "No LoadShedding Detected"}) print(f"Status Code: {r.status_code}, Response: {r.text}")

About

Script that queries Sunsynk api for inverter and pv data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages