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

Pow-K+ stops sending payload to MQTT broker after few hours #899

Open
yoabau opened this issue Jan 11, 2025 · 7 comments
Open

Pow-K+ stops sending payload to MQTT broker after few hours #899

yoabau opened this issue Jan 11, 2025 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@yoabau
Copy link

yoabau commented Jan 11, 2025

Describe the bug
Referring to bug described short after release of the firmware 2.3 last year
I made a new test this week in the hope that the bug was fixed meanwhile but the same problem occurs. The MQTT broker receives data but the device stops sending after few hours. The test started on the 7th of January and at 22: 28 and stopped on the 8th of January at 15:56. The LED blinks green and blue, but I can neither ping its static IP address nor access its web server. I need to unplug, wait 1min and the and plug it again before accessing web server again.

Screenshots
ref. attached data from MQTT broker for more info.

Hardware information:

  • Country: [Norway]
  • Meter: [Kamstrup, Model: 6841121BN243101040]
  • Encryption enabled [no]
  • AMS reader: [Chip: esp32s2 (160MHz), Pow-K+]

Relevant firmware information:

  • Version: [e.g. 2.3.9]
  • MQTT: [yes, SSL]
  • MQTT payload type: [JSON flat]
  • ENTSO-E API enabled: [yes]

ams_3203_264_6_device_t_variable_ANTYEZKXAX.csv

@ArnieO
Copy link
Contributor

ArnieO commented Jan 12, 2025

Sounds like it disconnects from your Wi-Fi?
Do you see any red error blinks on the device?
Any chance this could be due to an IP conflict?

@yoabau
Copy link
Author

yoabau commented Jan 13, 2025

@ArnieO :
I not sure if the ams reader is disconnecting from Wifi, but the LED flashes only blue and green, and not red.
There is unlikely an IP conflict, because I configured my router with 2 separate areas (DHCP and static), where only 3 devices use static IP for home automation.
But, when the ams reader is configured to communicate with my HomeAssistant's MQTT broker, there is no such communication failure. The ams reader sends data at regular interval without being disconnecting:

2025-01-13_10h21_55

@ArnieO
Copy link
Contributor

ArnieO commented Jan 13, 2025

OK, I see - and agree with you: This is unlikely to be an IP conflict.
The issue occurs while sending data to an external (cloud) MQTT broker (Ubidots).

Considering your old bug report (#738 (comment)) I see that @gskjold did not follow up in that thread - so it is possible that he has not investigated this any further; sorry for that.

You proposed in that thread to borrow us access to your credentials at Ubidots.
Could you email me ([email protected]) those credentials?
I will then ensure this is looked into and followed-up.

@avandorp
Copy link
Contributor

You could try using an MQTT bridge between the amsReader and Ubidots. The mosquitto broker e.g. has a bridge mode. Then you could easier analyze with mosquittos logs whether the amsReader stops sending MQTT messages or whether Ubidots stops accepting them.

@yoabau
Copy link
Author

yoabau commented Jan 14, 2025

You could try using an MQTT bridge between the amsReader and Ubidots.

That's a good idea, but I'm sure if this comment was ment to me or Utilitech?
The payloads between HA's MQTT broker (mosquitto) and Ubidots are different. Do you suggest to set up a new local MQTT broker with mosquitto set up as a bridge and publish with a flat JSON format?

@avandorp
Copy link
Contributor

You could try using an MQTT bridge between the amsReader and Ubidots.

That's a good idea, but I'm sure if this comment was ment to me or Utilitech? The payloads between HA's MQTT broker (mosquitto) and Ubidots are different. Do you suggest to set up a new local MQTT broker with mosquitto set up as a bridge and publish with a flat JSON format?

I'd use what you currently use as payload and just put a bridge in between.

@gskjold gskjold self-assigned this Jan 16, 2025
@gskjold gskjold added the bug Something isn't working label Jan 16, 2025
@gskjold
Copy link
Member

gskjold commented Jan 16, 2025

After some testing I suspect this is triggered by a memory leak. At least in my case the available memory keeps reducing until it suddenly stops working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants