Commit Graph

182 Commits

Author SHA1 Message Date
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
Theo Arends 28eb6d7661 Integrate ibeacon 2019-08-25 12:29:48 +02:00
gemu2015 3b30ba8810 ibeacon added 2019-08-24 13:20:00 +02:00
Theo Arends b6e95e818c Add new display driver defines
Add new display driver defines
2019-08-19 16:58:24 +02:00
Theo Arends 33aa430f64 Add support for RDM6300 125kHz RFID Reader by Gerhard Mutz
Add support for RDM6300 125kHz RFID Reader by Gerhard Mutz
2019-08-19 11:47:59 +02:00
Theo Arends bfad4f815f Add define USE_WEBSEND_RESPONSE
Add define USE_WEBSEND_RESPONSE
2019-08-19 10:36:42 +02:00
gemu2015 f6d22a6e4d scripter update 2019-08-19 08:20:51 +02:00
Theo Arends a85588aa3d Add support for PAJ7620 gesture sensor by Christian Baars
Add support for PAJ7620 gesture sensor by Christian Baars
2019-08-15 11:34:35 +02:00