Commit Graph

1038 Commits

Author SHA1 Message Date
Federico Leoni d0ff0ccba6 Update xdrv_12_home_assistant.ino 2020-03-14 18:36:19 -03:00
Adrian Scillato ca042bc3d9
Fixed duplicated entries on en-GB.h 2020-03-14 18:28:03 -03:00
tiagofreire-pt 3c610f872d
Update de-DE.h 2020-03-14 19:34:35 +00:00
tiagofreire-pt cad4fb879b
Update zh-TW.h 2020-03-14 18:33:30 +00:00
tiagofreire-pt 89ed5d3a4e
Update zh-CN.h 2020-03-14 18:33:17 +00:00
tiagofreire-pt d774608196
Update uk-UA.h 2020-03-14 18:33:07 +00:00
tiagofreire-pt d4f1fb53d9
Update tr-TR.h 2020-03-14 18:32:57 +00:00
tiagofreire-pt fafeea8da9
Update sv-SE.h 2020-03-14 18:32:46 +00:00
tiagofreire-pt 34e7c94879
Update sk-SK.h 2020-03-14 18:32:34 +00:00
tiagofreire-pt 75e6f07bc6
Update ru-RU.h 2020-03-14 18:32:27 +00:00
tiagofreire-pt 3645dda825
Update ro-RO.h 2020-03-14 18:32:20 +00:00
tiagofreire-pt aa857dc303
Update pt-BR.h 2020-03-14 18:32:12 +00:00
tiagofreire-pt 08875ad6e5
Update pl-PL.h 2020-03-14 18:32:03 +00:00
tiagofreire-pt b96107cfb1
Update nl-NL.h 2020-03-14 18:31:54 +00:00
tiagofreire-pt 5a3b2b1c0c
Update ko-KO.h 2020-03-14 18:31:46 +00:00
tiagofreire-pt a356306595
Update it-IT.h 2020-03-14 18:31:34 +00:00
tiagofreire-pt 2e96fbd80d
Update hu-HU.h 2020-03-14 18:31:20 +00:00
tiagofreire-pt accb8b762e
Update he-HE.h 2020-03-14 18:30:57 +00:00
tiagofreire-pt a810405c12
Update fr-FR.h 2020-03-14 18:30:30 +00:00
tiagofreire-pt 7bcda8c2e5
Update es-ES.h 2020-03-14 18:30:21 +00:00
tiagofreire-pt aae88af762
Update en-GB.h 2020-03-14 18:30:11 +00:00
tiagofreire-pt 292e470c61
Update el-GR.h 2020-03-14 18:30:00 +00:00
tiagofreire-pt e92bdeee8d
Update de-DE.h 2020-03-14 18:29:48 +00:00
tiagofreire-pt 915349edf6
Update cs-CZ.h 2020-03-14 18:29:28 +00:00
tiagofreire-pt 6944c43838
Update bg-BG.h 2020-03-14 18:29:07 +00:00
tiagofreire-pt e30b4d18f5
Remote fixed and unproper definitions of de-DE on xsns_53_sml.ino 2020-03-14 17:31:52 +00:00
tiagofreire-pt dacb9b0913
Update pt-PT.h 2020-03-14 17:27:26 +00:00
tiagofreire-pt c22215e953
Support for translations on "xsns_53_sml.ino" 2020-03-14 17:21:54 +00:00
Theo Arends 528074090b Fix intermittent watchdog on Options save 2020-03-14 17:46:22 +01:00
Theo Arends 1a825db2b9 Fix ghost logging 2020-03-14 17:45:36 +01:00
Theo Arends 4a8f73aea3 Update changelog and release notes 2020-03-14 15:32:44 +01:00
Theo Arends 5d944829cd Update changelog and release notes 2020-03-14 15:24:22 +01:00
Theo Arends 100acc5664 Fix switch status 2020-03-14 14:54:11 +01:00
Stephan Hadinger 13dde44eb7 Add Zigbee support for Hue emulation 2020-03-14 14:17:30 +01:00
Paul C Diem 3f9c4f1909 Merge branch 'development' of https://github.com/arendst/Tasmota into pwm-dimmer3 2020-03-14 07:18:34 -05:00
Theo Arends d043ac770d Refactor support_switche.ino
- Add commands ``SwitchMode 13`` PushOn and ``SwitchMode 14`` PushOnInverted (#7912)
- Refactor support_switche.ino
2020-03-14 13:13:33 +01:00
Theo Arends a664278c78
Merge pull request #7912 from BASM/switchpushon
switch: New mode PUSHON (13)
2020-03-14 12:52:17 +01:00
Theo Arends 5235ad1757 Add support for HDC1080
Add support for HDC1080 Temperature and Humidity sensor by Luis Teixeira (#7888)
2020-03-14 12:43:02 +01:00
Leonid Muravjev 0f157caa05 switch: New mode PUSHON (13)
Just turn it on, if the switch is on. Switch off by PulseTime.
For a simple implementation processing of PIR sensors.
2020-03-14 14:31:05 +03:00
Theo Arends af1e2f73a5
Merge pull request #7888 from teixeluis/development
Adding driver for the Texas Instruments HDC1080
2020-03-14 09:53:58 +01:00
Luis Teixeira 2441acdc02 Fixed the sensor read errors that were due to misplaced timer variable initializations. 2020-03-13 22:40:33 +00:00
Luis Teixeira 99a00613b8 Merge branch 'development' of https://github.com/arendst/Tasmota into development 2020-03-13 22:38:26 +00:00
Paul C Diem 50d63f8678 Only set power for devices included in updates 2020-03-13 16:53:27 -05:00
Paul C Diem 243f17585c Send DGR BRI_MIN only if USE_PWM_DIMMER defined 2020-03-13 15:15:38 -05:00
Paul C Diem a72acf37fe Use Light module to manage PWM, Rework multi-button sequences 2020-03-13 12:08:44 -05:00
Theo Arends d26ce074d8 Fix command FriendlyName when no index is given
Fix command FriendlyName newname when no index is given
2020-03-13 12:50:27 +01:00
Theo Arends ce8e68d118 Disable recurring debug message
Disable recurring debug message
2020-03-13 12:17:19 +01:00
Theo Arends 076ab4ba11
Merge pull request #7899 from pcdiem/device-groups1
Add periodic announcement, Raise member timeout to 45s, Fix already a…
2020-03-13 12:02:57 +01:00
Theo Arends c62a0318cd Bump version to 8.1.0.11
- Bump version to 8.1.0.11
- Add HAss Discovery support for Button and Switch triggers by Federico Leoni (#7901)
2020-03-13 12:00:52 +01:00
Erik 2f5846d81b Tweaks for HA discovery 2020-03-13 11:14:03 +01:00
Luis Teixeira b758699e39 Some corrections based on feedback from the project leads contributors.
Improved runtime impact by replacing the sleep between the I2C operations with separate code triggered by timer events.
2020-03-13 00:46:25 +00:00
Luis Teixeira b7907aee1a Merge branch 'development' of https://github.com/arendst/Tasmota into development 2020-03-12 22:58:18 +00:00
Federico Leoni 956f56e0e1 Update xdrv_12_home_assistant.ino 2020-03-12 16:48:44 -03:00
Paul C Diem 3138d880d0 Add periodic announcement, Raise member timeout to 45s, Fix already acked check 2020-03-12 12:51:54 -05:00
Theo Arends 057ff37263 Add function KeyTopicActive(key)
Add function KeyTopicActive(key)
2020-03-12 12:11:33 +01:00
Theo Arends b0399a550e
Merge pull request #7893 from malbinola/development
New command ShutterInvertWebButtons
2020-03-12 10:03:09 +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
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
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
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
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
Theo Arends fb87a03dbc Prep for Sonoff D1 2020-02-27 17:52:27 +01:00
Theo Arends 1973bb2474 Add support for Jarolift rollers by Keeloq algorithm
Add support for Jarolift rollers by Keeloq algorithm
2020-02-27 17:48:27 +01:00
Theo Arends e7f1e0ac3c
Merge pull request #7788 from he-so/dev-arendst
Jarolift shutter working with keeloq
2020-02-27 17:37:02 +01:00
Theo Arends 92442a7a8f Fix KNX compilation 2020-02-27 17:35:42 +01:00
he.so 714ee878a7 advanced keeloq driver number to 36 2020-02-27 17:28:29 +01:00
he.so 3657cda425 resolved merge conflict 2020-02-27 17:22:28 +01:00
Theo Arends 5cfe247611 Change default my_user_config.h driver and sensor support
Change default my_user_config.h driver and sensor support removing most sensors and adding most drivers
2020-02-27 15:10:42 +01:00
Theo Arends a32ed84bfc
Merge pull request #7804 from stefanbode/patch-12
Ensure rule execution at start
2020-02-27 12:04:19 +01:00
Theo Arends 684de97f0f
Merge pull request #7802 from s-hadinger/wifi_disconnect
Remove code with no effect in WIFI disconnect
2020-02-27 11:58:09 +01:00
Theo Arends b4b5eb878c Add support for PWM dimmer
Add support for Martin Jerry/acenx/Tessan/NTONPOWER SD0x PWM dimmer switches by Paul Diem (#7791)
2020-02-27 11:16:38 +01:00
stefanbode edf223e4ac
Ensure rule execution at start
- fix report of TARGET in Teleperiod message
- enhance Rules support to ensure rule is triggered at start ALWAYS and not crashes on complex rules
- Fixes wong TARGET on shutterinvert=1
2020-02-27 08:32:05 +01:00
Paul C Diem 1f1c956b26 Use newly allocated settings and flags 2020-02-26 21:27:09 -06:00
Theo Arends 878d93ebdb Prepare for PWM Dimmer
Prepare for PWM Dimmer (#7791)
2020-02-26 15:29:14 -06:00
Theo Arends f2074932f7 Clean up wifi connection / disconnection 2020-02-26 15:29:13 -06:00
stefanbode 344187cf94 minor bug fixes and enhancements
- fix bug in multi-push from last commit
- remove rules execution every second. only at start and stop
- enable rules for Shutter#Button
- tbd: How to correctly detect a simultaneous button push
2020-02-26 15:29:13 -06:00
Theo Arends 8ca95996f9 Restore default wifi functionality 2020-02-26 15:29:12 -06:00
Theo Arends 1655c1b3aa Add some wifi debug options 2020-02-26 15:29:12 -06:00
Barbudor 792f5cfb19 Allow Sensor13 to define customer value for shunt resistor, including code refactoring 2020-02-26 22:14:08 +01:00
Hadinger 5d54356a25 Remove code with no effect 2020-02-26 21:43:46 +01:00
he.so 71340dc8b6 push travis, since it had an environment issue during last build 2020-02-26 20:10:29 +01:00
he.so 8dbfa7d6b5 fixed repeated sending of code 2020-02-26 19:46:44 +01:00
he.so bc584468af Using macro to exclude debug logs from code when compiling for production 2020-02-26 19:17:36 +01:00
Theo Arends f57a4d217c Prepare for PWM Dimmer
Prepare for PWM Dimmer (#7791)
2020-02-26 14:39:27 +01:00
Theo Arends 407334be6b Clean up wifi connection / disconnection 2020-02-26 13:45:46 +01:00