8550 Commits

Author SHA1 Message Date
bovirus
12b2dd2e50
Update italian language (#17662) 2023-01-10 08:58:52 +01:00
Theo Arends
8b70608e58 Add more ESP32 logging 2023-01-09 13:53:07 +01:00
Theo Arends
a4fe1b88f9 Add HLW8032 8N1 2023-01-09 11:04:52 +01:00
Theo Arends
24105a74b2 Save some RAM on ESP8266 2023-01-08 17:51:17 +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
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
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
gemu
7465ff0c7f
some fixes on counters (#17628) 2023-01-07 11:32:26 +01:00
gemu
2f1e36e1bf
Epaper29 v2 (#17627)
* support for v2

* Update ST7262_rgb16_display.ini
2023-01-07 11:31:48 +01:00
s-hadinger
5e89578403
Extend fix #17619 to non-IPv6 (#17621) 2023-01-06 19:03:07 +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
7d94a2c89e Fix Slovak language Id 2023-01-06 10:15:12 +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
ae1c38aea8 Removed SetOption177 debugging (#17500) 2023-01-04 15:29:27 +01:00
Theo Arends
ff8291f77d Add support for filesystem calib.dat 2023-01-04 15:00:43 +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
Theo Arends
481cc63bf4 Add script support to Energy Modbus 2023-01-03 17:50:39 +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
65476c3b32 Add energy modbus configs 2023-01-03 17:05:18 +01:00
Theo Arends
18c38ec05d Add support for filesystem file modbus.json 2023-01-03 15:10:05 +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
10af47f8f4 Fix swapped voltage/power in energy dummy 2023-01-02 12:26:40 +01:00
Theo Arends
404589c860 Enable USE_WE517 in tasmota32.bin 2023-01-02 11:38:08 +01:00
Theo Arends
cb6dd75d8b Fix Orno-we-517 serial config
Fix Orno-we-517 serial config on esp32
2023-01-02 09:50:21 +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
32a51da43d Fix PUSH_IGNORE_INV once more 2023-01-01 14:01:18 +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
Alexey Baturin
04c90dc67d
Add alternative wiring of TM1650 (#17556)
303WIFILC01 model of clock used different wiring which needs remapping
2022-12-31 12:45:59 +01:00
Stefan Oskamp
e5fd35ba85
Added: Driver xdsp_20_tm1650 for I2C-based seven-segment LED controller TM1650. (#17549)
Co-authored-by: Stefan Oskamp <stefan@scinax.lan>
2022-12-31 09:19:53 +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
Theo Arends
d9be488885 Update comments 2022-12-29 16:10:41 +01:00
Theo Arends
4ee6aee35e Fix ESP8266 relay power on spikes
Fix ESP8266 set GPIO's to input on power on fixing relay spikes (#17531)
2022-12-29 14:46:34 +01:00
Theo Arends
ff3d90c36d Fix teleperiod PUSH_IGNORE_INV
Fix teleperiod PUSH_IGNORE_INV (#17028)
2022-12-29 14:02:48 +01:00