Commit Graph

9513 Commits

Author SHA1 Message Date
Grzegorz abc6e46354
Add Air Direction control for MiElHVAC (#22241)
* Update xdrv_44_miel_hvac.ino

Code structure cleanup,
Add Power, SetTemperature, Mode, SwingV, SwingH, FanSpeed to JSON StatusSNS MiElHVAC

* Update xdrv_44_miel_hvac.ino

* clesnup

* Revert "Update xdrv_44_miel_hvac.ino"

This reverts commit 45f813d32c.

* revert styling and format

* make operation and compressor indyvidual and remove unnecessary sep

* Update xdrv_44_miel_hvac.ino

* Update xdrv_44_miel_hvac.ino

* Use uppercase

* Update xdrv_44_miel_hvac.ino

* Added AirDirection control modes (even, indirect, direct)
* Added to WIDEWANE MAP - ISEE position (if AirDirection is used)
* Update WIDEWANE position values

* fix data size
2024-10-07 08:54:23 +02:00
Theo Arends 4196f753c8 Update changelogs 2024-10-06 22:40:28 +02:00
Theo Arends 0240da2bf7 Fix Dali received data decoding
- Add support for DALI 1 on ESP8266
2024-10-06 21:57:59 +02:00
s-hadinger d9f246f0f0
LVGL port `colorwheel` from LVGL 8, HASPmota `cpicker` and `msgbox` (#22244) 2024-10-06 18:53:06 +02:00
Grzegorz ba687deaf5
Bridge Mitsubishi AC devices to Homebridge/Homekit locally (#22236)
* Update xdrv_44_miel_hvac.ino

Code structure cleanup,
Add Power, SetTemperature, Mode, SwingV, SwingH, FanSpeed to JSON StatusSNS MiElHVAC

* Update xdrv_44_miel_hvac.ino

* clesnup

* Revert "Update xdrv_44_miel_hvac.ino"

This reverts commit 45f813d32c.

* revert styling and format

* make operation and compressor indyvidual and remove unnecessary sep

* Update xdrv_44_miel_hvac.ino

* Update xdrv_44_miel_hvac.ino

* Use uppercase
2024-10-05 23:13:56 +02:00
Barbudor b09b3560b9
recreate 16044 (#22232) 2024-10-03 09:21:55 +02:00
Damian Wrobel bf0f7316b9
Avoid sending more then one Modbus TCP response (#22223)
Prevent from sending more then one Modbus TCP response
for a single request.

This might happen in the following scenario where,
shortly after the first response has been sent (4),
the second one will be send (8) (note the same
'TransactionId') triggered by the response to the
'ModbusSend' request issued by Berry (5).

The log excerpt from such a situation:

(1) 21:13:20.510 MBS: MBRTCP to Modbus TransactionId:520, deviceAddress:4, functionCode:3, startAddress:8193, count:1, recvCount:1, recvBytes:2
(2) 21:13:20.523 MBS: Serial Send: 04 03 20 01 00 01 DE 5F
(3) 21:13:20.647 MBS: Serial Received: 04 03 02 0A 28 72 FA
(4) 21:13:20.652 MBS: MBRTCP from Modbus TransactionId:520, deviceAddress:4, writing:11 bytes to client (error:0)
(5) 21:13:20.724 CMD: Grp 0, Cmd 'MODBUSSEND', Idx 1, Len 89, Pld -99, Data '{"deviceAddress":4, "functionCode":6, "startAddress":8192, "type":"uint16", "Values":[6]}'
(6) 21:13:20.743 MBS: Serial Send: 04 06 20 00 00 06 02 5D
(7) 21:13:21.009 MBS: Serial Received: 04 06 20 00 00 06 02 5D
(8) 21:13:21.014 MBS: MBRTCP from Modbus TransactionId:520, deviceAddress:4, writing:12 bytes to client (error:0)

Use 'tcp_transaction_id' field to denote that we already
sent a response.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2024-10-02 21:34:48 +02:00
Grzegorz 6fa38e4b83
Add heat/dry/cool isee operation mode to xdrv_44_miel_hvac.ino (#22216)
* Add heat/dry/cool isee operation mode to xdrv_44_miel_hvac.ino

This add heat, dry, and cool isle operation mode to support new AC devices. Closes also #10937

* remove duplicated wide vane mode
2024-09-30 11:21:12 +02:00
Theo Arends 2d80f87fc9 Attempt 2 to fix Dali core 3 compilation (#22214) 2024-09-30 09:50:15 +02:00
Theo Arends 5d4230d39b Attempt to fix Dali core 3 compilation (#22214) 2024-09-29 17:11:13 +02:00
Theo Arends 19d3984d6e Fix BL906 name (#22167) 2024-09-29 14:30:54 +02:00
Theo Arends b2b839fa83 Add support for Sonoff SPM v1.3.0 (#13447) 2024-09-28 17:57:31 +02:00
pharaocurt 5909eec188
fix compile error with core 3.0.0 for Range Extender driver xdrv_58_range_extender.ino (#22205)
* final ported range_extender

* removed #define USE_WIFI_RANGE_EXTENDER_PORTADD, because new framework-arduinoespressif32 @ 3.1.0+sha.22a3b096 is available with CONFIG_LWIP_IPV4_NAPT_PORTMAP=y
2024-09-27 20:16:28 +02:00
Theo Arends 452031fbbd Add Energy Export Active support to BL0906 (Athom EM2/EM6) 2024-09-27 18:08:22 +02:00
Theo Arends 692a0ca4b1 Bump version 14.2.0.6 2024-09-26 17:38:49 +02:00
Theo Arends d716a275bf Tune BL0906 driver 2024-09-26 17:20:34 +02:00
Theo Arends 08d75a5fe3 Add Support for BL0906 up to 6 channel energy monitor as used in Athom EM2/EM6 (#22167) 2024-09-25 18:11:07 +02:00
Theo Arends 27a4ea0f70 Add Support for BL0906 up to 6 channel energy monitor as used in Athom EM2/EM6 (#22167) 2024-09-25 18:05:16 +02:00
Theo Arends 61aeea9132 Add ESP8266 support for one-wire M1601 temperature sensor on DS18x20 GPIO (#21376) 2024-09-25 15:01:19 +02:00
Theo Arends 622b8b10c0 SSPM show only if powered ON 2024-09-25 11:06:51 +02:00
Theo Arends e3c47851b7 First fix SPM v1.3.0 report values (#13447) 2024-09-24 22:36:02 +02:00
Theo Arends 64de5497f4 Bump version v14.2.0.5
- Add ESP8266 support for I2C CLK on GPIO16 (#22199)
2024-09-24 17:44:15 +02:00
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
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
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 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
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
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
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
gemu 2c5e8749e3
multi trx lines (#22056) 2024-09-07 15:29:27 +02:00
Jason2866 069f59d13f
remove irritating space (#22095) 2024-09-05 16:51:45 +02:00
s-hadinger 5f80251414
Berry Zigbee improvements to prepare Matter (#22083) 2024-09-03 23:22:50 +02:00
s-hadinger 4164887412
Zigbee avoid disabling console serial on ESP32 and improved log messages (#22082) 2024-09-03 23:06:07 +02:00
s-hadinger b6e81c1edd
Zigbee Koenkk firmware 20240710 for Sonoff Zigbee ZBPro (#22076) 2024-09-02 22:20:41 +02:00
Steffen caa501b1af
add support for nexus protocol to rc-switch library (#21886)
* add support for nexus protocol to RCSwitch library

Nexus protocol is used by temperature and humidity sensor that operate at 433 MHz.
It is used by various brands.

* calc separation limit for RCSwitch library automatically
2024-09-01 16:04:40 +02:00
s-hadinger 11ed65560b
LVGL Added OpenHASP icons to font `montserrat-28` (#22048) 2024-08-29 16:57:01 +02:00
s-hadinger e7f120d443
Berry make `energy` modules changes from #21887 backwards compatible (#22046) 2024-08-29 16:02:14 +02:00
s-hadinger e8cdeaba6b
ESP32 LVGL library from v9.1.0 to v9.2.0 (#22031) 2024-08-27 23:36:38 +02:00
Theo Arends a10e3b9bc5 GPIOViewer function shuffle. No functional changes 2024-08-26 16:48:39 +02:00
Theo Arends 969611835c Fix GPIOViewer on ESP32 (needs upcoming core change) 2024-08-26 15:26:36 +02:00
Theo Arends f0c12b6e9c Remove dash from GUI title 2024-08-26 14:20:51 +02:00
Theo Arends fefd49c663 Remove dash from GUI title 2024-08-26 14:14:59 +02:00
pkkrusty 88c9ae3273
Clarify MAX7219 display driver (#21977)
MAX7219 and MAX7219_MATRIX are different displays and require different defines. DisplayModel19 incorrectly listed for MAX7219 instead of MAX7219_MATRIX.
2024-08-26 08:49:48 +02:00
gemu c35c493809
i2s wav player (#22003)
* i2s wav player

* move framepointer
2024-08-26 08:48:35 +02:00
s-hadinger 645ce4a1ee
Zigbee reduce serial logging (#22012) 2024-08-24 23:53:42 +02:00
s-hadinger d084be23db
Zigbee extend timeout for MCU reboot from 5s to 10s (#22009) 2024-08-24 18:32:35 +02:00
Theo Arends 831597e7d9 Version v14.2.0.3
- Add command ``SetOption69 1`` to enable Serial Bridge inverted Receive (#22000)
2024-08-23 11:22:26 +02:00
Theo Arends 4144f5c5ca Change GPIOViewer from v1.5.5 to v1.5.6 2024-08-22 18:03:39 +02:00
Theo Arends 798edc20c2 Version v14.2.0.2
- Changed Energy BL09xx command ``CurrentSet`` input changed from Ampere to milliAmpere
2024-08-21 16:27:43 +02:00
Theo Arends ba7161fb00 Fix ESP8266 energy cal range chk 2024-08-20 17:30:18 +02:00
Theo Arends ab2d6c1169 Add Energy command ``PowerSet 60,230`` to calibrate both Current and Power with known resistive load of 60W at 230V using calibrated Voltage 2024-08-20 13:08:56 +02:00
Theo Arends c5b92d3ab1 Add Energy Log level 4 message when (Calculated) Apparent Power is less than Active Power indicating wrong calibration (#20653) 2024-08-19 22:31:56 +02:00
Theo Arends 4f62a0deab Refactor to TimeReacged() 2024-08-18 12:46:23 +02:00
Theo Arends e74142724c Disable 64-bit timing support 2024-08-18 12:13:44 +02:00
Theo Arends 903686f7b5 Add 64-bit timing support 2024-08-16 11:56:07 +02:00
Theo Arends c0eb28dae9 Harden shutter timeouts 2024-08-16 11:53:58 +02:00
Theo Arends 652b9cef87 Fix PZEM continue energy monitoring when one phase fails (#21968) 2024-08-15 17:32:11 +02:00
stefanbode 6d2647fd5f
fix potential overflow on uptime 2nd try (#21966)
* fix potential overflow

* fix potential overflow

* fix overflow on millis()

* fix overflow on millis()

* Update xdrv_27_shutter.ino

---------

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
2024-08-15 14:28:10 +02:00
Theo Arends 1b24378da5 Free 500 code bytes on ADC/ESP8266 2024-08-15 12:52:12 +02:00
stefanbode 851f11dcdd
fix potential overflow on uptime (#21965)
* fix potential overflow

* fix potential overflow

* fix potential overflow

* fix potential overflow
2024-08-15 10:08:54 +02:00
Theo Arends 30cffa1acc Bump version v14.2.0.1 2024-08-14 15:13:00 +02:00
Theo Arends 102428f768 Needed too 2024-08-13 15:13:04 +02:00
Theo Arends b93e6cee7b Change GUI name of Analog<x> to ADC<x> 2024-08-13 15:11:51 +02:00
Theo Arends ff46745252 Fix ADC conversion to v14.1.0.4 2024-08-13 13:57:58 +02:00
Theo Arends 8f75684cd7 Add Rule and Scripter xdrv sensor polling 2024-08-13 12:28:09 +02:00
Theo Arends 5bac2a2331 Revert "Add Rule and Scripter xdrv sensor polling"
This reverts commit cc2ea328d5.
2024-08-11 19:29:10 +02:00
Theo Arends cc2ea328d5 Add Rule and Scripter xdrv sensor polling 2024-08-11 17:47:01 +02:00
Theo Arends d3f6d7d844 Sync ESP8266 energydriver with ESP32 2024-08-10 17:15:05 +02:00
Theo Arends 85da678132 Fix ADC bad energy jumps 2024-08-10 17:01:14 +02:00
Theo Arends bcd1a9c986 Fix ADC multiple GPIO parameter storage 2024-08-09 16:11:30 +02:00
f-reiling de59b036d0
improved read access for SDM630 (#21897)
* improved read access for SDM630

read access improved by reading several registers in one cycle -> higher update rate

* fixed compiler warning

* fix review finding

* added SDM630_HIGH_UPDATE_RATE to select new implementation
2024-08-09 09:23:52 +02:00
Norbert Richter 663fc88373
Update NeoPool comments (#21920) 2024-08-07 16:09:53 +02:00
sfromis 77669f7e20
Update my_user_config.h (#21921)
Adding SetOption references for a few `#define`, to make the relation clear, and in the common searchable format like `[SetOption147]`. Also added that since some time now, this option covers both `SSerialReceived` and `IrReceived`.
2024-08-07 16:08:52 +02:00
Theo Arends 040ffb33e0 Fix restore ADC energytoday on power cycle 2024-08-06 18:07:26 +02:00
s-hadinger f88a635d5d
Zigbee loads device data early before MCU startup (#21917) 2024-08-06 12:43:15 +02:00
Theo Arends 4f035d18f6 Fix invalid ADC energy reset 2024-08-04 18:06:24 +02:00
Theo Arends 3473c3c1b0 Fix scientific notation for 1234.5 (#21131) 2024-08-04 17:42:15 +02:00
Theo Arends bdec6aed67 Update xsns_02_analog.ino 2024-08-04 16:37:36 +02:00
Theo Arends 469f12abbc Add ADC support for Shelly Plus RGBW PM 2024-08-04 16:35:02 +02:00
Theo Arends 82add09bf9 Fix Core 3.0.4 baudrate detection 2024-08-04 16:11:13 +02:00
Theo Arends f6c3064890 Fix ADC migration 2024-08-03 18:03:41 +02:00
Theo Arends c7faff7ac6 Refactored Analog driver to better support multiple channels
- Add command ``AdcGpio<gpio> <parameters>`` to better support ADC configuration
2024-08-03 17:52:47 +02:00
Fabrizio Amodio 73357b6cfd
prevent spike on power ON on BioPDU (#21892) 2024-08-03 10:10:11 +02:00
s-hadinger 3c884118ed
Berry `zigbee.started()` (#21895) 2024-08-02 19:42:11 +02:00
s-hadinger 6b98a320b1
Berry `zigbee.find()` (#21889) 2024-08-02 15:43:31 +02:00
s-hadinger 010ca34622
Berry `energy` module support for 8 phases and move to pseudo-arrays (#21887)
* Berry `energy` module support for 8 phases and move to pseudo-arrays

* add size()
2024-08-01 22:37:37 +02:00
s-hadinger a3ed99e549
Change Energy `power_history` arrays to prepare for Berry mapping (#21876) 2024-07-31 14:27:34 +02:00
gemu ba596993a0
fix sd mmc free space display (#21869)
* fix sd mmc free space display

* Update xdrv_50_filesystem.ino
2024-07-30 22:24:31 +02:00
Jan-David Förster 4101ad7303
xsns_14_sht3x.ino - data types adjusted, code size reduced (#21868)
* code size, data type improvements

* Change temp calculation to int
2024-07-30 22:23:53 +02:00
s-hadinger 0c52b40f49
Adjust Matter code size 2024-07-29 09:43:05 +02:00
Theo Arends a98399367b Fix analog reset adcparam 1 2024-07-28 18:58:06 +02:00
Theo Arends 88293d7414 Analog GPIO changes
- Analog GPIO ``ADC Input`` with ``AdcParam<x> 1,<start_range>,<end_range>,<margin>,1`` provide direct light control
- Analog GPIO ``ADC Voltage`` with ``AdcParam<x> 11,<start_range>,<end_range>,<lowest_voltage>,<highest_voltage>`` provide energy monitoring with dc voltage
- Analog GPIO ``ADC Current`` with ``AdcParam<x> 12,<start_range>,<end_range>,<lowest_current>,<highest_current>`` provide energy monitoring with dc voltage
2024-07-28 18:52:38 +02:00
Theo Arends 87ec0cce21 Revert "Analog GPIO extensions"
This reverts commit 7c1cf6a81f.
2024-07-28 18:47:13 +02:00
Theo Arends 7c1cf6a81f Analog GPIO extensions
- Analog GPIO ``ADC Input`` with ``AdcParam<x> 1,<start_range>,<end_range>,1`` provide direct light control
- Analog GPIO ``ADC Voltage`` with ``AdcParam<x> 11,<start_range>,<end_range>,<lowest_voltage>,<highest_voltage>`` provide energy monitoring with dc voltage
- Analog GPIO ``ADC Current`` with ``AdcParam<x> 12,<start_range>,<end_range>,<lowest_current>,<highest_current>`` provide energy monitoring with dc voltage
2024-07-28 18:33:43 +02:00
SteWers 068e8e6cbe
Update de_DE.h (#21857) 2024-07-28 14:24:47 +02:00
Theo Arends a4e592c776 Refactor analog
- Change from double to float where possible
- Fix Voltage/Current energy calculation
2024-07-28 14:15:35 +02:00
bovirus a9651e1bf1
Update Italian language (#21856) 2024-07-28 09:19:21 +02:00
Theo Arends d7c6474104 Add Analog Voltage and Current 2024-07-27 17:11:25 +02:00
Norbert Richter 5abff54bc6
Add NeoPool `NPSetOption<x>` command (#21850) 2024-07-27 11:41:06 +02:00
Tarvi Pillessaar a95e52b375
Neopool relay state detection and reporting fixes (#21841)
* Neopool: remove space in MQTT relay state response

* Neopool: fix detecting some relay states
2024-07-27 11:39:43 +02:00
Theo Arends d4a63f791e Fix SPI busses 2024-07-26 14:29:51 +02:00
Theo Arends e02615827b Fix compilation without SPI 2024-07-26 13:50:15 +02:00
Theo Arends 4cf741e6eb Update xsns_02_analog.ino 2024-07-26 11:02:27 +02:00
Theo Arends 9af25c73d6 Refactor ADC MQ_SAMPLES saving code and RAM 2024-07-26 11:01:09 +02:00
s-hadinger 55cb473e13
Berry `webserver_async` (#21836)
* Berry `webserver_async`

* Shrink size and include only when USE_BERRY_DEBUG
2024-07-26 09:32:12 +02:00
Theo Arends 2f33f8e5a8 Fix Non-ESP32 Analog read resolution 2024-07-25 18:04:01 +02:00
s-hadinger b62b2d0d93
Matter support for split lights (`SetOption68 1` and `SetOption37 128`) (#21834) 2024-07-24 10:20:25 +02:00
Theo Arends 895fbb2e8a Add optional USE_SONOFF_IFAN_CONFIG 2024-07-23 15:35:45 +02:00
Theo Arends 401d7b9b41 Fix StrCaseStr_P() 2024-07-23 14:28:36 +02:00
s-hadinger e085cfd3ab
Berry fix `light.get` for separate RGB/CT (#21818) 2024-07-22 20:38:14 +02:00
Theo Arends f42e44a69d Support for Sonoff iFan04-H using template (#16402)
- Bump version v14.1.0.4
2024-07-22 15:35:20 +02:00
gemu 58485dec2a
fix resistive Touch xpt for 2 spi busses (#21814)
* fix xpt touch for 2 spi busses

* support for 2 utouch spi busses

* Update support.ino
2024-07-22 13:58:50 +02:00
Jan-David Förster 9878a96c0b
Update SHT3X driver to bring it into line with other sensors, e.g., HYT..., and avoid unnecessary I²C reads (#21816)
* Avoid unnecessary I²C reads, bring code in line with other sensors.

* Update xsns_14_sht3x.ino

fix copyright again
2024-07-22 13:58:17 +02:00
s-hadinger 8c9040919d
FIx typo in Parition_Wizard and re-generate tapp file (#21813) 2024-07-21 22:58:28 +02:00
Theo Arends 990a0e4257 Add Propagating upload to ESP8266 minimal 2024-07-21 15:22:15 +02:00
Theo Arends e2fdf18625 Fix CalVer to SemVer updates 2024-07-21 12:23:10 +02:00
bovirus ebed3ded37
Update Italian language (#21792) 2024-07-18 08:28:43 +02:00
Theo Arends a0893c9aae Add EPD update frame (#21788) 2024-07-17 17:52:30 +02:00
Theo Arends 105d18b9b6 Fix universal display slow response 2024-07-17 17:13:24 +02:00
Theo Arends a448f538aa Revert "Fix universal display slow response"
This reverts commit 98a5bc95a9.
2024-07-17 16:22:34 +02:00
Theo Arends 98a5bc95a9 Fix universal display slow response 2024-07-17 16:20:28 +02:00
Theo Arends b23a2f2304 Bump GPIOViewer version to v1.5.5 2024-07-17 14:28:50 +02:00
Theo Arends 85bff67d9b Add support for Wooliis Hall Effect Coulometer or Battery capacity monitor (#21732) 2024-07-17 14:14:44 +02:00
lmelette 9c8f3826b2
Added support for Wooliis LCD Coulometer/Battery Monitor (#21732)
* Added support for Wooliis LCD Coulometer/Battery Monitor

* Adjusted code structures and data types for Wooliis sensor

---------

Co-authored-by: Luca Melette <luca@positive.security>
2024-07-17 12:25:44 +02:00
Theo Arends 69f1ea5627 Move StateText fro MQTT to commands (#21782) 2024-07-16 15:16:18 +02:00
Christian Baars 6673fb906b
prevent crash with unconfigured audio (#21775) 2024-07-14 21:00:24 +02:00
Theo Arends e9fdbea091 Unify display/touch init messages 2024-07-14 15:18:01 +02:00
Theo Arends 8f6a0b15c3 Update changelogs 2024-07-14 13:54:09 +02:00
Theo Arends a18be12b77 Fix universal display software spi regression from yesterday 2024-07-14 10:01:34 +02:00
Jason2866 3d34097275
final i2s fix (#21770) 2024-07-13 18:11:33 +02:00
Theo Arends 36329827fc Refactor universal display driver 2024-07-13 14:58:24 +02:00
Theo Arends 279d9e5824 Add I2C display name during startup in universal display driver 2024-07-12 16:36:04 +02:00
Theo Arends f68ac4377a Fix udisplay positional replacements (#21121) 2024-07-12 14:57:27 +02:00
Christian Baars 13330eb085
Berry: add int8 quantisation to Tensorflow lite driver (#21763)
* add input quantization, minor fixes

* prevent divideByZero
2024-07-11 23:05:47 +02:00
Theo Arends 23de275dbe Fix POWCT default calibration 2024-07-11 20:51:53 +02:00
Jan-David Förster 27083e3664
Bugfix: multiple SHT4x sensors at the same bus, support for SHT40-CD1B (#21755)
* fixes multiple SHT3X sensor type bug

Important when multiple sensors are present at the same bus. Prior to this fix, multiple SHT3X sensor were detected, but not SHTC3 and SHT4X!

* Update xsns_14_sht3x.ino

Extends I²C address range to include SHT40-CD1B sensors with address 0x46.

* Update I2CDEVICES.md

* Show bus when multiple sensors at different busses

* Make bus number less intrusive

Only show bus number if two sensors or more are active at more than one bus.

* variable renamed

* cleanup

* fix typo

* fix another typo

* Harmonization and saving code size for ESP8266

Harmonization with xsns_09_bmp driver, saving code size for ESP8266

* fix string for webserver

* Display address only if more than one sensor present.
2024-07-10 18:55:51 +02:00
timehlers a3048a0b25
add support for 4.2 inch epaper display from WeAct Studio (partial up… (#21717)
* add support for 4.2 inch epaper display from WeAct Studio (partial update)

* make ep_mode=3 decision more clear, reinserted an mistakenly removed comment

---------

Co-authored-by: timehlers <>
2024-07-08 17:25:06 +02:00
Theo Arends 105a08dd20 Skip MQTT response if command is prefixed with underscore (#21740) 2024-07-08 16:57:21 +02:00
Theo Arends 09b2670c45 Add command ``Backlog3`` to execute commands without response but rule processing (#21740) 2024-07-08 15:53:15 +02:00
Christian Baars 7cb8a3f968
Berry: add cam module, img class (#21743)
* cam module, img class
2024-07-07 19:50:33 +02:00
Theo Arends fee5251bd4 Fix universal display power regression (#21726) 2024-07-05 15:30:31 +02:00
Theo Arends 04a6d5513b Prep serial IDF 5.2 support 2024-07-04 16:04:59 +02:00
Norbert Richter 843dd17aec
NeoPool add data validation and statistics (#21721)
Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
2024-07-04 09:28:01 +02:00
s-hadinger 243df3f2cf
`FUNC_BUTTON_PRESSED` now contains `press_counter` encoded in `XdrvMailbox.command_code` (#21724) 2024-07-03 22:13:50 +02:00
Jason2866 b1422ff6b5
make Tasmota compatible for Arduino espressif32 based on IDF 5.2.2 (#21723)
Co-authored-by: Christian Baars <Baars@gmx.de>
2024-07-03 20:27:18 +02:00
Theo Arends 59fc68026b Add Support for Sonoff POWCT Ring (#21131) 2024-07-03 16:31:43 +02:00
Theo Arends 9b537d81e0 Fix energy maxpower retry count (#21695) 2024-07-03 13:52:01 +02:00
Theo Arends ac011132ee Fix ESP8266 MaxPower edge case 2024-07-03 11:07:59 +02:00
Theo Arends 1fd8de6762 Update energy structure 2024-07-02 18:47:55 +02:00
Theo Arends 640aabe1b3 Fix ESP32 MaxPowerHold edge case (#21695) 2024-07-02 18:07:53 +02:00
Theo Arends 0b54d49181 Refactor TM1621 driver 2024-07-02 17:21:48 +02:00
Theo Arends 0e6e4e8949 Prep support Sonoff Pow CT 2024-07-02 11:38:55 +02:00
Theo Arends 344fdf94f7 Update changelogs 2024-07-02 10:19:59 +02:00
Theo Arends c8e29dafc6 Changed ESP32 TM1621 number overflow from "9999" to "12E3" (#21131) 2024-07-01 12:31:02 +02:00
s-hadinger 2cc785bf20
Berry `FUNC_BUTTON_MULTI_PRESSED` event and make `FUNC_BUTTON_PRESSED` called only on state changes and once per second (#21711) 2024-06-30 21:00:14 +02:00
s-hadinger 6842b53425
Berry `FUNC_BUTTON_MULTI_PRESSED` event and make `FUNC_BUTTON_PRESSED` called only on state changes (#21709) 2024-06-30 19:14:32 +02:00
Theo Arends 65588b8126 Increase upper limits user entry for energy drivers (#16059) 2024-06-30 17:26:39 +02:00
Theo Arends 33062dc839 Refactor energy drivers 2024-06-30 16:58:37 +02:00
s-hadinger 8d2d121b6d
Berry `FUNC_ANY_KEY` event calling `any_key()` (#21708) 2024-06-29 22:12:34 +02:00
Theo Arends 8a0493b659 Cleanup esp32 energy 2024-06-28 18:04:50 +02:00
Theo Arends 8364eca708 Refactor esp32 energy margins entry 2024-06-28 17:51:05 +02:00
Theo Arends 271446fd66 Remove obsolete SafePower commands 2024-06-28 14:38:08 +02:00
Theo Arends 96a45a6dde Refactor ESP32 energy 2024-06-28 11:12:28 +02:00
Theo Arends 621f6f59e1 Fix default power windows 2024-06-27 17:07:08 +02:00
Theo Arends 178d42c286 Change ESP32 support for energy margin checks, like ``MaxPower2`` per phase (#21695)
- Add ESP32 support for power and energy limit checks, like ``MaxEnergy2`` per phase (#21695)
- Bump version v14.1.0.3
2024-06-27 16:50:45 +02:00
s-hadinger 97017017a4
Matter full support of events (#21698) 2024-06-27 00:03:34 +02:00
Theo Arends bf1dace55d Add ESP32 USE_FLOG support (experimental) 2024-06-25 22:52:15 +02:00
Theo Arends af1fa724af Fix non-webserver compilation 2024-06-25 16:36:28 +02:00
Jason2866 0bddfad14e
No Ethernet support for the C2 (#21691)
* No Ethernet for the C2

* Post process: Disable always Ethernet for C2

* better check for Ethernet available

* typo

* excluse c2 with `ifndef`
2024-06-25 15:13:16 +02:00
Jason2866 aa39e000f7
add C2 as target for BLE (#21685) 2024-06-23 21:44:56 +02:00
Theo Arends ddf762b7cc Refactor GPS driver 2024-06-23 17:38:54 +02:00
Roland Praml f3dcbdcea9
FIX: Allow use of UART0 with enabled USB_CDC_CONSOLE (#21496)
Co-authored-by: Roland Praml <roland@DESKTOP-MKLGCJR>
2024-06-22 14:17:05 +02:00
gemu aa380ea190
fix tcp server (#21660) 2024-06-21 16:35:20 +02:00
stefanbode d18925897a
MQTT fix on inverted shutter (#21663)
* MQTT fix on inverted shutter

* MQTT fix on inverted shutter
2024-06-21 16:35:05 +02:00
Christian Baars d15b88f746
improve parser (#21648) 2024-06-16 20:54:59 +02:00
Norbert Richter 2ce513f50c
NeoPool make compiler setting available by user_config_override.h (#21645) 2024-06-16 17:07:51 +02:00
Theo Arends d3f8afed29 Fix GPS_VELOCITY (#18035) 2024-06-15 16:52:42 +02:00
bovirus 9499211d7d
Upload Italian language (#21641) 2024-06-15 15:49:06 +02:00
Jason2866 711e283925
allow define wifi credentials in pio (#21640) 2024-06-15 15:48:24 +02:00
Theo Arends 94aded8d5c Update changelogs 2024-06-15 13:59:17 +02:00
bovirus 342ba2bd44
Update Italian language (#21635) 2024-06-15 11:11:42 +02:00
Theo Arends 0c49262d54 Update changelogs 2024-06-14 22:40:27 +02:00
Theo Arends 75c47b6948 Extend command ``SetOption147 1`` to disable publish of IRReceived MQTT messages (#21574) 2024-06-14 11:23:03 +02:00
gemu cbff86695f
replace vars in descriptor + line (#21622) 2024-06-14 10:14:44 +02:00
Norbert Richter 95f6032d86
Change NeoPool using temperature as only frequently changing value for NPTeleperiod (#21628) 2024-06-14 10:14:13 +02:00
Jason2866 4fbe3590be
add TM1638 switches to display build (#21617) 2024-06-12 20:23:43 +02:00
Theo Arends 7bde0b89d1 Fix QMP6988 2024-06-12 10:50:29 +02:00
Theo Arends 87148ae0c1 Change SerialBridge command ``SSerialSend9`` replaced by ``SSerialMode``
- Bump version v14.1.0.2
2024-06-11 17:27:39 +02:00
Jason2866 7e8bcd896a
include `SD_MMC.h` only when supported (#21611) 2024-06-11 13:25:47 +02:00
Theo Arends 4858ec0aef Allow receive or send using SerialBridge 2024-06-11 12:41:19 +02:00
Theo Arends ae9d2a2c85 Refactor display modes1 to 4 2024-06-11 11:07:30 +02:00
Theo Arends 0471ba24c1 Add support for QMP6988 temperature and pressure sensor 2024-06-10 16:05:25 +02:00
Christian Baars aa217e13b9
refactoring, bugfixes, generic device scanning (#21603) 2024-06-10 10:50:50 +02:00
stefanbode ae499eb73a
MQTT is not reporting the correct LastChange (#21605)
I assume this is just missing. I got some side effects on shutters where on MQTT commands the source is still the LAST one before the MQTT
2024-06-10 10:42:02 +02:00
Theo Arends bdc15960ad Refactor display show sensors 2024-06-09 16:25:04 +02:00
Theo Arends ea5c9bc9b6 Fix DisplayMode MQTT (Un)Subscribe without restart 2024-06-09 13:46:54 +02:00
Theo Arends 8cfa6f28ea Fix restart on wifimanager timeout 2024-06-09 10:40:01 +02:00
Jason2866 c556c06413
remove dead code (#21595) 2024-06-09 10:25:32 +02:00
Theo Arends 1e33b45ea8 Add partial DisplayText features to modes1 to 5 2024-06-08 17:22:19 +02:00
Theo Arends ff961df336 Change display timing splash screen with display modes 1 to 5 2024-06-08 15:33:44 +02:00
s-hadinger 8479da0afb
Remove obsolete comment in my_user_config.h 2024-06-07 13:04:44 +02:00
Theo Arends 9350f68ac5 Replace optional MQTT_TELE_RETAIN to Energy Margins message by ``SensorRetain`` 2024-06-07 11:48:52 +02:00
Marius Bezuidenhout f68e2285e8
Fixed incorrect output size clamping (#21568) 2024-06-06 09:39:23 +02:00
Jason2866 f3fa9dfd9b
Update M5stack_core2_display.ini 2024-06-05 12:53:13 +02:00
Jason2866 89b4376e31
uTouch for m5core2 2024-06-04 17:03:05 +02:00
Jason2866 7ae86d336b
add uTouch settings 2024-06-04 16:45:08 +02:00
Theo Arends dcc7021384 Remove GPIO_I2S_BCLK_IN, GPIO_I2S_WS_IN 2024-06-04 14:19:11 +02:00
s-hadinger 01f9097acb
Add default value for `SetOption151` (#21560) 2024-06-03 22:53:13 +02:00
Theo Arends 243411916b Bump v14.1.0.1 2024-06-03 14:50:59 +02:00
Christian Baars 7b678ba2c8
forgotten safety check (#21549) 2024-06-03 12:09:38 +02:00
blenk92 2d33a77ba5
Support Levoit Core200s (WIP, Feedback requested) (#21502)
* Support Levoit Core 200S

Add berry script to support Levoit Core 200S (and possibly other too
since levoit offers multiple similar devices)

* Core200S: fix comments
2024-06-03 09:50:28 +02:00
Theo Arends 132b98f0c2 Change GPIOViewer from v1.5.3 to v1.5.4 (No functional change) 2024-06-02 12:03:28 +02:00
Andreas Doppelhofer 0249f66066
SML: Allow larger offset when using x to ignore bytes (#21535)
* Allow larger offset when using x to ignore bytes

STW Klagenfurt sends 355 bytes, and the interesting values starts somewhere at position 304. Therefor we need to set a larger uint range to allow more than 255 bytes to ignore.

* Update xsns_53_sml.ino

---------

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
2024-06-02 11:18:35 +02:00
Theo Arends 8c4388bf47 Fix M5AtomS3 display descriptions 2024-05-31 15:37:23 +02:00
s-hadinger 0bd5f6b27a
Remove deprecated code from drivers, `USE_TTGO_WATCH` and `USE_M5STACK_CORE2` (#21533) 2024-05-31 08:58:11 +02:00
Roland Praml 4d9e9198b5
SML: FastExit for binary SML parsing (#21497)
* SML: FastExit for binary SML parsing

* moved the fast-exit in the SML-shift-in

* Using constants for flags

---------

Co-authored-by: Roland Praml <roland@DESKTOP-MKLGCJR>
2024-05-30 14:18:26 +02:00
Theo Arends f5ed2e0845 Fix oops 2024-05-30 10:54:32 +02:00
Theo Arends 2771827c15 Changed TCP bridge increased baudrate selection (#21528)
- Bump v14.0.0.4
2024-05-30 10:50:12 +02:00
Theo Arends b61ea17ce1 Bump version v14.0.0.3 2024-05-29 17:17:53 +02:00