ITEAD Sonoff switches and sockets - cheap ESP8266 Wifi+MQTT hardware

Thanks a lot @ThomDietrich. I will give it a try…

I use my own code but I had what looks like a similar problem. Each Sonoff needs a different Client Id.

1 Like

Absolutely right, I just saw that you are using a fixed client id. That will be a problem

1 Like

Hello!

Thank you @ThomDietrich, that’s exactly what I was looking for.

Best regards,
Davor

ok, must have slipped through, I used the same user_config.h for both and didn’t Change the clientID.
Thanks!

Hey Thomas,
Sonoff-Tasmota is a young project and the successor to Sonoff-MQTT-OTA-Arduino.

As you can read here, the main difference is, that you do not have to edit user_config.h any longer. In fact I’d recommend to not edit it at all! That’s why I left it out in the instructions as well :wink:

You should save yourself the trouble of messing around in a config file. All settings can be applied via the web interface. Even the wifi settings are easily done via WPS or SmartConfig. As for the MQTT topic and the device ID, in my case I’ve decided to go with the unique names already available (sonoff-CBF6BE, …).

One more think: Be sure to not use underscore inside the hostname. The configuration accepts it but it is not a valid character for hostnames and other devices like your FritzBox or other routers will hate you for it.

Hello @ThomDietrich!

I have one more question regarding Sonoff Touch. Since it doesn’t have integrated button which is used for both, entering programming mode and, after flashing, starting Wi-Fi manager, is it possible to start Wi-Fi manager by connecting and disconnecting GPIO0 and GND 4 times in a row?

Best regards,
Davor

¯_(ツ)_/¯

Hey @davorf I’d like to answer you for sure but I do not own a Sonoff Touch. I didn’t check in detail but looking at this thread the button might do the job: https://github.com/arendst/Sonoff-MQTT-OTA-Arduino/issues/261

However this thread is still “in process”. So maybe for now it’s easier to do your wifi configuration in user_config.h

why don’t configure once

#define WIFI_CONFIG_TOOL WIFI_MANAGER

1 Like

With a bit more MQTT experience and understanding, I think, it’s sufficient. Perhaps the only thing, you could add to the https://github.com/arendst/Sonoff-Tasmota/wiki/Initital-Configuration would be some hints as to periodic updates of the device?

A reminder to upgrade the firmware? I’ve created this page just a few days ago, maybe you want to add a sentence there? https://github.com/arendst/Sonoff-Tasmota/wiki/Upgrade

I tried to upload the new Firmware via the OTA-URL:


It said, it would update in a few seconds, but that didn’t happen. After downloading firmware.bin and uploading it in the dialogue it worked. Do you think, this is a bug, or do I miss something?

HTTPS is not supported. You have to download the file first, then upload as file.

@AndrewZ and I already came up with a better solution: https://github.com/arendst/Sonoff-Tasmota/wiki/openHAB#maintenance-actions
Pay attention, that we are using the URL found here for that. https://github.com/arendst/Sonoff-Tasmota/issues/19

I came across the maintenance part within openHAB also. I understand, that github only uses SSL and the sonoff-firmware isn’t capable of that. So, I think pointing the Manual updates to smadds URL would be the thing for that. We could set a link to your maintenance-approach. I did it in the wiki-Upgrade. But thing is, even if smadds’s solution is automatic, there’s no guarantee of having the latest Firmware on his Server, I also added that part.

Nice additon! I didn’t want to add smadds server in this article because it is not an official server by arendst. However, now that it’s there, I do not see any harm in it! Also mentioning the openHAB automation is nice advertisement :stuck_out_tongue_winking_eye: So once more: Nice work :wink:

I figured, since it was kind of official in the issue-discussion, it could be written there! :wink:

1 Like

It’s okay I think :wink: Btw, if you have other Itead products, please add them to the list of (tested) item definitions. Would be great to provide all kinds of Sonoff modules with a ready to go definition for new users. Who knows, maybe we can even attract new users by providing a complete wiki page over there :boom:

sorry, I only got those Sonoff Pows. No need for a WiFi switch or whatever, as I use KNX for that. Just didn’t saw the necessity to buy KNX actuators with built in power measure while planning the electric stuff! :wink:

Edit: Started another topic (here). :slight_smile:

Does anyone know if the Sonoff RF 433Mhz versions can be controlled directly with rfxcom for example?
(without wifi)

Thank you!