Remove user specific flashing information, add detail, and link to existing Tasmota wiki articles

Michael Ingraham 2019-08-16 09:32:52 -04:00
parent c810eff1e1
commit 9025be7a59
1 changed files with 35 additions and 32 deletions

@ -35,36 +35,39 @@ Using the TX T1 1-3 device template will work. A new T0 template is forthcoming.
![image](https://user-images.githubusercontent.com/52976730/61833228-9c4e5f80-ae41-11e9-909b-1ea5d10f9deb.png)
![image](https://user-images.githubusercontent.com/52976730/61833325-f3eccb00-ae41-11e9-896a-4e9ebe4f47d9.png)
I've written this procedure for those that are a bit new to this from start to finish:
### Flashing
1. Put the pins in from the FTDI and place a jumper wire from the other GND location to the side of R19 nearest the screw hole cutout
2. Have FlashESP8266.exe running with the right COM port and sonoff.bin file loaded
3. Plug the FTDI in to your PC and click the Flash button on FlashESP8266.exe
4. When the dialog box closes, and you get flash complete you can remove the jumper wire and leave the FTDI powering the board.
### IP Configuration
1. Change wireless to the new **sonoff-xxxx** on phone and open 192.168.4.1 on browser
2. In Sonoff page scan wifi networks, the select relevant network and add password (use tick to see in case phone adds a leading capital)
3. Go to Fing and change icon (Touch Panel) and name TX Theatre
4. Go to Excel Sheet and select static IP from the IP Address Plan.xlsx file [if you have a Static IP plan]
5. Update Static IP table in Router
6. Connect TX back to switch housing and connect to mains
7. Check Fing for new IP.
## Start-to-Finish Flashing Guide
### [Flashing](Flashing)
1. Connect the device's serial interface pins to the [Serial-to-USB adapter](Prerequisites#serial-to-usb-adapter-with-33v-supply). **Be sure that your adapter is set to supply 3.3v**. Place a jumper wire from GND to the side of R19 nearest the screw hole cutout - this is connected to GPIO0.
2. Download `sonoff.bin` from http://thehackbox.org/tasmota
3. Have [`NodeMCU PyFlasher`](Flashing#nodemcu-pyflasher) running with the correct settings. Be sure to select `DOUT` and `Erase flash - yes`. Select the right COM port for your serial-to-USB adapter and select `sonoff.bin` from the folder where you downloaded the file.
4. Plug the serial adapter into the USB port and click the `Flash` button on `NodeMCU PyFlasher`.
5. When you get the flash complete, remove the GND jumper wire from GPIO0.
6. Cycle power on your device by disconnecting the serial adapter from the USB port for a couple of seconds and plugging it back in.
### [IP Configuration](Initial-Configuration#configure-wi-fi)
1. Using a mobile device, scan for Wi-Fi networks and connect to the **`sonoff-xxxx`** access point. When it connects to the network, you may get a warning that there is no Internet connection and be prompted to connect to a different network. _Do not allow the mobile device to select a different network_.
2. Open the browser on your mobile device and navigate to http://192.168.4.1.
3. In the Tasmota web UI, scan wifi networks and select the network for your home. Then enter the network's password (_**click the checkbox to see the password you enter to ensure that it is correct and that your mobile device has not inadvertently capitalized the first letter if it is supposed to be lower case nor autocorrected what you entered**_). When you save the settings, the device will restart and connect to your home network. The `sonoff-xxxx` network will not longer be present. Therefore your mobile device will automatically be disconnected and should connect back to its data network.
4. Check in your router or use an IP scanner to ensure that the device is connected to your home network. Make not of the IP address assigned to your device.
### Configuration for MQTT
1. Go to new Static IP in browser
2. Click Configuration->Configure Module->Module Type->Sonoff T1 3CH (30) [or whatever you need] and save
3. Test operation of switches from browser and you should hear them click
4. Click Configuration->Configure MQTT->
* Enter HA Host 192.168.xx.yy [your HA host]
* User: [your mqtt username]
* Password: [your mqtt password]
* Topic: theatre_tx_module
5. Click Console and enter setOption19 1 and enter and check the log for any errors
### TasmoAdmin
1. Open TasmoAdmin via Hassio and Autoscan
2. In Name1->Name3 enter switch position names again (note: understand orientation of switch)
3. Go to Devices List and check/test buttons click
4. Click Cog configuration and enter names again and save
5. Click Cog configuration, go to MQTT and change Group Topic to **swtheatre** and save
6. Go to Devices List again and the circle arrows to restart the device
### Home Assistant Integration
1. Go to Integrations->MQTT and find the new switch and rename/locate items accordingly
1. Go to new IP address (http://`IP`) in a browser.
2. Click Configuration->Configure Module->Module Type->Sonoff T1 3CH (30) (the appropriate module for your device model) and save. The device will restart.
3. Test the operation of the switches from the web UI. You should hear the relays click.
4. Click Configuration->Configure MQTT->
* MQTT Host: Enter the address (192.168.xx.yy or Hostname) of your MQTT broker. If you use the Home Assistant embedded broker, this will be your HA server.
* User: Enter the username for your MQTT broker
* Password: Enter the password for your MQTT broker
* Topic: Enter the unique MQTT topic for your device
* Save your settings. The device will restart
5. Click Console
6. If you use Home Assistant, enter [`SetOption19 1`](Commands#setoption19) to enable device auto-discovery.
7. Check the log for any errors
Reassemble the switch and connect it to mains power. Check in your router or use an IP scanner to ensure that the device is connected to your home network. Also use the Tasmota web UI to ensure the switch is operating as expected.
### Home Assistant Configuration
1. Open TasmoAdmin via Hassio and Autoscan
2. In Name1->Name3 enter switch position names again (note: understand orientation of switch)
3. Go to Devices List and check/test buttons click
4. Click Cog configuration and enter names again and save
5. Click Cog configuration, go to MQTT and change Group Topic to **swtheatre** and save
6. Go to Devices List again and the circle arrows to restart the device
7. Go to Integrations->MQTT and find the new switch and rename/locate items accordingly