Typescript/Javascript API Wrapper for accessing the REST API of an LG ESS Home Energy Storage system.
Work in progress
npm run start -s -- range pv 2023-05-02 2023-08-10
ESS_PASSWORD="<password>" \
ESS_IP="<ip>" \
npm run start -s graph
Convert graph entries to CSV:
npm run start -s -- graph | jq -rM '.loginfo[] | to_entries | map(.value)|@csv'
Using jq
npm run start -s -- info | jq '.statistics.pcs_pv_total_power | tonumber' | figlet