Commit Graph

189 Commits

Author SHA1 Message Date
Theo Arends b072791426 Bump version 6.6.0.21
* Remove support for WPS and SmartConfig in favour of Web server (!) based WifiManager (#6680)
 * Remove binary sonoff-classic (#6680)
2019-10-22 16:34:25 +02:00
Theo Arends aaf6f90507 Refactor Arduino Slave 2019-10-21 12:25:22 +02:00
andrethomas f97d1a56ed Update my_user_config.h 2019-10-20 20:10:14 +02:00
Theo Arends 4e45e660f2 Add support for EX-Store WiFi Dimmer V4
Add support for EX-Store WiFi Dimmer V4 (#5856)
2019-10-18 17:29:19 +02:00
Theo Arends 9a03d831a6 Remove old SDM120 and SDM630 drivers
* Replace obsolete xsns_23_sdm120 with xnrg_08_sdm120 and consolidate define USE_SDM120
 * Replace obsolete xsns_25_sdm630 with xnrg_10_sdm630 and consolidate define USE_SDM630
 * Replace obsolete xsns_49_solaxX1 with xnrg_12_solaxX1 (#6677)
2019-10-18 12:28:29 +02:00
pablozg d7279fa2aa Solax X1: Delete all references to old driver 2019-10-17 19:30:55 +02:00
pablozg 926869e849 Solax X1: Code refactor and optimitation, add as energy driver to get today/yesterday totals and P1 smart meter function 2019-10-17 18:22:11 +02:00
Bastian Urschel 1f268bbf39 Changed the type for getting sensor values to polling. Before we used the "working period" method (the sensor starts/stops periodically on it's own and reports the data if Tasmota asks for values). Because of that I've detected a drift after some time which means that you don't get current values if "tele_period" is reached. Another point was that the "working period" method only allows a frequency above 1 minute. The new code starts the sensor directly (with commands sleep and work) if we reached a time we set in define "STARTING_OFFSET". 5 seconds before tele_period, we are doing 4 measurements, calculate the average and current values are present if tele_period is reached. The new method allows us also to get a polling frequency below 1 minute (usable for early fire detection). For precise measurements values of STARTING_OFFSET above 30 seconds are recommended. If using STARTING_OFFSET of 30 seconds and tele_period of 30 seconds the sensor now runs permanent.
Fixed also wrong values at defines NOVA_SDS_SLEEP and NOVA_SDS_WORK.
2019-10-17 13:10:43 +02:00
Theo Arends cd10e84ecf Change Sonoff L1 support 2019-10-17 12:20:26 +02:00
Vasco Baptista 871f4740c6 Merge remote-tracking branch 'upstream/development' into pms3003 2019-10-16 12:11:15 +02:00
Vasco Baptista 81d3a09aee Added support for PMS3003
Added support to PMS3003 to the already existing PMS5003-7003 driver. Support is changed from PMS5003-7003 to PMS3003 by enabling the PMS_MODEL_PMS3003 define.
2019-10-16 12:10:48 +02:00
Theo Arends fb428a9c7d Remove default DS18B20 driver
Remove default DS18B20 driver and only support define DS18x20 (#6647)
2019-10-16 11:51:38 +02:00
Theo Arends 905df3bee8
Merge pull request #6657 from meingraham/patch-9
Uppercase USE_A4988_STEPPER
2019-10-16 08:42:44 +02:00
andrethomas2 4840861ced
Include mention of DRV8825 2019-10-15 20:49:02 +02:00
Michael Ingraham 67e96e761d
Uppercase USE_A4988_STEPPER 2019-10-15 14:32:00 -04:00
Andre Thomas 33d5304e54
Update my_user_config.h 2019-10-15 20:03:13 +02:00
Andre Thomas 96b7ed8880
Update my_user_config.h 2019-10-15 20:00:57 +02:00
Andre Thomas 1be3a43f6e
Fix line used for tagging during custom builds
I'm starting to use lines with `--` in them to identify different portions of the my_user_config.h to determine which directives are mandatory to make a build possible and those that may be commented out without impacting on a compile.

This is useful for automation of custom builds wherein the my_user_config.h file is loaded, edited according to requirements, and rewritten by means of a program or script.

I'm guessing this particular line is an exception by mistake so this PR just brings this particular line in check with the others that look the same or follow the same convention of

`-- FUNCTIONAL DESCRIPTION ---------------`
2019-10-15 19:49:33 +02:00
Theo Arends 3ff1bcd64c Add define USE_SONOFF_RF
Add define USE_SONOFF_RF to enable/disable Sonoff Rf support (#6648)
2019-10-15 15:37:22 +02:00
Jason2866 c9f4a0f8db
Update my_user_config.h 2019-10-15 11:29:26 +02:00
Theo Arends f5b932a6d5 Make Sonoff Sc optional by define
Make Sonoff Sc optional by define (#6640)
2019-10-14 18:15:43 +02:00
Theo Arends 5527f424a0 Add deep sleep support
Add define USE_DEEPSLEEP and command DeepSleepTime 0 or 10..86400 (seconds) to enter deepsleep mode (#6638)
2019-10-14 16:12:59 +02:00
Theo Arends 4ff340d368 Redesign light driver phase 2
Redesign light driver phase 2 (#6570)
2019-10-06 18:05:17 +02:00
Theo Arends 019dc76740 Redesign light driver phase 1
Redesign light driver phase 1
2019-10-06 17:19:05 +02:00
Theo Arends 2d194f427f Add support for SM2135
Add support for SM2135 as used in Action LSC Smart Led E14 (#6495)
2019-10-04 16:45:05 +02:00
Theo Arends 22dbe597a2 Add MqttLog to my_user_config.h and status 3
Add MqttLog to my_user_config.h and status 3 (#6498)
2019-10-04 10:24:21 +02:00
Theo Arends 0580ceb0b6 Add support for Chint DDSU666 Modbus energy meter
Add support for Chint DDSU666 Modbus energy meter by Pablo Zerón
2019-10-03 14:18:04 +02:00
pablozg 9e71109549 add support to chint ddsu666 2019-10-03 10:06:51 +02:00
Federico Leoni 11d4cd9058
Update my_user_config.h 2019-10-02 16:58:52 -03:00
Theo Arends be4867e7f6 Fix compilation error
Fix compilation error
2019-10-01 16:45:53 +02:00
Theo Arends e40475b563 Add initial support for shutters
Add initial support for shutters by Stefan Bode (#288)
2019-09-29 18:00:01 +02:00
Theo Arends fa826d33d9 Refactor ds18x20.ino 2019-09-25 16:28:54 +02:00
Theo Arends 3eb219ccaa Remove support for define USE_DS18x20_LEGACY
Remove support for define USE_DS18x20_LEGACY and legacy DS18x20 driver (#6486)
2019-09-25 14:35:37 +02:00
Stephan Hadinger 62f7f8c557 Minor update to Zigbee 2019-09-19 19:25:08 +02:00
Theo Arends 26361bd8c3 Add driver USE_SDM630_2
Add driver USE_SDM630_2 as future replacement for USE_SDM630 - Pls test and report
2019-09-15 17:06:23 +02:00
Theo Arends 657dbff570 Add support for Hiking DDS238-2 Modbus energy meter
Add support for Hiking DDS238-2 Modbus energy meter by Matteo Campanella (#6384)
2019-09-10 15:14:51 +02:00
Laurent Dong 96098e4e09 Support If in Rules
The major features of IF statement are:
 - Support IF, ELSEIF, ELSE
 - Support not only comparison but also using logical expression as condition
 - Support run multiple commands
 - Support nested IF statement
 - All the commands run by IF statement will go to the BACKLOG!
 - No limit for logical operators, parenthesis and nested IF statement. Depends on your RAM!

Extended Backus-Naur Form of IF statement:
<if-statement> ::=
IF "(" <logical-expression> ")" <statement-list> {ELSEIF "(" <logical-expression> ")" <statement-list>} [ELSE <statement-list>] ENDIF
<logical-expression> :=
<comparison-expression> |
(<comparison-expression> | <logical-expression>) {(AND | OR) <logical-expression>} |
"(" <logical-expression ")" {(AND | OR) <logical expression>}
<comparison-expression> ::=
<math-expression> ("=" | "<" | ">" | "|" | "==" | "<=" | ">=" | "!=") <math-expression>
<statement-list> ::=
<statement> {";" <statement>}
<statement> ::=
<Sonoff-Tasmota-command> | <if-statement>

In English:
If statement support 3 format:
1. IF (<condition>) <statement-list> ENDIF
2. IF (<condition>) <statement-list> ELSE <statement-list> ENDIF
3. IF (<condition>) <statement-list> [ELSEIF (<condition>) <statement-list> ]* ELSE <statement-list> ENDIF

<condition> is a logical expression which can be:
1. A comparison expression for example:
   VAR1 >= 10
2. Multiple comparison expression with logical operator "AND" or "OR" between them. "AND" has higher priority than "OR". Fox example:
   UPTIME > 100 AND MEM1 == 1 OR MEM2 == 1
3. Parenthesis can be used to change the priority of logical expression. For example:
   UPTIME > 100 AND (MEM1 == 1 OR MEM2 == 1)

<statement-list> can be:
1. A Sonoff-Tasmota command. For example:
   ledpower on
2. A IF statement ("IF .... ENDIF")
3. Multiple Sonoff-Tasmota command or IF statement split with ";". For example:
   Power1 off; Ledpower on; if (mem1 == 0) Var1 Var1+1; mem1==1 endif; Delay 10; POWER1 on
4. Do not need to lead with "BACKLOG" for multiple commands.
2019-09-09 11:24:27 -04:00
Tim Leuschner fafb837120 removed my changes to platformio&my_user_config, removed the unnessesary digitalwrites in adjustMicrosteps() 2019-09-08 17:30:17 +02:00
Tim Leuschner 4533039c9f removed my user-settings 2019-09-08 04:02:47 +02:00
Tim Leuschner 4e1480d0f0 works fine... 2019-09-08 03:28:19 +02:00
Tim Leuschner e516262904 ..to be tested 2019-09-07 21:37:01 +02:00
Tim Leuschner 5eac2dd939 Support Stepper-motors connected to A4988-stepper-driver-circuit 2019-09-07 14:03:07 +02:00
Shantur Rathore 982f0b9573 TuyaMCU: Rename Tuya Dimmer to Tuya MCU to make it more clear. 2019-09-04 17:29:45 +01: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 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
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 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 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