-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to connect to mqtt broker #5
Comments
I have similar problem. Do you manage to solve this in config,yml? |
Unfortunately I never figured it out. Just recently though I stumbled upon the modbus module in ESPHome so I might give that a go since I have a few esp devices setup already. Would use less battery power too. It does seem to require a TTL to modbus convertor board though. |
Thanks a lot! |
I have the same issue. I believe it has to do with Mosquitto Broker not accepting anonymous login's any more. I added the credentials in the config.yml but with no effect. In the past I had the same issue with the "docker-voltronic-homeassistant" but ned-kelly fixed it and still runs perfectly. |
I also have the same issue. How do I add username and password. Just add those to the config file? |
my solution for this error was: docker-compose build |
the bushrangers/ha-epever-mqtt container is repeatedly restarting, my knowledge on this is very limited but I gather there's a connection issue to the broker based on the following logs:
Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client... Epever Tracer Poller for Home Assistant.Creating sensor: manufacturer PHP Fatal error: Uncaught PhpMqtt\Client\Exceptions\ConnectingToBrokerFailedException: [6] Establishing a connection to the MQTT broker failed: Connection refused: Not authorized. in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php:376 Stack trace: #0 /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php(147): PhpMqtt\Client\MQTTClient->performConnectionHandshake(NULL, NULL, false) #1 /opt/epever/client(166): PhpMqtt\Client\MQTTClient->connect() #2 /opt/epever/client(55): registerHATopic('manufacturer', '', 'solar-power') #3 /opt/epever/client(35): registerTopics() #4 {main} thrown in /opt/epever/vendor/php-mqtt/client/src/MQTTClient.php on line 376 Starting MQTT Client...
The mqtt broker is working for Frigate (installed HASS addon) and when testing using the mqtt explorer app. Is there somewhere I need to enter the user name and password for the broker in the config?
The text was updated successfully, but these errors were encountered: