Revision history for SonoffSetup2017


Revision [3108]

Last edited on 2018-04-28 16:44:52 by ZorrUno
Additions:
Ensure switch on Bridge is off in programming mode, Remember to switch it back on in use.
The button is onnected to D0... for programming/flashing hold in on power up.
Pic of the correct FTDI connections.
Note, I could not get programming work work on the headers in the middle... are they the same pins?? not sure - see photos (and links below) for the correct header location to use.
**Info on new RF Bridge Layout**
https://github.com/arendst/Sonoff-Tasmota/issues/1126
Deletions:
Ensure switch on Bridge is off, and button is D0 for programming
Info on new RF Bridge Layout: https://github.com/arendst/Sonoff-Tasmota/issues/1126


Revision [3107]

Edited on 2018-04-28 16:39:05 by ZorrUno [lots of rf bridge updates]
Additions:
==== Sonoff RF Bridge (2018 version)====
https://github.com/arendst/Sonoff-Tasmota/issues/1916
**Adding remotes and 433 devices to an RF Bridge**
Deletions:
====Correct Connections for FTDI====
Tested and working.
**Sonoff RF Bridge (2018 version)**
====Adding remotes and 433 devices to an RF Bridge====


Revision [3106]

Edited on 2018-04-28 16:36:25 by ZorrUno [lots of rf bridge updates]
Additions:
Info on new RF Bridge Layout: https://github.com/arendst/Sonoff-Tasmota/issues/1126


Revision [3105]

Edited on 2018-04-28 16:25:53 by ZorrUno [lots of rf bridge updates]
Additions:
- The UDev rules should be added to. Platform I/O suggests this (as root)
%%curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/scripts/99-platformio-udev.rules > /etc/udev/rules.d/99-platformio-udev.rules%%
http://docs.platformio.org/en/latest/faq.html#platformio-command-not-found-an-error-pkg-resources-distributionnotfound
- check serial data for IP of device and that it connects to wifi etc. This will help a lot if it isn't doing what you think it should.
====Adding remotes and 433 devices to an RF Bridge====
https://github.com/arendst/Sonoff-Tasmota/issues/1181
Essentially you go to the console (via the web interface) and type RfKey1 2 . The sonoff will beep once, then you press a button on the remote. The Sonoff will beep a couple of times.
Deletions:
- check serial data for IP of device and that it connects to wifi etc


Revision [3104]

Edited on 2018-04-28 15:57:14 by ZorrUno [lots of rf bridge updates]
Additions:
====Issues with USB serial====
====Setup the firmware before flashing====
- Update the user_config.h with wireless SSID, Password (as MINIMUM) and MQTT server details
- change the value of #define CFG_HOLDER - otherwise the values won't stick. Suggest incrementing by 1.
Deletions:
====Isues with USB serial====
====Setup the firmware & flash====
- Update the user_config.h with wireless SSID, Password and MQTT server details


Revision [3103]

Edited on 2018-04-28 15:01:59 by ZorrUno [lots of rf bridge updates]
Additions:
====Correct Connections for FTDI====
Tested and working.
**Sonoff RF Bridge (2018 version)**
Ensure switch on Bridge is off, and button is D0 for programming
Pins TDI: Blue GND, CTS (No connection) Orange VCC, Green (TXD), Yellow (RXD), DTR (No Connection)
Sonoff: Blue (GND), Yellow (TX), Green (RX), Orange (VCC 3.3v)
https://photos.app.goo.gl/EAVtb427VNELB9a33
** 4 Channel Switch**
https://photos.app.goo.gl/VJg2FZHWuzAYtyGM6


Revision [3010]

Edited on 2017-11-23 20:37:58 by ZorrUno [lots of rf bridge updates]
Additions:
====MQTT Example for 4 Channel====
Publish cmnd/sonoff-mollie-fan/power4 with a message of 1


Revision [2839]

Edited on 2017-09-11 23:08:21 by ZorrUno [lots of rf bridge updates]
Additions:
- subscribe to stat/sonoff/POWER (seems to need caps?)
Deletions:
- subscribe to stat/sonoff/power


Revision [2838]

Edited on 2017-09-11 22:35:21 by ZorrUno [lots of rf bridge updates]
Additions:
- Probably need to logout and in again to make this work
Later I had more permissions on this TTY and had to change permissions on this port
%%sudo chmod a+rw /dev/ttyUSB0%%


Revision [2837]

Edited on 2017-09-11 22:13:21 by ZorrUno [lots of rf bridge updates]
Additions:
- Open Project, click on the Sonoff-Tasmota-development folder
- in the Sonoff-Tasmota-development folder is a platformio.ini file. Click on it
Deletions:
- Open Project, click on the Sonoff-Tasmota-Master folder


Revision [2836]

Edited on 2017-09-11 22:10:58 by ZorrUno [lots of rf bridge updates]
Additions:
- Atom complained clang wasn't installed, needed to install in ubuntu
%%sudo apt-get install clang
%%


Revision [2835]

Edited on 2017-09-11 21:32:58 by ZorrUno [lots of rf bridge updates]
Additions:
- install packages, "platform-ide" (from within the Atom menus - recent versions... it may already be installed))
Deletions:
- install packages, "platform-ide" (from within the Atom menus)


Revision [2834]

Edited on 2017-09-11 21:31:31 by ZorrUno [lots of rf bridge updates]
Additions:
- install packages, "platform-ide" (from within the Atom menus)
Deletions:
- install packages, "platform-ide"


Revision [2833]

Edited on 2017-09-11 21:24:14 by ZorrUno [lots of rf bridge updates]
Additions:
%%sudo adduser $USER dialout%%


Revision [2832]

Edited on 2017-09-11 21:23:11 by ZorrUno [lots of rf bridge updates]
Additions:
- https://github.com/arendst/Sonoff-Tasmota/wiki/Hardware-Preparation


Revision [2831]

Edited on 2017-09-11 21:11:52 by ZorrUno [connection pins for FTDI]
Additions:
Pins TDI: Blue GND, Orange VCC, Green TXD, Yellow RXD
Sonoff: Tot to bottom: Blue (GND), Yellow, Green, Orange (VCC 3.3v)


Revision [2830]

Edited on 2017-09-09 14:43:54 by ZorrUno [spelling]
Additions:
Then, whenever mains is switched on, it turns on... and turn on time seems to be about half a second, so pretty much little difference noticeable between that and a normal switch. About 25 seconds later it will pick up the on/off value from mqtt server (if it is available)
Deletions:
Then, whenever mains is switched on, it turns on... and turn on time seems to be about half a second, so pretty mush little difference noticeable between that and a normal switch. About 25 seconds later it will pick up the on/off value from mqtt server (if it is available)


Revision [2829]

Edited on 2017-09-07 13:51:14 by ZorrUno [spelling]
Additions:
I can just chuck in a sonoff in a light circuit anywhere, and set it up (eg pull out a downlight and install a sonoff in-line). I use the existing main switch - and it works normally without any mqtt server running. Later I put some buttons in another flush box beside the mains switch (ELV buttons, connected to the sonoff, or a sonoff dev or NodeMCU etc), and cover the mains switch with a flip pdl plates. The new buttons just change the values in MQTT server.
Deletions:
I can just chuck in a sonoff in a light circuit anywhere, and set it up (eg pull out a downlight and install a sonoff in-line). I use the existing main switch - and it works normally without any mqtt server running. Later I put some buttons in another flush box beside the mains switch, and cover the mains switch with a flip pdl plates.


Revision [2828]

Edited on 2017-09-07 13:48:16 by ZorrUno [spelling]
Additions:
====Bulk Sonoff Order, August 2017====
https://docs.google.com/spreadsheets/d/1eKHTiDvcRtCvblBAWTz8rt6XeRTrIfBDK974giLYWFE/edit?usp=drivesdk


Revision [2827]

Edited on 2017-09-07 13:42:11 by ZorrUno [spelling]
Additions:
Once flashed, I set the 'startup mode' to be on, so it can be used as a normal switch. I didn't really have to worry about running buttons into its i/o.
Then, whenever mains is switched on, it turns on... and turn on time seems to be about half a second, so pretty mush little difference noticeable between that and a normal switch. About 25 seconds later it will pick up the on/off value from mqtt server (if it is available)
I can just chuck in a sonoff in a light circuit anywhere, and set it up (eg pull out a downlight and install a sonoff in-line). I use the existing main switch - and it works normally without any mqtt server running. Later I put some buttons in another flush box beside the mains switch, and cover the mains switch with a flip pdl plates.
Deletions:
Once flashed, I set the 'startup mode' to be on, so it can be used as a normal switch. I didn't really have to worry about running buttons into it's i/o. Then, whenever mains is switched on, it turns on... and turn on time seems to be about half a second. About 25 seconds later it will pick up the on/off value from mqtt server (if it is available)
I can just chuck in a sonoff in a light circuit anywhere, and set it up. I use the existing main switch - and it works normally without any mqtt server running. Later I put some buttons in another flush box beside the mains switch, and cover the mains switch with a flip pdl plates.


Revision [2826]

Edited on 2017-09-07 13:40:13 by ZorrUno [spelling]
Additions:
- - local mains isolation with the pdl switch (but covered so it isn't bumped)
- - lights useable with no mqtt and/or wifi running... with the following disadvantages:
- - ability to split lighting ccts in the ceiling space (no need to get into the mains flush box... just throw in more cable and another sonoff)
- - I can put a ceiling fan on the same isolation cct, but control it with sonoffs (using 4 channel)
Deletions:
- local mains isolation with the pdl switch (but covered so it isn't bumped)
- lights useable with no mqtt and/or wifi running... with the following disadvantages:
- ability to split lighting ccts in the ceiling space (no need to get into the mains flush box... just throw in more cable and another sonoff)
- I can put a ceiling fan on the same isolation cct, but control it with sonoffs (using 4 channel)


Revision [2825]

Edited on 2017-09-07 13:39:44 by ZorrUno [spelling]
Additions:
-
- local mains isolation with the pdl switch (but covered so it isn't bumped)
- lights useable with no mqtt and/or wifi running... with the following disadvantages:
- ability to split lighting ccts in the ceiling space (no need to get into the mains flush box... just throw in more cable and another sonoff)
..... obviously this only works with wifi/mqtt running though
- I can put a ceiling fan on the same isolation cct, but control it with sonoffs (using 4 channel)
Deletions:
- local mains isolation with the pdl switch (but covered so it isn't bumped)
- lights useable with no mqtt and/or wifi running... with the following disadvantages:
- ability to split lighting ccts in the ceiling space (no need to get into the mains flush box... just throw in more cable and another sonoff)
- can put a ceiling fan on the same isolation cct, but control it with sonoffs (using 4 channel)
..... obviously this only works with wifi/mqtt running though


Revision [2824]

Edited on 2017-09-07 13:37:59 by ZorrUno [updated sonoff real life tests]
Additions:
====Final Setup Test====
Once flashed, I set the 'startup mode' to be on, so it can be used as a normal switch. I didn't really have to worry about running buttons into it's i/o. Then, whenever mains is switched on, it turns on... and turn on time seems to be about half a second. About 25 seconds later it will pick up the on/off value from mqtt server (if it is available)
**Advantages with this setup:**
I can just chuck in a sonoff in a light circuit anywhere, and set it up. I use the existing main switch - and it works normally without any mqtt server running. Later I put some buttons in another flush box beside the mains switch, and cover the mains switch with a flip pdl plates.
**I then get:**
- local mains isolation with the pdl switch (but covered so it isn't bumped)
- lights useable with no mqtt and/or wifi running... with the following disadvantages:
...... I'll be wasting power if power outage occurs and wifi/mqtt doesn't come back up
...... There will be some annoyance in a power outage, with possibly 30 seconds of lighting at night after a power cut until sonoff connects back to wifi/mqtt
- ability to split lighting ccts in the ceiling space (no need to get into the mains flush box... just throw in more cable and another sonoff)
- can put a ceiling fan on the same isolation cct, but control it with sonoffs (using 4 channel)
..... obviously this only works with wifi/mqtt running though
====Devices====
====useful youtube tutorials====
====Tasmota====
====Atom Text Editor with platform i/o====
====Isues with USB serial====
====Setup the firmware & flash====
====Connect Sonoff====
====Monitor the serial happenings====
====Configure it more on its web interface if you like====
====MQTT====
Deletions:
**Devices**
**useful youtube tutorials**
**Tasmota**
**Atom Text Editor with platform i/o**
**Isues with USB serial**
**Setup the firmware & flash**
**Connect Sonoff**
**Monitor the serial happenings**
**Configure it more on its web interface if you like**
**MQTT**


Revision [2784]

Edited on 2017-07-20 21:12:21 by ZorrUno [updated sonoff real life tests]
Additions:
--
CategoryMicrocontrol
CategoryHomeAutomation
CategoryLinux


Revision [2742]

Edited on 2017-06-28 22:17:17 by ZorrUno [updated sonoff real life tests]
Additions:
======Flashing and using a Sonoff with Tasmota firmware======
**Devices**
https://www.itead.cc/sonoff-wifi-wireless-switch.html


Revision [2741]

Edited on 2017-06-28 22:10:12 by ZorrUno [prettier]
Additions:
**useful youtube tutorials**
http://www.andremiller.net/content/programming-an-itead-sonoff-wireless-smart-switch-esp8266
**Tasmota**
**Atom Text Editor with platform i/o**
- install Atom https://atom.io/
- install packages, "platform-ide"
- had issues with Clang in Ubuntu... Go to Atom's Preferences menu, click packages, autocomplete-clang, settings, and change 'Clang Command" from "clang" to clang-4.0 (or the version running on your linux)
- Open Project, click on the Sonoff-Tasmota-Master folder
**Isues with USB serial**
- in Ubuntu, I needed to add my user to the dialout group
**Setup the firmware & flash**
**Connect Sonoff**
- solder the board pins (see tutorials everywhere)
- Set up a usb ftdi/serial programmer (I got a ch340g for $8 from trademe)
- make sure you set it to 3.3V...
**Monitor the serial happenings**
- Use Atoms inbuilt serial monitor 115200, /dev/ttyUSB0 (in my case)
**Configure it more on its web interface if you like**
- Can also add new firmware like this if needed
**MQTT**
- Get a MQTT client, I used MQTTlens for chrome, mqttfx was too flakey
- subscribe to stat/sonoff/power
- publish cmnd/sonoff/power toggle (or on/off)
Deletions:
Used this tutorial
Used Atom Text Editor
- install packages, platform-ide
- issues with Clang in Ubuntu? Go to Atom's Preferences menu, click packages, autocomplete-clang, settings, and change 'Clang Command" from "clang" to clang-4.0 (or the version running on your linux)
- Open Project, click Sonoff-Tasmota-Master folder
- in Ubuntu, needed to add my user to the dialout group
- Use the inbuilt serial monitor 115200, /dev/ttyUSB0 (in my case)


Revision [2740]

The oldest known version of this page was created on 2017-06-28 21:27:25 by ZorrUno [prettier]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki