KmanOz / KmanSonoff

Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant / mqtt
MIT License
282 stars 39 forks source link

Problems to connect Home assistant 0.56.2 #1

Closed juanredondo closed 6 years ago

juanredondo commented 6 years ago

Problems here to connect 0.56.2 (last, i think) version of Home Assistant. Last version of repository manOz/KmanSonoff and the last version of the Mqtt library Imroy/pubsubclient

Mi broker config

mqtt: port: 1883 client_id: home-assistant username: homeassistant password: welcome keepalive: 60 protocol: 3.1.1

Sonnof config:

define MQTT_SERVER “192.168.0.3” // Your mqtt server ip address

define MQTT_PORT 1883 // Your mqtt port

define MQTT_TOPIC “home/sonoff/caldera/1” // Base mqtt topic

define MQTT_USER “homeassistant” // mqtt username

define MQTT_PASS “welcome”

Sonoff log:

-------------------- KmanSonoff_Basic_v2.00 ------------------

UID: Sonoff_F9A22E Connecting to lowi3B00 Wifi . . . . . . DONE IP Address is: 192.168.0.160 Connecting to 192.168.0.3 Broker . . . .

Never goes further and after 5 minutes or so

Connecting to 192.168.0.3 Broker . . . . . . FAILED!

mqtt broker connection . . . . . . . . . . LOST

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v3de0c112 ~ld ⸮

Home Assistant log:

2017-11-02 11:57:19 INFO (MainThread) [hbmqtt.broker] Connection from 192.168.0.160:1070 on listener ‘default’ 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] deleting session Session(clientId=Sonoff_F9A22E, state=new) subscriptions 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] deleting existing session (Session(clientId=Sonoff_F9A22E, state=new), <hbmqtt.mqtt.protocol.broker_handler.BrokerProtocolHandler object at 0x6613f530>) 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] Keep-alive timeout=92 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker.plugins.packet_logger_plugin] <-in-- ConnectPacket(ts=2017-11-02 12:25:43.776754, fixed=MQTTFixedHeader(length=49, flags=0x0), variable=ConnectVariableHeader(proto_name=MQTT, proto_level=4, flags=0xc2, keepalive=90), payload=ConnectVariableHeader(client_id=Sonoff_F9A22E, will_topic=None, will_message=None, username=homeassistant, password=welcome)) 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker.plugins.auth_file] No hash found for user 'homeassistant' 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker.plugins.auth_anonymous] Authentication success: config allows anonymous 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] 'packet_logger_plugin' plugin result: None 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] 'auth_anonymous' plugin result: True 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] Authentication failed due to 'auth_file' plugin result: False 2017-11-02 12:25:43 DEBUG (MainThread) [hbmqtt.broker] 'broker_sys' plugin result: None

KmanOz commented 6 years ago

Does the previous version connect?

juanredondo commented 6 years ago

Previous version not connect either. The problem solved installing Mosquitto server instead of embebed mqtt server.

El vie., 3 nov. 2017 a las 6:37, KmanOz (notifications@github.com) escribió:

Does the previous version connect?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/KmanOz/KmanSonoff/issues/1#issuecomment-341625888, or mute the thread https://github.com/notifications/unsubscribe-auth/AG6bxRGqCKdpmLX7E6NfV1TcrAU3mbq9ks5syqamgaJpZM4QPpyj .

KmanOz commented 6 years ago

OK will close this then