Breina / PowerTagGateway

HomeAssistant integration for EcoStruxure gateways; SmartLink, PowerTag Link and Panel Servers.
MIT License
14 stars 7 forks source link

Support for A9MEM1580 #7

Closed tilentravnik closed 1 year ago

tilentravnik commented 1 year ago

In our setup, we are using several A9MEM1580 devices. It would be great to have them supported. Happy to send you one of the devices to include it into the integration.

Breina commented 1 year ago

Currently, the device is compatible, though not feature complete.

These are the ones that are currently missing:

Here's a brief list of what's missing;

If you would like me to implement them, please send a device over so that I can test with it locally.

Friedmann77 commented 1 year ago

Hi,

I also use 1 of these tools. Unfortunately I can't see the energy used in the energy consumption sheet :( Can you help me?

Breina commented 1 year ago

What do you mean with 'the energy consumption sheet'? Are you looking for one of the things as described above?

There is an entity for 'total energy', is that what you are looking for?

Friedmann77 commented 1 year ago

Hi,

I was thinking of the Homa Assistant "Energy" tab (Energy dashboard). I have an A9MEM1520 and an A9MEM1580 sensor. The 1520 works fine. For the 1580 I don't get partial energy data, so it doesn't show up on the chart.

Breina commented 1 year ago

Is just this entity missing, or the device all together? Can you check if you find it within the devices section?

image

Also please check that it's correctly configured in the PowerTag Link GUI.

Friedmann77 commented 1 year ago

I see it in the devices. The entity also exists, but takes on an "unknown" value. Other values (voltage, current, pf, etc.) are visible.

The partial energy is visible on the web interface of the data collection unit, it just doesn't come through to the Home Assistant. What am I doing wrong? Should I try to delete the device in HA and add it again?

Breina commented 1 year ago

It's not you. I haven't fully supported yours yet. The ones I use for testing is the first one, but yours uses a separate register; the last one.

image

I'll give it a shot to implement the above, though bear in mind that I can't test it myself.

Friedmann77 commented 1 year ago

Okay. Thank you very much for your help!

Breina commented 1 year ago

Alright I've pre-released v0.1.5. Please test and give feedback.

Friedmann77 commented 1 year ago

Hello!

I've overridden the files in the custom_components folder and restarted Home Assistant. This should be enough, or do I need to delete the gateway and add it again? The following values are still missing: partial energy (unknown), partial reactive energy received (unknown), total active energy (unknown), total energy (unavailable). Thank you for your efforts!

Breina commented 1 year ago

This should be enough, or do I need to delete the gateway and add it again?

Should be enough, specially since the entities that are giving you problems are new ones.

Let me check these for you, please hold on.

Breina commented 1 year ago

Partial energy

Does seem to work for me, though there can be gaps in the data sometimes. Is this broken on your A9MEM1520 or A9MEM1580 sensor, or both? It's possible that your A9MEM1580 doesn't support this one, as it has more detailed entities available.

image

partial reactive energy received

Might it be possible that your powertag just hasn't received any reactive energy? My code does look valid on this one.

total active energy

My bad, you should have been seeing this on your A9MEM1580. Fixed this one in v.0.1.6.

Fixing this one will enable reactive power, frequency and temperature for this PowerTag as well. :)

total energy

No longer used, please delete.

Friedmann77 commented 1 year ago

Thank you very much, everything is working fine. What do I owe you?

Breina commented 1 year ago

Nothing lol.

Though if you know someone inside Schneider, I've got some devices on my wish list that would help further development.

Our PowerTag Links are being discontinued end of this year, I'm looking to support its replacement but I can't justify the cost.

Friedmann77 commented 1 year ago

I'm afraid I don't know anyone at Schneider. I do have a friend who has a business relationship with them. If you need information, they might be able to help, but I can't promise. Thank you again.

Breina commented 1 year ago

I would already be great if your friend could connect me with someone on the inside. :)

Been getting the cold shoulder from the forums / regional sales.