ai-bits / ecoflow-api-java

Enumerate your EcoFlow gadgets and get / set parameters. Prerequisite: apply for developer status; dependency: Java runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ecoflow-api-java

List your EcoFlow gadgets and get / set parameters.
Version: 0.0.2 quick and dirty to see something working without a gazillion prerequisites or dependencies
Functionality: currently minimal, but showing principles in Java; lists EcoFlow devices based on access key; Quota() functions commented out as they throw errors; will check later
EcoFlow documentation for own functionality, e.g. PowerStream micro inverter or Delta 2 Max battery

Prerequisite: Apply for developer status at EcoFlow to get access and security keys to the EcoFlow cloud.
Optional Prerequisite to make things exactly work as advertized here: VS Code with MS Java extensions
Dependency: some Java runtime default installation (my sheer luck: I had some 2021 version installed)

Before I had tried with the Home Assistant Supervised behemoth + Community Store & PyScript extensions + lengthy code for EcoFlow, needing a dedicated Pi, nothing else on it and the kitchen-sink.

You should have seen my jaw drop when this ran (listed my EcoFlow gadgets) at the first attempt.
You get the Java sample code (original here) when you git clone https://github.com/ai-bits/ecoflow-api-java (or download the repo-zip)
cd ecoflow-api-java
code . (example without VS Code may follow)
With code . (mind the period) you start VS Code in the Present (Current) Working Directory
Open ecoflow-open-demo\src\main\java\com\ecoflow\iot\open\Main.java in the Code editor, paste AccessKey and SecretKey and save.
Run > Start debugging
Fingers crossed...

Find Python and shell script variants in Mark Hicks' repo

Check out my AI-bits.org info site for no-nonsense professional AI application

About

Enumerate your EcoFlow gadgets and get / set parameters. Prerequisite: apply for developer status; dependency: Java runtime


Languages

Language:Java 100.0%