From 0ce5d009154d9d4d1ec63cd65089fe825c186c0d Mon Sep 17 00:00:00 2001 From: blakadder Date: Thu, 31 Oct 2019 19:14:10 +0100 Subject: [PATCH] webui article added --- ADC.md | 22 ++++++++++++++++++++-- Home.md | 2 +- WebUI.md | 26 ++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 WebUI.md diff --git a/ADC.md b/ADC.md index 46414224..7d2cca33 100644 --- a/ADC.md +++ b/ADC.md @@ -7,9 +7,27 @@ After wiring a peripheral to A0 pin you have to configure it in **Configure Modu ![ADC configuration](https://i.postimg.cc/qqYmYG3v/ADC.png) -The reading will show in web UI's sensor section as "Analog0 %value%" -A message will be published in `tele/%topic%/SENSOR` JSON response as `"ANALOG":{"A0":%value%}`. The pin has a 10-bit resolution, which means _%value%_ can be between `0` and `1024`. +#|Option|WebUI display|MQTT mesage +-|-|-|- +0|None| none | none +1|Analog | Analog0 _%value%_ | `{"A0":%value%}` +2|Temperature | Temperature _%value%_ °C (°F) | `{"Temperature":%value%},"TempUnit":"C"}` +3|Light | Illuminance _%value%_ lux | `{"Illuminance":%value%}` +4|Button | none | none +5|Buttoni | none | none + +The reading will show in web UI's sensor section as "_%option% %value%_" depending on the selected option. Tasmota calculates the values for temperature and light, analog values can be `1` to `1024`. + +Example: ADC as `Analog (1)` ![ADC in web UI](https://i.postimg.cc/zv9jpXsL/Analog0.png) + +A message will be published in `tele/%topic%/SENSOR` JSON response as `"ANALOG": ` depending on the selected option. + +Example: ADC a Light(3) +18:55:09 MQT: tele/tasmota/SENSOR = {"Time":"2019-10-31T18:55:09","ANALOG":{"Illuminance":8}} + +> Careful when setting ADC as Button, if there is constant voltage on the pin it might register as a [long press](Button-usage#long-press) and reset the device to firmware defaults + ### Rule triggers Use these triggers in rules: diff --git a/Home.md b/Home.md index 54f0b9de..fe894894 100644 --- a/Home.md +++ b/Home.md @@ -6,7 +6,7 @@ Alternative open source firmware for [**ESP8266**](https://en.wikipedia.org/wiki - Easy [initial setup](initial-configuration) - Browser based user interface for configuration and control -- Firmware [updates](Upgrading) via OTA or web UI +- Firmware [updates](Upgrading) via OTA or [web UI](webui) - [Rules](Rules) and [Timers](commands#Timers) for on device automation - Control with [web UI](commands#console-in-web-ui), [MQTT](MQTT), [web requests](commands#web) or [serial terminal](commands#serial) - Easy configuration of devices using [Templates](Templates) diff --git a/WebUI.md b/WebUI.md new file mode 100644 index 00000000..399080e0 --- /dev/null +++ b/WebUI.md @@ -0,0 +1,26 @@ +Tasmota's web user interface is a practical way to control and manage your tasmotised device. + +### Configuration +Configuration menu allows you to configure everything from components to Wi-Fi and gives you the option to backup and restore the configuration in a secure location. + +### Information +Displays a single page loaded with information about the device including: current Tasmota version, Wi-Fi AP data, MQTT host data and more + +### Firmware Upgrade +An easy to use menu to initiate a firmware [upgrade](Upgrading) from an uploaded .bin or an OTA server. + +### Console +Terminal access to Tasmota. Issue [commands](Commands) here or follow the information stream. Useful for debugging with [˙Weblog`](Commands#weblog) commands + +## Themes +WebUI is themable starting with »6.6.0. To apply the theme copy the entire command and send it in console or via MQTT. + +Dark theme (default since 7.0) +``` +WebColor {"WebColor":["#eeeeee","#181818","#4f4f4f","#000000","#dddddd","#008000","#222222","#ff0000","#008000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999","#000000"]} +``` + +White theme (default until 6.7.1.) +``` +WebColor {"WebColor":["#000000","#ffffff","#f2f2f2","#000000","#ffffff","#000000","#ffffff","#ff0000","#008000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999"]} +``` \ No newline at end of file