Skip to content
dneprojectsPublic

About

Home Assistant custom integration for myPV devices

Topics

Resources

Stars

51 stars

Watchers

7 watching

Forks

Repository files navigation

myPV

Home Assistant Component for myPV

Home Assistant Marketplace Current version

Installation

myPV is listed in the Home Assistant Marketplace.

  1. Open the Marketplace from Settings, search for myPV and install it.
  2. Restart Home Assistant when asked.
  3. Devices on the same network are detected and offered under Settings → Devices & Services; otherwise add myPV there and enter the device's IP.

Configuration

Usually, devices get detected automatically if they operate in the same subnet as the Home Assistant host. However, if a device could not be detected, a manual entry of the ip is via UI still supported. Sensor values are polled every 10 seconds. This interval is fixed and not configurable, as required by the Home Assistant integration rules.

Features

The myPV custom integration works locally in the home network utilizing the http api. So it doesn't need any login.

  • Automatic discovery of devices.
  • The integration is written to support multiple devices. Meanwhile, it has beeny tested with ELWA, ELWA 2, AC-THOR 1, AC-THOR 9s, and SOLTHOR-DC. For multiple devices, please use the configuration step with a different IP address.
  • It offers binary sensors and sensors for all data points provided by the myPV devices.
  • The heating power can be set manually by an input number between 0 and 3000 W (3600 W for ELWA 2, 9000 W for AC THOR 9s). This will turn on the heater for a predefined time period (number.control_value_timeout). If the power value (usually based on the surplus of collected solar power) is set by an automation repeatedly within that period, a continuous control can be achieved.
  • Alternatively, the device's own PID controller can do the regulating. The PID power value is not a setpoint but a measurement: it is the power at the grid connection point, positive for surplus and negative for power drawn from the grid, and the device adopts it as its surplus and regulates its heating power from it. This is the way to use a meter that myPV does not support directly but Home Assistant can read. It uses the same time period as the external control described above, and it has to be written repeatedly for the device's controller to follow it -- a single value is dropped again when the time period expires. It has to be a live measurement, and it has to include the device's own consumption. It regulates towards the target grid power configured on the device, not towards zero, so a small part of the surplus is left unused.
  • In order to enable both control entities, the control type has to be set to "html" via web or cloud setup. Otherwise, only sensor data points will be exposed as Home Assistant entities. The Boost mode, if enabled, works on a weekly schedule to maintain a given minimum temperature. It can be started manually by a button press (if enabled). It stops, if the temperature preset is reached.
  • Three energy consumption entities show the amount of spent energy per day, per month, or total. By means of an action called mypv.reset_energy_sensor each one of these cumulated values can be reset to zero.

Maintenance

This integration is actively maintained. If any problem occurs, please use the issues category on github to report it. You can also open an issue report if you have an additional feature request.

Credits

This integration is based on an implementation https://github.com/zaubererty/homeassistant-mvpv. Although it worked fine, the main feature, controlling the device by home assistant automations was not possible. So I totally rewrote the integration and added a lot of extensions. However, thanks to the work of zaubererty at this place!

About

Home Assistant custom integration for myPV devices

Topics

Resources

Stars

51 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages