MYPV integration started

I have released a basic integration for MYPV devices like AC-Thor and ELWA of MyPV.

Found here

Not yet listed in HACS, cause I did not find how to do so.

4 Likes

Looking forward to a myPV integration. What functionalities will it have? Can I use information within home assistant to control the myPV-heater (for example for heating with PV-surplus)?
Thanks

I is already working Integration for the products of MYPV
It has currently no switches or set able sensors. It is only monitoring at the moment.

1 Like

Hi zauberertz,

how are you?
The plan is to use the data from my P1-port-homewizzard-thingy to be able to measure the excess solar power generated and send the data to an AC-THOR.
The AC-THOR will stepless heat the boiler.
Is this possible with your code?
In this way it is not necessary to buy the MYPV power meter.

Thankyou
Henk

I just installed this integration for my AcThor9s.
But all sensors show as “unavailable”.

In the log it says:

Logger: custom_components.mypv.sensor
Source: custom_components/mypv/sensor.py:65
Integration: MyPV AC-THOR and ELWA (documentation)
First occurred: 21.09.24 (860 occurrences)
Last logged: 21.31.18

‘NoneType’ object is not subscriptable

My problem was solved by contacting MyPV - They opened op for the newest firmware and now everything is good.
Thanks :slight_smile:

Hello, is there any chance the integration of elwa is working sometime? I will be very interested to have the possibility of making automations (just simple, on off ) with the elwa e.
Thanks in advance

In general the integration might already works with a ELWA cause the API is not very different. as I do not own such a device I’ll relay on community support for completing the integration.

It is still not in HACS? I just installed a ACTHOR 9S with 9kW Heater. I’m wondering if i can monitor it with your integration.

Cheers

As I own a Acthor, this should work cause the are very close API vise.
Please let me know if you miss values.

hey :slight_smile: do you have a hint for me, how to get the integration working?
I have an AC ELWA-E and would like to monitor it … and maybe control it :slight_smile:

thanks and br, Luitner

Can you provide me the data JSON and your firmware version? I do not own a elwa therefore I can not test it. Are you willing to volunteer?

Hi, I’m new to Home Assistant and want to integrate my ACTHOR 9s and ELWA-E mainly to get / read the power measurements. I can see the MyPV AC-Thor in the HACS integration list. But the only sensor / entity I get is “update.mypv_ac_thor_update”. Any hints? Thanks, Simon

I guess I’ve figured out what was missing: settings → Devices → ADD DEVICE → Set up a new integration → search for mypv → select MyPv AC-Thor and ELWA → choose which sensors to show…
So far it works perfectly :slight_smile:

1 Like

Hi!

I wanted to use HA to get my Smappee energy measurements of consumption and PV production and use these to control the heat output of my MyPV ELWA-2 according to excess PV production. Has anyone done this, or sth similar, already?

Hello everyone,

this sounds like a really nice integration in the making. I have an my-PV AC ELWA-E and it is connected to a SMA Sunny Home Manager 2.0, which controls heating power of the ELWA according to excessive power from the solar panels.
Thus I am mostly interested in reading the sensor values from the ELWA and use them for monitoring in HA.
The easiest way for me was to use the json data that is send by the ELWA at any time. If you want to have a look at this data, just use “http:// ip-of-ELWA /data.jsn”. From this, I used the RESTful Sensor integration to read the data from the json an use it as sensor in HA. I then additionally used the integration integration to get the total consumed energy from the power value.
Let me know, if anyone is interested in more details.

1 Like

Hi Thomas,
sounds good. I am a HA newbee but today I sucessfully managed to setup my HA and integrated my BatterX PV system with all necessary parameters. Means 50% of the job is done :grinning:. I plan to buy the ELWA-E especially due to the flexibility of 0 … 3000 Watt heating → following your use case to heat the water in excessive solar cases. ELWA-E supports Modbus-TCP … but I am still confused how to intergate in HA.
Adding the available parameters to HA seems to work based on your experiences … but how can I give HA the steering of ELWA-E “start” and “stop” of water heating with respective power set (0 - 3000 Watt) … based on the available “overpower” from the roof ?
Is there anyone who has an idea if and how that works ?

On/Off I am doing by switching on/off by a Shelly 1PM, related to excess reported by Victron CerboGX , connected to an EM24 meter

Thanks @zauberertz for your work on integrating the mypv elwa-e system into the homeassistant.

I can now read every metric except for power. The identity is displayed but it does not contain a value.
Have I configured something incorrectly here, or is this a bug?

Hi everyone,

let me contribute my findings to integrate the MY-PV WiFi Meter. Reference to product: my-PV

The MY-PV WiFi smart meter can be accessed via modbus. Therefor you need to do the following:

  1. Add modbus: !include modbus.yaml to your configutation.yaml
  2. Populate the modbus.yaml file with the values you need. Additional values are listed in the data sheet on the my-pv wifi meter product page. Additional explanation of the config below in the config:
modbus.yaml
# Config modbus MYPV-Meter
- name: "MYPV-Meter"
  type: tcp
  host: 10.2.0.50 #IP of your smart meter
  port: 502
  retry_on_empty: true
  sensors:

# raw data from MYPV Smart Meter
# Combinded value cross phases L1 L2 L3
  - name: "MYPV-Meter Sum W"
    unique_id: mypv_sum_w
    count: 2 # length of the register --> product data sheet
    data_type: int32 # required for accurate values
    scale: -1 #adjust scale if you have other requirements e.g. custom brakets --> see product manual
    address: 32 #address of the reister(DEC)
    unit_of_measurement: W
    state_class: measurement
    scan_interval: 10 #in Seconds

# forward = EK
  - name: "MYPV-Meter Sum EK kWh"
    unique_id: mypv_sum_EK_kwh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 34
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800

# reverse = VK
  - name: "MYPV-Meter Sum VK kWh"
    unique_id: mypv_sum_VK_kwh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 36
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800

#*******************************************	
# Values phase L1 = phase A
#*******************************************

 # Watt - = from grid, + = to grid
  - name: "MYPV-Meter L1 W"
    unique_id: mypv_meter_l1_w_n
    count: 2
    data_type: int32
    scale: -1
    address: 2
    unit_of_measurement: W
    state_class: measurement
    scan_interval: 10

 # kWh Counter to grid forward
  - name: "MYPV-Meter L1 to grid kWh"
    unique_id: mypv_meter_l1_tog_kWh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 4
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800

 # kWh Counter from grid VK
  - name: "MYPV-Meter L1 VK kWh"
    unique_id: mypv_meter_l1_vk_kWh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 6
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800


#*******************************************	
# Values Phase L2 = Phase B
#*******************************************

 # Watt - = from grid, + = to grid
  - name: "MYPV-Meter L2 W"
    unique_id: mypv_meter_l2_w
    count: 2
    data_type: int32
    scale: -1
    address: 12
    unit_of_measurement: W
    state_class: measurement
    scan_interval: 10

 # kWh Counter to grid
  - name: "MYPV-Meter L2 to grid kWh"
    unique_id: mypv_meter_l2_tog_kWh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 14
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800

 # kWh Counter from grid VK
  - name: "MYPV-Meter L2 VK kWh"
    unique_id: mypv_meter_l2_vk_kWh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 16
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800


#*******************************************	
# Values Phase L3 = Phase C
#*******************************************

 # Watt - = from grid, + = to grid
  - name: "MYPV-Meter L3 W"
    unique_id: mypv_meter_l3_w
    count: 2
    data_type: int32
    scale: -1
    address: 22
    unit_of_measurement: W
    state_class: measurement
    scan_interval: 10

 # kWh Counter to grid
  - name: "MYPV-Meter L3 to grid kWh"
    unique_id: mypv_meter_l3_tog_kWh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 24
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800


 # kWh Counter from grid VK
  - name: "MYPV-Meter L3 VK kWh"
    unique_id: mypv_meter_l3_vk_kWh_n
    count: 2
    data_type: int32
    precision: 2
    scale: 0.00125
    address: 26
    unit_of_measurement: kWh
    state_class: total_increasing
    scan_interval: 1800

  1. In “Settings → Services & Devices → Helpers” configure two counters for the kwh IN and OUT
  2. Reload your settings