Commit Graph

983 Commits

Author SHA1 Message Date
Theo Arends 76a1c00917 Add more energy verbosity at restart 2023-01-28 11:30:42 +01:00
Theo Arends e77154f406 Enable ESP32 energy driver 2023-01-28 11:03:14 +01:00
Barbudor 4dd97a9e82
non-breaking fix year in DS3231 (#17803) 2023-01-28 08:04:34 +01:00
Theo Arends 0b81236110 Prep ESP32 energy expansion 2023-01-27 16:41:55 +01:00
Theo Arends 5b977bf4e4 Merge branch 'development' into dev-energy 2023-01-27 16:00:44 +01:00
Theo Arends f6827590f3 Prep new energy driver 2023-01-27 15:53:40 +01:00
gemu 103e3f616a
refactoring and bug fixes (#17798) 2023-01-27 11:10:43 +01:00
Theo Arends 9f538e9986 Add ESP32 support for four channels 2023-01-26 17:27:49 +01:00
Theo Arends d70dbe979e Prep ESP32 energy for four+ phases 2023-01-26 15:26:10 +01:00
thkaiser 8d782caf15
Support ESPC3 and ESPS3 (#17791)
* Support ESPC3 and ESPS3

* remove debug comment

Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com>
2023-01-26 09:58:59 +01:00
Theo Arends 2529759974 Prep energy for four+ phase support 2023-01-25 17:05:48 +01:00
Barbudor 973e4693c2
possibly fix sleep problem (#17786) 2023-01-25 08:36:14 +01:00
Theo Arends e891830545 Prep ESP32 energy 2023-01-24 16:54:03 +01:00
Theo Arends e81d59f658 Fix Shelly Pro 4PM initial button state 2023-01-24 16:34:24 +01:00
Theo Arends ecac466e23 Fix Shelly Pro 4PM power on reset 2023-01-24 12:04:30 +01:00
Barbudor 95dee75b0b
use dB value, not quality (#17777) 2023-01-24 08:55:44 +01:00
David Gwynne 1c39ff6cef
add tuyamcubr_web_sensor to do a simple display of the dp values. (#17776)
the format shows the type+dpid on the left hand side (eg, Bool1,
Value2, Enum3, etc), and the value with %u on the right hand side.
2023-01-24 08:55:28 +01:00
David Gwynne 36fd8358d6
TuyaMCUBr: support on/true/off/false/toggle in the tuyamcubool command. (#17775)
* support on/true/off/false/toggle in the tuyamcubool command.

i wanted a tasmotized wall switch to be able to blindly send "toggle" to
a fan/light and have it do the right thing. the dp value is kept by the
driver, so it can easily read, modify, and write it.

* "on"/"off"/"toggle" etc are parsed when XdrvMailbox is set up

so i don't have to do it, i just have to use the payload.
2023-01-24 08:54:19 +01:00
Barbudor db0532de5f
ds3231 temperature sensor (#17778) 2023-01-24 08:52:43 +01:00
Theo Arends 4297fa3f3e Add Shelly Pro 4 input interrupt support 2023-01-23 12:51:02 +01:00
Theo Arends 88dd5f7f50 Fix Shelly Pro 4PM auto reset 2023-01-22 16:41:25 +01:00
yvesdm3000 3f73d5a49d
Implement Zigbee tuya_time sync. (#17765) 2023-01-22 11:50:52 +01:00
gemu d38a0c799c
Epaper deep sleep support (#17766)
* allow descriptor reload

* restart reason rrsn, database rewrite

* support for deep sleep

* revert

* restart reason
2023-01-22 10:56:06 +01:00
Theo Arends c85003c67d Prep Shelly Pro 4PM 2023-01-21 14:30:35 +01:00
s-hadinger 0743b7d2b6
Berry add up flag to ``tasmota.wifi()`` and ``tasmota.eth()``, always return MAC (#17759) 2023-01-21 13:41:36 +01:00
Benjamin Nestler 498b0e55b8
Add tuya commands CMD_GET_NETWORK_STATUS and CMD_TEST_WIFI (#17745)
* Add tuya commands CMD_GET_NETWORK_STATUS  and CMD_TEST_WIFI

* Assuming that nobody uses the tuya test wifi ssid, the payload is hardcoded.
2023-01-20 13:20:03 +01:00
Jason2866 6b4171fef9
Shelly has label `fs_1` for spiffs (#17753)
* Shelly has label `fs_1` for spiffs
2023-01-20 13:19:38 +01:00
David Gwynne 51866026d5
TuyaMCUBr: Handle "Get local time" requests from the MCU (#17750)
* handle get local time requests from the MCU.

from what i can tell from the tuya serial communication protocol
documentation, we only have to send the time if MCU requests it. this is
unlike how TUYA_SET_TIME is implementing in xdrv_16, where if
USE_TUYA_TIME is enabled it will send unsolicited time updates every
minute as well as in response to a request from the MCU.

i couldn't find an easy to check flag to see if tasmota was synced to a
real clock, so this blindly tells the MCU that our time is valid and
copies it over, the same as xdrv_16.

the tuya doco also describes a "Get system time in GMT" request and
response structure which would be mostly a copy of this code if i knew
if and where tasmota keeps track of UTC/GMT.

lastly, i'm not convinced RtcTime.day_of_week is right. it's friday
here which should be 6 if you start counting sunday as 1, but i read 2

* local time sync is implemented, but not gmtime
2023-01-20 10:07:42 +01:00
s-hadinger 61be95841f
Berry crypto.EC_P256 ECDSA signature ASN.1 (#17740) 2023-01-18 20:50:01 +01:00
Barbudor d904e0aa7f
Tuya - WIFI_STRENGTH + Save check on MCU_CONF (#17724)
* adding response to command 36 Get Wifi Strength

* more logs

* poperly check and warn if Mode 2 provide bad GPIOs

* final test on gpio
2023-01-17 04:46:00 +01:00
s-hadinger 457f706d17
Berry ``crypto.EC_P256`` ECDSA signature (required by Matter protocol) (#17723) 2023-01-16 21:48:28 +01:00
Barbudor 2d1d49504b
fix free() too early (#17710) 2023-01-15 16:20:35 +01:00
Theo Arends e0b17af307 Fix first sensor in case GlobalTemp is set wrong
Fix first of two sensors in case GlobalTemp is set wrong (#17694)
2023-01-14 16:11:08 +01:00
Theo Arends f71465a182 Repurpose SO39 for import active bandwidth
Repurpose SO39 for import active bandwidth (#17659)
2023-01-14 15:39:54 +01:00
Theo Arends 6c04cf7076 Update xdrv_122_file_settings_demo.ino 2023-01-13 17:19:46 +01:00
Theo Arends 13c16fd37b Fix xdrv_122_file_settings_demo (#17692) 2023-01-13 17:19:14 +01:00
Theo Arends 1a9e86a6b3 Fix ESP32 safeboot propagating upload 2023-01-13 11:30:30 +01:00
Theo Arends 9f8c8efac1 Delete .xdrv_65_tuyamcubr.ino.swp 2023-01-08 17:37:23 +01:00
David Gwynne 17d68750d9
WIP Tuya MCU Bridge driver alternative to the TuyaMCU driver (#17626)
* WIP Tuya MCU Bridge driver alternative to the TuyaMCU driver

The main difference is this driver does not try and wire MCU data points
(Dps) into the tasmota power/light/etc controls. Instead each Dp ends up
being relayed directly to MQTT and the rules subsystem. If you want to
change the state of something wired up to the MCU, you send tuyamcu
specific commands to manipulate the Dp.

Each Dp gets a type and id specific topic that is sent to MQTT. eg, Dp
id 1 type bool looks like tele/%topic%/TUYAMCUBOOL1. To change state you
send a TuyaMCUBool1 command (ie, the command index value is used as the
DpId, which is nice and symmetrical) with the new value.

Currently Rules operate on TuyaMCU#TypeDpid things, eg, "rule1 on
TuyaMCU#Bool1 do power %value% endon" toggle the power on the tasmota
device when the state of the thing on the MCU changes too.

The most obviously missing stuff at the moment is:

- better relaying of the wifi/mqtt status to the MCU
- handling wifi reset requests from the MCU
- low power stuff?
- support for sending status updates and device info queries.
- restarting the tuya mcu state machine?
- restarting the rx state machine when no bytes are rxed for a period of
  time
- time sync

* shorten the log prefix to TYB (3 chars).

requested by arendst

* use the local definition for the SET_DP command.

reaching back to the existing tuyamcu code isnt reliable.

pointed out by arendst

* put the todo list in the code so it can be tracked

* check the wifi/mqtt state every second and update the mcu if it changes.

* fix rule processing when Dp state is changed from a cmnd.

rule processing was done as part of publishing the state, but publishing
the state when it was updated by a command only happened if So59 was
set. split rule processing out of publish and call them separately as
needed.

publish is now called from teleperiod, status updates from the MCU,
and from cmnds if so59 is set. rules are called from status updates from
the MCU and from cmnds.

Co-authored-by: David Gwynne <dlg@defeat.lan.animata.net>
2023-01-08 17:35:45 +01:00
Theo Arends 12d7651758 Fix shutter JSON responses 2023-01-08 14:35:09 +01:00
Theo Arends 95690ab1b9 Add recursive rule MQTT subscribe support (#16943) 2023-01-07 17:31:10 +01:00
Theo Arends dad059737d Change PID temperature update (#17636) 2023-01-07 16:11:30 +01:00
Theo Arends 2e7496a052 Keep webserver enabled on command ``upload`` 2023-01-07 15:37:52 +01:00
Theo Arends 0b3c237627 Change strtod() into CharToFloat() saving 8k code
Change strtod() into CharToFloat() saving 8k code
2023-01-06 15:28:44 +01:00
Theo Arends af733afbe5 Fix PID-Control parameter destruction
Fix PID-Control parameter destruction and replace all atof() by CharToFloat() saving 8k code size (#17618)
2023-01-06 14:58:19 +01:00
s-hadinger 33d6dbed3d
No IP address shown when in AP moode (#17599) (#17619) 2023-01-06 14:03:16 +01:00
Theo Arends 8275cb776e Fix rule mqtt subscribe payload size
Increase rule event buffer from 100 to 256 characters (#16943)
2023-01-05 15:02:55 +01:00
Jason2866 6b5f0e4e7c
Prepare support for JL1101 PHY (#17607) 2023-01-05 13:04:06 +01:00
Theo Arends cd182a5814 Add TfsLoadString() 2023-01-04 12:00:09 +01:00
s-hadinger d59caa7203
Berry ``crypto.AES_CCM`` (required by Matter protocol) (#17586) 2023-01-03 20:26:46 +01:00
gemu 82ed5f0d06
Modbus section (#17583)
* modbus section

* Update xnrg_29_modbus.ino

* Update xnrg_29_modbus.ino

* Update xnrg_29_modbus.ino
2023-01-03 17:41:37 +01:00
Theo Arends 3810b78ef8 Add energy var update at power on next day 2023-01-03 12:24:34 +01:00
s-hadinger dfc01cd3a4
Fix crash when getting IP address (#17576) 2023-01-03 09:33:31 +01:00
Theo Arends 555b434361 Fix Energy single column values 2023-01-02 17:48:51 +01:00
Theo Arends 14ee8decf7 Update changelogs
Add support for PCA9632 4-channel 8-bit PWM driver as light driver by Pascal Heinrich (#17557)
2023-01-01 14:29:41 +01:00
kaedwen 25b4040283
Light driver for PCA9632 (#17557)
* added PCA9632 driver

* compiling

* added BUILD and DEVICES section

* added PCA9632 module

* use I2C_SDA/SCL

* light driver working

* bulk write and pin mapping

* remove debugging

* remove debugging

* adjust comments

Co-authored-by: Pascal Heinrich <kaedwen@heinrich.blue>
2023-01-01 14:02:22 +01:00
Theo Arends c63919d783 Change Energy totals max supported value
- Change Energy totals max supported value from +/-21474.83647 to +/-2147483.647 kWh
- Bump version to v12.3.1.3
2023-01-01 11:32:30 +01:00
gemu ca82877362
fix multiple subscribes (#17567) 2023-01-01 09:54:17 +01:00
Theo Arends 20a50ffc2e Revert Tuya rewrite
- Update changelogs
2022-12-31 16:08:59 +01:00
Theo Arends 587e8299d6 Add debugging info to modbus.ino 2022-12-30 16:56:36 +01:00
gemu 22803e3e3d
Sml update (#17541)
* fix sysvarsbug, update sml

* major rewrite
2022-12-30 08:41:54 +01:00
Barbudor 99d33e3023
PCF8574 Overridable address ranges (#17539)
* pcf8574 overridable address ranges

* fix comment

* better test on USE_MCP230xx

* missing change
2022-12-29 21:55:28 +01:00
s-hadinger ef4138bdaa
Support for IPv6 only networks on Ethernet (not yet Wifi) (#17527) 2022-12-27 21:59:34 +01:00
s-hadinger 1ae8b381ba
Fix warnings when compiling Zigbee (#17524) 2022-12-27 20:55:51 +01:00
Barbudor bd4fe78775
fix typo (#17511) 2022-12-27 12:07:37 +01:00
Barbudor 4a47514a25
PCF8574 input pin initialization fix (#17499)
* step1 - quick test patch

* mistake, pullup should be disabled

* 2nd test version

* refactoring

* final
2022-12-23 21:17:24 +01:00
Jason2866 9f23151f78
Fix tasmota32-zbbrdgpro compile with core 2.0.6 (#17496)
* Fix tasmota32-zbbrdgpro compile with core 2.0.6

* only ESP32
2022-12-23 20:03:58 +01:00
s-hadinger f5f7ff4fb8
Minor changes to Berry crypto (#17494) 2022-12-23 18:31:19 +01:00
stefanbode 0c588f2ff4
better fix on init (#17488)
try to avoid get  5000 if the init value is 65535. More focus on setting the standard of 500 on nearly any case
2022-12-23 09:53:10 +01:00
s-hadinger 42e3862970
Berry hkdf (#17487)
* Berry crypto add `HKDF_HMAC_SHA256`

* add HKDF option
2022-12-22 22:39:06 +01:00
s-hadinger 970e36f44d
Berry crypto add ``random`` to generate series of random bytes (#17482) 2022-12-22 18:57:20 +01:00
stefanbode 3c1531bf1c
shuttermotorstop init value, new max 5000 (#17484)
new max value (5 seconds)
shuttertilt logic check (avoid Theo's indefinite running shutter)
2022-12-22 17:02:01 +01:00
Theo Arends b3f12476cc Remove debug logging 2022-12-22 16:09:41 +01:00
s-hadinger f06c07996c
Berry crypto add ``EC_P256`` and ``PBKDF2_HMAC_SHA256`` algorithms required by Matter protocol (#17473) 2022-12-22 10:09:13 +01:00
Theo Arends b2d3921778 Fix shutter logging 2022-12-21 15:26:42 +01:00
s-hadinger d670f476ba
Berry add crypto AES_CTR, HDMAC_SHA256, MD5 (#17451) 2022-12-19 22:30:54 +01:00
stefanbode 59fc09acc4
Fix on init procedure (#17447)
* fix output

* Avoid wrong init parameter

#17403
2022-12-19 20:31:02 +01:00
gemu 1cdd5c3f08
Udisplay support for rgb displays (#17414)
* add gt911

* add rgb display mode

* add gt911

* add gt911

* add gt911

* add sunton descriptor

* fix divide by zero crash with sunton
2022-12-18 14:06:04 +01:00
s-hadinger 30ace5a3f3
Berry support for `crypto.SHA256` (#17430) 2022-12-17 23:38:57 +01:00
s-hadinger 9abe7b1af9
Support for IPv6 DNS records (AAAA) and IPv6 ``Ping`` for ESP32 and ESP8266 (#17417) 2022-12-17 10:08:35 +01:00
sedderz 72c9bca4d3
ArtNet DMX - Added RGBWW support for single lights (#17398)
* ArtNet DMX - Added RGBWW support for single lights

* ArtNet DMX - Fix offset for single light

Co-authored-by: sedgi <james@jsedgwick.com>
2022-12-16 17:30:59 +01:00
s-hadinger f8b56e1058
Zigbee fix crash on ESP8266 #17397 (#17405) 2022-12-15 22:52:19 +01:00
stefanbode 2902c93b29
functionality upgrade (#17380)
* functionality update see below:

- added shutterxxx0 command to change all shutters in parallel. Similar to power0 command
- added flexible ShutterMotorstop time to control the time between one relay OFF and the next ON. Now not blocking anymore other operations
- fix recent bug "shuttermode x" not working anymore
- changed autoconfig behavior to avoid SHORT CIRCUIT on missing interlock setting or wrong shuttermode

* Adding motorstop time for shutters

* Adding motorstop command for shutters

* func update

- added shutterxxx0 command to change all shutters in parallel. Similar to power0 command
- added flexible ShutterMotorstop time to control the time between one relay OFF and the next ON. Now not blocking anymore other operations
- fix recent bug "shuttermode x" not working anymore
- changed autoconfig behavior to avoid SHORT CIRCUIT on missing interlock setting or wrong shuttermode

* typo fix

* regression fix on "shutterposition stopclose"

* fix mulithread timing issue
2022-12-14 11:25:41 +01:00
s-hadinger ce0a0d05a9
MQTT now uses Tasmota's DNS resolver instead of LWIP (#17387) 2022-12-13 21:46:20 +01:00
s-hadinger 0a57545e11
Berry tcpclient uses Tasmota resolver (#17386) 2022-12-13 21:41:20 +01:00
s-hadinger b1fca09ad2
Ping use ip_addr_t (#17385)
* Ping use ip_addr_t

* Fix non-IPv6 compilation
2022-12-13 21:41:12 +01:00
s-hadinger 7e27945e5a
ESP32 fix ``Ping`` (#17373) 2022-12-12 23:07:14 +01:00
Theo Arends 062a2e3a7e Fix RtcNtpServer induced exception on ESP32
Fix RtcNtpServer induced exception on ESP32 (#17338)
2022-12-11 12:19:03 +01:00
Theo Arends 4f70f4d33e
Merge pull request #17342 from stefanbode/shutterdev
Code optimizatons
2022-12-11 10:49:04 +01:00
stefanbode c4bb3366a2
Update xdrv_27_shutter.ino 2022-12-10 23:52:53 +01:00
Stephan Hadinger 32bfd2a27b Berry refactor webclient POST/PUT/PATCH/DELETE 2022-12-10 18:58:42 +01:00
Theo Arends 41d79183f3 Delete xdrv_90_dingtian_relay.ino 2022-12-10 16:56:12 +01:00
Theo Arends 5e23d78bf2 Update credits 2022-12-10 16:55:04 +01:00
Stephan Hadinger 4a32623a51 IPv6 improvements 2022-12-10 13:44:16 +01:00
Theo Arends 1098ec2098
Merge pull request #17184 from fightforlife/development_eb3ble_retries
BLE eQ3 - allow to set retries at runtime
2022-12-09 10:55:18 +01:00
Theo Arends b06a511a44
Merge pull request #17182 from fightforlife/development_eb3ble_hassmode
BLE eQ3 - fix hassmode, idle no longer supported
2022-12-09 10:54:37 +01:00
gemu2015 561f6fd480 fix text escape 2022-12-09 09:32:14 +01:00
Stephan Hadinger 20c8348654 Fix compilation 2022-12-08 19:42:04 +01:00
Stephan Hadinger 2f1b2ec5fd IPv6 support for Ethernet (ESP32) 2022-12-08 19:06:51 +01:00
stefanbode d2472ef56f
Update xdrv_27_shutter.ino 2022-12-08 18:54:45 +01:00
stefanbode c98164a400
Update xdrv_27_shutter.ino 2022-12-08 18:36:17 +01:00
stefanbode 27bbec0d40
Update xdrv_27_shutter.ino 2022-12-08 18:08:12 +01:00
stefanbode 8320a944d8
removed index from shuttermode 2022-12-08 12:55:34 +01:00
gemu2015 a83c45e3ad fix regression from latest commit 2022-12-08 06:43:26 +01:00
gemu2015 237695de22 fix recursion 2022-12-07 08:52:13 +01:00
stefanbode 35475d9353
Avoid ghost switching in position 0 and 100
confirming the position and setting the tilt in 0 and 100% causes ghost switching of the relays. #16435
2022-12-06 16:27:34 +01:00
stefanbode 687e38f6b5
Fix #17282
fix reboot on "shutter" command
2022-12-06 09:27:51 +01:00
s-hadinger e7d40b8d11
Merge pull request #17270 from s-hadinger/berry_crypto_def
Berry crypto module, with AES_GCM by default and EC_CC25519 optional
2022-12-04 19:43:27 +01:00
Stephan Hadinger ec17440662 Berry crypto module, with AES_GCM by default and EC_CC25519 optional 2022-12-04 19:20:11 +01:00
Stephan Hadinger 70f73edf9e Fix type for BinaryInValue 2022-12-04 19:15:42 +01:00
Theo Arends a7eaca59e6
Merge pull request #17267 from stefanbode/patch-3
Fix rounding error on tiltmovement
2022-12-04 15:13:01 +01:00
Theo Arends e1221b924d Changed removed leading spaces on commands ``(S)SerialSend1 to 6``
Removed leading spaces on commands ``(S)SerialSend1 to 6`` but keep on duplicate commands ``(S)SerialSend11 to 16`` (#16723)
2022-12-04 15:09:39 +01:00
stefanbode 496aeeff07
Fix rounding error on tiltmovement
fix #17191
2022-12-04 14:41:38 +01:00
stefanbode 9be44131b9
Support Setoption13 1 on shutters to immediate feedback 2022-12-04 13:25:20 +01:00
Theo Arends fca19401b7 Increase user input energy max values (#15856) 2022-12-04 12:25:17 +01:00
gemu2015 0015b5fc04 fix google chart 2022-12-04 08:16:21 +01:00
Theo Arends bbde894628 Add serial Modbus transmit enable GPIOs
Add serial Modbus transmit enable GPIOs to all modbus energy drivers and modbus bridge (#17247)
2022-12-03 12:33:42 +01:00
Stephan Hadinger d3be3dfe8f IPv6 preview for ESP32, also working for ESP8266 2022-11-30 19:40:58 +01:00
stefanbode 3569927403
Update ZeroCross Dimmer calibration on physical measurement
Alligned with physical measurement of 1KW heating
2022-11-30 09:15:34 +01:00
gemu2015 fcf12e1adb sml_obis_line software flag 2022-11-28 07:41:37 +01:00
Theo Arends a1ffd88819
Merge pull request #17201 from stefanbode/patch-1
Bugfix for Zero-Cross Power correction
2022-11-27 18:39:27 +01:00
Stephan Hadinger a0ed383840 Berry add module `mdns` 2022-11-27 18:08:53 +01:00
stefanbode 3446b0b78c
bugfix 2022-11-27 17:14:51 +01:00
stefanbode 46b0584282
Allow to maintain venetian tilt also on end-position 0 and 100
Requested by user
2022-11-25 17:04:57 +01:00
Frederik 075140e3b7
fix valve is closed condition 2022-11-24 18:33:13 +01:00
Frederik 339b8a0b96 fix hassmode, idle no longer supported 2022-11-24 18:19:12 +01:00
Frederik 1c29be8749 remove hassmoda changes to create seperate PR 2022-11-24 18:15:43 +01:00
Frederik e3cddc4208 introduce configurable retries and change hassmode 2022-11-24 18:05:00 +01:00
Theo Arends 430396832f Fix thermostat ramp-off time
Fix thermostat ramp-off time (#16424)
2022-11-24 15:09:39 +01:00
Theo Arends a381da3a39 Revert GUI file accept 2022-11-24 14:47:26 +01:00
stefanbode fce966800f
bugfix in comment 2022-11-24 14:09:56 +01:00
stefanbode e3f0445a5d
fix duplicate line 2022-11-24 13:56:34 +01:00
stefanbode b5448535b2
Update dimmer loockup table 2022-11-24 10:51:58 +01:00
stefanbode 8bc46aa0d9
AC-Dimmer update
change to linear power distribution on PWM
2022-11-24 09:39:46 +01:00
stefanbode 7dd0003617
Update AC-Dimmer power calculation
Power on AC-Dimmer is based on integral over the sinus. Implement mapping table to get a more linear power behavior.
2022-11-24 09:37:07 +01:00
barbudor 743c162499 Adding PUT, PATCH and DELETE to Berry webclient 2022-11-21 19:42:46 +01:00
Theo Arends 06b6e31cad
Merge pull request #17147 from joba-1/rgx-fix-wifimanager-handling
don't touch AP_STA mode only if Rgx is up
2022-11-21 10:33:19 +01:00
Theo Arends 40294e13fc Fix Serial Bridge Skip count 2022-11-21 10:32:13 +01:00
Stephan Hadinger e4bae0cca6 Moved to uint16_t 2022-11-20 18:32:37 +01:00
Stephan Hadinger 923ef8202e Zigbee plugin mul/div extended to 16 bits 2022-11-20 18:21:46 +01:00
joba-1 4b52be6a5e don't touch AP_STA mode only if Rgx is up 2022-11-20 16:28:59 +01:00
Theo Arends f9138984bf Add accept filename extensions to GUI
Add accept filename extensions to GUI file upload input fields (#16875)
2022-11-20 15:07:38 +01:00
Theo Arends 4f31e7a1b2 Add command ``SetOption35 0..255``
Add command ``SetOption35 0..255`` to skip number of received messages in Serial Bridge (default 0) (#17140)
2022-11-20 12:52:24 +01:00
Stephan Hadinger 16b34963d5 Fix identaiton 2022-11-19 15:01:01 +01:00
Stephan Hadinger 82df1a9152 Zigbee fix attribute not reported 2022-11-19 14:59:07 +01:00
joba-1 4844209a3b rgx add port forward with ip and "dry" refactoring 2022-11-19 12:47:53 +01:00
Theo Arends 5662a3965c
Merge pull request #17113 from joba-1/rgx-port-forward-for-esp8266-too
Rgx port forward for esp8266 too
2022-11-19 10:06:36 +01:00
Anton 52faed8c08
Bugfix: RfSend command to support bits>32 for decimal command format 2022-11-19 01:40:24 -05:00
Theo Arends 783631903d Add user control over Serial Bridge buffers
- Add optional define ``SERIAL_BRIDGE_BUFFER_SIZE`` to set Serial Bridge internal buffer size (Default ESP8266 = 256, ESP32 = 800)
- Add command ``SSerialBuffer 256..SERIAL_BRIDGE_BUFFER_SIZE`` to change serial bridge rx buffer size (#17120)
2022-11-18 16:21:54 +01:00
Theo Arends 0674f9b0b6 Add command ``SSerialBuffer 64..256``
Add command ``SSerialBuffer 64..256`` to change software serial bridge receive buffer size from default (64) to max local buffer size (256) (#17120)
2022-11-18 13:00:59 +01:00
Stephan Hadinger 7e9e7b8e3e Zigbee add default plugin in flash 2022-11-18 00:21:01 +01:00
Stephan Hadinger d1c71ca91b Fix Zigbee auto-responder frame direction 2022-11-18 00:04:54 +01:00
Stephan Hadinger c607a67024 Include Wemo SSDP presentationURL in Unishox 2022-11-17 20:26:00 +01:00
Theo Arends 619c5431d7 Add Wemo SSDP presentationURL
Add Wemo SSDP presentationURL for easy access using Windows Networks Other Device device double click (#17084)
As implemented only works when USE_UNISHOX_COMPRESSION is disabled.
2022-11-17 17:54:42 +01:00
Theo Arends 16b796ccd5 Fix emulation regression from ArtNet implementation 2022-11-17 17:30:44 +01:00
joba-1 ffac19855b
Merge branch 'arendst:development' into rgx-port-forward-for-esp8266-too 2022-11-17 16:53:35 +01:00
Theo Arends d1c7ee882b Reset energy today at midnight (#16791) 2022-11-17 14:58:16 +01:00
joba-1 2df095d57a
Merge branch 'arendst:development' into rgx-port-forward-for-esp8266-too 2022-11-17 12:40:10 +01:00
Theo Arends acca26f9cd
Merge pull request #17108 from curzon01/patch1
Fix linker error using #undef USE_WS2812 for ESP32
2022-11-17 12:06:36 +01:00
Theo Arends 91953e2658
Merge pull request #17103 from joba-1/rgx-preserve-ap-connections-on-sta-reconnect
preserve AP connections if STA side reconnects
2022-11-17 11:50:26 +01:00
Norbert Richter be7581b377
Fix linker error using undef USE_WS2812 for ESP32 2022-11-17 11:13:40 +01:00
joba-1 b1ebda8524 Range extender port forwarding also for ESP8266 2022-11-16 23:51:54 +01:00
Stephan Hadinger 7344fd54dc Fix ArtNet crash 2022-11-16 21:24:57 +01:00
joba-1 552c44425b
Merge branch 'arendst:development' into rgx-preserve-ap-connections-on-sta-reconnect 2022-11-16 19:41:59 +01:00
joba-1 4eb0bf80dc preserve AP connections if STA side reconnects 2022-11-16 17:28:03 +01:00
Theo Arends f044ccdeec Remove commands ArtNetStop and ArtNetStart 2022-11-16 16:26:12 +01:00
Theo Arends a0e7191d4e Add command ArtNet
- Fix ArtNetStop
2022-11-16 16:15:31 +01:00
Theo Arends 56a71c3ca9
Merge pull request #17092 from joba-1/rgx-portmap
add command RgxPort to setup port forwarding
2022-11-16 14:17:55 +01:00
s-hadinger 0f5a7e4a77
Merge pull request #17096 from s-hadinger/zigbee_doc
Zigbee doc
2022-11-16 14:03:21 +01:00
Stephan Hadinger 56e06b7fc5 Fix command name bug 2022-11-16 13:45:59 +01:00
Stephan Hadinger a26e634408 Doc is off by default 2022-11-16 13:44:06 +01:00
Stephan Hadinger 0b18c60ba2 Zigbee ZbProbe for unknown devices and doc helper 2022-11-16 13:43:36 +01:00
Theo Arends b92d5ab12c Fix ArtNet compilation on ESP32 2022-11-16 10:47:55 +01:00
joba-1 8af22a1904 remove unneeded return 2022-11-15 20:12:07 +01:00
joba-1 e468cf53ee add command RgxPort to setup port forwarding 2022-11-15 18:53:38 +01:00
Theo Arends 79c1bd2ae8
Merge branch 'development' into zigbee_aqara_plug 2022-11-15 09:27:40 +01:00
joba-1 4f343fd7b7 add RgxClients for ESP8266 2022-11-14 23:56:38 +01:00
Stephan Hadinger d2d384dc72 Zigbee improved Aqara plug support and completed cluster 0x0702 2022-11-14 22:46:08 +01:00
Theo Arends 5b1aff5141 Add RTC logging to energy 2022-11-14 17:11:38 +01:00
Theo Arends c63aad49c1
Merge pull request #17048 from joba-1/range-extender-clients-list
Range extender clients list
2022-11-14 13:55:30 +01:00
joba-1 aad82c027f change rgx client mac format in list as requested 2022-11-14 13:02:04 +01:00
joba-1 f48e86f0c7 ap sta list header esp_wifi.h is ESP32 only 2022-11-14 02:25:24 +01:00
joba-1 cc6f8840f9 add rssi for each entry of RgxClients list 2022-11-14 01:47:00 +01:00
joba-1 912574f8d7 unconditional RgxClients, ip dict with mac as key 2022-11-14 01:18:32 +01:00
Stephan Hadinger 2549203c13 Added WS2812 and Light ArtNet DMX control over UDP port 6454 2022-11-13 18:22:39 +01:00
Theo Arends b2239b4dce Disable TUYA_MORE_DEBUG 2022-11-13 15:15:10 +01:00
Theo Arends 13c27194ec TuyaMcu rewrite by btsimonh (#17051) 2022-11-13 12:55:18 +01:00
joba-1 172ea9a80d add RgxClients command for range extenders 2022-11-12 23:15:57 +01:00
Theo Arends 4e5193fdad Remove SkipSleep() in favour of FUNC_SLEEP_LOOP 2022-11-12 15:57:46 +01:00
Theo Arends b0dbe32f22 Fix serial bridge tee not wanted resolve 2022-11-12 15:03:42 +01:00
Theo Arends 50b0a983b2 Add uart info 2022-11-11 16:10:39 +01:00
Theo Arends 9b64c4eb4c Refactor some logging 2022-11-11 14:34:58 +01:00
Theo Arends 9ef0f2aa09 Consolidate AddLogBuffer 2022-11-11 11:47:11 +01:00
Stephan Hadinger 3731894486 Added ``FUNC_NETWORK_UP`` and ``FUNC_NETWORK_DOWN`` events 2022-11-11 11:15:05 +01:00
Theo Arends c1ea8953cb Refactor uint8_t to uint32_t 2022-11-11 10:44:56 +01:00
Theo Arends 6f00b455e7 Add serial receive poll during sleep
Add serial receive poll during sleep for tuya and serial bridge
2022-11-11 09:57:00 +01:00
Theo Arends 986a9d10ae Refactor serial raw data representation 2022-11-10 16:02:00 +01:00
barbudor 41c4af7dfe change mqtt DINGTIAN_CHG to STAT 2022-11-09 22:01:01 +01:00
Barbudor 83a07895f9 take care of Relay1 is not 1st power 2022-11-07 23:27:16 +01:00
Barbudor b03476ff6f Merge branch 'development' into dingtian_driver 2022-11-07 22:33:35 +01:00
Theo Arends 1c47744eeb Clean up 2022-11-07 11:56:27 +01:00
Reimer Prochnow 479b8f4015 fix for #13955
Signed-off-by: Reimer Prochnow <reimer-github@ideenhal.de>
2022-11-06 18:38:40 +01:00
Norbert Richter 050f2e7e61
Fix ModbusBridge buffer overflow (#16979) 2022-11-06 12:32:30 +01:00
Norbert Richter f76bed338b
Localize ModbusBridge global func/var names 2022-11-06 12:32:30 +01:00
Norbert Richter 31516f2d34
Add ModbusBridge malloc error notes 2022-11-06 12:32:30 +01:00
s-hadinger d0cd3d3778
Merge pull request #16990 from s-hadinger/artnet_optimization
ESP32 DMX ArtNet optimization to avoid any object allocation and avoid garbage collector pauses
2022-11-03 22:18:18 +01:00
Stephan Hadinger e7ac249f8f Berry reduce detailed GC logs 2022-11-03 22:01:24 +01:00
Stephan Hadinger a5e7917704 ESP32 DMX ArtNet optimization to avoid any object allocation and avoid garbage collector pauses 2022-11-03 21:54:21 +01:00
Stephan Hadinger b2e9001ca2 Support for DMX ArtNet Led matrix animations 2022-11-02 22:37:53 +01:00
Theo Arends da65c8798b Shelly Pro better light show 2022-11-01 17:19:42 +01:00
Theo Arends e9d99a088b Fix hardware watchdog at power on 2022-10-31 15:02:29 +01:00
Theo Arends 9db8a23401 Fix Shelly Pro detection when using buttons (#16733) 2022-10-31 14:01:15 +01:00
Christian Baars 87b403f10d
support RISCV ULP for ESP32S2 and ESP32S3 2022-10-30 18:40:32 +01:00
Theo Arends 7167eb2f46 Changed ADE7953 monitoring
Changed ADE7953 monitoring from instant power to accumulated energy (#16941)
2022-10-30 12:20:56 +01:00
Theo Arends 41b65fd6b7 Add support for two phase power calibration
Add support for two phase power calibration using commands ``PowerSet2``, ``VoltageSet2`` and ``CurrentSet2``
2022-10-30 11:15:17 +01:00
barbudor f861e8330a dingtian driver take 1 2022-10-29 21:38:22 +02:00
Christian Baars 1378d57377 allow webcam to reuse and share I2C bus 2 2022-10-29 20:13:00 +02:00
Theo Arends 314dbf5e6b Add support for second energy channel calibration 2022-10-29 19:08:06 +02:00
Theo Arends 644761e22b
Merge pull request #16938 from eeak/dali
DALI support for Tasmota
2022-10-29 15:29:25 +02:00
Theo Arends 2c114d3243
Merge pull request #16914 from cybermaus/Deduplicate-and-fix-%timerN%
Deduplicate and fix %timer n%
2022-10-29 14:21:41 +02:00
eeak 6c0e38e38d Data struct rebuilded. Thanks barbudor for help 2022-10-29 12:50:41 +03:00
eeak 404db7965e Timer number is now declared in my_user_config.h 2022-10-28 21:57:40 +03:00
eeak 76c5be7634 Packed global variables into a struct 2022-10-28 20:16:45 +03:00
eeak c1c0b25c17 Clean up some comments and little refactor 2022-10-28 19:47:55 +03:00
eeak 1bf69fd310 dali 2022-10-28 17:08:02 +03:00
Theo Arends 90a9ebc3e1 Fix Shelly Pro ethernet stability 2022-10-27 17:52:44 +02:00
Theo Arends c5f7195d77 Add support for Shelly Pro 1/1PM and 2/2PM (#16773) 2022-10-26 17:16:36 +02:00
Theo Arends 0d45590ac4 Fix Shelly Pro led functionality 2022-10-26 12:45:06 +02:00
cybermaus a47f6baf2f
Deduplicate xdrv_09_timers.ino also
Turns out even TimerGetTimeOfDay was duplicate code from ApplyTimerOffsets
Did add a fix for the permanent day/night situation
2022-10-25 22:39:30 +02:00
cybermaus 0eebdf8620
Deduplicate code from xdrv_10_rules.ino
Turns out this code was already done in xdrv_09_timers.ino
2022-10-25 22:34:08 +02:00
Stephan Hadinger 2bf7ea1154 Prepare for DMX Artnet support on ESP32 2022-10-24 23:05:23 +02:00
Theo Arends d173b93758 Fix shelly pro button double press 2022-10-24 12:21:25 +02:00
Theo Arends b4269d262c Add support for Shelly Pro 1/2
Add support for Shelly Pro 1/2 (#16773)
2022-10-24 11:32:10 +02:00
Theo Arends 100e95f2cf Update xdrv_02_9_mqtt.ino 2022-10-19 10:44:08 +02:00
Theo Arends df24aef75c
Merge pull request #16833 from md5sum-as/development
Adding support multiple GPIO for DS18x20 sensors. Aliases of DS18x20 optimization.
2022-10-18 15:40:32 +02:00
Stephan Hadinger f87324f874 LVGL fix get text 2022-10-18 09:55:08 +02:00
Theo Arends f998a457db Disable SspmPowerOnState for v1.0.0 main 2022-10-17 15:41:46 +02:00
Theo Arends 411a7f0788 Update xdrv_86_esp32_sonoff_spm.ino 2022-10-16 15:03:05 +02:00
Theo Arends 480fae6804 Add command ``SspmPowerOnState<relay> 0|1|2``
Add command ``SspmPowerOnState<relay> 0|1|2`` to set Sonoff SPM 4Relay module v1.2.0 power on state overruling tasmota  global power on state. 0 = Off, 1 = On, 2 = Saved state (#13447)
2022-10-16 12:57:17 +02:00
Stephan Hadinger 5e03066883 Resize FS to max at initial boot 2022-10-16 11:49:30 +02:00
md5sum-as eccccdad37
Merge branch 'arendst:development' into development 2022-10-15 00:00:23 +03:00
md5sum-as 1cdbb980f1 Add support DS18x20_MULTI_GPIOs for esp8266 2022-10-14 23:58:53 +03:00
Stephan Hadinger 6783a90ccc Add bootcount 2022-10-14 17:31:15 +02:00
Stephan Hadinger 65672b62ae Berry add access to `restart_flag` 2022-10-14 17:14:35 +02:00
Theo Arends 2456280139
Merge pull request #16810 from barbudor/fix_script_topic
get correct topic var
2022-10-14 15:02:51 +02:00
Theo Arends 2dec4ac057 Add clock change execution to webcam 2022-10-14 13:54:37 +02:00
barbudor a0de32e67d get correct topic var 2022-10-13 21:27:06 +02:00
Theo Arends 2ad018816b Add command ``WcClock 10..200``
Add command ``WcClock 10..200`` set webcam clock in MHz. Default is 20
2022-10-13 17:58:16 +02:00
Theo Arends 3dd32a1ebd Update xdrv_10_rules.ino 2022-10-13 17:13:19 +02:00
Theo Arends 799dea913a
Merge pull request #16807 from cybermaus/Make-%timerN%-solar-aware
Fix %timerN% rule variables for SunRise/Sunset timers
2022-10-13 17:06:43 +02:00
cybermaus deaba8471d
Update xdrv_10_rules.ino
Enhance %timerN% rule variables to also work for timers with SunRise/SunSet configuration
2022-10-13 14:59:51 +02:00
Jason2866 7e12fbbb6d
abort webcam if no pin config
avoids crashing if no valid config is provided
2022-10-13 11:54:27 +02:00
Theo Arends 5cfbbd4302 Add command ``Sunrise 0..3`` to select sunrise dawn angle
- Bump version to v12.1.1.5
- Add command ``Sunrise 0..3`` to select sunrise dawn angle between Normal, Civil, Nautical or Astronomical (#16795)
2022-10-12 11:02:54 +02:00
Theo Arends 0085e02a5b Fix possible buffer overflows with exception 2022-10-11 11:12:54 +02:00
Stephan Hadinger 8432ab1aec Zigbee plugin optimize memory 2022-10-09 21:52:56 +02:00
sfromis 409c9888dd
Epoch in Berry map for time
Uses mktime to calculate the epoch value from the broken-down time structure, could potentially be tuned if deemed too inefficient in case of the caller already having the epoch value nearby.
2022-10-09 16:09:29 +02:00
Stephan Hadinger e0a2a0928d Zigbee plugin allow matches to 'starts wth' 2022-10-09 14:59:15 +02:00
Jason2866 3b597a9a50
Merge pull request #16761 from Staars/MI32
Mi32 legacy: remove some legacy code
2022-10-08 23:24:45 +02:00
Stephan Hadinger 6cc52e0128 LVGL Fix BMP format for `lv.screenshot()` 2022-10-08 09:44:32 +02:00
Christian Baars 08ae94ff5b cleanups and handle unknown sensors 2022-10-07 16:10:19 +02:00
Theo Arends bc8cc520a2 Add energy driver info during init 2022-10-06 23:27:43 +02:00
Theo Arends 18d37ea584
Merge pull request #16713 from gemu2015/par_udisplay
universal display driver Parallel display support
2022-10-06 16:58:37 +02:00
Theo Arends 6bd7be44ef Add relevant program core information 2022-10-04 17:56:51 +02:00
Theo Arends 5a314f72e3 Add relevant program core information 2022-10-04 17:52:15 +02:00
Stephan Hadinger 3c729c772e Zigbee load from FS before EEPROM 2022-10-04 16:02:44 +02:00
Stephan Hadinger f0cf998ca4 Zigbee urgent fix for zbv4 2022-10-04 14:57:07 +02:00
Stephan Hadinger e41ac7c242 Zigbee Alexa/Hue emulation, support multiple switches on separate endpoints 2022-10-04 12:49:10 +02:00
gemu2015 43c6cf6e26 udisplay parallel support 2022-10-03 12:24:27 +02:00
Barbudor db5bef61c6 fix javascript scrumbled by quote char 2022-10-02 21:49:52 +00:00
Stephan Hadinger 58c0ca4076 fix compilation 2022-10-02 21:13:32 +02:00
Stephan Hadinger b4aca5a3f3 Zigbee friendly names per endpoint 2022-10-02 20:54:49 +02:00
Theo Arends fcfbde8ed8 Add Sonoff SPM Surge overload message
Add Sonoff SPM Surge overload message (#15695)
2022-09-28 11:44:52 +02:00
Christian Baars ff7c624413 fix compilation for TTTGO watch 2022-09-25 16:52:32 +02:00
ortegafernando a9f15ae379
Software Serial buffer to MIN_INPUT_BUFFER_SIZE
Increase software serial buffer to MIN_INPUT_BUFFER_SIZE
2022-09-24 17:11:20 +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
Stephan Hadinger 879df8a222 Fix startup if F2 is not present 2022-09-24 11:58:58 +02:00
Stephan Hadinger ef5138d36d Zigbee don't abort if endpoint F2 denied 2022-09-24 09:53:01 +02:00
Stephan Hadinger 22a2bc0fd7 zigbee prepare for multiple Alexa devices per zigbee device 2022-09-22 22:33:04 +02:00
Stephan Hadinger 68b11e0168 Zigbee move synonyms to a specific method 2022-09-22 21:56:48 +02:00
Stephan Hadinger cc25c1abfe Zigbee allow spaces in names 2022-09-22 13:24:07 +02:00
Stephan Hadinger c83abd12c8 Zigbee Tuya wildcard support 2022-09-21 22:33:53 +02:00
ortegafernando af2a2076e3
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:44:17 +02:00
ortegafernando 8455a3fd3c
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-20 23:38:59 +02:00
Stephan Hadinger 44e03f014a Tests are actually not needed thanks to guarding statement 2022-09-20 14:45:59 +02:00
Stephan Hadinger 28920fdeb7 Fix bug in Z_attribute::equalsCmd 2022-09-20 14:43:36 +02:00
Stephan Hadinger dff9274cb6 Zigbee basic support for Green Power 2022-09-19 22:28:38 +02:00
Stephan Hadinger eb65038b6c Zigbee report unprocessed attributes 2022-09-19 22:03:46 +02:00
Stephan Hadinger e94baa84cf Fix zigbee attribute writes and configuration 2022-09-18 19:23:59 +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
Stephan Hadinger ead891ef0e Zigbee support for decimal Voltage/Current/Power on power metering plugs 2022-09-16 22:55:07 +02:00
gemu2015 52c21ff5d6 nested loops etc 2022-09-16 12:31:30 +02:00
Theo Arends 903d3174b2 Fix ADE7953 apparent and reactive power calibration 2022-09-15 11:22:09 +02:00
Stephan Hadinger 0e00d082ec Zigbee update ZCL 2022-09-14 19:34:47 +02:00
Theo Arends 0d10aeab16 Fix MP3 compile error (#16516) 2022-09-14 15:42:48 +02:00
ZoneMR b1ee94c248
Update xdrv_16_tuyamcu.ino
Support longer-form TUYA_MCU_FUNC_POWER_COMBINED payloads used by some devices, including "2P 63A TUYA APP WiFi Smart Circuit Earth Leakage Over Under Voltage Protector Relay Device Switch Breaker Energy Power kWh Meter".
2022-09-13 13:17:39 +01:00
Theo Arends 5b7371d98f
Merge pull request #16492 from Staars/MI32
MI32 legacy: refactor MI32 functions to CTYPE_DECLARATION
2022-09-11 07:34:02 +02:00
Christian Baars 9ec5009c6d refactor MI32 functions to CTYPE_DECLARATION 2022-09-10 21:10:39 +02:00
Stephan Hadinger 7fee430e9f Berry has persistent MQTT subscriptions: auto-subscribe at (re)connection 2022-09-10 19:08:26 +02:00
Theo Arends 71ddc7e0a7
Merge pull request #16487 from Staars/MI32
MI32 legacy driver: refactor MI32 and BLE in Berry to module
2022-09-10 17:14:28 +02:00
Christian Baars d57a1cadc9 refactor MI32 and BLE in Berry to module 2022-09-10 16:38:12 +02:00
Theo Arends be544b4a96
Merge pull request #16483 from Jason2866/s3_webcam
Fix ESP32-S3 webcam bootloop
2022-09-10 14:24:19 +02:00
Jason2866 8ff3438979
add more cams via `.h` file (#310) 2022-09-10 12:54:28 +02:00
Stephan Hadinger 13027cc623 Move out of mapping to increase performance 2022-09-10 12:05:48 +02:00
Stephan Hadinger 5c4aab6dc1 Berry improve operator detection in rules 2022-09-10 11:26:47 +02:00
Stephan Hadinger edb0a8af9c Zigbee grey buttons when not started 2022-09-09 23:51:52 +02:00
Theo Arends f347a5b19c Fix driver config store 2022-09-09 15:06:04 +02:00
Theo Arends d2058c5d5c
Merge pull request #16470 from gemu2015/scripter_update
google chart fix
2022-09-09 09:06:35 +02:00
gemu2015 8034b19b2e WSContentSend_P fix 2022-09-09 08:14:42 +02:00
Stephan Hadinger 97ad6c5c10 fix compilation 2022-09-08 22:22:31 +02:00
Stephan Hadinger 48968b4bc0 Fix fade pwmct #16454 2022-09-08 22:04:08 +02:00
Theo Arends 23176e9cc1 More comments 2022-09-08 17:51:54 +02:00
Theo Arends 48fe515b9e Add DspLine9 2022-09-08 17:43:47 +02:00
Theo Arends 04160106c2 Add commands DspLine and DspSpeed
Add commands DspLine and DspSpeed (#15856)
2022-09-08 16:02:49 +02:00
s-hadinger c984e501d7
Merge pull request #16421 from s-hadinger/zigbee_gp_ui
ZIgbee add GP UI indicator
2022-09-02 22:48:40 +02:00
Stephan Hadinger c73d783554 ZIgbee add GP UI indicator 2022-09-02 22:36:11 +02:00
Stephan Hadinger d3fbc98601 ZIgbee extend ZNP timeout 2022-09-02 22:27:46 +02:00
Theo Arends a43eaef01b Add influxdb support to zigbee (#16417) 2022-09-02 15:26:44 +02:00
Stephan Hadinger 7fb00daa52 Zigbee prepare for Green Power support 2022-09-01 08:14:37 +02:00
Stephan Hadinger d0f5c80ae1 Zigbee fix regression when reporting a command 2022-08-31 21:04:35 +02:00
Stephan Hadinger 74cbc47614 Be more specific to target ESP32 2022-08-31 10:12:25 +02:00
Stephan Hadinger b355231721 Fix unstable ETH on Olimex POE 2022-08-31 10:09:22 +02:00
Stephan Hadinger cb4a5ed736 Berry extend max bytes size to 512Kb when PSRAM is available 2022-08-30 18:11:04 +02:00
Theo Arends 3a1bbda4a5 refactor tm1621 2022-08-28 18:22:06 +02:00
Theo Arends 9c06a3713e Show all temperature sensors on display
Show alternating temperature sensors on Sonoff THR3xxD display (#15856)
2022-08-28 17:35:13 +02:00
Theo Arends acfebb0ab4 Increase max temperature
Increase max temperature from 100 to 200C (#16363)
2022-08-28 15:00:41 +02:00
Theo Arends e06793eb8c Small refactors 2022-08-27 12:28:34 +02:00
JeroenSt 728c108294 Removed logging and changed maximum number of coils/inputs 2022-08-27 10:54:41 +02:00
JeroenSt f57acac48b Fixed Modbus TCP function 1 & 2 not working 2022-08-27 10:40:02 +02:00
JeroenSt a19edd4983 Solved endian on uint16 2022-08-27 09:11:36 +02:00
JeroenSt 1ac5b6fd7f Rework in progress
ModbusTCP fully tested OK
Modbus via Commands:
function 1..5 tested ok
function 6 fail
function 15 & 16 not tested
2022-08-27 09:11:36 +02:00
JeroenSt 9c11eb41d4 Changed Modbus to also support nr of bytes
for functioncode 1,2 & 15.
https://ozeki.hu/p_5876-mobdbus-function-code-1-read-coils.html
2022-08-27 09:11:36 +02:00
JeroenSt 5bd28954fa Fixed reading functioncode 1 & 2 for ModbusTCP
Returned bytes need to be even (limitation of TasmotaModbus.cpp)
https://github.com/arendst/Tasmota/issues/9586
2022-08-27 09:11:36 +02:00
JeroenSt ffcdce6041 Fixed FC16
https://github.com/arendst/Tasmota/issues/9586#issuecomment-1226120239
2022-08-27 09:11:36 +02:00
JeroenSt d333948816 Solved ModbusTCP writing wrong registers 2022-08-27 09:11:36 +02:00
JeroenSt fea41407ac changed wrong copying of tcp data to writedata 2022-08-27 09:11:36 +02:00
JeroenSt a5782f2ca0 Added usefull url to comments 2022-08-27 09:11:36 +02:00
JeroenSt 2926a66fe0 Added returning of modbus error codes to TCP client
https://github.com/arendst/Tasmota/issues/9586#issuecomment-1225437630
2022-08-27 09:11:36 +02:00
JeroenSt 5f86569a9f Solved Issues mentioned in
https://github.com/arendst/Tasmota/issues/9586
2022-08-27 09:11:36 +02:00
Stephan Hadinger e46d07acb4 Berry add more metrics to GC 2022-08-26 19:23:21 +02:00
Theo Arends 91875f20a5 Add balanced energy values
Add balanced energy values (#16346)
2022-08-26 14:35:52 +02:00
Stephan Hadinger 6fbaa8505c Zigbee change offset: to add: 2022-08-26 08:33:27 +02:00
Stephan Hadinger 42d26fecb2 Zigbee extend div and offset for plugin 2022-08-25 21:29:19 +02:00
Theo Arends a187867070 Lost module name in GUI regression from v12.0.2.4
Lost module name in GUI regression from v12.0.2.4 - 20220803 (#16324)
2022-08-24 17:09:26 +02:00
Theo Arends 08bd672aa1 Add flash chip mode to GUI 2022-08-24 16:16:14 +02:00
Stephan Hadinger a3c29375e8 Berry Zigbee integration for received messages 2022-08-22 21:32:39 +02:00
Theo Arends 204289e1ab Fix TuyaSend exception 2022-08-20 13:46:31 +02:00
Stephan Hadinger e9e564c424 all attributes present 2022-08-19 23:52:35 +02:00
Stephan Hadinger f690763c07 many more attributes 2022-08-19 23:42:11 +02:00
Stephan Hadinger 9d7cbcae62 Zigbee improve plugin format 2022-08-19 23:16:21 +02:00
s-hadinger 156adad97c
Merge pull request #16266 from s-hadinger/zigbee_unhide_attributes
Zigbee unhide unknown attributes
2022-08-19 17:59:25 +02:00
Stephan Hadinger 7625167bf5 Zigbee unhide unknown attributes 2022-08-19 17:44:25 +02:00
Theo Arends dc217655a0 Force delete of retained messages
Force delete of retained messages
2022-08-19 16:43:20 +02:00
Theo Arends a919b109de Fix StatusRetain reset 2022-08-19 15:12:16 +02:00
Theo Arends 1fe39bb620 Fix InfoRetain and StatusRetain
Fix InfoRetain and StatusRetain clean up if disabled
2022-08-19 15:03:32 +02:00
Theo Arends 103808ce44 Add command ``StatusRetain``
Add command ``StatusRetain`` (#11109)
2022-08-19 14:24:55 +02:00
Stephan Hadinger 07645067aa Fix compilation of safeboot 2022-08-18 19:44:16 +02:00
Stephan Hadinger ff07d0608b Zigbee device plugin mechanism with commands ``ZbLoad``, ``ZbUnload`` and ``ZbLoadDump`` 2022-08-18 19:23:11 +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
JeroenSt a832af4dd2 added linefeed 2022-08-17 21:14:50 +02:00
JeroenSt 995b669f28 Removed debug logging 2022-08-17 20:12:26 +02:00
JeroenSt b8000fa788 Update for functioncode 5 and 6 and 15 2022-08-17 19:55:42 +02:00
JeroenSt 812fbff683 Fixed reading discrete inputs and coils
https://github.com/arendst/Tasmota/issues/9586#issuecomment-1217574286
2022-08-17 19:55:42 +02:00
JeroenSt cc2c219aa2 Modified reading of bits according to coil and input register specification 2022-08-17 19:55:42 +02:00
JeroenSt aabf188afb (u)int8 and (u)int32 are now also working 2022-08-17 19:55:42 +02:00
JeroenSt 1d4ff834ab Solved error in reading (u)int32 value and removed logging 2022-08-17 19:55:42 +02:00
JeroenSt fa3802cd67 Changed int and uint types 2022-08-17 19:55:42 +02:00
JeroenSt 3470a5d4cd Added Bit and Hex reading https://github.com/arendst/Tasmota/issues/9586#issuecomment-1216313774 2022-08-17 19:55:41 +02:00
JeroenSt a04a446654 work in progress 2022-08-17 19:55:41 +02:00
JeroenSt 96a1eb3ae5 In the first serie of tests this seems to work right. 2022-08-17 19:55:41 +02:00
JeroenSt 355e31ff2e Work in progress... 2022-08-17 19:55:41 +02:00
JeroenSt 92319eedd2 Work in progress... 2022-08-17 19:55:41 +02:00
JeroenSt 2c2a73506d Work in progress. 2022-08-17 19:55:41 +02:00
JeroenSt 9881183726 In progess: Developping modbus write functionality 2022-08-17 19:55:41 +02:00
gemu2015 5e093c45f2 fix compile error 2022-08-17 16:06:53 +02:00
Theo Arends 86f963a319
Merge pull request #16227 from gemu2015/i2s_update
I2s bridge
2022-08-15 22:43:57 +02:00
stefanbode 69c59fc73c
removed DebugLog 2022-08-15 21:57:56 +02:00
stefanbode 45bdaf14fd
stop shutter after longpress of buttons
https://github.com/arendst/Tasmota/discussions/16198 improved behavior on longpress of buttons
2022-08-15 21:55:57 +02:00
gemu2015 4b240545bd i2s bridge 2022-08-15 13:54:03 +02:00
blakadder 2716d739f2 Add PM 2.5 sensor to TuyaMCU driver 2022-08-15 00:58:45 +02:00
Stephan Hadinger 2a087f40f9 Zigbee ``SetOption144 1`` includes a timestamp in `ZbReceived` messages 2022-08-09 18:30:01 +02:00
Stephan Hadinger 55d8c859d9 Zigbee fix Aqara wrong battery 2022-08-09 17:39:28 +02:00
Stephan Hadinger cb190d45e3 Zigbee fix Tuya for writing attributes 2022-08-09 11:06:04 +02:00
Theo Arends 0b8489d342
Merge pull request #16178 from gemu2015/i2supdate
I2supdate
2022-08-09 09:20:01 +02:00
Stephan Hadinger 603dd28944 Fixed IR crash on ESP32 (#16173) 2022-08-08 14:11:57 +02:00
gemu2015 73a4174d4e Update xdrv_42_0_i2s_audio.ino 2022-08-08 14:09:51 +02:00
gemu2015 4dc910391f update i2s audio 2022-08-08 14:00:55 +02:00
stefanbode 59fd20097c
Enhance behavior of tilt changes at end points 0% and 100%
#15974 mentioned there is unexpected behavior when direction changes and end points are not left.
2022-08-07 18:32:23 +02:00
Stephan Hadinger f18091c53b Zigbee include "BatteryPercentage" in all messages 2022-08-06 14:27:58 +02:00
JeroenSt cf20a9c1c8 Solved crash when modbusbridge was configured for the first time 2022-08-06 11:57:47 +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
Stephan Hadinger d112800dc3 Zigbee add received commands as battery auto-probe triggers 2022-08-04 18:33:31 +02:00
Stephan Hadinger d482f49002 Zigbee add Battery auto-probe (can be disabled with ``SetOption143 1``) 2022-08-04 11:15:53 +02:00
Theo Arends 6f014651b6
Merge pull request #16106 from gemu2015/scripter_update
current cmd buffer adjustable
2022-08-03 20:05:05 +02:00
stefanbode f637dd14aa
fix #15851
buffer overflow
2022-08-03 19:03:42 +02:00
Stephan Hadinger 73797b3994 Zigbee added recording of when the battery was last reported 2022-08-03 17:20:09 +02:00
s-hadinger 63296e4cd4
Merge pull request #16131 from s-hadinger/pwm_fix_freq
Fix PWM to allow 4 different frequencies
2022-08-03 12:26:12 +02:00
Adrian Scillato f514d1702d
Move ScanNetwork variables to wifi struct 2022-08-02 22:35:16 -07:00
Stephan Hadinger c6a5cabc72 Fix IRsend GPIO init 2022-08-02 23:32:23 +02:00
Stephan Hadinger 9f29e7c40d Support for multiple `IRsend` GPIOs 2022-08-02 22:52:35 +02:00
Stephan Hadinger 47b1f40245 Fix PWM to allow 4 different frequencies 2022-08-01 19:27:49 +02:00
gemu2015 a8d9acbfd2 current cmd buffer adjustable 2022-07-29 07:47:21 +02:00
Jeroen 3504819074
Merge branch 'arendst:development' into ModbusBridgeTcp 2022-07-26 20:25:08 +02:00
Theo Arends 0874dbe138
Merge pull request #16091 from gemu2015/scripter_update
fixes + background webserver
2022-07-26 17:27:34 +02:00
gemu2015 33861c8aa0 fixes + background webserver 2022-07-26 15:34:43 +02:00
gemu2015 c4e0250c42 Create xdrv_42_3_i2s_saytime.ino 2022-07-26 15:32:35 +02:00
gemu2015 3945cc6fc0 audio restructured 2022-07-26 15:26:30 +02:00
JeroenSt 7fab74bc8f ModbusBridgeBegin was not called at (boot) init 2022-07-26 09:38:57 +02:00
JeroenSt 7e02b61e46 Baudrate and serial config for modbus_bridge are now persistent 2022-07-25 19:18:30 +02:00
Theo Arends a0d6670a5a
Merge pull request #16075 from jeroenst/ModbusTCP
Adding modbus bridge TCP
2022-07-25 16:07:09 +02:00
JeroenSt bcaac8208f Adding modbus bridge TCP
Removed (u)int8 because modbus registers are always 16 bits and changed bit8 to bit
Solved memory leak, changed logging
Improved initialisation and configuring serial port
Solved bug that addresses above 4 didn't reply
Removed logging
Added mandatory comment to USE_MODBUS_TCP_BRIDGE
Using TasmotaModbus->Begin instead of begin
Added bytecount to modbus tcp reply message
Added comments
Put modustcp variables in ModbusBridgeTCP struct.
2022-07-25 14:42:55 +02:00
Gabriele Lauricella 619c6d4588 sendmail override domain for SMTP EHLO command 2022-07-25 00:54:52 +02:00
Theo Arends 533d42fc07 Refactor keeloq logging 2022-07-24 14:48:03 +02:00
Theo Arends 95d97c4bd3
Merge pull request #16049 from madmartin/dev-MD-002
tasmota_xdrv_driver/xdrv_36_keeloq.ino: fix compile error
2022-07-24 14:34:04 +02:00
Martin Dummer b89fd72638
tasmota_xdrv_driver/xdrv_36_keeloq.ino: fix compile error
When compiling with USE_KEELOQ and -DDEBUG_TASMOTA_DRIVER, it fails with
some messages like

... error: cannot convert 'LoggingLevels' to 'const char*' for argument '2' to 'void AddLog(uint32_t, const char*, ...)'
 #define DEBUG_DRIVER_LOG(...) AddLog(LOG_LEVEL_DEBUG, __VA_ARGS__)

This patch fixes this compile errors
2022-07-22 20:49:08 +02:00
stefanbode 271d16ae10
Update xdrv_27_shutter.ino 2022-07-22 14:48:08 +02:00
gemu2015 b8902c3af7 i2srec to mp3 2022-07-20 20:49:25 +02:00
Theo Arends 79161d3c43 Fix BH1750 illuminance formula
Fix BH1750 illuminance formula (#16022)
2022-07-20 11:11:18 +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
JeroenSt 1cc091e4fa Added ModbusBridge 2022-07-19 14:10:12 +02:00
Theo Arends 1f2e69272f Fix shutter reset savedata
Fix shutter reset savedata (#15895)
2022-07-18 15:39:26 +02:00
gemu2015 6e0f643c64 fixes and fast pin multiplexer 2022-07-15 17:41:39 +02:00
Theo Arends 74bb1a2eff
Merge pull request #15985 from gemu2015/is2_update
Is2 update
2022-07-15 15:44:17 +02:00
Theo Arends 0ded72252f Fix POWR320D bistable relay connection 2022-07-15 15:02:59 +02:00
gemu2015 f3e6ef1558 fixes for s3 box 2022-07-15 14:47:34 +02:00
gemu2015 d80ba93b68 audio i2s refactor 2022-07-11 09:08:06 +02:00
Theo Arends 2fe1d139e3 Fix Sonoff THR3xx templates 2022-07-10 14:24:35 +02:00
Theo Arends 4048aef96b Add Sonoff THR320D template
and update THR316D template
2022-07-10 12:36:34 +02:00
Theo Arends 485328b94d Update sonoff POWR320D template
Update sonoff POWR320D template with bistable relay
2022-07-10 11:38:06 +02:00
David Gwynne bc6d65c725 add `Speed2 !` to cancel pending one-shot speed setting 2022-07-09 20:57:06 +10:00
Theo Arends 324e4e1084
Merge pull request #15942 from gemu2015/sbox_support
Sbox support
2022-07-07 22:12:08 +02:00
Stephan Hadinger d27a87f86f Report error of socket failed to open 2022-07-07 19:56:08 +02:00
Stephan Hadinger 5e758db898 Berry tcpserver 2022-07-07 19:28:17 +02:00
Theo Arends f3b1c4d543 Add POWR3xxD and THR3xxD overflow display 2022-07-07 14:24:53 +02:00
gemu2015 9cd3ad3f6b Update xdrv_42_i2s_audio.ino 2022-07-07 13:45:40 +02:00
gemu2015 612a0f3fcc sbox audio support 2022-07-07 13:29:36 +02:00
Stephan Hadinger 389543d36f Berry fix regression 2022-07-06 23:13:35 +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
Theo Arends 720942e818 Add THR316D display support
- Add THR316D display support
- Provide supported THR316D template
2022-07-05 17:26:04 +02:00
Theo Arends 2c0f003898 Add initial Sonoff POWR3xxD display support
Add initial Sonoff POWR3xxD display support (#15856)
2022-07-05 00:09:03 +02:00
Christian Baars e730f43d26 change error reporting for adc_config 2022-07-02 22:33:31 +02:00
Christian Baars a793296bc1 ESP32: support ULP via Berry 2022-07-02 21:30:04 +02:00
Kai Gerken a863ff27a2 Fix missing sign of current power value on smart meter AS2020 2022-06-28 09:07:58 +02:00
Stephan Hadinger dc6aeb94c2 Filesystem escape special chars 2022-06-27 19:30:04 +02:00
s-hadinger 8267d99334
Fix identation typo 2022-06-26 19:23:07 +02:00
Theo Arends 494e0ec552
Merge pull request #15846 from trlafleur/X14mods
Updated MP3 Driver with busy and MP3 Folder command
2022-06-25 15:20:35 +02:00
Theo Arends ea226228f5 Fix shutter exception 29
Fix shutter exception 29 (#15825)
2022-06-24 17:43:53 +02:00
Theo Arends e68f93b4e8 Fix shutter No valid JSON messages
Fix shutter No valid JSON messages (#15825)
2022-06-24 16:40:45 +02:00
Tom Lafleur ef3a5fe733 change location of some defines 2022-06-24 05:55:19 -07:00
Tom Lafleur 5392aad166 Updated Languages for MP3 Player 2022-06-23 07:39:10 -07:00
Tom Lafleur 89816e88d4 Updated MP3 Driver with busy and MP3 Folder command 2022-06-22 14:47:32 -07:00
Stephan Hadinger 8377dd346f Zigbee reenable leds for ESP32 2022-06-22 19:38:18 +02:00
Theo Arends d4ab49d3dc Refactor sendmail and solve buffer overflows 2022-06-22 12:01:38 +02:00
Theo Arends 6cd19cbdf9 Refactor sendmail 2022-06-21 23:03:34 +02:00
Theo Arends ffcf90bdfe Refactor sendmail 2022-06-21 16:53:58 +02:00
Theo Arends 6fac233821 Fix MQTT rc -4
Fix MQTT rc -4 (#15809)
2022-06-20 14:20:35 +02:00
Theo Arends 9ee8461f3d Fix telegram DNS regression 2022-06-20 12:50:29 +02:00
Theo Arends 626fb783ea Fix MQTT rc -4 on TLS connections
Fix MQTT rc -4 on TLS connections regression from v12.0.0 (#15809)
2022-06-20 12:07:31 +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
Stephan Hadinger dd364c92da Berry comobj standard deallocator 2022-06-16 22:37:33 +02:00
Stephan Hadinger 9b26c01dd0 Berry virtual member can return nil 2022-06-15 22:00:31 +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 baf68fcf6e Update xdrv_12_discovery.ino 2022-06-10 10:58:32 +02:00
Theo Arends c6f51b8ca3 Fix future compiles using discovery 2022-06-10 10:43:36 +02:00
Christian Baars f9c31bd8b8 make discoverAttributes optional 2022-06-09 22:00:19 +02:00
Theo Arends ac4ed0d664 Fix config upload message safeboot regression 2022-06-08 11:54:11 +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 cc771f31e9 some fixes, array average 2022-06-07 08:23:06 +02:00
Theo Arends 8a425c40c9 Small refactor adding define USE_SERIAL_BRIDGE_TEE 2022-06-06 18:08:02 +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
Theo Arends 92f05fe7ca Fix MP3 default state 2022-06-05 12:00:38 +02:00
Stephan Hadinger 892b331d67 Found bug in sk6812 RGBW 2022-06-03 23:01:40 +02:00
Stephan Hadinger 82d4e14171 Cleaning unused variables 2022-06-03 22:57:05 +02:00
Theo Arends 6ab509576a Refactor domoticz saving some code space 2022-06-03 15:37:43 +02:00
Theo Arends e5765a1cd6 Add domoticz idx check
Add domoticz idx check while staying backwards compatible (#15677)
2022-06-02 18:38:06 +02:00
Theo Arends 9afb2c9cb8 Move interface files down allowing for folder insertions 2022-06-02 14:50:31 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00