Custom Firmware to Sonoff Basic "more then one switches"

I successfully flash my Sonoff Basic which is working fine with Homeassistant, but an other one working only with a HTTP server not with MQTT server. custom flash was upload 100% without error with Arduino 1.8.2 and i used same sketch which i use with my first Sonoff. I just changed PROJECT name in user_config.h for my other sonoff device ( first sonoff name sonoff and other sonoff device name sonoff1) Please help me.

Cazzzpture

switch config

00:00:06 MQTT: Attempting connection...
17:46:07 mDNS: Query done with 0 mqtt services found
17:46:07 MQTT: Connect FAILED to 192.168.1.145:8183, rc -2. Retry in 10 seconds
17:46:17 MQTT: Attempting connection...
17:46:18 mDNS: Query done with 0 mqtt services found
17:46:18 MQTT: Connect FAILED to 192.168.1.145:8183, rc -2. Retry in 10 seconds
17:46:29 MQTT: Attempting connection...
17:46:30 mDNS: Query done with 0 mqtt services found
17:46:30 MQTT: Connect FAILED to 192.168.1.145:8183, rc -2. Retry in 10 seconds
17:46:30 RSLT: stat/sonoff/RESULT = {"POWER":"ON"}
17:46:30 RSLT: stat/sonoff/POWER = ON
17:46:31 RSLT: stat/sonoff/RESULT = {"POWER":"OFF"}
17:46:31 RSLT: stat/sonoff/POWER = OFF
17:46:34 RSLT: stat/sonoff/RESULT = {"POWER":"ON"}
17:46:34 RSLT: stat/sonoff/POWER = ON
17:46:35 RSLT: stat/sonoff/RESULT = {"POWER":"OFF"}
17:46:35 RSLT: stat/sonoff/POWER = OFF
17:46:42 MQTT: Attempting connection...
17:46:43 mDNS: Query done with 0 mqtt services found
17:46:43 MQTT: Connect FAILED to 192.168.1.145:8183, rc -2. Retry in 10 seconds
17:46:54 MQTT: Attempting connection...
17:46:55 mDNS: Query done with 0 mqtt services found
17:46:55 MQTT: Connect FAILED to 192.168.1.145:8183, rc -2. Retry in 10 seconds

Looks like you have configured the port to 8183 instead of 1883

you’re a genius :grinning: Thanks a lot. Thank you very very much. Problem solved

1 Like