mirror of https://github.com/arendst/Tasmota.git
Add SysLog to debugging tip
parent
4f96934c00
commit
f9720cb4e8
2
Tips.md
2
Tips.md
|
@ -39,7 +39,7 @@ BTW changing TOPIC can be done online using the fallback topic and is only neede
|
|||
- To stop saving power changes only to Flash or Spiffs use command ```SetOption0 off```. This will disable the relay from returning to the same state after power on UNLESS you use the MQTT retain flag in which case the MQTT broker will send the last known MQTT state on restart or power on. The command ```ButtonRetain on``` will configure the button to send a MQTT command with Topic and the MQTT retain flag set.
|
||||
|
||||
### Debugging
|
||||
- For debugging purposes you can use the serial interface with command ```SerialLog 4``` and the Arduino IDE set to 115200 baud (19200 for Sonoff Dual) and both NL & CR or the web console with command ```WebLog 4```.
|
||||
- For debugging purposes you can use Level 4 logging to the `WebLog`, `SerialLog`, or remote [`SysLog`](https://www.sigmdel.ca/michel/ha/rpi/syslog_en.html). For the serial interface and the Arduino IDE set to 115200 baud (19200 for Sonoff Dual) and both NL & CR.
|
||||
|
||||
- Debugging the Sonoff Pow is a bit tricky as the serial interface has a **direct connection to one of the AC power lines**. I designed below schematic using two opto couplers seperating the AC connection on the **left** from the low voltage connection on the **right** allowing for serial control at 115200 baud and uploading of firmware up to 57600 baud while AC is connected.
|
||||
<img alt="OptoSerial" src="https://github.com/arendst/arendst.github.io/blob/master/media/OptoSerial.jpg" />
|
||||
|
|
Loading…
Reference in New Issue