Commit Graph

6251 Commits

Author SHA1 Message Date
Theo Arends 1e743057b0
Merge pull request #7894 from Jason2866/patch-1
Change to Tasmota freeze stage for development...
2020-03-12 09:38:55 +01:00
Jason2866 fc29e31d20
Change to Tasmota freeze stage for development...
solving issue https://github.com/arendst/Tasmota/issues/7879 
Tests of the freezed stage core shows (so far) no issues. 
With regard to the new release version 8.2. with gzip support a good test in advance to verify the stability of the upcoming core 2.7.
The core 2.7. will no longer change significantly to the one used here.
2020-03-12 09:14:30 +01:00
Luis Teixeira 292698123b Minor correction to the description. Slightly simplified declaration of the sensor in the support_features.ino. 2020-03-10 23:33:09 +00:00
Luis Teixeira 78a608dd44 Synched with resources from original repo 2020-03-10 23:01:51 +00:00
Luis Teixeira 725b9898c5 Added cast to properly deal with the AddLogMissed function prototype. 2020-03-10 22:53:49 +00:00
Luis Teixeira 4910e033b3 Merge branch 'development' of https://github.com/arendst/Tasmota into development 2020-03-10 22:46:48 +00:00
Theo Arends eaf0e352a9 Fix DS18x20 driver (#7879)
Fix DS18x20 driver (#7879)
2020-03-10 16:54:06 +01:00
Theo Arends 2d6ced9521 Try to fix intermittent watchdog reset
Try to fix intermittent watchdog reset on GUI emulation change (#7886)
2020-03-10 16:11:34 +01:00
Theo Arends e04bb5ecff Fix DS18x20 driver (#7879)
Fix DS18x20 driver (#7879)
2020-03-10 11:23:45 +01:00
Matteo Albinola 2cab0d0539 New command ShutterInvertWebButtons 2020-03-10 08:41:37 +01:00
Luis Teixeira e9d201a2c3 Fixed issue during the call to ResponseAppend_P (was passing
a primitive instead of pointer to the expected string)
2020-03-10 00:26:24 +00:00
Luis Teixeira 2a06a6bc5a Fixed issue when reading temperature and humidity in the same transaction. 2020-03-10 00:15:42 +00:00
Luis Teixeira cb2cc9bbb1 More intermediate changes and troubleshooting. 2020-03-09 23:02:03 +00:00
Luis Teixeira 3908865473 Added the hdc1080 device driver. 2020-03-08 20:54:28 +00:00
Theo Arends 79df1b9bfc
Merge pull request #7875 from s-hadinger/hue_optim
Hue emulation code optimization
2020-03-08 18:15:39 +01:00
Hadinger 4cc32407c5 Hue emulation code optimization 2020-03-08 17:41:05 +01:00
Theo Arends b14c72e1d4
Merge pull request #7874 from device111/development
Add comment that AHT10 is incompatible with other I2C devices
2020-03-08 15:43:33 +01:00
Theo Arends 2d4a6a29eb Fix Sonoff D1 driver (#7598)
Fix Sonoff D1 driver (#7598)
2020-03-08 14:49:57 +01:00
device111 70291a5e77 Add comment that AHT10 is incompatible with other I2C devices
- confirmed, that the sensor is incompatible with other I2C devices on bus.
2020-03-08 14:42:37 +01:00
Theo Arends 2603459747 Revert switchmode 6 according to issue 7778
Revert switchmode 6 according to issue 7778 (#7831)
2020-03-08 13:32:20 +01:00
Theo Arends bf86700e90 Consolidate DHT sensor driver 2020-03-08 12:28:14 +01:00
Luis Teixeira 3cf6b8bd8a Merge branch 'development' of https://github.com/arendst/Tasmota into development
# Conflicts:
#	tasmota/settings.h
#	tasmota/settings.ino
#	tasmota/support.ino
#	tasmota/support_command.ino
#	tasmota/tasmota.ino
2020-03-07 20:01:48 +00:00
Theo Arends 4094b069d7
Merge pull request #7868 from maxela/patch-2
Optimized function 'mp'
2020-03-07 19:03:18 +01:00
Alexander Schliebner 2335f2fedd
Bugfix in function 'mp'
If optional parameter v2 was omitted, evaluation failed.
2020-03-07 18:52:24 +01:00
Alexander Schliebner 7df46f051d
Optimized function 'mp'
Leaner syntax of function `mp` and simplified implementation.
New documentation:
Mapping function `mp`

It addresses a standard task with less code and much flexibility: mapping an arbitrary incoming numeric value into a defined schema of allowed/reasonable ranges.
The numeric value `x` passed as the first parameter is compared to the mprules in the order they are provided as subsequent parameters. If the value matches the criteria, the defined value is returned. Subsequent mprules are skipped. If `x` matches none of the mprules, `x` is returned unchanged. 
```
mp(x mprule1 mprule2 ... mprule<n>)
```

An mprule starts with one of the comparison operators `<`, `>` or `=`, followed by a numeric value `v1`, optionally followed by a second numeric value `v2`:
```
<|>|=v1[ v2]
```

Example 1: `<8 0` - this rule reads: If x is less than 8, return 0.
Example 2: `>100` - this rule reads: If x is greater than 100, return 100. 

Example 3:
```
y=mp(x <8 0 >100)
```
Assigns 0 to y if x is less than 8.
Assigns 100 to y if x is greater than 100.
Assigns x to y for all values of x that do not meet the above criteria (8 to 100).

The above code of example 3 does the same as the following code - with just one line of code and 19 characters less:
```
y=x
if x<8 {
y=0
}
if x>100 {
y=100
}
```

Every of the above mentioned numeric values `x`, `v1` and `v2` can be a literal, an expression or a variable.
2020-03-07 16:53:49 +01:00
Theo Arends df43217a18
Merge pull request #7864 from Staars/nrf24
MI_NRF24: add GCD1, missing PDU-type, small refactoring
2020-03-07 14:57:43 +01:00
Theo Arends 3a4ca76a7c
Merge pull request #7865 from maxela/patch-1
Added rule-based mapping function for scripting
2020-03-07 14:55:43 +01:00
Alexander Schliebner cd14bde1f7
Update xdrv_10_scripter.ino
Added mapping function `mp`
´´´
mp(x str1 str2 ... str<n>)
´´´
It addresses a standard task with less code and much flexibility: mapping an arbitrary incoming numeric value into the allowed range.
The numeric value `x` passed as the first parameter is compared to the rules in the order they are provided as subsequent sting parameters. If the value matches the criteria, the defined value is returned. Subsequent rules are skipped. If `x` matches none of the rules, `x` is returned unchanged. 

Rules consist of one of the comparison operators `< > =` followed by a numeric value `v1`, optionally followed by a colon and another numeric value `v2`.
```
<|>|=v1[:v2] 
```
Example 1: `"<8:0"` - this rule reads: If x is less than 8, return 0.
Example 2: `">100"` - this rule reads: If x is greater than 100, return 100. 

Example 3:
```
y=mp(x "<8:0" ">100")
```
Assigns 0 to y if x is less than 8.
Assigns 100 to y if x is greater than 100.
Assigns x to y for all values of x that do not meet the above criteria (8 to 100).

The above code of example 3 does the same as the following code - with just one line of code and 15 characters less:
```
y=x
if x<8 {
y=0
}
if x>100 {
y=100
}
```
2020-03-06 21:13:12 +01:00
Staars 048474f7ac add missing PDU-type, small refactoring 2020-03-06 19:22:30 +01:00
Theo Arends bd98c1816c Update TEMPLATE and RELEASE info 2020-03-06 15:52:46 +01:00
Theo Arends bea5abc003
Merge pull request #7863 from Jason2866/patch-1
Use latest feature stage version for Tasmota...
2020-03-06 13:51:59 +01:00
Jason2866 0b36bedace
Use latest feature stage version for Tasmota...
Core Stage.
udp: fix again pbuf management
2020-03-06 13:02:25 +01:00
Theo Arends 59408b453e
Merge pull request #7860 from pcdiem/tuya-mcu1
Add Light skip_light_fade flag and Dimmer3 command, Ignore MCU dimmer…
2020-03-06 11:49:56 +01:00
Paul C Diem d16f1a7a0f Add Light skip_light_fade flag and Dimmer3 command, Ignore MCU dimmer changes after sending dimmer command 2020-03-05 18:15:58 -06:00
Theo Arends c52680f836 Fix -minimal compile error 2020-03-05 18:45:43 +01:00
Theo Arends f4047b4337 Fix GUI channel offset
Fix GUI channel offset when relays are present (#7855)
2020-03-05 14:53:51 +01:00
Theo Arends a8e369e5ce Update feature information 2020-03-05 14:00:47 +01:00
Theo Arends 93f2ddd5d5
Merge pull request #7854 from s-hadinger/zigbee_distinct_topics
Add Zigbee use distinct MQTT topics per device for SENSOR, allowing retained messages (#7835)
2020-03-04 21:49:15 +01:00
Hadinger 8855d2a218 Add Zigbee use distinct MQTT topics per device for SENSOR, allowing retained messages (#7835) 2020-03-04 21:00:57 +01:00
Theo Arends 0006d44e63 Fix HASS button discovery 2020-03-04 18:02:27 +01:00
Theo Arends 74f1ad8a1b Fix APDS9960 compile error 2020-03-04 16:34:06 +01:00
Theo Arends 50b19712ac Fix DS1624 with KNX compilation error
Fix DS1624 with KNX compilation error (#7853)
2020-03-04 15:51:50 +01:00
Theo Arends 71e702c659 Change minimal filename construction 2020-03-04 15:36:37 +01:00
Theo Arends 46e6c3a796 Fix RO compilation 2020-03-04 12:18:32 +01:00
Theo Arends f0a8305b13 Add localization for Romanian 2020-03-04 11:56:35 +01:00
Theo Arends 2f3f06ab0b
Merge pull request #7851 from s-hadinger/jitter_2
PWM anti-flicker, latest changes from Arduino Core
2020-03-04 11:01:18 +01:00
Hadinger 3a2a3cde88 Sync with https://github.com/esp8266/Arduino/pull/7057 2020-03-04 08:59:45 +01:00
Theo Arends 25c2a6f639
Merge pull request #7845 from to-scho/hotfix/shutterbuttons_multipress_window_timing
extended multipress window from 0.5s to 0.75s
2020-03-02 21:32:16 +01:00
Theo Arends 4cb2690288
Merge pull request #7844 from to-scho/hotfix/shutterbuttons_singlebutton
Shutterbutton does not work for 1 button, fixes #7793
2020-03-02 21:31:47 +01:00
to-scho 543f83218e extended multipress window from 0.5s to 0.75s 2020-03-02 20:49:11 +01:00