Commit Graph

307 Commits

Author SHA1 Message Date
chefpro 32cbd330aa
Add Rescan and RetryRead to onewire scan for bulletproove onewire (#19700)
Co-authored-by: Peter Rustler <peter@rustlerit.de>
2023-10-13 11:29:19 +02:00
nusse f245821828
HC8 sensor support (#19714)
* HC8 sensor support

* HC8: fix json

* HC8: missing languages

* HC8: move macros to proper locations

---------

Co-authored-by: Daniel Maier <daniel.maier@tu-berlin.de>
2023-10-13 11:28:41 +02:00
Paul Blacknell 663e6ab21b
Update xsns_110_max17043.ino (#19709) 2023-10-09 16:52:56 +02:00
Paul Blacknell f41e525f5a
fix: account for MAX17043 alert status on start (#19708) 2023-10-09 16:14:41 +02:00
tyler.li a1cce95c08
MAX31855/MAX6675 sensors driver support up to 6 (#19704)
* Support multiple MAX31855/MAX6675 sensor up to 6

* code format

* revert tasmota_template_legacy.h

* revert original variable names

* revert original variable names

---------

Co-authored-by: arendst <mhtarends@gmail.com>
Co-authored-by: litao07 <litao07@kuaishou.com>
2023-10-09 10:44:24 +02:00
Theo Arends 74bcbd898e Fix compilation when webserver disabled 2023-10-06 12:17:37 +02:00
Matteo Albinola 2302d38eb0
Windmeter: add measure interval setting (#19542)
* Add new setting windmeter_measure_intvl and update speed computation

* Ensure windmeter_measure_intvl is not below 1

* Keep same settings order in response messages and add better comments
2023-10-06 10:53:38 +02:00
Christian Baars 58d43333f5
conform to API changes (#19654) 2023-10-03 16:20:48 +02:00
Christian Baars f0b7984466
MI32 legacy: add mi32name, small fixes (#19619)
* add mi32name, small fixes

* remove unused variable
2023-09-29 17:47:17 +02:00
Christoph Friese 5d97a73ddf
Add ENS16x (air quality) and ENS210 (temp & RH) sensors (#19479)
* Add files via upload

Added ENS16x library enabling read-out of ENS160 and ENS161 sensor component (follow-up of CCS811 and iAQcore)
Added ENS210 library to read out ENS210 temperature & humidity sensor

* Add files via upload

Add air quality sensor readout for ENS160 and ENS161 checking two possible I2C addresses (follow up sensor for CCS811 and iAQcore)
Add temperature and humidity sensor readout checking two possible I2C addresses

* Update BUILDS.md

Add USE_ENS16x and USE_ENS210

* Update decode-status.py

Add USE_ENS16x and ENS210

* Update I2CDEVICES.md

Add USE_ENS16x and USE_ENS210

* Update my_user_config.h

Add USE_ENS16x and USE_ENS210

* Update support_features.ino

Add USE_ENS16x and USE_ENS210

* Update tasmota_configurations.h

Add USE_ENS16x and ENS210

* Update tasmota_configurations_ESP32.h

Add USE_ENS16x and USE_ENS210

* Update xsns_111_ens16x.ino

Corrected I2X number

* Update xsns_112_ens210.ino

Corrected I2C number

* Disable USE_ENS16x and USE_ENS210 by default

* Added code size information

* cut down in libs

* optimize tasmota side

* fix ens16x web display

* final fix on alternate addresses

* update code & RAM usage

---------

Co-authored-by: Barbudor <barbudor@barbudor.net>
2023-09-24 18:30:15 +02:00
Andrew Klaus 3061b06f3b
Adding SGP40 support to SGP4X driver (#19560) 2023-09-22 10:15:04 +02:00
s-hadinger fc513af351
Berry counter (#19558)
* Berry read and write Counters

* rename counter
2023-09-20 22:28:40 +02:00
Paul Blacknell d2aee662fd
fix: add command data to cmnd response (#19524) 2023-09-15 22:16:27 +02:00
Theo Arends ee43b43add Fix ESP8266 compilation (#19485) 2023-09-12 15:01:30 +02:00
Theo Arends 597c3655b0 Fix MAX17043 invalid JSON (#19495) 2023-09-11 11:35:26 +02:00
Paul Blacknell b117164993
Improved parsing of accumulation data from HRG-15 rain sensor (#19485)
* fix: more robust parsing of accumulation data

* fix: further parsing checks
2023-09-10 22:33:54 +02:00
Paul Blacknell 4cc81f0dbc
Don't reset the MAX17043 battery fuel gauge after waking from Deep Sleep (#19412)
* fix: don't reset the device when coming out of deep sleep

* fix: move debug log message to inside the device validation

* Update xsns_110_max17043.ino

* add: update global battery percentage when max17043 reports new value
2023-09-09 09:48:30 +02:00
Andre H. Beckedorf 8683bc7722
Added passive mode for Sen5x sensor (required for Ike@ Vindstyrka) (#19388)
* Added a passive mode in sen5x sensor for parasitic installations. This skips reset & initialization of sensor on startup and reduces the polling to every 10 seconds to not interfere with and confuse the other I2C master on the bus, e.g. Ike* Vindstyrka.

* Removed obsolete updateCount. Cleanup.
2023-08-26 16:14:30 +02:00
Theo Arends 0d80e639ef Fix Core 3 compilation 2023-08-23 15:29:42 +02:00
Theo Arends dd877972be Phase 1 support C2/C6 2023-08-21 17:10:06 +02:00
SteWers f40f4a1947
[DS18x20] Enhance use of aliases (#19026)
* [DS18x20] Enhance use of aliases

`defineDS18x20_USE_ID_AS_NAME`:
Always show part of the address, even for one sensor
`#define DS18x20_USE_ID_ALIAS`:
The command `DS18Alias` can now be use with alphanumeric aliases, which replace the sensor name

* [DS18x20] change to calloc()
2023-08-12 14:57:58 +02:00
Paul Blacknell df1a526f02
fix: properly detect device is offline after maximum misses reached (#19298) 2023-08-12 11:32:29 +02:00
s-hadinger 0b3d6fd146
Prepare for Arduino v3 / esp-idf v5 2nd batch (#19265) 2023-08-05 20:34:24 +02:00
s-hadinger 5c8c7cdfca
Prepare for Arduino v3 / esp-idf v5 (#19264) 2023-08-05 15:11:10 +02:00
Vincent de Groot 5e591ef7db
Integrate MAX17043 driver mechanisms in xsns_110 (#19219) 2023-08-03 11:54:41 +02:00
msedv fb45e73384
Four files which used #ifdef EPS8266 instead of #ifdef ESP8266 - which e.g. broke the MFRC522 functionality between 12.5 and 13.x. (#19209) 2023-07-29 16:50:27 +02:00
Theo Arends 17cf73595f Refactor MAX17043 driver
Refactor MAX17043 driver optional enable library (default off providing smaller footprint (-250 bytes)
2023-07-24 14:28:57 +02:00
Theo Arends f626539c18 Refactor MAX17043 driver 2023-07-24 12:29:43 +02:00
Vincent de Groot 547169c57d
changing reference to xsns109 (#19170) 2023-07-23 11:30:44 +02:00
Vincent de Groot bc41500d9c
MAX17043 sensor integration (#18788)
* Restart MAX17043 from the scratch

* revert change

* Changed battery capacity in charge (capacity is the Ah value of the battery, this degrades over time when battery ages)

* merge

* Changing xsns_109 to 110

* fix nr

* removed old xsns109

* Update I2CDEVICES.md

* clean-up usage of Interface
2023-07-22 13:33:47 +02:00
stefanbode ebca2f0a07
Zero-Cross Dimmer fixes (#19109)
* Fix Zero-Cross flickering on Savedata

* Fix reboot on DIMMER usage with Zero-Cross

* Fix Flickering on dimmer 0
2023-07-14 09:10:20 +02:00
gemu d9d9ca2651
fix modbus-tcp, add U32,U64 etc (#19063) 2023-07-07 19:50:51 +02:00
Andrew Klaus eb655a4a8f
Add support for SGP41 TVOC/NOx Sensor (#18880)
* Initial support for SGP41

* Removing delay() use from SGP4x driver

* Using i18n for TVOC/NOx raw values as well
2023-06-29 09:04:08 +02:00
Christian Baars 99a0f2add1
MI32 legacy: Allow submitting WiFi credentials via BLE using Berry (#18962) 2023-06-25 14:31:04 +02:00
Norbert Richter 1f5c1baeae
Fix NeoPool NPFiltration switch result (#18871) (#18908) 2023-06-19 22:53:51 +02:00
Barbudor 75f634dc71
freeze readings before deepsleep (#18720) 2023-05-25 12:20:30 +02:00
Theo Arends d0e88c9dae Fix BusyDelay WS2812 2023-05-24 17:24:48 +02:00
Theo Arends fc67cca8b4 Add generic SystemWaitIfBusy() to fix WS2812 led flicker
Add generic SystemWaitIfBusy() to fix WS2812 led flicker
2023-05-24 16:21:59 +02:00
Theo Arends 4be618fe7b Fix WS2812 string distortions during analogRead()
Fix WS2812 string distortions during analogRead()
2023-05-24 15:09:26 +02:00
Theo Arends 10f9c20078 Fix ESP32 SPI initialization for MFRC522
Fix ESP32 SPI initialization for MFRC522 (#18711)
2023-05-23 14:34:47 +02:00
gemu e969bf0e0e
optional prefix size and serial invert (#18717) 2023-05-23 08:46:00 +02:00
Theo Arends 44b33281b6 Even more bling bling 2023-05-22 16:21:50 +02:00
Theo Arends 9a88677122 More AS608 bling bling
More AS608 bling bling (#18163)
2023-05-22 12:42:24 +02:00
Theo Arends 80afc8793f AdafruitFingerprint library from v2.0.4 to v2.1.0
AdafruitFingerprint library from v2.0.4 to v2.1.0 (#18163)
2023-05-22 11:48:03 +02:00
Theo Arends 77103baa0a Add internal support for max log level 2023-05-19 15:20:21 +02:00
Jeroen 632176765d
Added define to adjust calibration precision. (#18613)
Co-authored-by: JeroenSt <nospam@nospam.org>
2023-05-10 09:38:27 +02:00
Theo Arends 6fe1bbd617 Update changelogs 2023-05-08 15:10:15 +02:00
Jeroen 45eb82bc3f
Fix for not sending changes to mqtt (#18600)
Co-authored-by: JeroenSt <nospam@nospam.org>
2023-05-08 09:59:28 +02:00
Theo Arends 91523fd90b Add GM861 optional heartbeat 2023-05-07 16:01:33 +02:00
Theo Arends 0287291cd9 Add GM861 optional AIMId decode 2023-05-07 14:11:29 +02:00
Theo Arends e9d1e8c725 Change command FileUpload binary index 2023-05-06 18:09:11 +02:00
Theo Arends b9464a21a8 GM861 add support for AIM 2023-05-06 17:18:52 +02:00
Theo Arends d7b6d72e19 Add support for GM861
- Add support for GM861 1D and 2D bar code reader (#18399)
- Bump version to v12.5.0.2
2023-05-05 16:50:19 +02:00
Theo Arends cda2bf157d Add support for TC74
Add support for TC74 temperature sensor by Michael Loftis (#18042)
2023-05-01 16:26:07 +02:00
Christian Baars f6763eb37b
Berry: add BLE server/advertiser (#18494) 2023-04-26 08:39:29 +02:00
stefanbode 39abde2583
Worked on ESP32 dimmer with Zero cross (#18481)
* Worked on ESP32 dimmer with Zero cross

Until now the ESP32 does not support zero-cross dimmer. I take a sneak how they did in in ESPhome and adapted the approach to TASMOTA. At the end it works that smooth that likely i will change ESP8266 either so we have a common code. Currently ESP8266 is not touched.
There is a minor issue with savedata == default. When changing the dimmer value the interrupts get stopped during write of the config data to flash.

* ESP8266 Dimmer added

Worked all so well and the code is much smaller. There is no need for reconfiguration on existing users. But there are settings not needed anymore. Will work on the documentation. Anyhow existing installations can upgrade without hickup

* Optimized endpoints at dimmer 0 and 100

* Removed debug stuff

* Fix Issue at dimmer = 0

* Small bugfix

* Final checked Version

* Update xsns_01_counter.ino

* Add missing func

* Update xsns_01_counter.ino

* Moved out of the house of counter and build my own one

* New ZeroCross Driver

* Update xdrv_91_zerocrossDimmer.ino

* evolving

* Delete xdrv_91_zerocrossDimmer.ino

* Add files via upload

* Changed drv number from 1 to 68

* Commit to merge
2023-04-25 13:46:19 +02:00
Theo Arends c1db67ce37 Refactor GDK101 driver 2023-04-23 18:09:33 +02:00
InHi66 eb40496e4b
Update xsns_20_novasds.ino (#18444) 2023-04-18 17:20:47 +02:00
Szewcson 4fdd1ad94d
Ftlab gdk101 Gamma Radiation Sensor Module support (#18390)
* Support for GDK101.

* GDK101 driver rework

---------

Co-authored-by: PetrNovacek <39201428+r21m@users.noreply.github.com>
2023-04-14 15:29:00 +02:00
Theo Arends d88d42341d Fix future compile error 2023-04-14 12:01:47 +02:00
Barbudor 870874d181
fix display of adcparam param4 for ct (#18397) 2023-04-13 09:04:17 +02:00
gemu f06104b0b7
Scripter update (#18374)
* bug fixes and enhancements

* tcp reconnect
2023-04-10 10:04:00 +02:00
Barbudor 52060259ce
improve ADC_CT (#18369) 2023-04-08 21:31:50 +02:00
Anton ACE d8bdcebc78
xsns_105_lox_o2: LOX-02 Oxygen sensor support (#18333)
* xsns_105_lox_o2: LOX-02 Oxygen sensor support

* strtof removed, ConvertTemp added
2023-04-06 09:52:15 +02:00
Zbyněk Kocur b1ea413eae
Update xsns_86_tfminiplus.ino: FIX json output (#18321)
Fixes JSON measurement output. Output numbers like Distance and SignalStrength were published as a string. Now they have the right data type.
2023-04-03 16:47:44 +02:00
Theo Arends 326c605122 Prep support ESP32 enum SerialConfig 2023-04-02 14:20:03 +02:00
Anton ACE 736ac74f53
xsns_103_sen5x bugfix (#18297) 2023-03-30 08:49:48 +02:00
pkkrusty 3daedae2da
Add speed and heading info to GPS driver (#18035)
* Add speed heading to driver

Added NAV-VELNED messages to driver, allowing speed and heading info on the main web page and JSON messages. Probably could be optimized; mostly another exercise in copy/paste

* wrap velocity code in #define USE_GPS_VELOCITY

Code space increases by 0k4, not sure about RAM (don't know how to measure). But added a struct with 320 bits, so maybe 40 bytes?

* Add documentation up top

---------

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
2023-03-25 15:37:38 +01:00
pkkrusty b456b97dda
Include fix state in JSON output (#18254)
Mirror the webpage display, and make fix status available for triggers and rules.
2023-03-25 10:23:58 +01:00
Theo Arends 00c60450c6 Consolidate messages
- Consolidate messages
- Fix sen5x
2023-03-22 13:25:55 +01:00
Theo Arends 59677d7e4a Consolidate sensor parameters 2023-03-20 17:11:05 +01:00
Theo Arends 34ee7c67d8 Update changelogs
- Add support for PMSA003I Air Quality Sensor by Jean-Pierre Deschamps (#18214)
- Add support for DingTian virtual switch/button/relay (#18223)
2023-03-20 10:21:16 +01:00
Jean-Pierre Deschamps 5661a6798f
Support for pmsa003i (#18214)
* Initial support for PMSA003I air quality sensor.

* Updated pmsa003i support to the latest dev branch

* Fixed typo in esp32 configuration

Removed all global variable and use the PM25_AQI_Data struct from Adafruit library
Fix typo Xsns100 to Xsns104
Fix Typo XI2C_71 to XI2C_78

* Move everything in custom Struct for PMSA003I driver

---------

Co-authored-by: Jean-Pierre Deschamps <info@jpdeschamps.com>
2023-03-20 09:52:22 +01:00
Theo Arends cc09ff21e1 Refactor RFSensor 2023-03-15 12:05:40 +01:00
Theo Arends 76cea0c002 Fix Sonoff SC regression from yesterday
Update changelogs.
2023-03-12 11:11:57 +01:00
Theo Arends 2b89b7a134 Fix init order of device drivers (#18124) 2023-03-11 15:52:02 +01:00
gemu c752610bb7
modbus tcp, uart select (#18038) 2023-02-25 09:58:33 +01:00
Flobul f0eef7771f
add BLE Qingping CGDK2 (#17981)
* add CGDK2

* Update xsns_62_esp32_mi_ble.ino

* Update xsns_62_esp32_mi_ble.ino
2023-02-19 14:09:12 +01:00
drid 3be29dfecd
Fix 1-pin ultrasonic sensor detection (#17966)
* Fix 1-pin ultrasonic sensor detection

Signed-off-by: Ilias Daradimos <judgedrid@gmail.com>

* Fix typo

---------

Signed-off-by: Ilias Daradimos <judgedrid@gmail.com>
2023-02-17 22:34:40 +01:00
Barbudor 119aeca4d9
oversample ADC_RANGE by 32 like ADC_INPUT (#17975) 2023-02-17 22:33:06 +01:00
Tyeth Gundry 774fbfef92
fix floats, resolutions, and utilise common units (#17961) 2023-02-17 08:37:06 +01:00
Theo Arends 0ea36d996c Change Dht driver from v6 to v7
- Change Dht driver from v6 to v7
- Add command ``DhtDelay<sensor> <high_delay>,<low_delay>`` to allow user control over high and low delay in microseconds (#17944)
2023-02-15 15:21:57 +01:00
Barbudor 4ad6807d7e
Fixes GPS bad year + drift calculation (#17932) 2023-02-12 08:44:40 +01:00
Jason2866 4cb9acec65
Fix PR#17893 (#17901) 2023-02-06 22:21:16 +01:00
Theo Arends 055331d2ab Breaking change TM1638 button and led support
Breaking change TM1638 button and led support are handled as virtual switches and relays (#11031)
2023-02-06 15:57:27 +01:00
gemu 6ccacb4af1
Sml fix (#17893)
* fix compile with NO_USE_SML_DECRYPT

* dumplog info
2023-02-06 09:42:09 +01:00
Norbert de81eecc01
Change log option for "decrypted block" (#17863) 2023-02-03 10:50:53 +01:00
gemu f09a083777
Sml ams (#17828)
* sml ams crypto support

* add ams library

* fix crc names

* fix TLS dependency

* Update library.properties

* Update xsns_53_sml.ino
2023-01-30 15:03:46 +01:00
Tyeth Gundry 91559ec883
fix: detection of SPS30 serial number (#17809) 2023-01-29 13:48:33 +01:00
Tyeth Gundry 2ed602057c
Add SEN5X to I2C devices (#17736) 2023-01-29 08:06:25 +01:00
Theo Arends e891830545 Prep ESP32 energy 2023-01-24 16:54:03 +01:00
Theo Arends 044606d8b8 Fix BMP deepsleep regression 2023-01-16 13:32:44 +01:00
Theo Arends 82b6d1ee91 Bump version to v12.3.1.4 2023-01-15 17:45:59 +01:00
Theo Arends 7a97fa4a19 Fix BMP support on two busses
Fix BMP support on two busses (#17643)
2023-01-15 17:14:54 +01:00
gemu 3bddbdc5c0
fix sml dumpmode (#17690) 2023-01-13 13:23:25 +01:00
Reinhard ef3d30c44f
Update xsns_47_max31865.ino (#17661)
MAX31865 - make use of the already defined element 'ErrorCode' to transport the MAX31865 Fault Status Register to the JSON element 'Error'
2023-01-11 11:50:16 +01:00
Ralph Maschotta b0094a0ddf
fix (PR #17643) BMP/BME sensors on two I2C buses: copy/paste typo (#17663) 2023-01-10 08:59:33 +01:00
Theo Arends 9073fe01c1 Add ESP32 support for BMPxxx sensors on two I2C busses
Add ESP32 support for BMPxxx sensors on two I2C busses (#17643)
2023-01-08 17:19:08 +01:00
Theo Arends 0781192c87 Extract I2C support
- Fix BMP compilation on ESP8266
2023-01-08 16:04:58 +01:00
Ralph Maschotta d80b763f97
Enable more than two and up to four BMP/BME sensors on two I2C buses for ESP32 (only two addresses (76, 77) per I2C bus are possible). (enhancement of #10827,#1049, #2707) (#17643) 2023-01-08 15:57:34 +01:00