Closed juhenriquez closed 3 years ago
I'm having the same issue.
1621452054: Saving in-memory database to /data/mosquitto.db.
1621453634: New connection from 172.30.32.1 on port 1883.
401: Unauthorized1621453635: Socket error on client <unknown>, disconnecting.
1621453667: New connection from 172.30.32.1 on port 1883.
1621453667: Socket error on client <unknown>, disconnecting.
1621453855: Saving in-memory database to /data/mosquitto.db.
One thing I noticed is your Mosquito config doesn't have the logins
logins:
- username: homeassistant
password: homeassistant
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
After lots of messing around I finally ready the documentation for the MQTT broker (Mosquitto broker) and found that the username can't be "homeassistant"...
So I created a new home assistant user called test then updated the configs for the broker and eufy with new user, restarted and it's working :-)
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Add-on: Eufy Home Assistant MQTT Bridge
Publish events as MQTT messages
-----------------------------------------------------------
Add-on version: 1.18.0
You are running the latest version of this add-on.
System: Home Assistant OS 5.13 (amd64 / qemux86-64)
Home Assistant Core: 2021.5.5
Home Assistant Supervisor: 2021.04.3
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[18:51:21] INFO: Exporting log level for nodejs: debug
[18:51:21] INFO: Symlinking data dir
[18:51:21] INFO: Running 'eval' commands
[18:51:22] INFO: Generating config.yml from options.json
[18:51:22] INFO: Image build with version 0.2.18
[18:51:22] INFO: starting original stuff...
> eufy-ha-mqtt-bridge@1.0.0 start /app
> NODE_ENV=production node --unhandled-rejections=strict index.js
info: Migrating the database... {"timestamp":"2021-05-24T17:51:25.162Z"}
debug: ---- EUFY INITIALIZE START ---- {"timestamp":"2021-05-24T17:51:25.194Z"}
debug: ---- Created classes... {"timestamp":"2021-05-24T17:51:25.196Z"}
debug: Refreshing devices... {"timestamp":"2021-05-24T17:51:25.198Z"}
info: Stored device: Doorbell (T8200N0020081AA3 - type: T8200) {"timestamp":"2021-05-24T17:51:27.179Z"}
debug: ---- Refreshed devices {"timestamp":"2021-05-24T17:51:27.181Z"}
debug: ---- Set up MQTT handler {"timestamp":"2021-05-24T17:51:27.182Z"}
debug: Subscribed to homeassistant/status {"timestamp":"2021-05-24T17:51:27.328Z"}
debug: ---- Connected to MQTT {"timestamp":"2021-05-24T17:51:27.329Z"}
debug: ---- Set up auto discovery {"timestamp":"2021-05-24T17:51:32.346Z"}
info: No credentials found -> register new... {"timestamp":"2021-05-24T17:51:32.348Z"}
debug: ---- Retrieved push credentials {"timestamp":"2021-05-24T17:51:38.458Z"}
debug: ---- Started push client {"timestamp":"2021-05-24T17:51:38.538Z"}
info: Registered Push Token {"response":{"code":0,"msg":"Succeed."},"timestamp":"2021-05-24T17:51:38.763Z"}
debug: ---- Registered push token {"timestamp":"2021-05-24T17:51:38.765Z"}
debug: Uploading new thumbnail for T8200N0020081AA3 from https://zhixin-security-eu.s3.eu-central-1.amazonaws.com/thumb/REMOVED {"timestamp":"2021-05-24T17:51:38.768Z"}
debug: Image validation isValid: true {"timestamp":"2021-05-24T17:51:39.145Z"}
debug: ---- Retrieved device thumbnails {"timestamp":"2021-05-24T17:51:39.149Z"}
debug: ---- EUFY INITIALIZE DONE! ---- {"timestamp":"2021-05-24T17:51:39.152Z"}
@supajason worked great thank a alot.
So basically I'm try to use Eufy doorbell to trigger my wemo light switches through MQTT integrations. Im using the following addon eufy-ha-mqtt-bridge while using the Official Home Assistant Add-on: Mosquitto broker This is the configuration for my Mosquito Broker.
and this is the configuration for my EUFY addon
I've also added the sensors into my config file as follows.
Don't mind the dlink_hnap which is working correctly.
This is the log for the Eufy Plugin
And this is the log for the mosquito broker:
From what I can see the plugin is connecting correctly to the Eufy account and is being able to communicate with the MQTT Broker, basically the issue boiling down to no communication by the device to HASS. As in the following image.