Commit Graph

19914 Commits

Author SHA1 Message Date
s-hadinger 330cfe8b4d
LVGL compilation of lv_menu (#22188) 2024-09-23 10:26:23 +02:00
gemu 3707d4b239
Sml update (#22185)
* some refactoring

* refactoring, save some ram
2024-09-22 12:20:02 +02:00
s-hadinger 7ef93b20fd
Add commented #define BE_LV_WIDGET_MENU 2024-09-22 11:52:00 +02:00
Jason2866 6bb046726e
arduino idf compile prepare 2024-09-21 23:36:37 +02:00
Theo Arends 03b57179ac Final fix unknown/error 2024-09-21 13:23:14 +02:00
Theo Arends 8d7a27df76 Fix ESP8266 Exception 3 on tasmota-minimal caused by unaligned PROGMEM (#22169) 2024-09-20 18:20:09 +02:00
Theo Arends bf4d0d0890 Revert "Fix ESP8266 Exception 3 on tasmota-minimal caused by unaligned PROGMEM (#22169)"
This reverts commit b00d7fd0ac.
2024-09-20 18:14:53 +02:00
Theo Arends b00d7fd0ac Fix ESP8266 Exception 3 on tasmota-minimal caused by unaligned PROGMEM (#22169) 2024-09-20 18:13:38 +02:00
Theo Arends d5289e8ba9 Update changelogs 2024-09-20 12:09:34 +02:00
Tim Connors 694691e34a
Refactor and fix PID sensor (PID_USE_LOCAL_SENSOR) read race condition (#22162)
* Refactor and fix PID sensor (PID_USE_LOCAL_SENSOR) read race condition

Refactor PID since it was calling pid.tick willy-nilly upon demand
from MQTT and the web instead of on a periodic basis (and was being
called with time interval of 0 when those times lined up!).  Refactor
web/mqtt display because there was shared code (that code turned out
to be misguided and belonged in Every_Second loop, but now we are also
similar to 39 thermostat)

Logging revealed that the vast majority of the time the sensor JSON
was parsed to obtain current sensor data when using PID local sensor,
it was failing to parse (and it would typically only work for a second
around TELE_PERIOD, but even then, not reliably).  This bug almost
certainly affects xdrv_39_thermostat too, but using
xsns_75_prometheus.ino as a template, we are able to update PV once
per second, which allows us to be a lot more responsive.  There is no
danger of being "too responsive" because that's the point of PID, and
the PID loop already scales feedback by interval between ticks.

* Reduce logging of PID now that query side-effects removed

* Comment out all new logging, but leave present for next debugger
2024-09-20 12:06:41 +02:00
Theo Arends 83eb8aeaa7 Update changelogs 2024-09-20 12:01:15 +02:00
s-hadinger be46b95d62
MQTT add warning if trying to connect without TLS on a port that normally uses TLS (#22175) 2024-09-19 23:12:46 +02:00
s-hadinger f43d23e59a
Berry update Win binary (#22174) 2024-09-19 22:35:27 +02:00
s-hadinger a5b4490ba0
Matter small UI fixes (#22173) 2024-09-19 22:26:21 +02:00
s-hadinger 3f56ab68ad
Berry improve `int64` constructor (#22172) 2024-09-19 21:35:52 +02:00
Jason2866 5d0cc8144a
no exception when metrics not found (#22170) 2024-09-19 18:31:47 +02:00
Theo Arends 3b28542d9c Fix BMP second bus 2024-09-19 17:21:08 +02:00
Theo Arends 9238ee73d6 Add ESP8266 experimental support for second I2C bus 2024-09-19 14:47:18 +02:00
Theo Arends a9f0623769 SCD30 Lowered I2C clock from 100k to 50k (#15438) 2024-09-19 11:15:04 +02:00
Theo Arends d0d075a1b4 Refactored I2C drivers SHT3x and iAQ 2024-09-19 11:11:08 +02:00
Theo Arends a30f47a901 Fix bad define ESP82666 2024-09-19 11:07:16 +02:00
Theo Arends 0dfab3684c Update changelogs 2024-09-19 09:58:36 +02:00
Jason2866 27611a1698
Tasmota Platform 2024.09.10 - Arduino core 3.0.5 (#22163)
* Tasmota Platform espressif32 2024.09.10 - Arduino Core 3.0.5
2024-09-18 19:04:34 +02:00
s-hadinger 717bc01df8
Autoconf prevent 'init.bat' from stopping on empty lines (#22158) 2024-09-17 21:46:40 +02:00
Theo Arends a5730a76f9 Add command entered to command error and command unknown message 2024-09-17 16:24:45 +02:00
Theo Arends 4f2b24f53d Add entered command to MQTT command unknown message (bis) 2024-09-17 10:19:00 +02:00
Theo Arends fd7d2fc0a4 Add entered command to MQTT command unknown message 2024-09-17 10:00:47 +02:00
Theo Arends 97970974fc Refactored I2C drivers HTU21, BH1750 and HYT 2024-09-16 16:27:30 +02:00
Theo Arends c61dd0fd2c Minor refactor I2C 2024-09-15 15:16:18 +02:00
Theo Arends a3892ecbc4 Update change logs 2024-09-14 16:13:14 +02:00
s-hadinger 1bfbe02a29
Berry I2C to prepare M5Stack I2C STM32 based devices (#22143) 2024-09-14 12:25:23 +02:00
Theo Arends 1dff0b4b27 Add support for RX8010 RTC as used in IOTTIMER (#21376) 2024-09-13 13:53:01 +02:00
s-hadinger 6e4517de02
Berry virtual Energy driver (#22134) 2024-09-12 19:38:04 +02:00
Theo Arends 7b8308c36a Add support for I2C M5Unit (Mini)Scales using HX711 driver 2024-09-12 12:14:32 +02:00
s-hadinger 9d012f64c8
Add internal I2C argument to send stop while reading (#22127) 2024-09-11 16:41:35 +02:00
Pavel Sheremetev 1edc4b57b7
allow define calibration parametrs for bl09xx (#22030)
Co-authored-by: PavelSheremetev <spd@aira.life>
2024-09-11 08:55:43 +02:00
Theo Arends d8f01ed4c0 Refactor HX711 memory use 2024-09-10 15:59:25 +02:00
Theo Arends 07eb51764a Update changelogs 2024-09-10 14:54:32 +02:00
Theo Arends f0da077e78 Merge branch 'development' of https://github.com/arendst/Tasmota into development 2024-09-10 14:50:07 +02:00
stefanbode 05e59b048e
Fix remaining issues on shutterinvert (#22120)
found another place where the invert was not reported correctly
2024-09-10 14:48:51 +02:00
gemu 1c730aab86
fix trx pin error (#22119) 2024-09-10 14:48:38 +02:00
Theo Arends 5675f00d70 Update changelogs 2024-09-10 14:12:31 +02:00
s-hadinger 2d522485c4
Zigbee fix flashing CC2562P with latest firmware (#22117) 2024-09-09 21:56:18 +02:00
s-hadinger 7247cd6c44
Fixed Berry energy missing attributes (#22116) 2024-09-09 21:50:06 +02:00
Theo Arends a75a58d591 Update changelogs 2024-09-09 16:39:27 +02:00
Damian Wrobel 6650dee578
Fix ModbusBridge request/response logic (#22075)
- Fix cases where the subsequent Modbus packet
  can be send to the serial port (triggered either by
  'ModbusSend' command or request from TCP bridge)
  before an answer was received to the previous packet.

  This can happen in a setup where simultaneously:
  - two (or more) modbus TCP clients are sending requests
    through the modbus-proxy [1] to Tasmota,
  - ModbusSend commands are executed (e.g. using Berry).

  Log excerpt (from build with TASMOTAMODBUSDEBUG enabled):
  14:51:18.940 MBS: Serial Send: 04 03 01 00 00 09 84 65
  14:51:19.054 MBS: Serial Send: 04 03 10 0A 00 05 A1 5E
  14:51:19.136 MBS: Serial Received: 04 03 0A 00 00 00 D0 00 00 01 AB 00 00 89 62

  Fix adds 'waitingForAnswerFromSerial' flag which is set after
  we send data to the serial port and prevents sending another
  requests before we receive an answer or timeout happened.

  Fix stores temporarily a 'ModbusSend' command data and tries
  to execute it after Modbus response has been received or
  timeout has happened.

- Add 'ModbusSerialTimeout' command which sets timeout in [ms]
  for how long we will be waiting for an answer from the client device.
  Default value is 1000 [ms] and it is not restored after reboot.

- Sends error 11 (0xB) (as TCP response) when no answer was received
  from the serial port within the timeout set by 'ModbusSerialTimeout'
  command.

- Add Modbus 'TransactionId' to the logging.

[1] https://github.com/tiagocoutinho/modbus-proxy

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2024-09-09 10:26:20 +02:00
pbrinette 28bbf11dbb
Enhance the KNX capabilities of Tasmota to offer more flexibility and features (#22071) 2024-09-09 09:25:11 +02:00
s-hadinger 9ac2a69603
Matter support for Zigbee Occupancy and Light 0/1/2 (OnOff / Dimmer / White Color Temperature) (#22110) 2024-09-08 23:16:19 +02:00
Theo Arends 1bf6a13d7c Bump version v14.2.0.4
- Add HX711 optional calibration precision option on command ``Sensor34 2 <weight in gram> <precision>`` where `<precision>` is 1 to 10 (#13983)
2024-09-08 17:32:35 +02:00
stefanbode 744e50acf7
Fix missing HOLD on shutterbutton (#22108)
#21986
2024-09-08 16:50:37 +02:00