Shantur Rathore
982f0b9573
TuyaMCU: Rename Tuya Dimmer to Tuya MCU to make it more clear.
2019-09-04 17:29:45 +01:00
Shantur Rathore
1d7a058155
Tuya MCU: Add support for Switches1 to 4 FunctionIDs 1 to 4
2019-09-04 17:29:45 +01:00
Shantur Rathore
efd1870d5e
Tuya: Make Tuya Mcu implementation more configurable.
...
More and more Tuya MCU based devices are coming in the market and people requesting to support them. This patch makes Tuya module more configurable and easier to add new functionalities. Its not just a dimmer or a switch anymore.
After this Patch Tuya MCU module has a list of supported functions and the user would need to map the functionId to dpId of their device. Once mapped correctly the Tuya module will take care for handling proper function for dpId.
Currently functions supported are
1. Relays1 to 8 : FunctionID 11 to 18
2. Dimmer : FunctionID 21
3. Power ( Deca Watt ) : Function ID 31
4. Current ( milli Amps ) : Function ID 32
5. Voltage ( deca Volts ) : Function ID 33
The changes are
- Use a TuyaMCU command to map DPs to Functions instead of many different SetOptions. SetOption41, 44, 45, 46, 65 won't be needed after this patch.
- TuyaMCU command takes argument like `11,1` which means Map Function id 11 (Relay1) to DPID 1
- Migrates old settings flags and options to new TuyaMap command
2019-09-04 17:29:44 +01:00
Theo Arends
af1edb0cdb
Add command Time 1/2/3 to select JSON time format ISO + Epoch, ISO or Epoch
...
* Add time to more events (#6337 )
* Add command Time 1/2/3 to select JSON time format ISO + Epoch, ISO or Epoch
2019-09-04 18:06:34 +02:00
Theo Arends
138ed6def9
Refactoring
...
Refactoring
2019-09-04 12:58:37 +02:00
Theo Arends
1304252d08
Refactor sonoff.ino
...
Refactor sonoff.ino
2019-09-04 12:47:58 +02:00
Theo Arends
f88e87cfde
Refactor and document power control
...
Refactor and document power control
2019-09-04 12:20:04 +02:00
Theo Arends
636e842545
Restore initial energy total default behaviour regression from yesterday
...
Restore initial energy total default behaviour regression from yesterday
2019-09-04 10:10:25 +02:00
Theo Arends
34eed717fa
Add command Power0 0/1/2/Off/On/Toggle to control all power outputs at once
...
Add command Power0 0/1/2/Off/On/Toggle to control all power outputs at once (#6340 )
2019-09-03 23:04:49 +02:00
Theo Arends
41f76c5128
Add restore power state when limit is restored
...
Add restore power state when limit is restored (#6340 )
2019-09-03 22:27:54 +02:00
Theo Arends
1478f1624a
Add restore power state when limiit restored
...
Add restore power state when limiit restored (#6340 )
2019-09-03 22:22:36 +02:00
Theo Arends
8e4dd169f3
Init Energy Total on energy monitoring devices with Energy Total Register
...
Init Energy Total on energy monitoring devices with Energy Total Register (#6282 )
2019-09-03 21:56:17 +02:00
Theo Arends
b3562e030e
Init Energy Total on energy monitoring devices with Energy Total Register
...
Init Energy Total on energy monitoring devices with Energy Total Register (#6282 )
2019-09-03 21:53:20 +02:00
Theo Arends
3ee83ae147
Merge branch 'development' of https://github.com/arendst/Sonoff-Tasmota into development
2019-09-03 21:15:40 +02:00
Theo Arends
d44104135e
Fix turning on/off all power when limit is reached
...
Fix turning on/off all power when limit is reached (#6340 )
2019-09-03 21:15:36 +02:00
gemu2015
d5005e29d9
sml update (add modus , optimizations)
2019-09-03 10:54:01 +02:00
gemu2015
d6560e89bd
sml update modbus decoder
2019-09-03 10:39:51 +02:00
Theo Arends
04debb5305
Fix USE_SDM120_2 issues
...
Fix USE_SDM120_2 issues (#6282 )
2019-09-02 16:41:18 +02:00
Theo Arends
f4b5e565ef
Add driver USE_SDM120_2 with Domoticz P1 Smart Meter functionality as future replacement for USE_SDM120 - Pls test and report
...
Add driver USE_SDM120_2 with Domoticz P1 Smart Meter functionality as future replacement for USE_SDM120 - Pls test and report (#6282 )
2019-09-01 17:51:25 +02:00
Stephan Hadinger
42d3f1f677
Add Zigbee parameters
2019-08-31 21:52:51 +02:00
Stephan Hadinger
23c3419509
Add Zigbee support phase 2 - cc2530 initialization and basic ZCL decoding
2019-08-31 21:23:32 +02:00
Theo Arends
ae4735af5c
Merge pull request #6330 from s-hadinger/user_config_override
...
Move '#include user_config_override.h' in 'my_user_config.h'.
2019-08-31 18:30:49 +02:00
Stephan Hadinger
fce3de82c5
Move '#include user_config_override.h' in 'my_user_config.h'.
...
Allow user_config_override.h to change parameters like USE_MQTT_TLS.
2019-08-31 14:44:49 +02:00
Theo Arends
12a5e500ee
Merge pull request #6328 from s-hadinger/ir_full_code_shrink
...
Disable USE_DISCOVERY and USE_EMULATION in sonoff-ir, reducing code size by 30k
2019-08-31 11:51:16 +02:00
Stephan Hadinger
2796aa7bc6
Disable USE_DISCOVERY and USE_EMULATION in sonoff-ir, reducing code size by 30k
2019-08-31 11:49:22 +02:00
gemu2015
655c8288eb
fix counter irq mode
2019-08-31 11:32:57 +02:00
gemu2015
78989faf81
scripter update
...
epoch, json export, web show
2019-08-31 10:10:16 +02:00
Stephan Hadinger
dc5d5476c7
Fix Travis build, case type in #include
2019-08-30 22:33:21 +02:00
Stephan Hadinger
69a31577eb
Fix Travis build for sonoff-ir
2019-08-30 22:25:11 +02:00
Stephan Hadinger
2d673d78ef
Add 'sonoff-ir' pre-packaged IR-dedicated firmware and 'sonoff-ircustom' to customize firmware with IR Full protocol support
2019-08-30 20:41:01 +02:00
Theo Arends
06135c6ccd
Merged #5421
...
Merged #5421
2019-08-30 17:07:56 +02:00
Theo Arends
b363bb55a9
Add compile time define USE_WS2812_HARDWARE to select hardware type WS2812, WS2812X, WS2813, SK6812, LC8812 or APA106 (DMA mode only)
...
Add compile time define USE_WS2812_HARDWARE to select hardware type WS2812, WS2812X, WS2813, SK6812, LC8812 or APA106 (DMA mode only)
2019-08-30 14:35:08 +02:00
Theo Arends
48783a4772
Add define USE_WS2812_BTYPE to select different bitbang timing
...
Add define USE_WS2812_BTYPE to select different bitbang timing (#6292 )
2019-08-29 18:03:30 +02:00
Stephan Hadinger
5e962879c1
Align to new behavior for codes >64 bits
2019-08-28 22:24:40 +02:00
Stephan Hadinger
ab5af7bf47
Add Full support of all protocols in IRremoteESP8266, to be used on dedicated-IR Tasmota version. Warning: +81k Flash when compiling with USE_IR_REMOTE_FULL
2019-08-28 22:01:01 +02:00
Theo Arends
b04bf63446
Add possibility to receive more then 64 bits to IRremote
...
Add possibility to receive more then 64 bits to IRremote. May still need change of IR_RCV_BUFFER_SIZE (#6286 )
2019-08-28 16:13:19 +02:00
Theo Arends
9af67a5278
Bump version to 6.6.0.9
...
Change theoretical baudrate range to 300..19660500 bps in 300 increments (#6294 )
2019-08-28 12:02:27 +02:00
Theo Arends
387c10f118
Fix lost energy values
...
Fix lost energy values (#6302 )
2019-08-28 11:08:23 +02:00
Theo Arends
b52da68a68
Fix energy smart calculation at day roll-over
...
Fix energy smart calculation at day roll-over
2019-08-28 10:52:24 +02:00
Theo Arends
3a63ff3728
Fix Serial Bridge set baudrate regression from 6.6.0.4
...
Fix Serial Bridge set baudrate regression from 6.6.0.4
2019-08-28 10:17:31 +02:00
Theo Arends
3048b6550c
Merge pull request #6303 from s-hadinger/fix_echo_2nd_gen
...
Fix Unrecognized relay with Echo Dot 2nd Gen
2019-08-27 22:24:44 +02:00
Stephan Hadinger
e14c560f51
Fix Unrecognized relay with Echo Dot 2nd Gen
2019-08-27 22:19:27 +02:00
Theo Arends
f5646d6bbe
Add SH1106 and e-paper 4.2 inch to sonoff-display.bin
...
Add SH1106 and e-paper 4.2 inch to sonoff-display.bin
2019-08-27 17:29:54 +02:00
Theo Arends
1776f7d06a
Fix sonoff-sensor compilation by removing iram user TX20
...
Fix sonoff-sensor compilation by removing iram user TX20
2019-08-27 17:24:19 +02:00
Theo Arends
f31b903fab
Bump version to 6.6.0.8
...
* Add Tuya Energy monitoring by Shantur Rathore
* Add phase 1 Domoticz P1 Smart Meter support using energy sensors handled by xdrv_03_energy.ino based on an idea by pablozg
* Add commands Tariff1 0..23 (start Off-Peak hour), Tariff2 0..23 (start Standard hour) and Tariff3 0/1 (Saturday and Sunday Off-Peak)
2019-08-27 17:01:12 +02:00
Theo Arends
5413b95963
Fix Greek language compilation error
...
Fix Greek language compilation error
2019-08-27 16:44:51 +02:00
Theo Arends
9d04ca0ccd
Merge pull request #6300 from shantur/tuya-serial-fixes
...
Fix sonoff-display compilation after Tuya Power metering changes
2019-08-27 15:53:05 +02:00
Theo Arends
a82742126f
Merge pull request #6298 from gemu2015/meter-driver
...
meter driver
2019-08-27 15:49:01 +02:00
Theo Arends
b661c6a414
Fix baudrate calculation allowing max 30600 baud
...
Fix baudrate calculation allowing max 30600 baud (#6294 )
2019-08-27 15:44:30 +02:00
Shantur Rathore
6c3d9d2ff5
Fix sonoff-display compilation after Tuya Power metering changes
2019-08-27 14:40:43 +01:00