Coder Social home page Coder Social logo

Comments (4)

commentsonly avatar commentsonly commented on September 28, 2024

oh found out myself
On https://github.com/mak-gitdev/HA_enoceanmqtt at section "Home Assistant Addon Installation" in th esubsection "Configuration" is says:
host: localhost
port: 1883
user: my_user
pwd: my_password
but in the /addon-dev/run.sh
it looks for
host ... OK
port ... OK
username but user
password but pwd

this was the trick.
well part of it.
It also fails if one simply writed
host: 192.168.1.100
or
username: james
since it expects these to be within '' or ""
while when done so and accepted, next time viewed at the addon configuration the values do appear without quotes.

solved but not maked so so that Mark could validate and then close it.

from ha_enoceanmqtt.

mak-gitdev avatar mak-gitdev commented on September 28, 2024

Hi,

Thanks for spotting the issue when using an external broker.
I am surprised that it works for you when using username instead of user and password instead of pwd. Are you sure it works ?
In run.sh, you can see that username and password are used when retrieving internal broker parameters, which occurs when the mqtt_broker field is empty.

When using an external broker, only port is required to be into single/double quote. You can try and confirm.

Furthermore, you can see in run.sh that I wanted to prevent the addon to start when all the MQTT broker parameters are not defined (host, port, user and pwd).
This is in fact the real issue as you have not defined user and pwd but the addon started.

from ha_enoceanmqtt.

commentsonly avatar commentsonly commented on September 28, 2024

from ha_enoceanmqtt.

mak-gitdev avatar mak-gitdev commented on September 28, 2024

Fixed in the dev version.
Addon will not start unless all MQTT parameters are correctly set.

from ha_enoceanmqtt.

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.