Commit Graph

1216 Commits

Author SHA1 Message Date
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
he.so 8de8244308 Merge branch 'development' of https://github.com/arendst/Tasmota into dev-arendst 2020-02-25 20:52:16 +01:00
he.so b00f9d4179 Merge branch 'dev-arendst' of https://github.com/he-so/Tasmota into dev-arendst 2020-02-25 20:48:35 +01:00
he.so 91dfc7aa0b Send the calculated command bitstream twice, to be more robust against missed commands on the receiving side. 2020-02-25 20:47:48 +01:00
he-so c1aedfc4c7
Merge branch 'development' into dev-arendst 2020-02-25 18:22:05 +01:00
stefanbode 78e707e736
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-25 17:55:45 +01:00
Theo Arends ec161d5810 Restore default wifi functionality 2020-02-25 16:52:07 +01:00
Theo Arends 3146bcf23a Add some wifi debug options 2020-02-25 16:49:19 +01:00
Paul Diem 67a32bcbdd
Merge branch 'development' into pwm-dimmer 2020-02-25 09:33:48 -06:00
Theo Arends 9962b311d5 Add support for UDP Group commands
Add commands ``SetOption85 0/1`` and ``DevGroupShare`` supporting UDP Group command using ``GroupTopic`` without MQTT by Paul Diem (#7790)
2020-02-25 12:13:49 +01:00
Theo Arends 0475289532 Fix compilation when no emulation is selected
Fix compilation when no emulation is selected (#7790)
2020-02-25 11:52:52 +01:00
Theo Arends 4df7f9fe10
Disable for now 2020-02-25 11:08:47 +01:00
Paul C Diem 631d9045f1 Deal with late device group initializaton 2020-02-24 20:52:06 -06:00
Paul C Diem 486354fd73 Remove tasmota.ino.cpp 2020-02-24 20:31:49 -06:00
Paul C Diem d0bb1b36e4 Merge branch 'device-groups' of https://github.com/pcdiem/Tasmota into pwm-dimmer 2020-02-24 20:06:47 -06:00
Paul C Diem fd610738ea Merge branch 'development' of https://github.com/pcdiem/Tasmota into pwm-dimmer 2020-02-24 19:26:08 -06:00
Paul C Diem 3893b3fb6f Merge branch 'development' of https://github.com/pcdiem/Tasmota into device-groups 2020-02-24 19:20:33 -06:00
Paul C Diem 13eaa3c814 Disable debugging 2020-02-24 19:10:57 -06:00
Paul C Diem 1d5251d105 Merge branch 'device-groups' of https://github.com/pcdiem/Tasmota into device-groups 2020-02-24 19:08:52 -06:00
Paul C Diem e1103b248f Improve dgr initialization failure handling 2020-02-24 19:07:46 -06:00
Paul C Diem 9c5e5b689e Improve dgr initialization failure handling 2020-02-24 18:40:44 -06:00
Paul C Diem a550fe3ac7 Use newly allocated settings and flag 2020-02-24 16:34:45 -06:00
he-so dd3d9f3b21
Merge branch 'development' into dev-arendst 2020-02-24 19:41:12 +01:00
he.so e25f14f37a Jarolift shutter working with keeloq 2020-02-24 19:23:57 +01:00
Norbert Richter 5ec1ab83ed
extend TX2x sensor stats
new JSON for TX2x (for legacy format define USE_TX2x_LEGACY_JSON)
exp weighted average prevents jump in avg values after period
refactor sensor reading
2020-02-24 17:25:03 +01:00
Theo Arends 9682da603a Add Device Group storage
Add Device Group storage (#7786)
2020-02-24 16:47:41 +01:00
Paul C Diem 2b94cd77a0 Build with device groups, pwm dimmer (with remote) 2020-02-24 07:34:30 -06:00
Paul C Diem b8203a717b Merge branch 'device-groups' of https://github.com/pcdiem/Tasmota into pwm-dimmer 2020-02-24 07:19:28 -06:00
Paul C Diem c0a5156d8f Initial pwm dimmer support 2020-02-24 07:19:15 -06:00
Paul C Diem b15a8a749c Merge branch 'development' of https://github.com/pcdiem/Tasmota into device-groups 2020-02-24 06:50:37 -06:00
Theo Arends 94c9072815 Add wifi debug code 2020-02-24 13:27:22 +01:00
stefanbode b54f2d406e
Update xdrv_27_shutter.ino 2020-02-24 12:38:00 +01:00
stefanbode 66a1dc9573
Update xdrv_27_shutter.ino
- fixed shutter#moved rule not triggered
2020-02-24 12:33:52 +01:00
stefanbode 7a3a9bd364
fixes and enhancements
- shutterposition now reports actual position if the shutter is moving #7686
- new RuleEvent: Shutter1#Target to get upfront info where the shutter is moving
- RuleExecution now every second to get an update of the current position
- New functionality for Stepper Motors. Now supporting 4 Stepper shutters working simultanously
2020-02-24 12:23:03 +01:00
Theo Arends 8969877502 Refactor DHT driver
Refactor DHT driver (#7717)
2020-02-23 21:26:58 +01:00
Theo Arends 9b758350b5 Fix Domoticz compile error
Fix compile error when Domoticz is enabled but Lights is disabled
2020-02-23 20:49:54 +01:00
Theo Arends e903348a03
Merge pull request #7781 from Staars/nrf24
Nrf24
2020-02-23 20:31:34 +01:00
Hadinger 21976005e1 Support for BW-IS5 leak detector 2020-02-23 17:11:51 +01:00
Hadinger d4dd0a39a5 Add Zigbee enhanced commands decoding, added ``ZbPing`` 2020-02-23 16:46:00 +01:00
Staars 8411178dac use now the correct PDU-types 2020-02-23 14:52:26 +01:00
Hadinger 11604e30d4 Moved 'Updated shadow' do DEBUG log level 2020-02-23 10:29:04 +01:00
Staars 73b2fdd6f4 fix OUI-bug 2020-02-23 09:21:54 +01:00
Hadinger 13763f55a6 Fix Zigbee auto-increment transaction number (#7757) 2020-02-22 20:53:55 +01:00
Theo Arends f706b7c490 Add support for Wemos Motor Shield V1
Add support for Wemos Motor Shield V1 by Denis Sborets (#7764)
2020-02-22 12:18:20 +01:00
Theo Arends 5f1dac2119
Update my_user_config.h 2020-02-22 11:01:47 +01:00
Paul C Diem a721e35449 Remove power from struct, use DGR log prefix 2020-02-21 21:47:33 -06:00
Paul C Diem 8182d6ef7b Merge branch 'development' of https://github.com/pcdiem/Tasmota into device-groups 2020-02-21 09:15:47 -06:00
Paul C Diem f409d7258e Initial device groups support (power and light) 2020-02-21 09:09:21 -06:00
Denis 19ca1eb2d4 Merge branch 'development' into add-wemos-motor-shield-v1 2020-02-20 21:05:55 -08:00
Theo Arends a912daff0b
Update de-DE.h 2020-02-20 21:07:58 +01:00
Norbert Richter ea99cdce57 Add support for La Crosse TX23 Anemometer (#3146) 2020-02-20 18:50:43 +01:00
Theo Arends e9c7026e82 Remove NTP drift information
Remove NTP drift information
2020-02-20 14:55:41 +01:00
Theo Arends cf27cff602
Merge pull request #7762 from dgwynne/TuyaMCUEvent
Tuya mcu event
2020-02-20 13:44:35 +01:00
Theo Arends f674feb0ef Add initial support for Sensors AHT1x
Add initial support for Sensors AHT10 and AHT15 by Martin Wagner (#7596)
2020-02-20 13:38:03 +01:00
Theo Arends 92258703d8
Merge pull request #7761 from device111/development
Add i2c Sensor AHT10/15 support.
2020-02-20 12:03:39 +01:00
Theo Arends 9b1fc4342b Revert wifi connectivity stability introduced in 8.1.0.5
Revert wifi connectivity stability introduced in 8.1.0.5 (#7746, #7602, #7621)
2020-02-20 11:24:35 +01:00
Theo Arends 5e4d8e5641 Fix relation between RSSI and signal strength
Fix relation between RSSI and signal strength
2020-02-20 10:07:00 +01:00
Denis 46ad5166e1 Add Wemos DC mottor shild (v1.0.0) support 2020-02-19 21:55:20 -08:00
device111 f7d4d5ddb1 Ad release note 2020-02-19 19:49:09 +01:00
Theo Arends 6a84899e10 Eliminating call sntp_get_real_time
Change display of some date and time messages from "Wed Feb 19 10:45:12 2020" to "2020-02-19T10:45:12"
2020-02-19 15:23:59 +01:00
device111 84a2da2ee2 Update support_features.ino 2020-02-19 14:24:37 +01:00
device111 fbd2216d09 Update xsns_63_aht1x.ino
Sensor Name changement
2020-02-19 14:06:35 +01:00
device111 5c48644994 typo change 2020-02-19 10:23:56 +01:00
device111 7f72d266f8 prepare for merging 2020-02-19 09:37:36 +01:00
David Gwynne 6e0cd5bd68 print numbers as numbers in json, not strings. 2020-02-19 18:10:07 +11:00
device111 81b88a71a0 Update xsns_64_aht10.ino
Correct text
2020-02-18 20:13:12 +01:00
device111 e2ede9ed55 Add Reset Command 2020-02-18 20:08:22 +01:00
Theo Arends df34417861 Fix DS18x20 driver 2020-02-18 18:10:36 +01:00
device111 b423c9716a Update xsns_64_aht10.ino 2020-02-18 09:56:23 +01:00
device111 2e0a06c19a structual changes
structual changes
2020-02-18 09:49:53 +01:00
device111 01fbe69824 test1
test1
2020-02-18 09:22:39 +01:00
device111 fcc59df10f Update support_features.ino 2020-02-18 09:18:45 +01:00
device111 b0378c3d99 initial AHT10 support
test
2020-02-18 09:11:31 +01:00
Theo Arends b6607755a4
Merge pull request #7744 from denisfrench/MQTT_NO_RETAIN
MQTT_NO_RETAIN option for brokers that will drop connection otherwise
2020-02-16 12:45:37 +01:00
Theo Arends e7d5a5f540 Fix latest DHT driver retries
Fix latest DHT driver retries (#7717)
2020-02-16 12:33:18 +01:00
Theo Arends d76d6474cd
Merge pull request #7743 from Staars/development
GPS-driver: virtual port improvement, set lat/lon in settings (bugfix)
2020-02-16 12:14:27 +01:00
denisfrench aaa00045e2 MQTT_NO_RETAIN option for brokers that will drop connection otherwise 2020-02-16 09:31:19 +00:00
Staars f54dbe7bdc virtual port improvement, bugfix 2020-02-16 08:36:51 +01:00
Theo Arends 5f80febcf4 Another DHT driver with humidity range check
Another DHT driver with humidity range check, usec overflow check and NAN debug info (#7717)
2020-02-15 12:57:23 +01:00
Theo Arends ea83400190
Merge pull request #7736 from Staars/development
- update MI_NRF24-driver (formerly MI_BLE)
2020-02-13 20:16:38 +01:00
Staars 39d100e1d1 rename driver 2020-02-13 19:48:38 +01:00
Theo Arends e9f0c5b6d6 Add a stripped down Add a stripped DHT driver based on ESPEasy (#7717)
Add a stripped DHT driver based on ESPEasy (#7717)
2020-02-13 18:12:27 +01:00
Staars ff1fefaf34 Merge branch 'development' of https://github.com/arendst/Tasmota into development 2020-02-13 17:19:54 +01:00
Staars 509a79e5f6 more lsfr-LUT-entries and PDU-types 2020-02-13 17:16:32 +01:00
Theo Arends 7cc783a532 Add another new DHT driver based on ESPEasy
Add another new DHT driver based on ESPEasy. The old driver can still be used using define USE_DHT_OLD. The previous new driver can be used with define USE_DHT_V2 (#7717)
2020-02-13 17:02:07 +01:00
Theo Arends 51211dfd55 Attempt to fix slow wifi connection caused by #7602
Attempt to fix slow wifi connection caused by #7602
2020-02-13 12:46:06 +01:00
Hadinger a50a7d486f Fix wrong encoding of Zigbee persistent data 2020-02-12 22:38:17 +01:00
Theo Arends 8079ee9749 Change MQTT message size
Change MQTT message size with additional 200 characters
2020-02-12 18:00:53 +01:00
Theo Arends ba345625de Fix wifi connection issues
Fix wifi connection issues since 7602 (#7621)
2020-02-12 16:55:39 +01:00
Adrian Scillato a904da2a2e
Fix Deep-Sleep-Wake timming
https://github.com/arendst/Tasmota/issues/7621
2020-02-10 16:57:42 -03:00
Adrian Scillato 7339b56279
Updated Spanish Translation 2020-02-10 13:29:42 -03:00
Theo Arends 7d0577eb31 Add new DHT driver
Add new DHT driver. The old driver can still be used using define USE_DHT_OLD (#7468)
2020-02-10 16:29:17 +01:00
Theo Arends edadaa284f Bump version to 8.1.0.7 2020-02-10 15:20:38 +01:00
Theo Arends af63bb363d Add support for FiF LE-01MR energy meter
Add support for FiF LE-01MR energy meter by saper-2 (#7584)
2020-02-10 15:18:11 +01:00
Jason2866 40dedd46b6
Update de-DE.h 2020-02-10 15:06:43 +01:00
Theo Arends d89c14ba27
Merge branch 'development' into fif-le01mr 2020-02-10 14:52:22 +01:00
Theo Arends f0272b339c Fix compile error 2020-02-10 14:24:53 +01:00
Theo Arends 3de74e8850 Add optional Wifi AccessPoint passphrase
Add optional Wifi AccessPoint passphrase define WIFI_AP_PASSPHRASE in my_user_config.h (#7690)
2020-02-10 13:54:27 +01:00
Jason2866 47862e3c59
unique topic for every device by default 2020-02-09 19:38:46 +01:00
Jason2866 e6e5157ccb Disable Display support for Tasmota-IR
because compiling fails if enabled
2020-02-09 17:22:14 +01:00
Theo Arends 504570d5d5 Fix MaxPower functionality
Fix MaxPower functionality (#7647)
2020-02-09 16:21:48 +01:00
Theo Arends 286a0c4fe4
Merge pull request #7702 from Staars/development
add LYWSD02-support to the MI-HM10-driver
2020-02-09 15:35:40 +01:00
Staars 829b36868b small cleanups 2020-02-09 15:32:45 +01:00
David Gwynne 25034c153a use TuyaSend0 to send a TUYA_CMD_QUERY_STATE command. 2020-02-09 18:44:05 +11:00
Staars f4bc0721b5 add LYWSD02-support 2020-02-08 18:09:17 +01:00
Hadinger 4d9f67b5ad Add ``ZbZNPReceived``and ``ZbZCLReceived``are published to MQTT when ``SetOption66 1`` 2020-02-08 14:16:39 +01:00
Federico Leoni fe1919098d Update xdrv_12_home_assistant.ino 2020-02-07 12:11:29 -03:00
Theo Arends 1a074da0b5 Add BootCount Reset Time to Status
Add BootCount Reset Time as BCResetTime to ``Status 1``
2020-02-07 12:38:10 +01:00
Theo Arends 945a9e0100
Merge pull request #7687 from ako-sxt/development
PCF8574 - skip detection if i2c address is defined in USE_MCP230xx_ADDR
2020-02-07 11:53:52 +01:00
Theo Arends 15df54bb07 Add support for HM-10
Add support for MI-BLE sensors using HM-10 Bluetooth 4.0 module by Christian Staars (#7683)
2020-02-07 10:50:06 +01:00
Jason2866 8ef5ad0204
Disable HM-10 by default 2020-02-07 10:41:38 +01:00
ako a33ae3cc40 PCF8574 - skip detection if i2c address is defined in USE_MCP230xx_ADDR
Currently the PCF8574 address selection detects the MCP230xx which is using an address in the range 0x20 - 0x26.
This fix skips the address defined in #define USE_MCP230xx_ADDR
2020-02-06 22:45:39 +01:00
Staars 6ab4f19140 finally resolve conflict 2020-02-06 19:11:26 +01:00
Staars a95c5b4f6a resolve conflict 2020-02-06 19:06:09 +01:00
Theo Arends 175753fb61
Merge pull request #7680 from effelle/development
New HAss Discovery (2/4): MQTT
2020-02-06 17:52:52 +01:00
Federico Leoni 757baf436a Update xdrv_12_home_assistant.ino 2020-02-06 13:32:54 -03:00
Staars 8d48cf3731 pin configs and renames to prepare PR 2020-02-06 17:05:37 +01:00
Theo Arends 48d70bc7bb Add Buzzer commands
Add command ``Buzzer -1`` for infinite mode and command ``Buzzer -2`` for following led mode (#7623)
2020-02-06 16:25:37 +01:00
Theo Arends 709fa19eb2
Merge pull request #7623 from to-scho/feature/buzzer_modes
Buzzer extensions
2020-02-06 16:05:18 +01:00
Theo Arends d779a2b9b4 Add switch modes 11 and 12
Add switch modes 11 (PUSHHOLDMULTI) and 12 (PUSHHOLDMULTI_INV) (#7603)
2020-02-06 14:53:35 +01:00
Federico Leoni f2e1ef4763
Update xdrv_12_home_assistant.ino 2020-02-06 10:23:45 -03:00
Theo Arends 702821b4e1
Merge pull request #7603 from RemiDing/development
New switchmodes to control a dimmer with one switch
2020-02-06 14:14:12 +01:00
Theo Arends 12f603cc59 Add support for sensor DHT family using Shelly Add-On
- Fix Hass sensor discovery part 1/4 by Federico Leoni (#7582, #7548)
- Add support for sensor DHT family on Shelly 1 and Shelly 1PM using Shelly Add-On adapter (#7469)
2020-02-06 12:42:31 +01:00
Federico Leoni 0c046d7e7c Update xdrv_12_home_assistant.ino 2020-02-05 23:29:44 -03:00
Staars a4e613a992 use MAC, small WEB-UI changes 2020-02-05 20:34:38 +01:00
Theo Arends df35a54824 Add link to issue 7469
Add support for sensor DS18x20 on Shelly 1 and Shelly 1PM using Shelly Add-On adapter (#7469)
2020-02-05 16:57:19 +01:00
Staars e8f8b48c77 clean ups, hopefully no real code changes 2020-02-05 16:56:41 +01:00
Theo Arends 186d3fcb4d Add support for Shelly Add-On adapter
Add support for sensor DS18x20 on Shelly 1 and Shelly 1PM using Shelly Add-On adapter
2020-02-05 16:28:56 +01:00
Hadinger fcac1619fd Extend to Stage 2020-02-04 22:19:29 +01:00
Staars 47ead336cb adding HM10AT and HM10BAUD, HM10PERIOD now immediately takes effect 2020-02-04 19:30:41 +01:00
Staars 09ba4d15fc cleanup and refactoring, HM10PERIOD now shows value 2020-02-04 17:55:48 +01:00
Staars c4d92d6368 add command interface: HM10SCAN and HM10PERIOD 2020-02-04 15:02:47 +01:00
Staars e1973fbfff fix regression: no temp/hum-read 2020-02-04 14:12:46 +01:00
David Gwynne f3c6627ec6 Tweak the key/value for the type+id so it's only printed for STAT 2020-02-04 21:30:30 +11:00
Theo Arends 3b5a73429b
Merge pull request #7663 from gemu2015/sml_update
Sml script dynamic baudrate and serial transmit support
2020-02-04 09:24:45 +01:00
Theo Arends 90c84b0c42
Merge branch 'development' into ir_273_dev 2020-02-04 09:23:08 +01:00
Theo Arends 6700f79585
Merge branch 'development' into zigbee_29 2020-02-04 09:21:35 +01:00
Staars 0b8040c3c0 add battery, some fixes 2020-02-04 08:13:09 +01:00
gemu2015 79261c7512 Update xsns_53_sml.ino 2020-02-04 07:09:29 +01:00
gemu2015 fc92896ef5 sml dynamic baud and transmit support 2020-02-04 07:07:56 +01:00
Hadinger 97f4924639 Change update IRRemoteESP8266 v2.7.3 2020-02-03 19:41:35 +01:00
David Gwynne d651e5c4a2 print rxed mcu data so it can be printed in a more natural way.
basically it tries to use %d to print things when it can instead of
hex strings.
2020-02-03 21:41:46 +11:00
David Gwynne cf8cd47126 Add a key to the TuyaReceived to help when writing boilerplate rules.
The key is in the form Cmnd<msgtype>DpId<ID>DpType<DpIdType> with a
value that is the hex encoding of the DpIdData. This allows Rules to be
written that target status updates from a specific DpId and of a specific
message type. For example, an Anko HEGSM40 fan reports the speed the fan
is operating at via STAT message on DpId 4 of type Enum. To publish the
speed to MQTT as it's reported from the MCU, I can use the following rule:

  on TuyaReceived#Cmnd7DpId3DpType4 do Publish stat/%topic%/SPEED %value% endon

This appears "on the wire" as:

  stat/tasmota/SPEED 01
2020-02-03 15:02:09 +11:00
Hadinger 49ebd870ca Add ``ZbBind`` (experimental) and bug fixes 2020-02-02 20:53:49 +01:00
Staars 46e06a6fcb error fixes 2020-02-02 19:07:31 +01:00
Hadinger 9ce92d7df8 Fixed comment 2020-02-02 18:38:27 +01:00
Hadinger 02df35b6b5 Safeguard if delay is too high 2020-02-02 18:02:31 +01:00
Staars b64abc9757 dynamic sensor discovery 2020-02-02 17:44:26 +01:00
Hadinger ed455df760 Fix PWM flickering at low levels (#7415) 2020-02-02 13:13:44 +01:00
Theo Arends 26cee00e2f
Merge pull request #7626 from to-scho/hotfix/shutterbuttons_simultaneous_press
simultaneous shutter button press per shutter
2020-02-01 19:07:13 +01:00
Staars cb067237ad stabilize readings 2020-02-01 16:17:20 +01:00
Hadinger 3b61d77680 Fix wrong CT channel for Module 48 2020-02-01 14:23:13 +01:00
Staars f6a93a8d60 unify codebase 2020-01-31 18:50:11 +01:00
Staars a1d7d2baf8 output working 2020-01-31 15:28:34 +01:00
Staars b9e3815358 adding stuff 2020-01-31 10:12:48 +01:00
Staars 3e43c4c551 Merge branch 'development' of https://github.com/arendst/Sonoff-Tasmota into hm10 2020-01-31 07:39:35 +01:00
to-scho c6a2854a6e simultaneous shutter button press per shutter
detect simultaneous press per shutter and not for whole module
2020-01-30 14:33:33 +01:00
Staars 15428f59e9 add some stuff from the mp3-driver 2020-01-30 09:18:21 +01:00
Staars 07df4c1dfb start hm-10-driver 2020-01-30 08:39:28 +01:00
RemiDing 5278a84252 POWER_INCREMENT added 2020-01-28 15:37:18 +01:00
RemiDing deb8398d0b maybe needed 2020-01-28 15:15:49 +01:00
RemiDing 7892bad81b toggle pressed and not_pressed 2020-01-28 15:10:23 +01:00
to-scho 72935bdcc6 Buzzer extensions
Add infinite mode (count==-1), add follow led mode (count==-2), add count>1 for tune playback
2020-01-28 11:22:36 +01:00
Theo Arends 42461aaaf3 Fix command Publish payload handling 2020-01-27 17:38:32 +01:00
to-scho 11b13f73b0 fix shutterposition call w/o arguments after boot 2020-01-27 11:05:11 +01:00
Theo Arends a2a650102e
Merge pull request #7615 from to-scho/hotfix/shutter_wraparound_endstoptime
fix position wrap around when shutterendstoptime is enabled
2020-01-27 10:38:28 +01:00
to-scho 0d03c1682e fix position wrap around when shutterendstoptime is enabled 2020-01-27 09:46:39 +01:00
Hadinger fab03d8173 Add ``SetOption84 1`` sends AWS IoT device shadow updates (alternative to retained) 2020-01-26 23:08:52 +01:00
Theo Arends 9efe67127d Refactor wifi code 2020-01-26 15:52:26 +01:00
Theo Arends 3d00c4f093 Change wifi connectivity stability
Change wifi connectivity stability (#7602)
2020-01-26 14:30:11 +01:00
Theo Arends 7ad63b4760
Merge pull request #7602 from wir3z/development
Address multiple WiFI connectivity /stability issues.
2020-01-26 14:21:06 +01:00
Theo Arends ff01f934e2 Bump version 8.1.0.5 2020-01-26 14:20:40 +01:00
Theo Arends 5b0259e7c3 Keep legacy support 2020-01-26 14:16:44 +01:00
CORP\vdi 81c6355b8f Address multiple WiFI connectivity /stability issues.
1) Reduce the roam threshold to 5dBm to fix issues where a device might connect at -80dBM which is marginal operation, but would not roam to a -72dBm AP
2) Reduce the scan rate from 44 minutes to 5 minutes to accelerate network harmony
3) Arduino SDK was allowed to control re-connections which resulted in a de-authentication attack on teh WiFi AP.  Explicitly disable with WiFi.setAutoReconnect(false);
4) Reduce WIFI_CHECK_SEC to 5, and Wifi.retry_init times to accommodate Tasmota dealing with retransmissions.
5) WifiBeginAfterScan:  Save the last BSSID a connection attempt was made on.  Should that error, pick the next strongest AP for the next attempt.  Addresses situations where an AP has a high RSSI, but poor channel health due to it being overloaded.
6) WifiCheckIPAddrStatus: Error cases did not properly alternate between AP's, with some error cases geeting hug up where they did not initiate a reconnection so the device became non-responsive.  Device now starts at Wifi.retry_init, tries to connect, does again at Wifi.retry_init/2, and then does a WifiConfig.  Should no IP address be received, restart DHCP each second during this time.

Test Environment:
27 Tasmota devices
3 SonicWALL corporate AP's
Highly interfered 801.11n network
2020-01-25 11:22:40 -07:00
Hadinger e34cc3cbcc Change Zigbee commands renamed to ``Zb*`` 2020-01-25 17:42:53 +01:00
Theo Arends 53e93215df Fix trigger SYSTEM#BOOT
Fix trigger SYSTEM#BOOT when mdns is disabled an no mqqthost is set (#7552)
2020-01-25 13:45:26 +01:00
Theo Arends febabec3bb Fix Gui ADC Range unit 2020-01-25 12:17:35 +01:00
RemiDing cfbd1cb85d optimized 2020-01-25 11:22:28 +01:00
Theo Arends 473299ffcd Refactor rules JSON decoding
Refactor rules JSON decoding allowing up to 10 subtypes deep
2020-01-24 17:13:39 +01:00
Theo Arends ddd1f4c379 Return state information when wakeup is complete
Return state information when wakeup is complete (#7583)
2020-01-24 12:48:50 +01:00
Theo Arends a4e2b28b86
Merge pull request #7587 from BASM/development
ds1624/ds1621: Stabilization and bug fixes
2020-01-24 11:18:54 +01:00
Federico Leoni 26755202c7
New ADC Range 2020-01-23 19:21:49 -03:00
Federico Leoni 6757d9731a
new ADC Range definition 2020-01-23 19:17:15 -03:00
Hadinger 60f5492765 Add Zigbee support for Aqara Cube rotate 2020-01-23 21:55:10 +01:00
Leonid Muravjev b977c28435 ds1624/ds1621: Stabilization and bug fixes
* ds1621 datasheet is wrong for higher resolution, fixed
* ds1621 sometimes reset on bad (long) i2c bus, added autoreconfigure
* hotplug bug fixes
2020-01-23 23:45:24 +03:00
Theo Arends 3b71173a09 Add precision to Moisture sensor
Add precision to Moisture sensor (#7402)
2020-01-23 18:13:32 +01:00
saper-2 e26999f300 Updated lang files with new defines + comments 2020-01-23 17:18:44 +01:00
saper-2 ad083d1675 Some code cleanup and add comments & info 2020-01-23 16:13:25 +01:00
Theo Arends 9afbf854cf Add rule trigger on one level deeper
Add rule trigger on one level deeper using syntax with two ``#`` like ``on zigbeereceived#vibration_sensor#aqaracubeside=0 do ...``
2020-01-23 13:03:05 +01:00
Theo Arends ac486f2186 Document my_image 2020-01-23 10:57:29 +01:00
Theo Arends 92a5d978de
Merge pull request #7581 from patrickdk77/development
make kCodeImage/my_image more customizable
2020-01-23 10:34:04 +01:00
Theo Arends 405da3ee3f
Update tasmota.ino
Keep hackbox commit insert possibility
2020-01-23 10:33:08 +01:00
Patrick Domack 2e89370f1e Add ability to define more subversions in user overrides and remove ram/flash usage to store all versions. 2020-01-22 16:49:28 -05:00
Hadinger b2c0a34979 Minor Zigbee improvements 2020-01-22 22:40:28 +01:00
Hadinger 514f3e7357 Fix ``RGBWWTable`` ignored (#7572) 2020-01-22 21:37:23 +01:00
Theo Arends 2f00aad103
Merge pull request #7573 from to-scho/feature/shutterbuttons_mqqt_rules
Shutterbutton to MQTT and rules
2020-01-22 16:15:33 +01:00
Theo Arends 7ea60116cf Document Light commands 2020-01-22 16:14:03 +01:00
to-scho 6e81262709 Shutterbutton to MQTT and rules 2020-01-22 13:23:59 +01:00
Theo Arends fb485dabd3 Add optional parameter <startcolor> to command ``Scheme``
Add optional parameter <startcolor> to command ``Scheme <scheme>, <startcolor>`` to control initial start color
2020-01-22 11:55:48 +01:00
Theo Arends 38b344fcea Remove the need for GPIO_CSE7766_TX 2020-01-21 17:10:08 +01:00
Theo Arends a61c028b66 Add SoftwareSerial to CSE7766 driver
Add SoftwareSerial to CSE7766 driver allowing different GPIOs (#7563)
2020-01-21 16:38:55 +01:00
Theo Arends 760f4e49ac Add compile time control over settings 2020-01-21 12:36:44 +01:00
Theo Arends c1a86af6a8
Merge pull request #7564 from Staars/development
add support for LYWSD02
2020-01-21 09:17:36 +01:00
Staars 6d36f36659 add support for LYWSD02 2020-01-20 19:44:55 +01:00
Theo Arends e01c1b8c45 Add compile time control over SetOptions 2020-01-20 18:49:57 +01:00
Theo Arends 58a50cec8c Fix Zigbee compile error 2020-01-20 10:05:12 +01:00
Hadinger 79fdc265b7 Minor fixes to Zigbee friendly names 2020-01-19 22:59:02 +01:00
Theo Arends 588f3ca0b2
Merge pull request #7557 from BASM/7556_i2csetdevice
i2c: I2cSetDevice wrong behavior
2020-01-19 15:31:56 +01:00
Leonid Muravjev e03a14ce21 i2c: I2cSetDevice wrong behavior
Most drivers do not expect address blocking after calling i2cSetDevice.
I2cSetActive removed from I2cSetDevice. All drivers waiting for this call are fixed.

refs #7556
2020-01-19 16:15:18 +03:00
Theo Arends 6d5b0ed622 Remove redundant code 2020-01-19 14:12:25 +01:00
Theo Arends 6c83787210 Lower mqttlog stack usage 2020-01-19 12:22:40 +01:00
Theo Arends 45ed0257b6 Better support for Prefix1 equals Prefix2 2020-01-18 16:57:48 +01:00
Theo Arends 5716d08de9 Refactor MQTT Logging and publish 2020-01-18 15:34:01 +01:00
Hadinger 18ce64f813 Add Zigbee persistence and friendly names 2020-01-18 00:02:01 +01:00
Theo Arends 50a25aeb7c Experimental DS18x20 for Shelly
Experimental DS18x20 for Shelly (#7469)
2020-01-17 17:51:27 +01:00
Theo Arends 60c5a1a83a
Merge pull request #7539 from Staars/development
add virtual serial port via TCP for ublox-GPS-modules
2020-01-17 17:15:33 +01:00
Theo Arends be5c7a4367 Document and add errorchecks to OTA
Document and add errorchecks to OTA
2020-01-17 17:14:53 +01:00
Staars 400d4a0604 add virtual serial port via TCP 2020-01-17 16:44:43 +01:00
Theo Arends e8ce1eb641 Fix OTA minimal gzipped detection
Fix OTA minimal gzipped detection regression from 8.1.0.3
2020-01-17 15:38:03 +01:00
Theo Arends 65d1f3aace Fix PowerDelta calculation
Fix PowerDelta calculation not detecting zero power (#7515)
2020-01-17 10:12:57 +01:00
Shantur Rathore 920501fef9 Implement new Tuya multi dpid protocol. Fixes #7489 2020-01-16 15:19:57 +00:00
Theo Arends adb2dbbcbd Fix ColorTemp brightness 2020-01-16 14:37:10 +01:00
Theo Arends a6e95211cc Add more web page sliders
Add web page sliders when ``SetOption37 128`` is active allowing control of white(s)
2020-01-16 14:22:39 +01:00
Theo Arends aa170fefd4
Merge pull request #7521 from dgwynne/HSColor
Make the B or brightness part of the HSBColor command optional
2020-01-16 13:00:26 +01:00
Theo Arends 0755ad488e Bump version to 8.1.0.4 2020-01-16 11:35:48 +01:00
Theo Arends 5b797a8f4e Add new SwitchMode options
Add ``SwitchMode 8`` ToggleMulti, ``SwitchMode 9`` FollowMulti and ``SwitchMode 10`` FollowMultiInverted (#7522)
2020-01-16 10:39:59 +01:00
to-scho 6ab5c7432e patch-1
typos
2020-01-15 16:12:55 +01:00
to-scho e327236485 New switchmodes TOGGLEMULTI, FOLLOWMULTI and FOLLOWMULTI_INV 2020-01-15 13:05:00 +01:00
David Gwynne a2c8ea9d65 Make the B or brightness part of the HSBColor command optional
This makes it easier (possible?) to use the HSBColor with hs_command_topic
in Home-Assistant, which in turn allows completely independent control
of the color part of an RGBW or RGBWW bulb.
2020-01-15 22:14:47 +11:00
Theo Arends 338499d8e2 Fix unknown command topic 2020-01-14 16:57:55 +01:00
Hadinger 77191f2fe9 Simplified TimeDifference (saves 16 bytes) 2020-01-14 16:41:47 +01:00
Theo Arends ceef563414 Add simple check for serialreceived JSON
Add simple check for serialreceived JSON (#7506)
2020-01-14 15:58:56 +01:00
Theo Arends fe17be62cc Add user control over vertical console size
Add user control over vertical console size (#7507)
2020-01-14 15:38:16 +01:00
Theo Arends 81d58d69b6 Revert "Add user control over vertical console size"
This reverts commit 423b6f251b.
2020-01-14 14:42:30 +01:00
Theo Arends 423b6f251b Add user control over vertical console size
Add user control over vertical console size (#7507)
2020-01-14 14:33:27 +01:00
to-scho 64d3d0c075 Change MQTT reporting of instantaneous shutter position from tele to stat 2020-01-14 13:32:51 +01:00
Theo Arends 0db458c774 Fix exception 9 restart on log message
Fix exception 9 restart on log message in Ticker interrupt service routines NTP, Wemos and Hue emulation (#7496)
2020-01-14 12:47:48 +01:00
Theo Arends fc9fafc19b
Merge pull request #7510 from to-scho/hotfix/shutterlock_webbutton
Show webbutton label '-' when shutter is locked
2020-01-14 11:26:01 +01:00
to-scho bc83aad8bd Show webbutton label '-' when shutter is locked 2020-01-14 11:00:22 +01:00
to-scho 0327d7f4b4 New command ShutterEnableEndStopTime 2020-01-13 12:00:34 +01:00
to-scho d00bea84ec Fix target shutter position inaccuracy
Introduced numerical rounding when calculating between "%" and "time" position values
2020-01-13 09:48:29 +01:00
Hadinger 5840f71af9 Fix char[] allocation 2020-01-12 23:31:57 +01:00
to-scho 80773f74c7 initialize shutters when interlock is changed 2020-01-12 15:41:51 +01:00
to-scho 8cf411a1c3 New command ShutterLock
Command shutterlock<x> 1 locks shutter <x> movement. Any ongoing movement is still finished when called. Subsequent calls of shutter commands about movement, web buttons and shutter buttons  are blocked when shutter is locked. shutterlock<x> 0 unlocks shutter <x>.
2020-01-12 14:18:15 +01:00
Theo Arends 0e0d8190fa Change some commands displaying all items
Change commands ``Prefix``, ``Ssid``, ``StateText``, ``NTPServer``, and ``FriendlyName`` displaying all items
2020-01-12 13:10:21 +01:00
Theo Arends e7b061ce5a Fix Tuya PowerOn state
Fix Tuya PowerOn state (#7412)
2020-01-11 15:39:56 +01:00
Roman Lomonosov 20c58f5f20 Fix typo in gauge metric type (#7216) 2020-01-11 10:15:30 +03:00
Hadinger be85d3a060 Fix ``WakeUp <x>`` ignores provided value (#7473) 2020-01-10 20:54:13 +01:00
Theo Arends 2dde0329ed
Merge pull request #7466 from to-scho/hotfix/shutterbuttons_no_key_restrictions
Enable WIFI setup, restart and reset via ShutterButtons
2020-01-09 14:52:54 +01:00
to-scho a1ccd0131d Enable WIFI setup, restart and reset via ShutterButtons
When no button restriction is given and ALL shutter buttons are pressed simultaneously more than 5 times or hold simultaneously follow Tasmota's basic button behavior.
2020-01-09 14:48:23 +01:00
Theo Arends 250e3f3dc4 Fix display of wifi scan signal strength
Fix display of wifi scan signal strength
2020-01-09 14:35:03 +01:00
Theo Arends d0774995de Allow duplicate names but different channel in wifi scan
Allow duplicate names but different channel in wifi scan
2020-01-09 14:19:19 +01:00
Theo Arends a6dcf46771 Move heap to stack 2020-01-09 11:35:01 +01:00
Theo Arends a52c059cdc
Merge pull request #7465 from to-scho/hotfix/shutterbuttons_short_command
Add MQTT field to short shutterButton command syntax
2020-01-09 10:42:18 +01:00
to-scho 3675388148 Add MQTT field to short shutterButton command syntax
Align code to latest command doc suggestion
2020-01-09 10:35:27 +01:00
to-scho 2c6659fca4 Fix labeling of web buttons for shutters
Instead of switching power of the shutter relais web buttons will issue shutter commands to work right when in shuttermode 1. Up down labels arrow up/down fixed for more than one shutter.
2020-01-09 09:17:39 +01:00
Theo Arends 7c68d7a754 Improve random color cycle for scheme 4
Improve random color cycle for scheme 4 (#7273)
2020-01-08 17:45:48 +01:00
Theo Arends edf1584431 Improve random color cycle for scheme 4
Improve random color cycle for scheme 4 (#7273)
2020-01-08 16:45:43 +01:00
Theo Arends 2c23364d48 Fix DDS238-2 total energy
Fix DDS238-2 total energy (#7457)
2020-01-08 11:43:39 +01:00
Theo Arends 8db49a0fe3 Add support for tasmota-minimal.bin.gz 2020-01-07 17:28:06 +01:00
Theo Arends ca7776573a Remove debug info 2020-01-07 17:10:07 +01:00
Theo Arends 1c0db7e689 Refactor version compatibility 2020-01-07 17:01:48 +01:00
Hadinger 9d881b9701 Update IRremoteESP8266 lib updated to v2.7.2 2020-01-06 17:27:36 +01:00
Theo Arends 95fc96d563 Add support for gzipped binaries
Add support for gzipped binaries
2020-01-06 14:52:04 +01:00
saper-2 f145d22e90 A bit more of code cleanup 2020-01-05 22:09:00 +01:00
saper-2 f2ca1f3e47 Added totalActive from le01, more code tunning 2020-01-05 19:51:12 +01:00
saper-2 179a1c549d Fixed few bugs (multiplers, 0's, etc) 2020-01-05 14:32:35 +01:00
saper-2 dc2d7cc681 Added F&F LE-01MR support 2020-01-05 01:06:30 +01:00
Theo Arends 4a432fc2cd Fix for Domoticz color temp (#7428)
Fix for Domoticz color temp (#7428)
2020-01-04 18:24:33 +01:00
Theo Arends 61fe727685 Possible fix for Domoticz color temp
Possible fix for Domoticz color temp (#7428)
2020-01-04 17:29:04 +01:00
Theo Arends 5c97cdc12e
Merge pull request #7437 from to-scho/hotfix/shutterbuttons_inverted_command
inverted ShutterButton command
2020-01-04 16:42:00 +01:00
Theo Arends 81d3b35d0c
Merge pull request #7436 from to-scho/hotfix/shutterbuttons
Fixed exception with ShutterButton
2020-01-04 16:41:24 +01:00
to-scho f6f4a3f88f inverted ShutterButton command
As discussed in doc repo this is the code for my inverted shutter button command.
2020-01-04 16:24:45 +01:00
to-scho cea20feab3 Fixed exception with ShutterButton
When a button assigned to a shutter is pressed before any command is issued an exception occured
2020-01-04 16:10:03 +01:00
Theo Arends 49137ec79f Refactor shutters 2020-01-04 15:09:57 +01:00
Theo Arends 8be7dbe235 Fix shutter JSON 2020-01-04 14:20:41 +01:00
Theo Arends a1df6b9db9
Merge pull request #7431 from kabongsteve/shutter-improvements
Improve Shutter operation for HASS, MQTT and Internationalization
2020-01-04 13:54:58 +01:00
Hadinger aa665c1439 Add SetOption82 to limit the CT range for Alexa to 200..380 2020-01-04 11:01:44 +01:00
kabongsteve 1b451e722f Improve multiple shutter operation and MQTT 2020-01-04 13:38:56 +11:00
Hadinger 4f74c70270 Add LightPowerIRAM() for rotary interrupt handler 2020-01-03 17:57:47 +01:00
Theo Arends b82d1fdcc3 Move all Rotary interrupt code to iRAM
Move all Rotary interrupt code to iRAM (#7410)
2020-01-03 17:07:40 +01:00
Theo Arends 8c2ff7237e Fix Arduino_OTA compile error
Fix Arduino_OTA compile error (#7413)
2020-01-03 16:50:56 +01:00
Theo Arends 9249958d90
Merge branch 'development' into bmp 2020-01-03 16:31:39 +01:00
Theo Arends 319965fba2
Merge pull request #7423 from jpenninkhof/development
Reset SSD1306 before initialisation when OLED reset pin is set
2020-01-03 16:08:34 +01:00
Jan Penninkhof d15969bd1e
Reset before initialisation of the SSD1306 when OLED reset pin is set
If an OLED Reset pin has been selected using the PIN configuration, it makes sense to also send a reset signal to this pin before initialization of the display. The current value 0 doesn't send this signal, not even when a reset pin has been selected. Hence the change of value 0 into reset_pin >= 0. If no reset pin was set, the value of this variable is -1.
2020-01-03 10:07:42 +01:00
Hadinger 0ab3ba6fab Fix wrong gamma correction for Module 48 lights (PWM5 for CT) 2020-01-02 22:36:27 +01:00
Andre Thomas 06f053c172
- Add support to BMP driver to enter reset state (sleep enable) 2020-01-02 22:51:15 +02:00
Andre Thomas 6a54eef50a
- Add support to BMP driver to enter reset state (sleep enable)
- Add support to BMP driver to enter reset state (sleep enable) when deep sleep is used in Tasmota
2020-01-02 22:40:14 +02:00
Andre Thomas 356e005909
BMPxxx - Enter power on state before deep sleep 2020-01-02 22:38:18 +02:00
Theo Arends 894950ca4e Fix wrong JSON sensor message 2020-01-02 17:40:00 +01:00
Theo Arends c4f6a359a7 Add experimental support for NRF24L01 as BLE-bridge
Add experimental support for NRF24L01 as BLE-bridge for Mijia Bluetooth sensors by Christian Baars (#7394)
2020-01-02 16:58:20 +01:00
Theo Arends 5489c91172
Merge pull request #7394 from Staars/nrf24_PR
BLE-bridge for certain Mijia-Bluetooth-sensors via NRF24L01
2020-01-02 16:28:22 +01:00
Theo Arends 1e0550e750 Add command ShutterButton <parameters>
Add command ``ShutterButton <parameters>`` to control shutter(s) by to-scho (#7403)
2020-01-02 15:12:59 +01:00
Theo Arends eb7e7d45b2
Merge pull request #7403 from to-scho/feature/initial_shutter_button_support
Initial support for shutter button control
2020-01-02 14:48:13 +01:00
Theo Arends 044fae2a6e
Update settings.h 2020-01-02 14:47:33 +01:00
Theo Arends 8e3540d58d
Merge pull request #7405 from to-scho/hotfix/shutter_calibration_command_add_response
Add response to ShutterCalibration command
2020-01-02 14:40:25 +01:00
Theo Arends 7ca423da92
Merge pull request #7406 from to-scho/hotfix/shutter_pos_to_percentage_fix
Wrong shutter percentage reporting
2020-01-02 14:39:19 +01:00
Theo Arends 7ea9204425 Add some info to Prometheus file 2020-01-02 14:17:49 +01:00
to-scho a9a5c33327 Wrong shutter percentage reporting
With calibrated shutters and ShutterPosition<x> 100 the resulting position may not be 100. This is due to 2 issues. a) percentage is calculated wrong from position due to numerical precision. b) real_position and subsequently position after movement is slightly smaller than max_position.

a) is fixed here by avoiding calculation when position is equal to calibration point
b) open, not fixed here. Issue further depends on start_position which makes it hard to reproduce. Maybe 'stop_position_delta=20' results is real_position not reaching max_position.
2020-01-02 12:46:12 +01:00
to-scho f2a89605af Add response to ShutterCalibration command
When ShutterCalibration<x> is called without any arguments no response was given before that allows to read out setting like for other commands. Workaround was to call ShutterRelay<x> <y>.
2020-01-02 12:37:07 +01:00
to-scho 406a5a15f5 Initial support for shutter button control
New command "ShutterButton<x> <a> <b> <c> <d> <e> <f> <g> <h> <i> <j>" added that allows to assign a tasmota button <x> to control shutter <a>.

Single press button shutter is set to position <b>.  Double press button shutter is set to position <c>. Tripple press button shutter is set to position <d>. Hold button shutter is set to position <e>. Disabling any button action is given by <b> ... <e> equal to "-". Any press of the button while the shutter is moving will immediately stop that shutter.

Global steering of all your shutters at home is supported by MQTT. By any button action an MQTT command can be initiated to the <grouptopic> of the device. For single press button this can be enabled by <f> equal to "1". Disabling is indicated by <f> equal to "0". Double to hold actions are given by <g> ... <i>, correspondingly. When <j> is equal to "0" only "cmnd/<grouptopic>/Shutterposition<y> ..." with <y>=<x> is fired. When <j> is equal to "1" <y>=1...4 is used to control any shutter number of a tasmota device having same <grouptopic>.

Easy setup for an "up" button:
ShutterButton<x> <a> up (same as ShutterButton<x> <a> 100 50 74 100 0 0 0 1 1)
Single press will move shutter up to 100%, double press to 50% and tripple press to 74%. Holding the button for more than the hold time (SetOption32) moves all shutters with same <grouptopic> up to 100%.

Easy setup for an "down" button:
ShutterButton<x> <a> down (same as ShutterButton<x> <a> 0 50 24 0 0 0 0 1 1)
Single press will move shutter down to 0%, double press to 50% and tripple press to 24%. Holding the button for more than the hold time (SetOption32) moves all shutters with same <grouptopic> down to 0%.

Easy setup for an "updown" button:
ShutterButton<x> <a> updown (same as ShutterButton<x> <a> 100 0 50 - 0 0 0 0 0)
Single press will move shutter up to 100%, double press down to 0% and tripple press to 50%. No hold action and no other shutter control by MQTT.
2020-01-02 11:23:11 +01:00
Theo Arends 21ea26e132
Update my_user_config.h 2020-01-02 09:54:58 +01:00
Staars ee7e9078f0 initial commit 2020-01-01 19:09:20 +01:00
Theo Arends 01b5df9651 Add optional support for Prometheus
Add optional support for Prometheus using file xsns_91_prometheus.ino (#7216)
2020-01-01 17:17:10 +01:00
Hadinger 579a76ced6 Fix Improved fade linearity with gamma correction 2020-01-01 16:11:36 +01:00
Theo Arends 287b3b97f1 Fix some display issues
- Fix LCD line and column positioning (#7387)
- Fix Display handling of hexadecimal escape characters (#7387)
2020-01-01 15:13:58 +01:00
Theo Arends b05301b149 Refactor change 2019-12-31 17:24:47 +01:00
Theo Arends c13b755a59 Fix addition of backlog to IF clause
Fix addition of backlog to IF clause (#7342)
2019-12-31 17:17:30 +01:00
Theo Arends 5281725b9b Raise max valid load from 3.68 to 4kW
Raise max valid load from 3.68 to 4kW (#7155)
2019-12-31 15:34:27 +01:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
Bohdan Kmit df9781d71e Use symbolic chars in WebUI for Ukrainian language (µ,Ω,³,₂) 2019-12-31 15:12:27 +02:00
localhost61 9e1a595d58 Use symbolic chars in WebUI for all languages (µ,Ω,³,₂)... but keep MHZ 2019-12-30 19:57:09 +01:00
Theo Arends 1e06976eee
Merge pull request #7039 from ahoiahoi/domoticz-shutter
domoticz blinds -> tasmota support
2019-12-30 17:00:38 +01:00
Theo Arends a6cecfcb79 Add support for ADC0 Current Transformer
- Bump version to 8.1.0.2
- Add support for ``AdcParam`` parameters to control ADC0 Current Transformer Apparent Power formula by Jodi Dillon (#7100)
2019-12-30 16:42:53 +01:00
Staars 5d10b92c54 change height to altitude 2019-12-30 16:20:21 +01:00
Theo Arends 1526a59162 Refactor HotPlug 2019-12-30 14:23:37 +01:00
Theo Arends 3fabf6d2f9
Merge pull request #7368 from BASM/hotplug
HotPlug for sensors support added
2019-12-30 12:48:51 +01:00
Jason2866 2d99eca6e8
u in µ and m3 in m³ 2019-12-30 12:03:14 +01:00
Leonid Muravjev ed5330169a HotPlug for sensors support added 2019-12-29 23:10:53 +03:00
Theo Arends 6bba9df362
Merge pull request #7370 from Staars/ubx
add error checking for init and loops
2019-12-29 20:48:20 +01:00
Staars 6c189b40bf add error checking for init 2019-12-29 19:41:31 +01:00
Jason2866 b7d2045c21
Wrong spelling Particles 2019-12-29 17:26:45 +01:00
gemu2015 858103e082 support for hm17 (v110) and hm10 (V609) 2019-12-29 16:49:36 +01:00