Commit Graph

279 Commits

Author SHA1 Message Date
Theo Arends 256f9fc285 Fix telegram response using UrlEncode
Fix telegram response using UrlEncode (#10486)
2021-01-11 14:50:43 +01:00
Theo Arends 2b7d605696 Changed maximum chars in AddLog_P logging
Changed maximum chars in AddLog_P logging reduced from 700 to 128 (LOGSZ) to enhance stability
2021-01-02 16:20:15 +01:00
Theo Arends 708d231c9c Reduce generic log buffer to 128 chars 2021-01-02 14:59:02 +01:00
Simon Hailes 9fdeac8924 update TasAutoMutex & use.
Automatically initialise it.  Add a name per instance.  Add a default timeout of 40ticks - at which point it enters anyway and logs to serial the potential deadlock.
2021-01-02 09:02:11 +00:00
Theo Arends 628f17de8c Add TasAutoMutex 2021-01-01 17:04:36 +01:00
Theo Arends ee146b2e29
Merge pull request #10336 from btsimonh/loggingmutex
Add mutex/semaphore for logging - protects new logging_buffer
2021-01-01 16:26:19 +01:00
Theo Arends 54c1a2d029 Add support for SPI display driver for ST7789 TFT
Add support for SPI display driver for ST7789 TFT by Gerhard Mutz (#9037)
2021-01-01 15:05:58 +01:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
Theo Arends 58e6ec55f1 Breaking change replacing SPI CS and SPI DC
Breaking change replacing SPI CS and SPI DC by device specific CS and DC
2020-12-31 16:17:30 +01:00
Simon Hailes 6b2daa14d0 Add mutex/semaphore for logging - protects new logging_buffer 2020-12-31 11:36:35 +00:00
Theo Arends 9c2b8040f1 Revert "Breaking change replaced NRF24L01 GPIO selection"
This reverts commit 01f3a7da19.
2020-12-30 17:52:05 +01:00
Theo Arends 01f3a7da19 Breaking change replaced NRF24L01 GPIO selection
Breaking change replaced NRF24L01 GPIO selection from ``GPIO_SPI_CS`` by ``GPIO_NRF24_CS`` and ``GPIO_SPI_DC`` by ``GPIO_NRF24_DC``
2020-12-30 17:49:52 +01:00
Theo Arends f004cfea60 Breaking change regarding MFRC522 and ILI9341
- Replaced MFRC522 13.56MHz rfid card reader GPIO selection from ``GPIO_SPI_CS`` by ``GPIO_RC522_CS``
- Replaced ILI9341 GPIO selection from ``GPIO_SPI_CS`` by ``GPIO_ILI9341_CS`` and ``GPIO_SPI_DC`` by ``GPIO_ILI9341_DC``
2020-12-29 17:42:53 +01:00
Theo Arends 6058cf014e Prep for embedded ESP32 module template re-introduction 2020-12-28 18:01:02 +01:00
Theo Arends d75beb92f3 Add support character `#` to be replaced by `space`-character
Add support character `#` to be replaced by `space`-character in command ``Publish`` topic (#10258)
2020-12-26 12:18:16 +01:00
Theo Arends 9747dd4b5c Logging optimizations 2020-12-24 11:42:59 +01:00
Theo Arends 593675eb7a Removal of global log_data providing re-entry
Removal of global log_data providing re-entry and freeing 700k RAM
2020-12-23 18:26:15 +01:00
Theo Arends b1b20c53b4 Prep removal of global log_data
Prep removal of global log_data providing re-entry
2020-12-23 18:00:59 +01:00
Theo Arends fb15736ed7 Unload use of global log_data 2020-12-23 16:35:46 +01:00
Theo Arends 0624ee1ca3 Add logging quick exit code 2020-12-23 10:56:21 +01:00
Theo Arends 244611f12f Add logging buffer management 2020-12-22 15:26:07 +01:00
Stephan Hadinger f94b75d150 Zigbee add unishox strings 2020-12-21 09:56:04 +01:00
Theo Arends 25a660bdec Update support.ino 2020-12-20 17:15:22 +01:00
Theo Arends 5f7aacf13c Refactor logging 2020-12-19 17:29:14 +01:00
Theo Arends bafcee4b05 Effort to get rid of PrepLog_P
Effort to get rid of PrepLog_P now syslog and mqttlog are async
2020-12-18 16:49:11 +01:00
Theo Arends 2eb4eef08c Rename web_log to log_buffer 2020-12-18 16:30:37 +01:00
Theo Arends b7af08c03b Redesign syslog and mqttlog using log buffer
Redesign syslog and mqttlog using log buffer (#10164)
2020-12-18 15:37:20 +01:00
Theo Arends e2ec826dec Fix log buffer eot mark location 2020-12-17 17:41:53 +01:00
Theo Arends 078a9a258a Add milliseconds to console output
Add milliseconds to console output (#10152)
2020-12-17 14:16:53 +01:00
Theo Arends 2f47a4b5c9 Refactor serial init 2020-12-07 17:03:22 +01:00
Theo Arends 17e6890809 Prep for ESP32-C3 ph2 2020-11-28 16:39:15 +01:00
Theo Arends 547e5d9c5d Fix command ``gpio``
Fix command ``gpio`` using non-indexed functions regression from v9.1.0 (#9962)
2020-11-24 15:14:22 +01:00
Barbudor 11ed01983c comparison should be >= 2020-11-20 00:01:48 +01:00
Theo Arends 29e990dd23 Remove obsolete code 2020-11-13 14:23:16 +01:00
Stephan Hadinger 5f494b7d8a Remove compiler warnings 2020-11-12 19:38:21 +01:00
Theo Arends fa7fdbd51a Consolidate `AddLog_P`
Consolidate `AddLog_P` into `AddLog_P2` and rename to `AddLog_P`
2020-11-06 17:09:13 +01:00
Theo Arends 488a360d5b Fixed NTP fallback server functionality
Fixed NTP fallback server functionality (#9739)
2020-11-06 15:22:03 +01:00
Theo Arends 404e34df36 Fix ESP32 serial issues 2020-10-31 17:53:12 +01:00
Theo Arends 57a3e7f88c Fix ESP32 issues 2020-10-31 17:28:33 +01:00
Theo Arends 604a03e617 Fix ESP32 serial reconfig
Fix ESP32 serial reconfig (#9664)
2020-10-30 18:27:34 +01:00
Theo Arends af5082320d Use global struct 2020-10-30 12:29:48 +01:00
Theo Arends e59bfc1d69 Use global struct 2020-10-29 13:58:50 +01:00
Theo Arends 280f0a9de7 Use global struct 2020-10-29 13:37:09 +01:00
Theo Arends 3bebfb32d3 Use global struct 2020-10-29 12:21:24 +01:00
Christopher Tremblay 4a8bc0841e Add support for EZO PRS
Adds support for EZO PRS sensors
2020-10-29 02:34:44 -07:00
Theo Arends f1ac7b2d67 Use global struct 2020-10-28 19:03:39 +01:00
Theo Arends b93b719108 Use global struct 2020-10-28 17:32:07 +01:00
Theo Arends 66f5d5d180 Prep global struct 2020-10-28 11:48:57 +01:00
Theo Arends f2d1785701 Fix GCC 10.1 compile errors 2020-10-22 15:23:22 +02:00
Theo Arends f79ed4464e Fix MQTT data corruption on ``MQTTLog 4`
Fix MQTT data corruption on ``MQTTLog 4`` (#9571)
2020-10-19 12:39:27 +02:00
Theo Arends 7bc8956d86 Changed management of serial baudrate
Changed management of serial baudrate (#9554)
2020-10-16 15:18:16 +02:00
Theo Arends 5ec972376c Consolidate function RemoveSpace 2020-10-10 17:00:37 +02:00
Theo Arends 70d49d210b Remove ctrlchars from mqtt log message 2020-10-10 16:44:35 +02:00
Theo Arends 490e7d838e Fix Template using ``#define USER_TEMPLATE``
Fix Template using ``#define USER_TEMPLATE`` (#9506)
2020-10-10 12:20:15 +02:00
Theo Arends 82e74b369f Add additional chk before converting template 2020-10-04 15:46:20 +02:00
Theo Arends 73ad5706c3 Fix template conversion when GPIO17 is 0 2020-10-04 12:46:06 +02:00
Theo Arends 6f790c0bb0 Add support for GPIO_ANY 2020-10-03 15:06:52 +02:00
Theo Arends b51ee2aa22 Update template using JSMN 2020-09-30 15:26:46 +02:00
Theo Arends 7a73dd7019 Merge branch 'development' into dev-gpio16 2020-09-30 14:54:29 +02:00
Theo Arends 1ae9adc642 Change redesigning ESP8266 GPIO internal numbering
Change redesigning ESP8266 GPIO internal numbering in line with ESP32
2020-09-30 14:19:18 +02:00
Theo Arends c00d7035d9 Redesign GPIO to 16-bit 2020-09-29 18:10:21 +02:00
Theo Arends 895ed2d041 Redesign GPIO to 16-bit 2020-09-29 14:41:45 +02:00
Theo Arends 805f93cfab Redesign GPIO to 16-bit 2020-09-29 14:08:48 +02:00
Theo Arends 46cbe13e9b Fix ESP32 compilation 2020-09-25 18:34:14 +02:00
Theo Arends 9cbd2d531d Initial GPIO redesign 2020-09-25 18:15:31 +02:00
Stephan Hadinger 019e402fe7 Move IR from ArduinoJson to JSMN 2020-09-24 08:51:43 +02:00
Stephan Hadinger f3591b8419 Fix memory corruption 2020-09-23 19:38:24 +02:00
Theo Arends bbd15fa174 Fix Status13 shutter exception 9 2020-09-23 17:13:10 +02:00
Stephan Hadinger 2ff756b3cc Change replace ArduinoJson with JSMN for JSON parsing 2020-09-21 21:49:32 +02:00
Stephan Hadinger ea85b70685 Zigbee minor improvements 2020-09-14 22:06:19 +02:00
Theo Arends d7017661ed Fix esp32 compilation error 2020-08-23 09:08:47 +02:00
Theo Arends ff0654701d Update template comments 2020-08-22 18:25:01 +02:00
Theo Arends 2d8916a9fa Module/Gpio re-design - consolidate internal templates - phase 3
Module/Gpio re-design - consolidate internal templates - phase 3
2020-08-22 18:03:20 +02:00
Theo Arends 474fb2518a Update status 13 2020-08-20 17:58:58 +02:00
stefanbode 91d2324cfb
Update support.ino 2020-08-20 16:22:40 +02:00
Theo Arends 3308b7a995 Module/Gpio re-design - consolidate internal templates - phase 2
Module/Gpio re-design - consolidate internal templates - phase 2
2020-08-19 15:18:33 +02:00
Theo Arends ce388c799f Add ESP32 Analog input support for GPIO32 to GPIO39 2020-08-04 16:33:05 +02:00
Theo Arends 317d4977d1 Fix masterlog_level to control master log level control 2020-07-31 16:56:42 +02:00
Theo Arends a5857ac03f Add masterlog_level to control master log level control 2020-07-31 11:53:12 +02:00
George 2ced749e4d serialsend6 - more fixes
oops
2020-07-20 10:14:01 +10:00
George 63242de249 Serialsend6
* Adds serialsend6, allowing sending of binary data with comma-delimited string of decimal numbers.
2020-07-19 20:34:43 +10:00
Theo Arends 934ca43463 Remove Arduino ESP8266 Core support before 2.7.1
Remove Arduino ESP8266 Core support for versions before 2.7.1
2020-07-17 11:49:56 +02:00
Theo Arends 7dafeb280e Rename global temp and pressure
- Rename global temp and pressure (#8808, #8810)
- Fix SGP30 calculation (#8808)
2020-06-28 12:23:18 +02:00
Theo Arends ff327106be Refactor ESP32 support 2020-06-24 15:58:56 +02:00
Theo Arends b5f45aa295 Fix ESP32 SPI config 2020-06-20 17:58:21 +02:00
Theo Arends c533eb1186 BLM certify part 2
- Change define USE_TASMOTA_SLAVE into USE_TASMOTA_CLIENT
- Change commands ``SlaveSend`` and ``SlaveReset`` into ``ClientSend`` and ``ClientReset``
2020-06-18 16:05:55 +02:00
Theo Arends 2af506e48b Change ESP32 USER GPIO template representation decreasing template message size
Change ESP32 USER GPIO template representation decreasing template message size
2020-06-18 12:55:10 +02:00
Theo Arends ef0b797686 Add basic support for ESP32 ethernet
Add basic support for ESP32 ethernet adding commands ``Wifi 0/1`` and ``Ethernet 0/1`` both default ON (#8503)
2020-06-15 18:27:04 +02:00
gemu2015 7d1a275606 fix chartofloat digit overflow 2020-06-15 07:25:39 +02:00
Theo Arends 0abfcf1954 Fix global temperature
- Fix global temperature use of float solving intermittend power off (#8175)
- Fix BL0940 power monitoring when powered on but no load present
2020-06-12 16:51:21 +02:00
Theo Arends 11d6486534 Fix time 4 display with SO52 1 2020-06-11 19:13:08 +02:00
Staars 7077a80541 unify USE_*_COMPRESSION to USE_UNISHOX_COMPRESSION 2020-06-06 20:04:10 +02:00
device111 917124af26 fix start without stop condition 2020-06-01 11:51:57 +02:00
Theo Arends b3540879ab Zero fill millis positions to three digits 2020-05-26 10:26:41 +02:00
Theo Arends 90d3cd45c4 Add command ``Time 4``
Add command ``Time 4`` to display timestamp using milliseconds (#8537)
2020-05-25 11:44:17 +02:00
Stephan Hadinger f5f1bdefdb Add wildcard patter for JSON marching in rules using ``?`` pattern 2020-05-24 09:57:11 +02:00
Stephan Hadinger 02faa2ea49 Fix style and compilation error when no compression 2020-05-23 10:05:57 +02:00
Stephan Hadinger 6154fd1015 Fixed compilation error 2020-05-22 23:05:55 +02:00
Stephan Hadinger 7ee9b2d34d Compressed string in Wemo emulation 2020-05-22 22:14:17 +02:00
Theo Arends d8d9e334f6 Add ValidTemplate function 2020-05-18 17:02:24 +02:00
Theo Arends 001b6e4895 Fix Dew Point is null
Fix Dew Point is null if either or both Temperature and/ot Humidity is null (#8411)
2020-05-11 15:38:59 +02:00
Stephan Hadinger 1b682d3564 Add rule length, truncates rules too long and add escape JSON 2020-05-10 15:24:10 +02:00
Theo Arends 82ccd7ed37 Fix compilation error 2020-05-08 11:17:18 +02:00
Mickael Gaillard b6165d5a18 Add Translate Fahrenheit
Signed-off-by: Mickael Gaillard <mick.gaillard@gmail.com>
2020-05-08 00:53:13 +02:00
Theo Arends 5df4b7b391 Fix ESP32 template upload 2020-05-01 17:52:01 +02:00
Theo Arends 892be892fa Remove gpio to pin support 2020-05-01 17:37:56 +02:00
Theo Arends 5d18ad1c74 Add experimental basic support for ESP32
- Add experimental basic support for Tasmota on ESP32 based on work by Jörg Schüler-Maroldt
- Bump version to 8.2.0.6
- This ESP32 upgrade breaks current ESP32 templates
2020-05-01 17:30:09 +02:00
Theo Arends 7177c7d8e0 Change ESP32 pin allocation part 4 2020-05-01 16:47:41 +02:00
Theo Arends ef61668037 Change ESP32 pin allocation part 2 2020-04-29 17:44:03 +02:00
Theo Arends d805803daa Change pin array names
Change pin array names to block unwanted use of direct access
2020-04-29 14:01:02 +02:00
Theo Arends c24de18278 Change ESP32 pin allocation part 1 2020-04-28 18:27:07 +02:00
Theo Arends 60e7a73b60 Switch from GPIO array to Pin array 2020-04-28 14:42:47 +02:00
Theo Arends 3fef91d6ca Change pin handling part 6 2020-04-27 17:28:05 +02:00
Theo Arends c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends 24280bcdea Change pin handling part 2 2020-04-27 11:54:23 +02:00
Theo Arends 5d9be9a4d0 Fix pin handling part 1 2020-04-27 10:35:38 +02:00
Theo Arends c9149b53c5 Change pin handling part 1 2020-04-26 17:33:27 +02:00
Theo Arends 104e3c4838 Implement ARRAY_SIZE macro 2020-04-25 11:37:36 +02:00
Theo Arends 9ed8e7c254 Fix internal array size checks 2020-04-24 17:39:26 +02:00
Theo Arends be1fb3756c Change ESP32 freeHeap to MaxAllocHeap 2020-04-22 16:07:52 +02:00
Theo Arends 19796a7f97 Refactor ESP32 code 2020-04-19 16:58:13 +02:00
Theo Arends 0f3619238f Add ESP32 bootloop control 2020-04-19 13:08:04 +02:00
Theo Arends e1d7416a36 Add features to ESP32
- Decided to support ONLY flash mode DOUT (no software change but allows for RX1/TX1)
- Add GPIO9 (RX1) and GPIO10 (TX1) for hardware serial support
- Add above two GPIOs to template
- Moved basic ADC0 support from GPIO36 to GPIO33
2020-04-18 18:10:41 +02:00
Theo Arends 09599bb4a1 Provide ESP32 base module support 2020-04-17 16:17:01 +02:00
Theo Arends 367658b75b More ESP32 compatibility 2020-04-16 18:33:26 +02:00
Theo Arends e8f3d1d986 Increase ESP32 compatibility
Increase ESP32 compatibility (breaks current ESP32 configuration again!)
2020-04-13 17:45:06 +02:00
Theo Arends 16ca5cb103 Increase ESP32 compatibility 2020-04-13 13:01:54 +02:00
Theo Arends ad1054a6ae Increase ESP32 compatibility
Increase ESP32 compatibility (breaks current ESP32 configuration!)
2020-04-12 18:17:35 +02:00
Theo Arends 7651b447fb Fix SI1145 compile warning
Fix SI1145 compile warning (#8141)
2020-04-12 11:26:33 +02:00
Theo Arends 93fd5dd618 Add experimental minimal support for ESP32
Add experimental minimal support for ESP32 (#8110)
2020-04-10 18:24:08 +02:00
Theo Arends a0b0c32ff4 Update references 2020-04-10 10:52:22 +02:00
Theo Arends d713468c0c Add support for longer template names
Add support for longer template names
2020-03-29 17:41:31 +02:00
Theo Arends e5a44e6326 Refactor template 2020-03-28 18:08:43 +01:00
Theo Arends 5a98fd44e2 Fix HumOffset on some sensors
Fix HumOffset on some sensors
2020-03-18 11:23:00 +01:00
Theo Arends 0a0afe3615 Add Dew point to more sensors
Add Dew point to more sensors and refactor JSON Temperature and Humidity message
2020-03-17 16:29:59 +01:00
Federico Leoni 5ba26780e9 Humidity Offset 2020-03-16 14:29:55 -03:00
Theo Arends 566bc47af4 Add Dewpoint to Temp/Hum sensors Prt. 1
- Add Dewpoint to Temp/Hum sensors Prt. 1
- Update AHT10 driver (#7930)
2020-03-16 16:52:22 +01:00
Theo Arends 1a825db2b9 Fix ghost logging 2020-03-14 17:45:36 +01:00
Theo Arends 71d810aac4 Update Tx2x Sensor
Update Tx2x Sensor with command SpeedUnit (#7843)
2020-03-02 15:51:33 +01:00
Theo Arends 5e4d8e5641 Fix relation between RSSI and signal strength
Fix relation between RSSI and signal strength
2020-02-20 10:07:00 +01:00
Theo Arends 5f80febcf4 Another DHT driver with humidity range check
Another DHT driver with humidity range check, usec overflow check and NAN debug info (#7717)
2020-02-15 12:57:23 +01:00
Theo Arends fb485dabd3 Add optional parameter <startcolor> to command ``Scheme``
Add optional parameter <startcolor> to command ``Scheme <scheme>, <startcolor>`` to control initial start color
2020-01-22 11:55:48 +01:00
Leonid Muravjev e03a14ce21 i2c: I2cSetDevice wrong behavior
Most drivers do not expect address blocking after calling i2cSetDevice.
I2cSetActive removed from I2cSetDevice. All drivers waiting for this call are fixed.

refs #7556
2020-01-19 16:15:18 +03:00
Theo Arends 5716d08de9 Refactor MQTT Logging and publish 2020-01-18 15:34:01 +01:00
Hadinger 77191f2fe9 Simplified TimeDifference (saves 16 bytes) 2020-01-14 16:41:47 +01:00
Theo Arends 0db458c774 Fix exception 9 restart on log message
Fix exception 9 restart on log message in Ticker interrupt service routines NTP, Wemos and Hue emulation (#7496)
2020-01-14 12:47:48 +01:00
Theo Arends a6dcf46771 Move heap to stack 2020-01-09 11:35:01 +01:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
Theo Arends df944ed058 Fix Serial initialization regression
Fix Serial initialization regression from previous fix
2019-12-29 13:27:48 +01:00
Theo Arends ab167b0974 Add more crash dump information 2019-12-28 14:54:26 +01:00