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
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
e3be05756a
Merge branch 'development' into release
2020-03-06 12:18:08 +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
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
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
to-scho
02ba705eca
Shutterbutton does not work for 1 button, fixes #7793
2020-03-02 20:32:55 +01:00
Theo Arends
0ce89e53e3
Fix Arduino IDE compile error
2020-03-02 17:48:19 +01:00
Theo Arends
71d810aac4
Update Tx2x Sensor
...
Update Tx2x Sensor with command SpeedUnit (#7843 )
2020-03-02 15:51:33 +01:00
Theo Arends
669f88a5aa
Add Settings.flag2.speed_conversion
2020-03-02 14:00:57 +01:00
Theo Arends
a837a8ac7c
Fix compile error
2020-03-01 22:13:02 +01:00
Theo Arends
2b438328dd
Add DimmerRange support to Sonoff D1
...
Add DimmerRange support to Sonoff D1 (#7598 )
2020-03-01 16:13:59 +01:00
Theo Arends
473892d5c9
Add updated experimental Sonoff D1 support
...
Add updated experimental Sonoff D1 support (#7598 )
2020-03-01 15:31:08 +01:00
Theo Arends
3343164da9
Add support for MaxBotix HRXL-MaxSonar
...
Add support for MaxBotix HRXL-MaxSonar ultrasonic range finders by Jon Little (#7814 )
2020-03-01 14:20:19 +01:00
Theo Arends
fc573027b3
Merge pull request #7814 from burundiocibu/development
...
Adding support for MaxBotix HRXL line of sonar ranging sensors
2020-03-01 13:57:42 +01:00
Theo Arends
ece0e57a6b
Merge pull request #7822 from curzon01/development
...
refactor TX2x sensor driver
2020-03-01 13:54:15 +01:00
Theo Arends
c40fce0099
Merge pull request #7831 from Phonog/development
...
Fix switchmode 6 according to issue 7778
2020-03-01 13:52:18 +01:00
Hadinger
7cf8c1750f
Add Zigbee features and improvements
2020-03-01 11:25:59 +01:00
Phonog
9498cde5e5
Fix switchmode 6 according to issue 7778
2020-03-01 09:42:59 +00:00
Norbert Richter
94dbc4d1a2
refactor TX2x sensor driver
2020-02-29 16:11:59 +01:00
Hadinger
4008b9ed3e
Change IRremoteESP8266 library updated to v2.7.4
2020-02-29 13:51:16 +01:00
Theo Arends
be1b0e7c86
Merge pull request #7803 from barbudor/development
...
Improved INA219 driver supports custom defined shunt resistor
2020-02-29 09:57:43 +01:00
Jon Little
c7ac3c833c
Adding support for MaxBotix HRXL line of sonar ranging sensors
2020-02-28 18:44:30 -06:00
Barbudor
a8585bdba7
Use DEBUG_SENSOR macros for debug messages
2020-02-28 23:37:35 +01:00
Theo Arends
6d79d56956
Experimental support Sonoff D1
...
Experimental support Sonoff D1 (#7598 )
2020-02-28 18:15:04 +01:00
Theo Arends
1ef284cdf2
Experimental support Sonoff D1
...
Experimental support Sonoff D1 (#7598 )
2020-02-28 18:09:23 +01:00
Theo Arends
94f5321db4
Fix keeloq functionality
2020-02-28 16:35:19 +01:00
Theo Arends
c0a490a54e
Merge pull request #7806 from he-so/dev-arendst
...
Make CC1101 GDO0 and GDO2 pins user configurable
2020-02-28 15:50:52 +01:00
Theo Arends
9c8dd2139d
Merge pull request #7807 from s-hadinger/zigbee_fix_endpoint
...
Zigbee fix skipped attributes
2020-02-28 09:32:31 +01:00
Paul C Diem
b27b18a8e6
Add button press count timeout
2020-02-27 23:38:55 -06:00
Paul C Diem
5f5becfac6
Fix up/down release after power on
2020-02-27 21:35:13 -06:00
Paul C Diem
248288d549
Handle remote switch updates, Make tap/hold functions available only when power is on
2020-02-27 20:47:24 -06:00
Hadinger
0083e1d996
Zigbee fix skipped attributes
2020-02-27 22:08:31 +01:00
he.so
cc8dfc22a8
define language keys for CC1101 pins
2020-02-27 21:31:19 +01:00
he.so
23ca2ff36d
user pin selection for CC1101 gpios
2020-02-27 21:03:05 +01:00
Paul C Diem
94b0ea5727
Merge branch 'development' of https://github.com/pcdiem/Tasmota into pwm-dimmer1
2020-02-27 13:47:36 -06:00
Paul C Diem
a962662743
Rescale Bri to DimmerRange, Remove BriMin, LedTimeout and PoweredOffLed commands
2020-02-27 13:38:33 -06:00