Ok I need your help. I have read and watched almost every video and post on setting up a tasmota sonoff basic in hassio with mosquito. Only place I see my switch is in Unused entities.
I’m ready to ditch hass.io LOL
Here’s what I got:
.2 = hassio / mqtt broker
.5 = sonoff basic
.101 = my laptop
configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
device_tracker:
- platform: nmap_tracker
hosts: 10.0.0.1/24
interval_seconds: 30
person:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
switch:
- platform: mqtt
name: Sonoff
unique_id: dc4f22f8a4c2
state_topic: “stat/sonoff/POWER”
command_topic: “cmnd/sonoff/POWER”
availability_topic: "tele/sonoff/LWT"
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: false
# Text to speech
tts:
- platform: google_translate
frontend:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
MQTT Configs
{
"logins": [
{
"username": "connect",
"password": "PASSWORD"
}
],
"anonymous": false,
"customize": {
"active": true,
"folder": "mosquitto"
},
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
}
MQTT ACL
user connect
user homeassistant
topic readwrite #
Logs
[06:54:59] INFO: Setup mosquitto configuration
[06:54:59] WARNING: SSL not enabled - No valid certs found!
[06:55:00] INFO: Found local users inside config
[06:55:00] INFO: Initialize system configuration.
[06:55:00] INFO: Initialize Hass.io Add-on services
[06:55:00] INFO: Initialize Home Assistant discovery
[06:55:00] INFO: Start Mosquitto daemon
1565178900: Loading config file /share/mosquitto/acl.conf
1565178900: mosquitto version 1.6.3 starting
1565178900: Config loaded from /etc/mosquitto.conf.
1565178900: Loading plugin: /usr/share/mosquitto/auth-plug.so
1565178900: |-- *** auth-plug: startup
1565178900: ├── Username/password checking enabled.
1565178900: ├── TLS-PSK checking enabled.
1565178900: └── Extended authentication not enabled.
1565178900: Opening ipv4 listen socket on port 1883.
1565178900: Opening ipv6 listen socket on port 1883.
1565178900: Opening websockets listen socket on port 1884.
1565178900: Warning: Mosquitto should not be run as root/administrator.
1565178902: New connection from 10.0.0.5 on port 1883.
[INFO] found connect on local database
1565178903: New client connected from 10.0.0.5 as DVES_F8A4C2 (p2, c1, k30, u'connect').
1565178909: New connection from 10.0.0.2 on port 1883.
1565178909: New client connected from 10.0.0.2 as homeassistant (p2, c1, k60, u'connect').
1565179007: Client homeassistant disconnected.
1565179023: New connection from 10.0.0.2 on port 1883.
1565179023: New client connected from 10.0.0.2 as homeassistant (p2, c1, k60, u'connect').
1565179285: New connection from 10.0.0.101 on port 1883.
[INFO] found connect on local database
1565179286: New client connected from 10.0.0.101 as lens_kOA0Wv6fgH7g61xcpsfgsA5n5NN (p1, c1, k120, u'connect').
1565179490: Client lens_kOA0Wv6fgH7g61xcpsfgsA5n5NN disconnected.
1565179490: New connection from 10.0.0.101 on port 1883.
1565179490: New client connected from 10.0.0.101 as lens_1I9lD7ZXSW7VFC5STvyc9mNJfu7 (p1, c1, k120, u'connect').
1565179616: Client homeassistant disconnected.
1565179642: New connection from 10.0.0.2 on port 1883.
[INFO] found connect on local database
1565179643: New client connected from 10.0.0.2 as homeassistant (p2, c1, k60, u'connect').
MQTT Lens was working but now it won’t publish since I enabled acl