Skip to content

TLS-Support added - #104

Closed
casoe1 wants to merge 1 commit into
miaucl:masterfrom
casoe1:master
Closed

casoe1 wants to merge 1 commit into
miaucl:masterfrom
casoe1:master

Conversation

@casoe1

@casoe1 casoe1 commented Mar 30, 2026

Copy link
Copy Markdown

Hi there,

I have added TLS support for your project. I'm not a developer but I took aid in using perplexity. It works fine with docker on my 2nd Raspberry Pi to transfer telemetric data to my Home Assistant setup. Even mTLS works fine.

I have not updated the documentation yet. I would do that if this is merged.

Hope that helps.

Best regards
Carsten

@miaucl

miaucl commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Is it backwards compatible? I have this on my list for a moment, but no time until know, therefore it would be a nice addition.

@miaucl miaucl changed the title TLS-Support added (with the help of Perplexity) TLS-Support added Apr 1, 2026
@casoe1

casoe1 commented Apr 1, 2026

Copy link
Copy Markdown
Author

Is it backwards compatible? I have this on my list for a moment, but no time until know, therefore it would be a nice addition.

I'm not sure what you mean by that. I forked the master and added the code in a branch based on the latest master.

@miaucl

miaucl commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Sorry, without testing on my side I just wanted to make sure leaving out all tls configs, it still works. As I do not have a setup with TLS ready for now, I cannot really test your PR but only ensure that the existing functionality is not broken.

I will trust your change that it works with TLS and come back to you, when there is an Issue regarding it ;)

@miaucl
miaucl self-requested a review April 1, 2026 18:48

@miaucl miaucl left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But, as you might see, there are 2 checks failing, which means you did not run the linter and formatter. Please have a look at the Readme.md, how to do that.

@casoe1

casoe1 commented Apr 1, 2026

Copy link
Copy Markdown
Author

Sorry, without testing on my side I just wanted to make sure leaving out all tls configs, it still works. As I do not have a setup with TLS ready for now, I cannot really test your PR but only ensure that the existing functionality is not broken.

I will trust your change that it works with TLS and come back to you, when there is an Issue regarding it ;)

Okay, fair enough. For me it works since I'm currently migrating all my MQTT communication to TLS with no exceptions. I will have a look at the linter and formatter stuff.

@miaucl

miaucl commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Also, there is already another PR for this, might be worth to have a look at it

#72

@casoe1

casoe1 commented Apr 1, 2026

Copy link
Copy Markdown
Author

Also, there is already another PR for this, might be worth to have a look at it

#72

The other code looks better than mine. As I told you I was using AI to help me add this feature since I did't see the other PR. Just wanted to contribute back. The other implementation also has documentation and looks more comprehensive in terms of setting default values. I have fixed the linter stuff and the trailing whitespaces but you should give the other PR a go. I would happily switch to the implementation by sholdee then.

@casoe1

casoe1 commented Apr 1, 2026

Copy link
Copy Markdown
Author

Okay, the other code doesn't work on my machine when I build the container. The error is caused by an incompatibility issue between linux2mqtt and the installed version of psutil. I would need to have a much more details look at the code to fix this. If sholdee is not responding I could have a look afte rthe Easter break.

@miaucl

miaucl commented Apr 1, 2026

Copy link
Copy Markdown
Owner

No hurry from my side, take your time.

It is also what I tought, it would be better to build on his PR with already some things in place.

@miaucl

miaucl commented May 3, 2026

Copy link
Copy Markdown
Owner

duplicate #72

@miaucl miaucl closed this May 3, 2026
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

Successfully merging this pull request may close these issues.

2 participants