Commit Graph

1821 Commits

Author SHA1 Message Date
engrbm87
122ae1ee27
fix empty prefix issue
When switchtopic is set to a different topic the prefix will be empty so its length will be zero. In the Shorten function the strncmp will give a zero result because the prefixlen is zero and will add '~' even though there is no prefix.
Adding prefixlen != 0 in the if condition fixes the issue. Also skip adding the prefix "~" on line 292 by checking if the prefix length is greater than zero.
2019-01-06 20:26:42 +02:00
Theo Arends
d3020223d7 Update _changelog.ino 2019-01-06 18:57:51 +01:00
Theo Arends
e1d903eab3 Add no pull-up control to Shelly 2
Add no pull-up control to Shelly 2 module (default is pull-up, change GPIO2 to Switch3n for no pull-up) (#4841)
2019-01-06 18:50:56 +01:00
Theo Arends
0195cabbd6 Add relay status functionality to LED2
Add relay status functionality to LED2 when configured leaving LED1 for (wifi/mqtt) status indication
2019-01-06 18:02:21 +01:00
Andre Thomas
64ba6fcf8d
PN532: Fix hex formatting to 2 char len per byte
PN532: Fix hex formatting to 2 char len per byte
2019-01-06 16:32:50 +02:00
Theo Arends
e9c687cf09 Housekeeping - Documentation 2019-01-06 15:17:22 +01:00
Theo Arends
cb8963a7bf 6.4.1.7 Fix regression energy sensors
6.4.1.7 20190106
 * Fix HLW8012, HJL01 and BL0937 based energy sensors low Power (below 10W) measurement regression from 6.4.1.6
2019-01-06 12:29:38 +01:00
Andre Thomas
8d1dee8929
PN532: Enable 1ms ClockStretch
Enable 1ms clock stretch as per datasheet Table 12.25 (Timing for the I2C interface)
2019-01-05 22:05:53 +02:00
Theo Arends
9da900dfb8 Stabilize current SHP6 2019-01-05 18:40:33 +01:00
Theo Arends
41351001f5 6.4.1.6 Re-introduce Cal commands
6.4.1.6 20190105
 * Add commands PowerCal, VoltageCal and CurrentCal for HLW8012, HJL01 and BL0937 based energy sensors
2019-01-05 15:39:56 +01:00
Adrian Scillato
34966913e2
Add GPIO2 to Sonoff RF R2 template
https://github.com/arendst/Sonoff-Tasmota/issues/4820
2019-01-04 17:10:17 -03:00
Theo Arends
7cf9128303
Merge pull request #4819 from ascillato/patch-1
New Triggers for Rules: VARx#STATE and MEMx#STATE
2019-01-04 20:58:11 +01:00
Adrian Scillato
1d23c0b0c5
New Triggers for Rules: VARx#STATE and MEMx#STATE
Added new triggers for rules: `VARx#STATE` and `MEMx#STATE`

These new triggers allows to execute commands when VARs or MEMs change their values.

This is useful for automations where the parameter sent to Tasmota by MQTT is a SetPoint for example.

Before these triggers, the approach was using an `EVENT` to store a value but some components in home automation softwares can't use `cmnd/sonofftopic/EVENT SETVAR=25`, where `cmnd/sonofftopic/EVENT` is the mqtt message and `SETVAR=25` is the payload.

With this new triggers, it will be as simple as `cmnd/sonofftopic/VAR 25` so any automation software can use it.

_(Using `cmnd/sonofftopic/EVENT SETVAR=` as mqtt message and `25` as payload is not understood by Tasmota)_
2019-01-04 16:26:37 -03:00
andrethomas
c63ccd7cbd PN532 - Timing tuning 2019-01-04 21:20:38 +02:00
Theo Arends
458b030598 Add Eeprom support
Add initial Eeprom support
2019-01-04 16:05:52 +01:00
andrethomas
44e80c2626 PN532 - Disable before restart 2019-01-04 14:15:10 +02:00
Theo Arends
f66de3111e Housekeeping 2019-01-03 18:07:03 +01:00
Theo Arends
67cf1dbbcf 6.4.1.5 Add mDns user control
6.4.1.5 20190103
 * Remove command SetOption35 0-255 for mDNS start-up delay (#4793)
 * Add command SetOption55 0/1 to disable/enable mDNS (#4793)
2019-01-03 17:30:54 +01:00
Theo Arends
edc245e5c6 Housekeeping 2019-01-03 15:44:16 +01:00
Theo Arends
b584bb0760 Housekeeping 2019-01-03 15:38:15 +01:00
andrethomas
cf5c82d225 PN532 Store timeout in PROGMEM 2019-01-03 15:29:41 +02:00
andrethomas
32c167d208 PN532 - Housekeeping 2019-01-03 11:09:49 +02:00
Jason2866
375441f23e
Support PN532 2019-01-03 09:27:40 +01:00
Andre Thomas
3608baf7f8
Add support for PN532 NFC 2019-01-02 23:17:38 +02:00
Andre Thomas
149b335a4b
Add support for PN532 NFC 2019-01-02 22:25:20 +02:00
andrethomas
5ec7249ece Add support for PN532 NFC 2019-01-02 22:04:33 +02:00
Theo Arends
1fb7993d66 Fix epaper driver (#4785)
Fix epaper driver (#4785)
2019-01-02 17:18:47 +01:00
Theo Arends
447ec6256e 6.4.1.4 Update Copyright (C) 2019
6.4.1.4 20190101
 * Update Copyright (C) 2019
2019-01-01 13:55:01 +01:00
Theo Arends
f12261e4fa Add support for MAX31855
Add support for MAX31855 K-Type thermocouple sensor using softSPI (#4764)
2019-01-01 13:45:44 +01:00
Theo Arends
de8ce9aa9d
Merge pull request #4764 from ipm79/max31855
MAX31855 thermocouple support
2019-01-01 13:13:11 +01:00
Theo Arends
c67922241c Add tests for result 2018-12-30 15:32:53 +01:00
Theo Arends
850d240d2e Add test for result usage 2018-12-30 14:56:50 +01:00
Theo Arends
0a22261e36 Revert "Disable unused feature"
This reverts commit 8fe61f6a11.
2018-12-30 14:47:17 +01:00
Theo Arends
8fe61f6a11 Disable unused feature 2018-12-30 14:40:06 +01:00
Theo Arends
fb4fe0fd55 Fix DS3231 driver
Fix DS3231 driver breaking function chain (#4759)
2018-12-30 14:28:16 +01:00
Theo Arends
e5c38da52c Add debugging options to Switch
Add more debugging options to Switch using SwitchDebounce
2018-12-30 14:04:32 +01:00
Markus Past
9d62f3cb49 added missing languages 2018-12-30 13:34:20 +01:00
Markus Past
42dbda1ffb Merge remote-tracking branch 'upstream/development' into max31855 2018-12-30 12:55:28 +01:00
Markus Past
1e125fc4c6 added some comments 2018-12-30 12:47:59 +01:00
Theo Arends
8b84ec35f7 Fix MGC3130/AZ7798 compile error 2018-12-30 12:30:01 +01:00
Markus Past
1736409b18 Merge remote-tracking branch 'upstream/development' into max31855 2018-12-30 11:50:57 +01:00
Markus Past
5737665a2f MAX31855 driver for Sonoff-Tasmota - Initial commit 2018-12-30 11:45:21 +01:00
Adrian Scillato
aa4c58a266
Fix Typo in Spanish Translation 2018-12-29 22:45:32 -03:00
Theo Arends
7ebb7a6067 6.4.1.3 Change sonoff_template.h
6.4.1.3 20181229
 * Change sonoff_template.h module lay-out by removing non-configurable GPIOs
2018-12-29 19:46:28 +01:00
Theo Arends
afe83a3460 Prep for template tuning 2018-12-29 17:19:13 +01:00
Theo Arends
5a44b12870 6.4.1.2 Rewrite Switch driver
6.4.1.2 20181228
 * Change switch driver making it modular and introduce input filter (#4665, #4724)
 * Add define DS18B20_INTERNAL_PULLUP to select internal input pullup when only one DS18B20 sensor is connected eliminating external resistor (#4738)
 * Add variable %timestamp% to rules (#4749)
2018-12-28 16:35:19 +01:00
Adrian Scillato
4fcbaf99be
Add variable %timestamp% to be used in rules
This PR adds a new variable %timestamp% to be used in a rule to allow the user to include the Time Stamp as Tasmota has for Status, Sensors, etc, for example:

Command:

publish stat/topic/sensor {"Time":"%timestamp%","mysensor":"%var1%"}

Output:

{"Time":"2018-12-27T12:52:57","mysensor":"1"}

(https://github.com/arendst/Sonoff-Tasmota/issues/4734)
2018-12-27 14:57:27 -03:00
K.C. Budd
8ce6b5a01d Add INPUT_PULLUP option for single DS18B20 2018-12-26 12:10:47 -08:00
Theo Arends
9640931345 Change switch debounce
Change switch input detection by optimizing switch debounce (#4724)
2018-12-26 14:21:00 +01:00
Theo Arends
7291f7d2f7 Fix compiler warning
Fix compiler warning
2018-12-24 18:35:13 +01:00