Dear community New to HA tried for several days to configue my Sonoff to work without luck, read the webpages and Drzzs stuff, tried to reinstall from scratch no joy! Can you please help point me in the right direction?
IP HA: 192.168.1.207
IP Sonoff: 192.168.1.20
Sonoff running Tasmota FW 6.5
Here is the configuration.yaml with broker is setup.
mqtt:
broker: 192.168.1.207
port: 1883
username: SAAS
password: A7SAD
discovery: true
switch:
platform: mqtt
name: “Sonoff Switch 01”
command_topic: “cmnd/sonoff/POWER”
state_topic: “stat/sonoff/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
oad 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v60000608
~ld
Sonoff console from termite;
00:00:00 Project sonoff Sonoff Version 6.5.0(release-sonoff)-2_3_0
00:00:00 WIF: Connecting to AP1 BTHub5-5G78 in mode 11N as sonoff-6050…
00:00:03 WIF: Connected
00:00:03 HTP: Web server active on sonoff-6050 with IP address 192.168.1.20
00:00:04 MQT: Attempting connection…
00:00:11 MQT: Connect failed to 192.168.1.207:1883, rc -2. Retry in 10 sec
00:00:22 MQT: Attempting connection…
00:00:28 MQT: Connect failed to 192.168.1.207:1883, rc -2. Retry in 10 sec
00:00:39 MQT: Attempting connection…
Mosquito Log;
1554329853: New client connected from 172.30.32.1 as f7d2c955-7f91-4354-97fb-46453ffc7758 (c1, k60, u’homeassistant’). 1554329856: |-- mosquitto_auth_acl_check(…, client id not available, homeassistant, stat/sonoff/POWER, MOSQ_ACL_WRITE) 1554329856: |-- Expired [596385BB0F90F7983F2FE24FC4C77BA2AF76F935] for (client id not available,homeassistant,4) 1554329856: |-- url=http://127.0.0.1:8080/superuser 1554329856: |-- data=username=homeassistant&password=&topic=&acc=-1&clientid= 1554329856: |-- aclcheck(homeassistant, stat/sonoff/POWER, 4) SUPERUSER=Y by http 1554329856: |-- Cached [596385BB0F90F7983F2FE24FC4C77BA2AF76F935] for (client id not available,homeassistant,4) 1554330357: Saving in-memory database to /data/mosquitto.db.
Any advise greatly appreciated…thanks