Commit Graph

24 Commits

Author SHA1 Message Date
Tyeth Gundry 2ed602057c
Add SEN5X to I2C devices (#17736) 2023-01-29 08:06:25 +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 404589c860 Enable USE_WE517 in tasmota32.bin 2023-01-02 11:38:08 +01:00
Theo Arends 20a50ffc2e Revert Tuya rewrite
- Update changelogs
2022-12-31 16:08:59 +01:00
Theo Arends 1ad8b7713e Add support for ME007-ULS
Add support for ME007-ULS narrow FoV ultrasonic distance sensor by Mathias Buder (#17376)
2022-12-14 12:18:49 +01:00
Theo Arends 425f83bf85 Update Serial Bridge code size 2022-11-19 14:59:36 +01:00
Thomas Hargrove 644f9da9af
Change define name to be more consistent with existing defines 2022-10-31 13:41:37 -07:00
Thomas Hargrove 0e5592fbff
Add support for PMSx003T modules that have temperature+humidity 2022-10-31 10:56:26 -07:00
Theo Arends 5062911579 Re-enable USE_LIGHT 2022-09-06 17:20:11 +02:00
Theo Arends 8c064c9749 Shrink tasmota-lite.bin 2022-09-06 17:08:26 +02:00
Theo Arends a43eaef01b Add influxdb support to zigbee (#16417) 2022-09-02 15:26:44 +02:00
Theo Arends 86e45969bd Support for DFRobot SEN0390 V30B ambient light sensor
Add support for DFRobot SEN0390 V30B ambient light sensor (#16105)
2022-09-02 13:13:47 +02:00
Jean-Pierre Deschamps 214f4bbdfd Add support for SGP40 sensor 2022-08-25 15:51:51 -04: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 8283cee823 Fix bistable relay support 2022-07-10 12:07:58 +02:00
Theo Arends 485328b94d Update sonoff POWR320D template
Update sonoff POWR320D template with bistable relay
2022-07-10 11:38:06 +02:00
Theo Arends 07d2862c7f Add support for 5-channel light dimmer driver SM2335
Add support for 5-channel light dimmer driver SM2335 used in SwitchBot Color Bulbs (#15839)
2022-06-22 17:28:54 +02:00
Cossid df9c3a733e SM2335 - Disable by default on ESP8266, enable by default on ESP32. 2022-06-22 10:02:20 -05:00
Cossid d763bf24eb Remove unknown code size comments. 2022-06-21 22:44:50 -05:00
Cossid f76400ba03 Initial implementation of SM2335 LED driver. 2022-06-21 00:32:56 -05:00
Theo Arends a7d7b571ee Fix warnings on pre-configured compiles 2022-06-05 12:12:15 +02:00
Theo Arends d7ffd01f1f Add support for HYTxxx temperature and humidity sensor (#15715) 2022-06-04 14:15:16 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00