Commit Graph

316 Commits

Author SHA1 Message Date
Theo Arends 3427e1bee3 Support for Modbus Energy Monitoring devices
Support for Modbus Energy Monitoring devices using a rule file. See ``xnrg_29_modbus.ino`` for more information
2022-10-08 16:14:11 +02:00
Theo Arends da623701d7 Add support for QMC5883L magnetic induction sensor
Add support for QMC5883L magnetic induction sensor by Helge Scheunemann (#16714)
2022-10-05 15:00:03 +02:00
Theo Arends d6b045e3d4 Do not skip leading spaces on (s)serialsend
Do not skip leading spaces on (s)serialsend (#16723)
2022-10-04 18:11:36 +02:00
Theo Arends 5a314f72e3 Add relevant program core information 2022-10-04 17:52:15 +02:00
Theo Arends b54c5fcb8c Add ESP32-U4WDH single/dual core detection 2022-10-04 12:51:53 +02:00
Theo Arends ec964d1c9e Add can bus sniffer
Add can bus sniffer based on MCP2515 (#16684)
2022-09-29 14:31:40 +02:00
Theo Arends 5fe2554e6a Refactor buttons 2022-09-28 12:17:48 +02:00
Theo Arends f80c6c69bf Fix ESP32-C3 compilation 2022-09-27 16:04:34 +02:00
Theo Arends 89c1254f69 Fix ESP8266 compilation 2022-09-27 15:55:45 +02:00
Theo Arends f668ea44ed Add ESP32-S2 and ESP32-S3 touch input support 2022-09-27 15:36:35 +02:00
Theo Arends 3a4a82ba0a Fix ESP32 touch button multi-press and hold detection
Fix ESP32 touch button multi-press and hold detection (#16596)
2022-09-27 14:31:21 +02:00
Theo Arends 2f61040891 Remove unwanted space from filename 2022-09-27 11:04:59 +02:00
Theo Arends e3c77331c6 Sync button_v2 2022-09-26 10:37:43 +02:00
Miguel Cabral 1e0e6cd1c8 Publish CLEAR message on button HOLD release when SO73 is ON 2022-09-25 19:43:32 +01:00
Theo Arends 96b7f79d15
Merge pull request #16563 from Jason2866/temp_no_nan
Temperature error messages fixed in core 2.0.5
2022-09-24 15:23:09 +02:00
Theo Arends 0d124ee1cc
Merge pull request #16612 from ortegafernando/development
Setoption147 (MQTT) Disable publish SSerialReceived MQTT messages. If disabled, you must use event trigger rules instead.
2022-09-24 15:22:02 +02:00
ortegafernando 83b3343a34
Add SetOption147
SetOption147 (MQTT) Disable publish SSerialReceived MQTT messages. If disabled, you must use event trigger rules instead.

If it is activated, tasmota will not publish a MQTT message every time a SSerialReceived event fires. Use rules to control "what, how and when" publish these messages.
2022-09-22 20:57:02 +02:00
Stephan Hadinger cc25c1abfe Zigbee allow spaces in names 2022-09-22 13:24:07 +02:00
ortegafernando f17e3440ac
Setoption147
Setoption147 (MQTT) Disable publish SSerialReceived MQTT messages. If disabled, you must use event trigger rules instead.

If it is activated, tasmota will not publish a MQTT message every time a SSerialReceived event fires. Use rules to control "what, how and when" publish these messages.
2022-09-21 21:42:53 +02:00
ortegafernando a4bf3b3ff0
Add SetOption147
Add SetOption147  (MQTT) Enable publish SSerialReceived MQTT messages. If disabled, use event rules instead.
If it is disabled, tasmota will not publish an MQTT message every time a SSerialReceived event fires. Use rules to control how and when publish these messages.
2022-09-21 09:35:40 +02:00
ortegafernando 5d3ae21159
Add SetOption147
Add SetOption147  (MQTT) Enable publish SSerialReceived MQTT messages. If disabled, use event rules instead.
If it is disabled, tasmota will not publish an MQTT message every time a SSerialReceived event fires. Use rules to control how and when publish these messages.
2022-09-21 09:34:22 +02:00
ortegafernando a79ab7275c
Add SetOption147
Add SetOption147  (MQTT) Enable publish SSerialReceived MQTT messages. If disabled, use event rules instead.
If it is disabled, tasmota will not publish an MQTT message every time a SSerialReceived event fires. Use rules to control how and when publish these messages.
2022-09-21 09:25:23 +02:00
Adrian Deaconu af6706d6e2 Add ZIGBEE_TOPIC_FNAME 2022-09-19 15:19:43 +01:00
Jason2866 5da6ab8f70 Temp error messages fixed 2022-09-18 12:58:48 +02:00
Jason2866 452c6fabb0
Tasmota Core 2.0.5
* Flash real size is now in core
* Flash chip magic size now in Tasmota `ESP_getFlashChipMagicSize`
* Tasmota Core 2.0.5
2022-09-17 15:53:58 +02:00
Theo Arends 971b06ccdd Add command ``SetOption46 0..255``
Add command ``SetOption46 0..255`` to add 0..255 * 10 milliseconds power on delay before initializing I/O (#15438)
2022-09-15 17:17:16 +02:00
Theo Arends 7e21442e96 Fix support of more touch pins (#16518) 2022-09-15 12:27:49 +02:00
Theo Arends 28c343f3c8 Add HLW debug info 2022-09-11 14:58:25 +02:00
Theo Arends cc11ee822e Add I2C status on I2cSetDevice
Add I2C status on I2cSetDevice aiding on debugging bus timeouts
2022-09-09 12:53:36 +02:00
Theo Arends 04160106c2 Add commands DspLine and DspSpeed
Add commands DspLine and DspSpeed (#15856)
2022-09-08 16:02:49 +02:00
Theo Arends 86e45969bd Support for DFRobot SEN0390 V30B ambient light sensor
Add support for DFRobot SEN0390 V30B ambient light sensor (#16105)
2022-09-02 13:13:47 +02:00
Theo Arends 23ba25c665 Refactor WifiHostByName() 2022-08-29 14:31:05 +02:00
Theo Arends b502b84189
Merge pull request #16323 from rogg/fix-local-mdns
Use Wifi.hostByName() for ESP8266
2022-08-29 14:15:21 +02:00
barbudor eb96127efd allow SerialBuffer up to 2048 2022-08-28 16:49:52 +02:00
Theo Arends e06793eb8c Small refactors 2022-08-27 12:28:34 +02:00
Jean-Pierre Deschamps cbfd2e1db7 Put USE_SGP40 at the correct place in decode-status
Remove used line from support_features.ino
2022-08-26 10:07:57 -04:00
Jean-Pierre Deschamps 214f4bbdfd Add support for SGP40 sensor 2022-08-25 15:51:51 -04:00
rogg 03f2e0b6e9 Use Wifi.hostByName() for ESP8266
Saves ~1K on ESP8266. Also, the check for resolving to 255.255.255.255 is already done by Wifi.hostByName().
2022-08-25 10:38:04 -07:00
Theo Arends 74414d8304 re-add inverted button support in V3 2022-08-25 17:51:29 +02:00
Theo Arends f3e677e805 Button debouncing V3 by adopting switch debounce code (#16339)
Button debouncing V3 by adopting switch debounce code (#15867)
2022-08-25 17:23:51 +02:00
Theo Arends 4692b56569 Fix button delay regression from #15867
Fix #16319
2022-08-24 08:52:31 +02:00
Jason2866 0f53ae845a
Real fix, S2 shows now correct mode too 2022-08-22 16:14:20 +02:00
Jason2866 6d470a6429 temp fix for crash with ESP32-S2 2022-08-22 13:12:33 +02:00
Christian Baars 7cbdd409b5 fix wrong flashmode report 2022-08-21 20:22:39 +02:00
Theo Arends a8f9e8d24c Add more flash modes 2022-08-21 14:49:09 +02:00
Theo Arends e55e9d8485 Change flashmode from digit to text 2022-08-21 14:21:17 +02:00
Theo Arends 4468adf4ac
Merge pull request #16275 from Staars/patch-1
Fix wrong flash_chip_id on ESP32, when DOUT is not used
2022-08-21 12:33:43 +02:00
Theo Arends e301734b2c Fix WifiHostByName for .local 2022-08-21 11:46:43 +02:00
Christian Baars 42399d446a
Fix wrong flash_chip_id on ESP32, when DOUT is not used
This also fixes the wrong reported flash size for flash modes: DIO, QUOUT and QIO. Now a global struct is used, which gets populated by the boot loader.
2022-08-21 11:15:47 +02:00
rogg 16c39aab9e
mDNS resolution for *.local fixes #16269
"Add user control over DNS timeout reducing blocking"  c988ba1645 created DnsClient so that a timeout can be used to prevent blocking on ESP32, but it can't do one-shot mDNS queries. Use WiFi.hostByName () for those.
2022-08-20 23:17:05 -07:00
Theo Arends 103808ce44 Add command ``StatusRetain``
Add command ``StatusRetain`` (#11109)
2022-08-19 14:24:55 +02:00
Jason2866 14c1c5dfd4
Review changes 2022-08-19 11:27:15 +02:00
Jason2866 f64bddea04
S3 Temp sensor support 2022-08-18 16:10:21 +02:00
Theo Arends 94c88df93b Fix RTC not detected when lights are present
Fix RTC not detected when lights are present (#16242)
2022-08-18 15:41:35 +02:00
Jason2866 1591ee7790 Red Flag GPIOs 12/13 for C3 2022-08-13 12:53:01 +02:00
Paul C Diem 20da738788 Wrap restore_powered_off_led_counter in #ifdef 2022-08-10 14:56:30 -05:00
Paul C Diem 729dc29807 Set LED state on SO87 change 2022-08-10 12:14:58 -05:00
Theo Arends ec3e8eb95a Add size check 2022-08-07 16:24:59 +02:00
Theo Arends 00012c7893 Clean up 2022-08-07 15:55:44 +02:00
Theo Arends fc86a63417 Fix wifiscan encryption types
Fix wifiscan encryption types (#16141)
2022-08-07 15:52:23 +02:00
Theo Arends e327c6194f Cleanup JSON message 2022-08-07 14:23:27 +02:00
Theo Arends eebf98dc59
Merge pull request #15867 from lugerun/improve-button-debounceing
Improve button debouncing
2022-08-07 10:57:01 +02:00
Theo Arends ebf0ad503c
Merge pull request #16141 from ascillato/Add_WifiScan_and_WifiTest_cmnds
Add `WifiScan` and `WifiTest` commands
2022-08-06 09:35:21 +02:00
Theo Arends 02d7eb1d7d Fix energy values after power cycle
Fix energy values after power cycle (#16118)
2022-08-05 15:25:39 +02:00
Adrian Scillato 058f9ecea9
Fix WifiScan JSON Response 2022-08-03 02:39:51 -07:00
Adrian Scillato 922ece0959
Add WifiScan and WifiTest commands 2022-08-02 22:32:55 -07:00
Adrian Scillato ca2bc5ae70
Add new logic for wifiscan command 2022-08-02 22:31:29 -07:00
Stephan Hadinger 4dc6adf37f Temp fix for ledcReadFreq() 2022-08-02 23:21:12 +02:00
Stephan Hadinger abf352c8f8 Fix remapping of ledcReadFreq 2022-08-02 19:39:27 +02:00
Stephan Hadinger f45cd5e905 Fixed comments and cleaned up 2022-08-02 10:07:55 +02:00
Stephan Hadinger 47b1f40245 Fix PWM to allow 4 different frequencies 2022-08-01 19:27:49 +02:00
Theo Arends 722406a461 Add support for Modbus bridge
Add support for Modbus bridge adding commands ``ModbusSend``, ``ModbusBaudrate`` and ``ModbusSerialConfig`` (#16013)
2022-07-20 10:41:02 +02:00
Theo Arends 846b217427 Bump version to v12.0.2.4
- Bump version to v12.0.2.4
- Command ``SetOption45 1..250`` to change default bistable latching relay pulse length of 40 milliseconds (#15856)
2022-07-16 14:32:18 +02:00
Theo Arends 7bc67f8d18 Reset bistable relays up to detected amount of ports 2022-07-16 12:49:33 +02:00
Theo Arends 571a2afce5 Fix bistable relay interlock
- Fix bistable relay interlock
- Reset bistable relay more consistent and faster (40ms instead of max 200ms)
2022-07-16 12:35:22 +02:00
Theo Arends 8283cee823 Fix bistable relay support 2022-07-10 12:07:58 +02:00
Theo Arends c9d289822c Fix bistable relays and SO63 2022-07-09 16:26:13 +02:00
Theo Arends cd0f9c7360 Revert "Revert "Add better support for bistable (latching) relays""
This reverts commit c6867ddd3d.
2022-07-09 15:55:27 +02:00
Theo Arends c6867ddd3d Revert "Add better support for bistable (latching) relays"
This reverts commit 6031e5df98.
2022-07-09 14:47:36 +02:00
Theo Arends 6031e5df98 Add better support for bistable (latching) relays
Add support for bistable (latching) relays mixed with monostable relays using GPIO Relay_b or Relay_bi
2022-07-09 12:27:59 +02:00
Theo Arends e6b4a77abd Add ESP32 Sonoff sensor support
- Bump version to v12.0.2.3
- Add ESP32 SI7021, THS01 and MS01 support
- Fix THRxxD template
2022-07-06 16:58:27 +02:00
Stephan Hadinger 7e0f69e935 Partition Wizard use ota.tasmota.com 2022-07-02 00:13:27 +02:00
Stephan Hadinger dc6aeb94c2 Filesystem escape special chars 2022-06-27 19:30:04 +02:00
Theo Arends ee909d4372 Sync global value update with teleperiod
Sync global value update with teleperiod (#15834)
2022-06-25 17:13:53 +02:00
lugerun d6b1f1c43f Improve button debouncing
Currently, there is a good debouncing implementation for the switches.
But this does not apply anymore when configuring an input as button
for the usage at a blind. Then, the current implemntation works by
just checking the input once per debounce interval. At some devices,
this causes ghost switching. As a result, this change checks the
input twice per devounce interval and uses the old values if the two
read attempts reported different values.
2022-06-25 15:37:33 +02:00
Theo Arends 11689409fc Add global value updates every 10 seconds
Add global value updates every 10 seconds (#15834)
2022-06-23 18:13:13 +02:00
Theo Arends 14a0370507 Fix user global entries 2022-06-23 00:06:05 +02:00
Theo Arends 6444e5ff8f Fix globals 2022-06-22 23:47:58 +02:00
Theo Arends cefe015c68 Bump version to v12.0.2.2
- Add commands to better control global temperature, humidity and pressure
- Command ``GlobalTemp2 1..250`` to select Global Temperature source indexed from teleperiod occurance data (#15834)
- Command ``GlobalHum2 1..250`` to select Global Humidity source indexed from teleperiod occurance data (#15834)
- Command ``GlobalPress2 1..250`` to select Global Pressure source indexed from teleperiod occurance data (#15834)
2022-06-22 23:45:25 +02:00
Cossid 52d868e675
Merge branch 'arendst:development' into sm2335-led-driver 2022-06-21 18:58:04 -05:00
Theo Arends ffcf90bdfe Refactor sendmail 2022-06-21 16:53:58 +02:00
Cossid f76400ba03 Initial implementation of SM2335 LED driver. 2022-06-21 00:32:56 -05:00
Theo Arends 6fac233821 Fix MQTT rc -4
Fix MQTT rc -4 (#15809)
2022-06-20 14:20:35 +02:00
Theo Arends 541be4a8ab Add telegram DNS checks 2022-06-20 10:49:23 +02:00
Theo Arends b5dd23ae9f Replace function WiFi.hostByName() 2022-06-19 18:13:26 +02:00
Theo Arends c988ba1645 Add user control over DNS timeout reducing blocking
Add command ``DnsTimeout 100..20000`` to change default DNS timeout from 1000 msec blocking if no DNS server found
2022-06-19 17:57:43 +02:00
Theo Arends e9708a4e5a Fix resolving NTP and/or MQTT server
- Fix resolving NTP and/or MQTT server names regression from v12.0.0 (#15816)
- Bump version to v12.0.1.1
2022-06-17 17:35:52 +02:00
Theo Arends 6a0c4b281e Add RTC time save 2022-06-16 16:15:54 +02:00
Theo Arends f10c7f06bf Fix quick restarts future time 2022-06-15 18:44:36 +02:00
Theo Arends 153068882c Fix initial file timestamp 2022-06-15 17:19:38 +02:00
Theo Arends 166e591ec9 Fix NTP sync edge cases
- Fix NTP sync edge cases like bad hostname and bad fixed IP address
- Change scanning all NTP server at sync time to cycle through them every minute until synced.
- Add no reply IP address for debugging
2022-06-14 18:34:51 +02:00
Theo Arends 076019a029 Fix ESP32 wifi on command 2022-06-13 17:28:13 +02:00
Theo Arends 8ba2733cf7 Add more redundancy to lost MQTT server 2022-06-13 11:45:09 +02:00
Theo Arends 93bb0d23b8 Reduce blocking when DNS is unreachable
- Reduce blocking by adding WifiPollDns before resolving NTP and/or MQTT server names (#14394)
- Fix ESP32 Arduino Core WiFi timeout is changed from msec to seconds
2022-06-12 14:36:25 +02:00
Theo Arends 18f3e7738b Revert "Add WifiPollDns to reduce blocking"
This reverts commit 940108c010.
2022-06-12 14:31:44 +02:00
Theo Arends 940108c010 Add WifiPollDns to reduce blocking
Add WifiPollDns to reduce blocking resolving NTP and/or MQTT server names (#14398)
2022-06-12 14:29:15 +02:00
Theo Arends 3a22874124 Increase wifi retry time (#14394)
- Increase wifi retry time (#14394)
- Remove 1 second system hang on wifi re-connect (retry)
- Try to limit the number of seconds unresponsiveness due to wifi reconnect
2022-06-10 14:49:35 +02:00
Theo Arends 2eefdaa0f4 Fix newline regression from this morning 2022-06-07 14:11:23 +02:00
Theo Arends e82058571f Update console source info 2022-06-07 10:35:51 +02:00
Theo Arends 41bc8bcd34 Refactor SerialBridge printf 2022-06-07 10:03:12 +02:00
gemu2015 e61186ee82 increase max json path element size 2022-06-07 08:27:44 +02:00
Theo Arends 44ce19f26f Add command ``SSerialSend9 0/1`` to enable Serial Bridge console Tee for debugging purposes 2022-06-06 17:48:40 +02:00
Stephan Hadinger 82d4e14171 Cleaning unused variables 2022-06-03 22:57:05 +02:00
Theo Arends 9e254d851a Fix max blinkcount to 32000 2022-06-03 15:15:25 +02:00
Theo Arends 25f8674106 Fix local ca includes 2022-06-02 17:14:05 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00