bgbraga / homeassistant-apsystems

An APsystems Sensor for Home Assistant
Apache License 2.0
21 stars 13 forks source link
homeassistant solar-energy

hacs_badge apsystems Maintenance

Please contribute:

Buy me a beer!

APsystems Sensor for Home Assistant

This component simplifies the integration of a APsystems inverter:

URL's Utilised

The URL called is https://apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax 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/bgbraga/homeassistant-apsystems

Configuration

Use your apsystemsema.com user to configure the configuration.yaml.

# Minimal configuration.yaml entry:
sensor:
  - platform: apsystems
    username: apsystemsema_user
    password: !secret apsystems
    systemId: apsystemsema_system_id
    ecuId: apsystemsema_ecu_id
    sunset: off

1 - your systemId is found at apsystemsema.com. See the page source code and at the Settings Menu there is a code like that:

<span>Settings</span>
<ul>
    <li onclick="managementClickCustomer('YOUR SYSTEM ID')"><a>Settings</a></li>
    <li onclick="intoFaq(10)"><a>Help</a></li>
</ul>

Get the system id inside the managementClickCustomer().

2 - There is an ecu id data at https://apsystemsema.com/ema/security/optmainmenu/intoLargeReport.action

3 - sunset attribute could be on or off

Buy me a beer!