Hi
I’ve been trying to integrate a pow 16 flashed with tasmota.
As a broker I’m using mosquitto and I think it’s working fine:
1556036167: |-- url=http://127.0.0.1:8080/superuser 1556036167: |-- data=username=mqtt_user&password=&topic=&acc=-1&clientid= 1556036167: |-- aclcheck(mqtt_user, tele/%topic%Sonoff/INFO2, 2) SUPERUSER=Y by http 1556036167: |-- Cached [2FCC0FDEC83E8099F41583CDC7288D58468FB27C] for (client id not available,mqtt_user,2) 1556036167: |-- mosquitto_auth_acl_check(…, client id not available, mqtt_user, tele/%topic%Sonoff/INFO3, MOSQ_ACL_WRITE)
anyway the config is this.
in the mosquito hassio page:
{
“logins”: [
{
“username”: “mqtt_user”,
“password”: “mqtt_password”
}
],
“anonymous”: false,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
on the configuration.yalm
mqtt:
broker: core-mosquitto
username: mqtt_user
password: mqtt_password
discovery: true
discovery_prefix: homeassistant
I have these files:
- Create
/share/mosquitto/acl.conf
with the contents:
acl_file /share/mosquitto/accesscontrollist
- Create
/share/mosquitto/accesscontrollist
with the contents:
user mqtt_user
topic #
on the pow 16
I think the log on hassio mosquitto configuration page says that it has found the device:
and on the console page I also think it is connected:
17:22:34 HTP: Console
17:22:46 HTP: Main Menu
17:22:50 HTP: Configuration
17:22:51 HTP: Configure MQTT
17:24:07 MQT: tele/%topic%Sonoff/STATE = {“Time”:“2019-04-23T17:24:07”,“Uptime”:“0T00:05:23”,“Vcc”:3.500,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Routerzinho”,“BSSId”:“00:06:91:A9:7D:C0”,“Channel”:1,“RSSI”:80}}
17:24:07 MQT: tele/%topic%Sonoff/SENSOR = {“Time”:“2019-04-23T17:24:07”,“ENERGY”:{“TotalStartTime”:“2019-03-16T17:35:54”,“Total”:0.003,“Yesterday”:0.000,“Today”:0.000,“Period”:0,“Power”:0,“ApparentPower”:0,“ReactivePower”:0,“Factor”:0.00,“Voltage”:0,“Current”:0.000}}
17:28:53 APP: Serial logging disabled
17:29:07 MQT: tele/%topic%Sonoff/STATE = {“Time”:“2019-04-23T17:29:07”,“Uptime”:“0T00:10:23”,“Vcc”:3.500,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Routerzinho”,“BSSId”:“00:06:91:A9:7D:C0”,“Channel”:1,“RSSI”:80}}
17:29:07 MQT: tele/%topic%Sonoff/SENSOR = {“Time”:“2019-04-23T17:29:07”,“ENERGY”:{“TotalStartTime”:“2019-03-16T17:35:54”,“Total”:0.003,“Yesterday”:0.000,“Today”:0.000,“Period”:0,“Power”:0,“ApparentPower”:0,“ReactivePower”:0,“Factor”:0.00,“Voltage”:0,“Current”:0.000}}
17:34:07 MQT: tele/%topic%Sonoff/STATE = {“Time”:“2019-04-23T17:34:07”,“Uptime”:“0T00:15:23”,“Vcc”:3.485,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“Routerzinho”,“BSSId”:“00:06:91:A9:7D:C0”,“Channel”:1,“RSSI”:76}}
17:34:07 MQT: tele/%topic%Sonoff/SENSOR = {“Time”:“2019-04-23T17:34:07”,“ENERGY”:{“TotalStartTime”:“2019-03-16T17:35:54”,“Total”:0.003,“Yesterday”:0.000,“Today”:0.000,“Period”:0,“Power”:0,“ApparentPower”:0,“ReactivePower”:0,“Factor”:0.00,“Voltage”:0,“Current”:0.000}}
The hassio messages reports that something has been found:
but I can’t seem to find any device:
Does anyone know what is missing or wrong?
Thanks in advance