Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Smartlink SI D #15

Open
D2702 opened this issue Jan 30, 2024 · 92 comments
Open

Compatibility Smartlink SI D #15

D2702 opened this issue Jan 30, 2024 · 92 comments

Comments

@D2702
Copy link

D2702 commented Jan 30, 2024

Is it also possible to use an Acti 9 Smartlink SI D gateway?
I saw in another topic that there was a possibility for a Smartlink SI B.

I certainly cannot add these automatically and manually at the moment.

@Breina
Copy link
Owner

Breina commented Jan 30, 2024

These ones? https://www.se.com/uk/en/product-range/64482-acti9-smartlink-si-d/44105740929-gateways

Yeah they're supported. Are you seeing any errors?

@D2702
Copy link
Author

D2702 commented Jan 31, 2024

Yes, this is it, it is an old type, not what is available now, it does have the latest firmware version (V2.4.6)
It does not work either automatically or manually.

I can find the errors below in the "home assistant.log"
Are there any places I should look?

2024-01-30 18:07:20.161 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop by custom integration 'powertag_gateway' at custom_components/powertag_gateway/soap_communication.py, line 42: services = wsd.searchServices(types=[QName(NAMESPACE_SCHNEIDER, LOCAL_NAME_GATEWAY_SERVER)]), please create a bug report at https://github.com/Breina/PowerTagGateway/issues
2024-01-30 18:07:20.286 WARNING (Thread-3) [daemon] could not find handler for: _handle_probe
2024-01-30 18:37:58.131 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus hub1 communication closed

@Breina
Copy link
Owner

Breina commented Jan 31, 2024

Ah I see.

Can you check that your web interface has this configured as such?

image

We should be able to get more logs through HomeAssistant through Settings > System > Logs, then search for powertag_gateway and click 'Load full logs', for example:

image

Please send me all of those logs, that should be more helpful.

@D2702
Copy link
Author

D2702 commented Feb 4, 2024

Hi,

Below is the configuration of the Smartlink.
Pic01

I get the following error when I want to connect to the Smarlink from HA.
Pic02

Unfortunately, I cannot find much in the log you requested. see below.
Pic03

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

Ah man I didn't log that error, that's on me. Sorry about that!

In custom_components/powertag_gateway/config_flow.py on line 169, please add logging.error(e) (indentation matters).

image

Then restart and check logs.

Is it possible that your Gateway is unreachable through the network?

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

I have adjusted the code.
The gateway is available from the network (located in the same subnet). I can also read this via a modbus client.

Below is the logging:
PIc04

Also an image of the TAG configuration:
Pic05

When I change the IP address of the modbus port in the gateway, I get an error below.
Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.100.31:502)]

This error also occurs immediately if the gateway is not reachable.
If this is accessible, it will take quite a while before I get the other error.

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

If this is accessible, it will take quite a while before I get the other error.

Yeah that's because we need to search for the synthesis table first;

image

So it's going through all 247 tables before throwing this error.

Can you please use your modbus client to check that this one exists on address 247? I use this first one to check we got the right one;

image
(reference: https://www.productinfo.schneider-electric.com/powertaglinkuserguide/powertag-link-user-guide/English/BM_PowerTag%20Link%20D%20User%20Manual_4af62430_T000501355.xml/$/TPC_SynthesisTableIdentificationREF_0000550649)

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

I think the "Smartlink SI D" doesn't have a synthesis table.
I can't find this anywhere in the manual. This is only stated in the manual of the "PowerTag Link Gateway".

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

Aaah ok! I get it. Yes.

Alright I know what to do, give me a moment to develop this for you.

Uploading manual for my own reference
DOCA0115EN-03.pdf

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

I see the option in the configuration menu, but when I click connect I immediately get an error.

Pic06

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

Alright thanks for testing. Added more logs and made one thing more resilient. Please report back.

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

Unfortunately, the error code is also still the same.

Pic07

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

I think the code didn't quite update, it must print some logging before the crash;

image

Can you see these in custom_components/powertag_gateway/config_flow.py?

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

Yes, I see.

Pic08

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

Ok thanks for clearing this up.

This one should log better;
https://github.com/Breina/PowerTagGateway/releases/tag/v0.2.2-alpha3

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

Pic09

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

@D2702
Copy link
Author

D2702 commented Feb 6, 2024

A step forward, but no tags are added.

Pic10
Pic11

@Breina
Copy link
Owner

Breina commented Feb 6, 2024

@D2702
Copy link
Author

D2702 commented Feb 7, 2024

Sorry... It seems the same.

Pic12
Pic13

@Breina
Copy link
Owner

Breina commented Feb 7, 2024

No, this is better. We're getting further :)

Hold on

@Breina
Copy link
Owner

Breina commented Feb 7, 2024

Btw 'Unknown' is I can't read the device's name. So it's going to be called Unknown. Please suggest a better default if you have one. :)

@Breina
Copy link
Owner

Breina commented Feb 7, 2024

@D2702
Copy link
Author

D2702 commented Feb 7, 2024

Same fault

Pic14

@Breina
Copy link
Owner

Breina commented Feb 7, 2024

Not the same fault, we're actually making great progress!

I'll fix these tomorrow.

@D2702
Copy link
Author

D2702 commented Feb 7, 2024

Ok, good night and thank you very much for checking this out!

@Breina
Copy link
Owner

Breina commented Feb 7, 2024

This might well be the last fix we needed! :)

https://github.com/Breina/PowerTagGateway/releases/tag/v0.2.2-alpha7

@D2702
Copy link
Author

D2702 commented Feb 7, 2024

Another step closer, I no longer receive any error messages. Only the power tags are not visible.
Do I need to configure anything else?

Pic15

@KingandQ
Copy link

KingandQ commented May 4, 2024

Thanks for the update.
I have numbered all units consecutively. (150…..163)
All 15 units have been found.

Only unit shown as “Unknown” (the A9XMWA20)
image

@KingandQ
Copy link

KingandQ commented May 4, 2024

OEPS!!!
After upgrade to version v0.3.0, and a restart:
All Entities of all units are “Unavailable”
image

@Breina
Copy link
Owner

Breina commented May 4, 2024 via email

@KingandQ
Copy link

KingandQ commented May 5, 2024

No problem, there seems to be light at the end of the tunnel………. 

Results after some testing:
Test-Environment:

  • First installed version 0.2.5
  • All Diveces where found and all there entities except the entities for A9XMWA20
    Live-Environment:
  • Reloaded version 0.2.5 (so donwgraded from 0.3.0)
  • All devices where found and all there entities except the entities for AX9MWA20
    Test-Environment:
  • Upgrade to 0.3.0
  • All Diveces where found and NON of the entities.

Unfortunately, no more time to filter all power tag lines from the logging.

@Breina
Copy link
Owner

Breina commented May 22, 2024

Unfortunately, no more time to filter all power tag lines from the logging.

@KingandQ any chance you can get me those logs still? I don't immediately see what I missed in the upgrade.

@KingandQ
Copy link

Due to a short holiday I was not able to respond sooner.
The attached document is the logging of the test environment from 5-5-2024.
(Test_Envr_V0_3_0.docx)
Test_Envr_V0_3_0.docx

@Breina
Copy link
Owner

Breina commented May 24, 2024

Alright I got that fixed for you on v0.4.1. :)

Hope everything works now?

@KingandQ
Copy link

Unfortunately not yet.
Logging after installation of V.04.01
Test_Envr_V0_4_1.docx

@Breina
Copy link
Owner

Breina commented May 24, 2024

In the full logs, can you please show me what happens right after this line?

Error while setting up powertag_gateway platform for sensor

The HA filtering eats part of the stacktrace. >.<

@Breina
Copy link
Owner

Breina commented May 24, 2024

To be clear, talking about this part:

image

@KingandQ
Copy link

A screenshot without a filter:

image

@Breina
Copy link
Owner

Breina commented May 24, 2024

Thanks! Fixed this one as well. :)

Please check out 0.4.2. That should do it I think.

@KingandQ
Copy link

image

@Breina
Copy link
Owner

Breina commented May 25, 2024

How about v0.5.0?

@KingandQ
Copy link

Thanks for the update.

A Big step forward.
All units are found but some data is still missing.
Version 0.2.0 is OK.

Version 0.5.0:

  • Temperature in: F (Maybe this is an environment setting?)
  • 3 times: Unavailable
image

@Breina
Copy link
Owner

Breina commented Jun 2, 2024

Temperature is indeed your config, we receive them as Celcius.

Alarm valid has been removed because I deemed it useless and needed work. You may remove this one.

Active power phase Phase.A has been renamed to Active power phase A, does it not appear for you? Maybe try another restart or reconfig?

Partial energy should be the same as Partial energy delivered and received right? There really should be an entity that is available for this.

@KingandQ
Copy link

KingandQ commented Jun 2, 2024

The latest version installed on the live environment today.
It seems that all data retrieved from all 14 units are displayed correctly.

Regarding: A9XMWA20
I don't know if this is all that can be displayed:

  • Datetime
  • Status
image image

@Breina
Copy link
Owner

Breina commented Jun 2, 2024

Glad to hear! :)

It should also display hardware version, firmware version and serial number in device info. The status has an extra attribute showing what's wrong when something is wrong. And that's literally everything that your device exposes through modbus. It's the same for the Panel Server even, that's everything.

@KingandQ
Copy link

KingandQ commented Jun 9, 2024

Today I put all entities of all units on a dashboard
The following enteties all show the value: Unknown
image
image

Is this as expected?

@Breina
Copy link
Owner

Breina commented Jun 12, 2024

Ah no, I hoped they did work. I'll fix them for you.

@Breina
Copy link
Owner

Breina commented Jun 22, 2024

Did some fixes in in v0.5.1, please try again. The 'phase A' ones will become unavailable, as they're not supported by Smartlink.

@KingandQ
Copy link

After install V0.5.1
image

@Breina
Copy link
Owner

Breina commented Jun 22, 2024

Ah man I was hoping the 'Unknown' ones would have worked. :( They are only available for NSX devices it seems.

image

Please confirm that your device isn't an NSX one? I'll disable those for non-NSX ones in the next round.

The Unavailable ones can be removed, those aren't supported.

@KingandQ
Copy link

First of all, thanks again for all your efforts to resolve this.

Below my hardware-configuration as in my previous post:

  • 1 * Acti9 SmartLink
  • 12 * A9MEM1560
  • 1 * A9MEM1542
  • 1 * A9MEM1541

Since they don't appear in your overview, I assume these are not NSX devices.

Is it recommended to remove all "Unavailable" and all "Unknown" entities, or does that happen automatically with the next update?

@Breina
Copy link
Owner

Breina commented Jun 23, 2024

Ah right, I should have figured.

The "Unavailable" ones mean that the entity is no longer provided by this integration, and must be removed manually. I can't do this for you as far as I'm aware.

The "Unknown" ones mean that this integration tries to get its data, but it's not able to. You can't remove this one yet, but next release, I'll make them become "Unavailable" so you can clean them up.

@KingandQ
Copy link

Some additional info.

I have 5 modules of type A9DG3616.
2 out of 5 show power factor : Unknown

What needs to be done to correct this?

@Breina
Copy link
Owner

Breina commented Jul 27, 2024

Cleaned up those Unknown entities for you now, these will become Unavailable, which you can remove now.

For the power factor;

Is there a difference in firmware version between the devices? For example, device temperature only becomes available from firmware versions 004.xxx.xxx, it's possible that power factor has a similar threshold.

Otherwise, can you find any differences between its setup of your device configuration? Can you find any problem in the logs about this? This entity also uses 'Power factor sign convention', perhaps that requires configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants