question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FR] Add config settings for new MQTT mini server

See original GitHub issue

Environment

  • ShellyForHASS release with the issue: 0.1.9.beta2
  • Last working ShellyForHASS release (if known): -
  • Home Assistant Core release with the issue: 0.109.6
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker

Describe the bug

Log trace about new MQTT mini server: port in use. Take care that I don’t have any other MQTT server in use, nor I need it.

Steps to Reproduce

Update to latest beta and check log

Expected behavior

No error in log

Screenshots

Traceback/Error logs

2020-05-19 17:25:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/shelly/__init__.py", line 185, in start_up
    pys.start()
  File "/usr/local/lib/python3.7/site-packages/pyShelly/__init__.py", line 129, in start
    self._mqtt.start()
  File "/usr/local/lib/python3.7/site-packages/pyShelly/mqtt.py", line 97, in start
    self._init_socket()
  File "/usr/local/lib/python3.7/site-packages/pyShelly/mqtt.py", line 103, in _init_socket
    sock.bind((self._root.bind_ip, 9955))
OSError: [Errno 98] Address in use

Additional context

Would be nice to have MQTT mini-server disabled by default, and enable it only when necessary in rodere to limit necessary resources.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hakanacommented, May 20, 2020

TThe built-in MTT server is not a full MQTT server and does not affect the performance if not used. This was just a test and we will add configuration to enable it etc. I also looking to use the integrated MQTT part of HA.

1reaction
hakanacommented, May 19, 2020

Then that is the reason. You can downgrade one instance to b1 for now.

Yes will add settings like that with default to off. I just want to see if it working for others than me first.

Can you change title to some thing like; Add settings for mqtt?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring MQTT Server (Broker) - Cradlepoint Connect
Under System > IoT, click on MQTT Server Connection. · Click ADD under Endpoint Configuration. · Enter the Name, Topic, and Router End...
Read more >
How to configure an MQTT Mosquitto broker and enable user ...
Check out this video to learn how to set up your own MQTT broker!There's a new 2022 version available here:https://youtu.be/hyJhKWhxAxACheck ...
Read more >
Store Messages From Mosquitto MQTT Broker Into SQL ...
1. Processor: Dual Core 1.0GHz Memory: 512MB DDR3 RAM Storage: Up to 2x 10TBUSB: 2x USB3.0 Network: 1x Gb port OS: DiskStation Manager (DSM6.1) 2. Upon sucessful...
Read more >
QT MQTT secure connection - Stack Overflow
I have setup a local mosquitto server; I can connect to it using QT (5.15.0) MQTT without SSL. Trying to configure it with...
Read more >
Publish and Subscribe to a Channel Using Desktop MQTT Client
Configure the connection profile for the desktop MQTT client. 1) Click New Connection, or the plus (+) icon in the laft pane. ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found