Giter Club home page Giter Club logo

Comments (13)

RafhaanShah avatar RafhaanShah commented on June 12, 2024 1

Seems to be working now with "mqttsecure": "insecure". Thanks!

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

@all-contributors please add RafhaanShah to ideas

from zigbee2mqttassistant.

allcontributors avatar allcontributors commented on June 12, 2024

@carldebilly

I've put up a pull request to add @RafhaanShah! 🎉

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

Fixed! Done with PR #82. Please try it!

To use it, you just need to replace the true by "insecure" for the MqttSecure setting.

Note: the fix is present in Zigbee2MqttAssistant v0.2.0-dev.150+

from zigbee2mqttassistant.

RafhaanShah avatar RafhaanShah commented on June 12, 2024

That was super quick, thanks a lot for making the change and adding me to the contributors!

from zigbee2mqttassistant.

RafhaanShah avatar RafhaanShah commented on June 12, 2024

Hey, not sure if I'm mis-configuring something but I still seem to be getting the same error, I'm using v0.3.83 of the add-on, here's my config:

{
  "settings": {
    "mqttserver": "addon_core_mosquitto",
    "mqttusername": "****",
    "mqttpassword": "****",
    "mqttsecure": "insecure",
    "mqttport": 8883,
    "basetopic": "zigbee2mqtt",
    "HomeAssistantDiscoveryBaseTopic": "homeassistant",
    "lowbatterythreshold": 25
  }
}

from zigbee2mqttassistant.

kruemelro avatar kruemelro commented on June 12, 2024

I have the same error. I run it as a Docker Container and configured it with:

-e Z2MA_SETTINGS__MQTTSECURE=INSECURE

But it gives me the same error as mentioned by Rafhaan above.

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

Should work. Please try something...

This configuration should be case insensitive, but maybe it's not. Please try the following:

-e Z2MA_SETTINGS__MQTTSECURE=Insecure

from zigbee2mqttassistant.

kruemelro avatar kruemelro commented on June 12, 2024

It seems case sensitive is not the problem. It dont make a difference if i start with:

  • INSECURE
  • Insecure
  • insecure

The Error only changes wenn i start with Z2MA_SETTINGS__MQTTSECURE=false. True and Insecure produces the same error.

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

Do you have an easy way to help me to reproduce this problem? Could be a docker-compose file, anyway...

from zigbee2mqttassistant.

kruemelro avatar kruemelro commented on June 12, 2024

No cause you have to generate all the certificate stuff. But i've found this:
https://github.com/mchestr/Secure-MQTT-Docker

I think its the fastest way to get a tls enabled mqtt up and running

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

To develop it I tried https://cloudmqtt.com/ by using just the IP address on the TLS port (instead of the correct name) to get a TLS negociation error.

Ok let me try this. It will have time later this week for that.

from zigbee2mqttassistant.

Turiok avatar Turiok commented on June 12, 2024

Hi,

I tried this your example with the last dev version for hass. 0.341. But I always have the error :

warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
      Unable to connect to MQTT server addon_core_mosquitto.
MQTTnet.Exceptions.MqttCommunicationException: The remote certificate is invalid according to the validation procedure.

How do you specify the trusted ca?

from zigbee2mqttassistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.