Skip to content

skelgaard/homeassistant-apsystems

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge apsystems Maintenance

APsystems Sensor for Home Assistant

This component simplifies the integration of a APsystems inverter:

  • creates up to individuals sensors for easy display or use in automations
  • collects produced, consumed and exported 'instantaneous powers' (W) and 'total energies' (KWH) every 5 minutes. There is also a sensor for daily total energy and max power produced.
  • extract data from apsystemsema.com web portal instead of hack the ECU connection
  • supports any kind of ASsystems inverter or ECU
  • if enabled, pauses from sunset to sunrise (basically when there no sun)
  • have a cache system to avoid individual sensors request the same data to apsystemsema.com. It is a great feature for I/O (HTTP) performance.
  • there is a date sensor to identify exactly date/time refers each sensor data

URL's Utilised

The URL called are https://apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax, https://www.apsystemsema.com/ema/ajax/getReportApiAjax/getPowerWithAllParameterOnCurrentDayAjax and https://www.apsystemsema.com/ema/ajax/getReportApiAjax/findMeterEcuEveryYearEnergyInLifeTime It is only called from sunset to sunrise and the sensor going offline at night

Installation

Use HACS to point to this github URL: https://github.com/skelgaard/homeassistant-apsystems

Configuration

Use your apsystemsema.com to configure the addon.

1 - set "Allow visitors to access to this system" and get the authid from here

2 - your systemId is found at apsystemsema.com. click on the modules or report->system data->ecudata and the systemid is in the dropdown

No data an error in the logs ?

If you see no data an error in the logs, make sure you can login on https://apsystemsema.com and don't see a captcha, if you do, solve the captcha and the data should start to come in again.

Debug

To get debug info in the logs do

logger:
  default: info
  logs:
    custom_components.apsystems_api: debug

and then grep the log for output

grep apsystem home-assistant.log

http request test

here is the two commands to run, todo a request test if it works

Login

GET https://www.apsystemsema.com/ema/intoDemoUser.action?id=apsystemsem_authid

Get Data

POST https://www.apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax

queryDate=20250901&selectedValue=apsystemsema_ecu_id&systemId=apsystemsema_system_id

Thanx

Thanx to the author bgbraga(https://github.com/bgbraga/) for his work, but as he has left this is in a none working stage, i have fixed the problems

Buy me a beer!

About

An APsystems Sensor for Home Assistant

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%