Commit Graph

2665 Commits

Author SHA1 Message Date
netpok
61099c4ead Fix indentation 2019-02-25 22:36:18 +01:00
netpok
01ce2a31d3 Implement RGB CT linking 2019-02-25 22:29:39 +01:00
netpok
38433e56f7 Replace compare cycle with memcmp 2019-02-25 22:24:53 +01:00
netpok
6d1cfe5a07 Force light update on color mapping change 2019-02-25 22:24:06 +01:00
netpok
d8eac1d8fc Replace if with min
saves ~30 bytes
2019-02-25 21:37:27 +01:00
Theo Arends
9a670be95b Fix buffer overflow
Fix buffer overflow (#5310)
2019-02-25 21:23:18 +01:00
Theo Arends
9f00978a79 Fix Domoticz Color regression
Fix Domoticz Color regression (#5310 )
2019-02-25 19:47:45 +01:00
Daddelgreis
61e9e8a361
GPIO_LED1
change
GPIO_LED1 to GPIO_LED1_INV 

right attitude
2019-02-25 17:56:53 +01:00
Theo Arends
c0f20d31ff 6.4.1.19 Add command SetOption37
6.4.1.19 20190222
 * Add command SetOption37 for RGBCW color mapping (#5326)
2019-02-25 11:14:33 +01:00
Theo Arends
813d2fd3f1
Merge pull request #5326 from gsimon75/issue_5310_rgb_order_setoption
Added SetOption37 for RGB remapping
2019-02-25 10:55:43 +01:00
Theo Arends
6c1709a674
Merge pull request #5332 from znanev/patch-3
Update Bulgarian translation
2019-02-25 10:52:29 +01:00
Gabor Simon
48f6b09987 Initialisation and updating of color mapping added 2019-02-24 23:48:03 +00:00
znanev
0ed7920b0f
Note updated version of language file 2019-02-24 21:42:34 +00:00
netpok
430334e604 Replace vector with array
it saves 24 bytes of code
2019-02-24 21:56:44 +01:00
netpok
945e7000dd Implement full color remapper 2019-02-24 21:03:33 +01:00
localhost61
886fe48115 Update fr-FR to 6.4.1.18 2019-02-24 20:44:26 +01:00
znanev
6544d002ad
Update Bulgarian translation 2019-02-24 19:38:52 +00:00
Jason2866
d464344f1f
Update de-DE.h 2019-02-24 17:37:17 +01:00
Theo Arends
bc5db6a079 Remove topic from local sensors
Remove topic from local sensors in DisplayMode 2/3 (#5212)
2019-02-24 17:29:28 +01:00
Theo Arends
e16178d912
Merge pull request #5320 from laurentdong/development
Support subscribe/unsubscribe MQTT topics and trigger specified event with the subscribed MQTT topic.
2019-02-24 17:02:45 +01:00
Laurent
49053f163f Update language files
D_UNSUBSCRIBE_FROM
2019-02-24 10:15:39 -05:00
Theo Arends
1d0348e636 Update xdrv_01_webserver.ino
Optimizations
2019-02-24 15:32:54 +01:00
Theo Arends
9b6e5bd122 Webserver Ajax optimizations
Webserver Ajax optimizations
2019-02-24 15:05:18 +01:00
Gabor Simon
0a4a21a038
Delete .gitignore
created by mistake
2019-02-24 16:43:42 +04:00
Gabor Simon
0bb05bb604
Delete .travis.yml
meanwhile removed at adc781b8fc
2019-02-24 16:41:54 +04:00
Gabor Simon
4492a14574 Added SetOption37 for RGB remapping 2019-02-24 12:07:15 +00:00
Gabor Simon
38b81302e3 sm16716: added config option for custom rgb order 2019-02-24 09:26:10 +04:00
Laurent
dd27ade7ef Rules: Trigger Event with MQTT Subscriptions
Support subscribe/unsubscribe MQTT topics and trigger specified event with the subscribed MQTT topic.
You can subscribe a MQTT topic and assign an event name. Once we received subscribed MQTT message, an event will be automatically triggered. So you can set up a rule with "ON EVENT#<event_name> DO ..." to do whatever you want based on this MQTT message. The payload is passed as a parameter once the event been triggered. If the payload is in JSON format, you are able to get the value of specified key as parameter.
For example, if you have a Tasmota based thermostat and multiple temperature sensors in different place, usually you have to set up a centre home automation system like Domoticz to control the thermostat. Right now, with this new feature, you can write a rule to do this.
Two new commands in Rules:
1. Subscribe
Subscribe a MQTT topic (with or without key) and assign an event name to it.
Command format:
	Subscribe [<event_name>, <topic> [, <key>]]
		This command will subscribe a <topic> and give it an event name <event_name>.
		The optional parameter <key> is for parse the specified key/value from MQTT message
			payload with JSON format.
		In order to parse value from two level JSON data, you can use one dot (".") to split the key into two section.
		Subscribe command without any parameter will list all topics currently subscribed.
2. Unsubscribe
Unsubscribe specified MQTT event.
Command format:
	Unsubscribe [<event_name>]
		Unsubscribe a topic subscribed by specify the event name.
		If no event specified, Unsubscribe all topics subscribed.
Examples:
1.
	Subscribe BkLight, Tasmota/BackyardLight/stat/POWER
		And define a rule like:
	Rule1 on event#BkLight=ON do ruletimer4 60 endon
2.
	Subscribe DnTemp, Tasmota/RoomSensor1/stat/SENSOR, DS18B20.Temperature
		Define a rule to deal with the MQTT message like {"Time":"2017-02-16T10:13:52", "DS18B20":{"Temperature":20.6}}
	Rule1 ON EVENT#DnTemp>=21 DO ... ENDON
2019-02-23 22:33:09 -05:00
Laurent
3298048c60 Update support_rtc.ino 2019-02-23 17:41:06 -05:00
Theo Arends
68c60c321e Handle too many command data
Handle too many command data
2019-02-23 19:19:31 +01:00
Theo Arends
93d07c1acc Webserver memory optimizations
Webserver memory optimizations
2019-02-23 18:38:36 +01:00
Theo Arends
19bdf7e803 Free flash space (WSSend)
Free flash space (WSSend)
2019-02-23 15:29:42 +01:00
Theo Arends
1cb956b541 Free flash space
Free flash space
2019-02-23 13:17:02 +01:00
Theo Arends
5d8ae266d0 Fix RemoveSpace and tune Websend
Fix RemoveSpace and tune Websend
2019-02-23 12:48:39 +01:00
Theo Arends
06bec0d95e Update _changelog.ino
Back from the future
2019-02-23 11:18:57 +01:00
Laurent
2cc15a8c34 Merge remote-tracking branch 'upstream/development' into development 2019-02-22 22:53:01 -05:00
Jörg R. Weimar
f0dde50f39 Merge remote-tracking branch 'upstream/development' into development
Merge all recent changes into my branch
2019-02-22 15:29:36 +01:00
Theo Arends
e315be0619 Fix command WebSend
Fix command WebSend when using a port number as regression from 6.4.1.17 (#5304)
2019-02-22 15:19:59 +01:00
Theo Arends
d219d1c9b5 Update support.ino
Houskeeping
2019-02-22 12:11:15 +01:00
Theo Arends
49f0b514eb Fix some exceptions and watchdogs
* Fix some exceptions and watchdogs due to lack of stack space - part 2
 * Add command SetOption62 0/1 to disable retain on Button or Swith hold messages (#5299)
 * Add option WifiConfig 7 to allow reset of device in AP mode without admin password (#5297)
2019-02-22 12:04:05 +01:00
Theo Arends
8df6bb76d1
Merge pull request #5297 from netpok/wificonfig-7
WifiConfig 7, a reset only WifiManager for smart bulbs
2019-02-22 11:44:04 +01:00
netpok
6cbfb0308a Check no hold retain flag on hold action sending 2019-02-21 21:30:30 +01:00
netpok
b3adab4097 Add flag for no hold retain 2019-02-21 21:27:52 +01:00
netpok
e2bcef16bf Merge remote-tracking branch 'upstream/development' into wificonfig-7 2019-02-21 19:45:34 +01:00
netpok
e9396d0ed4 Add missing localization strings 2019-02-21 19:45:21 +01:00
netpok
731154cc9b Handle authentication on reset/restart 2019-02-21 19:45:03 +01:00
netpok
4993d16ecb Implement WifiConfig 7 2019-02-21 17:49:11 +01:00
netpok
e035a3253a Add password validation to WebUI 2019-02-21 15:58:37 +01:00
netpok
3c58f5b7b9 Add password validation to password command 2019-02-21 15:57:45 +01:00
Theo Arends
95da493325 Update xdrv_01_webserver.ino
Fix compile error
2019-02-21 14:56:39 +01:00
Theo Arends
05b0280019 6.4.1.18 - Fix some exceptions and watchdogs
6.4.1.18 20191221
 * Fix some exceptions and watchdogs due to lack of stack space - part 1 (#5215)
2019-02-21 14:31:31 +01:00
Theo Arends
cfd3f3f4f5 Fix WebSend compile warning
Fix WebSend compile warning
2019-02-21 09:48:58 +01:00
Laurent
4e66dce049 Merge remote-tracking branch 'upstream/development' into development 2019-02-19 20:15:43 -05:00
Theo Arends
280dd25a8b Optimize RAM for expression
Optimize RAM for expression and add two more constant variables (#5275)
2019-02-19 14:49:15 +01:00
Theo Arends
06c97c4e19 Fix command WebSend
Fix command WebSend intermittent results (#5273)
2019-02-19 12:51:38 +01:00
Theo Arends
32c1e2d13c Tuning uptime and add utctime
Tuning uptime and add utctime
2019-02-19 10:48:19 +01:00
Laurent
660d0106c2 Revert "Support HttpGet command"
This reverts commit c527d4dc99.
2019-02-18 16:18:01 -05:00
Laurent
6f2f0b6fea Add two constant varibles in rules expression
Add two variables:
- UtcTime
The number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT)
- LocalTime
Seconds passed after Jan 1, 1970 midnight base on current timezone and daylight saving setting.
2019-02-18 16:17:32 -05:00
Laurent
2bc84a9aad Optimize RAM usage for Expression 2019-02-18 16:12:14 -05:00
Laurent
c527d4dc99 Support HttpGet command
HttpGet command send a HTTP Get request to specified URL and return the response from website or error message if failed.
Note: This command support URL encoding, so you do not have to do encode by yourself. For example replacing all " " with %20 is no necessary.
Format:
httpget <url>
With HttpGet command you can do a lot of things.
For example:
- Retrieve your physical location:
httpget http://ipinfo.io/geo
Result is a JSON object
{
  "ip": "8.8.8.8",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.3860,-122.0840",
  "postal": "94035",
  "phone": "650"
}
- Control another Sonoff switch directly:
httpget http://192.168.1.130/cm?cmnd=power off
2019-02-18 15:41:40 -05:00
andrethomas
1da8f94a05 Introduce Reset 6 2019-02-18 21:52:22 +02:00
Theo Arends
3c3b5bb8ca Add property Downtime
Add property Downtime to state and status 11 message representing the duration of wifi connection loss
2019-02-18 18:02:22 +01:00
Theo Arends
4884a94b6d Add LinkCount and MqttCount
* Add property LinkCount to state and status 11 message representing number of Wifi Link re-connections
 * Add property MqttCount to status 6 message representing number of Mqtt re-connections
2019-02-18 17:05:25 +01:00
Theo Arends
0658ae1959 Update sonoff_template.h
Fix compile error
2019-02-18 16:19:46 +01:00
Theo Arends
e898dc03e7 Add Wifi Link Connection Count
Add Wifi Link Connection (Retry) count to state message. Always starts with 1 being the initial connection.
2019-02-18 15:41:41 +01:00
Theo Arends
a6c7e3b5f4 Update xdrv_01_webserver.ino
Force restart on any template change to fix page refresh hang (#5222)
2019-02-18 15:13:37 +01:00
Theo Arends
483eb4dd44 Change Flags to Options
Change Flags to Options and enforce Activate for already active template (#5256)
2019-02-18 13:10:10 +01:00
Theo Arends
8d2b9e4734 Update xdrv_01_webserver.ino
Tune webserver
2019-02-18 11:35:49 +01:00
Theo Arends
c37a4a4398 Update xsns_01_counter.ino
Fix non floating point use function (#5265)
2019-02-18 11:06:16 +01:00
znanev
bd582980e9
Abbreviate translation for D_SENSOR_USER 2019-02-18 09:52:29 +00:00
znanev
8c73cddfed
Update Bulgarian translations 2019-02-18 09:29:23 +00:00
Theo Arends
590c883bbe
Merge pull request #5262 from gfrancesco/development
Configuration parameter to send MQTT telemetry on status change
2019-02-18 10:15:29 +01:00
Andre Thomas
5b71095e02
Make sleep for light scheme0 optional
Make sleep for light scheme0 optional with compile directive (enabled by default)
2019-02-18 08:21:57 +02:00
Andre Thomas
cee9fee756
Make pwm scheme 0 sleep optional
Make pwm scheme 0 sleep optional (enabled by default)
2019-02-18 08:19:17 +02:00
gfrancesco
deeceaf2a0 Add configuration parameter to send MQTT telemetry on status change (SetOption59) 2019-02-17 22:05:02 +01:00
Theo Arends
2c51b8d95d
Merge pull request #5260 from spock64/development
mqtt password GUI aligned to revised wifi version
2019-02-17 21:54:49 +01:00
localhost61
ba7c4cd49b fr-FR.h update 2019-02-17 21:32:07 +01:00
Jason
10bdb7c975 mqtt password GUI aligned to revised wifi version 2019-02-17 18:45:58 +00:00
Theo Arends
4d0ab9448d Fix unsupported sensor ids
Fix unsupported sensor ids popping up after a config restore
2019-02-17 16:43:52 +01:00
Theo Arends
a201dd1222 Remove command SetOption62
Remove command SetOption62 as it's functionality is replaced by user changing the device template (#5255)
2019-02-17 16:05:53 +01:00
Theo Arends
f33c59249e Fix calibration calculation
Fix calibration calculation (#5246)
2019-02-17 15:30:15 +01:00
Theo Arends
3f6db36187 Update xdrv_01_webserver.ino
Fix 404 error
2019-02-17 14:43:07 +01:00
Jason2866
94f1683616
Update de-DE.h
Template changes
2019-02-17 12:32:46 +01:00
Theo Arends
577791440e Add Configure Template menu option
Add Configure Template menu option to GUI (#5222)
2019-02-17 11:32:53 +01:00
Theo Arends
e2540f0afe Update sonoff.ino
Prep for template menu
2019-02-17 10:42:55 +01:00
Xavier MULLER
f94c2245af
Update fr-FR.h 2019-02-17 01:02:52 +01:00
Xavier MULLER
4ed82140af
Update fr-FR.h 2019-02-17 01:01:26 +01:00
Theo Arends
ed0d50a3aa Fix template support
Fix template support
2019-02-16 18:01:54 +01:00
Theo Arends
14d5f7fb54 Fix GUI password and Add rule expression
* Fix GUI wifi password acception starting with asteriks (*) (#5231, #5242)
 * Add rule expression enabled  by define USE_EXPRESSION in my_user_config.h (#5210)
2019-02-16 16:17:17 +01:00
Theo Arends
7c9720de9d
Merge pull request #5210 from laurentdong/development
Introduce Expression in Rules - Updated
2019-02-16 15:49:46 +01:00
Jason
e6029e18be Fix typos. 2019-02-16 12:51:43 +00:00
Jason
02f1052440 Amended wifi password UI to show "****".
Only store passwords which are not equal to "****".
Removes previous behaviour where wifi password with an asterisk was
ignored.
2019-02-16 12:48:16 +00:00
Theo Arends
1fde362998 Fix regression from 6.4.1.16
Fix regression from 6.4.1.16 where GPIO9 and GPIO10 connected devices did not work (#5197)
2019-02-16 11:33:29 +01:00
Theo Arends
77db7ba0ff 6.4.1.17 Change template stability
6.4.1.17 20190214
 * Change template update by removing possibility to add user module config keeping template as defined (#5222)
2019-02-14 16:48:28 +01:00
Theo Arends
166a625eb8 Revert "Hide templated GPIOs"
This reverts commit 4af4ff681d.
2019-02-14 11:13:47 +01:00
Theo Arends
4af4ff681d Hide templated GPIOs
Hide templated GPIOs in user template too (#5222)
2019-02-14 11:04:11 +01:00
Theo Arends
4e3d2c63db Fix timer GUI tab colors
Fix timer GUI tab colors
2019-02-13 17:30:07 +01:00
Jason2866
75943f5ea4
Update de-DE.h
Changed Template to Vorlage
2019-02-13 17:19:57 +01:00
Theo Arends
8cb33b86cf Fix compile error (#5216)
Fix compile error (#5216)
2019-02-13 17:03:00 +01:00
Theo Arends
74affa1440 Fix Edge and Safari margins
Fix Edge and Safari margins
2019-02-13 16:26:16 +01:00
Theo Arends
c39e2da6b5 Update GUI
Update GUI
2019-02-13 16:05:25 +01:00
Theo Arends
b9f6bf402a Add CFG_HOLDER to status 1
Add parameter CFG_HOLDER to status 1 message (#5206)
2019-02-13 10:50:02 +01:00
Laurent
4b4b3709ad Introduce Expression in Rules
Support use an expression as paramter in some rule commands, include Var<x>, Mem<x> and Ruletimer<x>.
Expression is constructed by constants (float number), variables (var<x>, mem<x>, Time, Uptime, Sunrise, Sunset),  operators and round brackets.
Currently support 6 operators, order by priority from high to low:
^  (power)
% (modulo)
*, /
+, -
Commands examples:
Var1 3.14 * (MEM1 * (10 + VAR2 ^2) - 100) % 10 + uptime / (2 + MEM2)
Ruletimer4 Time - Sunrise + MEM2/2
2019-02-12 21:46:42 -05:00
Jörg R. Weimar
e8df8c4fa6 corrected sliding hour rounding for pixels < 60 2019-02-12 15:28:45 +01:00
Theo Arends
567bc93623 Add Template GUI update
Initial support for online template change using command Template or GUI Configure Other (#5177)
2019-02-12 11:55:47 +01:00
Jörg R. Weimar
c05e42f563 Changed ws2812 clock to local time instead of UTC 2019-02-12 11:22:46 +01:00
Theo Arends
9dc445f949
Update xdsp_01_lcd.ino 2019-02-11 21:30:30 +01:00
Theo Arends
be82878bd2
Merge pull request #5196 from kevinbaluha/tsl2561interop
verify that tsl2561 works with new ads1115
2019-02-11 21:28:25 +01:00
Kevin Baluha
86a56b7b71 verify that tsl2561 works with new ads1115 2019-02-11 11:22:14 -07:00
Theo Arends
98ae3eaf54 6.4.1.16 Online template change
6.4.1.16 20190211
 * Initial support for online template change using command Template (#5177)
2019-02-11 19:21:49 +01:00
Theo Arends
de5023fb43 Fix LCD center text
Fix LCD center text (#5195)
2019-02-11 16:53:46 +01:00
Theo Arends
7146b5fd4d Fix LCD clipped center text
Fix LCD clipped center text (#5193)
2019-02-11 15:43:02 +01:00
Gabor Simon
2d892f64cd Init delay of SM16716 increased to 1 ms
As per measurements by @damondins:
https://github.com/gsimon75/Sonoff-Tasmota/pull/3#issuecomment-462059310
2019-02-10 08:33:05 +00:00
Theo Arends
e18263d796 Add optional smart plug
Add optional smart plug (#5171, #5175)
2019-02-09 17:01:44 +01:00
Theo Arends
cc8c13b240 Update xdrv_08_serial_bridge.ino
SerialBridge revisited
2019-02-09 16:08:09 +01:00
Theo Arends
b3d6857f6a Remove duplicates
Remove duplicates
2019-02-09 15:04:58 +01:00
Theo Arends
3a59084377 Enable group status messages
Add status message to former declined group commands (#5145)
2019-02-09 13:37:27 +01:00
Theo Arends
ab11096f3a Add command SerialDelimiter 128
Add command SerialDelimiter 128 to filter reception of only characters between ASCII 32 and 127 (#5131)
2019-02-09 13:25:15 +01:00
Theo Arends
10802d11dc Update sonoff_template.h
Housekeeping
2019-02-09 13:24:35 +01:00
Theo Arends
78b2bd3bd5
Merge pull request #4991 from gsimon75/sm16716
Add support for the SM16716 RGB LED controller
2019-02-08 20:07:50 +01:00
Andre Thomas
c254410723
PN532: Add // #define USE_PN532_CAUSE_EVENTS
PN532: Add // #define USE_PN532_CAUSE_EVENTS

Forgot to include it in the my_user_config.h
2019-02-08 19:26:02 +02:00
Colin Kuebler
f1247a61e5 Renamed SM16716 PWR as per https://github.com/arendst/Sonoff-Tasmota/pull/4991#pullrequestreview-201622697 2019-02-08 12:10:01 -05:00
Gabor Simon
7b93df4978
Merge branch 'development' into sm16716 2019-02-08 20:00:53 +04:00
Theo Arends
953bcd26af Update xsns_40_pn532.ino
Cleanup and use flush
2019-02-08 15:35:28 +01:00
Theo Arends
ae277f59cf Change image defines
6.4.1.15 20190208
 * Change image name BE_MINIMAL to FIRMWARE_MINIMAL (#5106)
 * Change image names USE_xyz to FIRMWARE_xyz (#5106)
2019-02-08 14:55:45 +01:00
Theo Arends
bfcc357573 Housekeeping
Housekeeping
2019-02-08 14:25:46 +01:00
Theo Arends
776486f390 Add MHZ19 Temperature to Domoticz
Add MHZ19 Temperature as Domoticz Temperature selection (#5128)
2019-02-08 13:00:11 +01:00
Theo Arends
e7f67f9b88 Update sonoff_template.h
Fix PN532 compile error
2019-02-08 12:46:07 +01:00
Theo Arends
f587510d2e
Merge pull request #5083 from kevinbaluha/ads1115_multi
add functionality to use multiple ads1115's on one i2cbus
2019-02-08 12:29:15 +01:00
Theo Arends
a7d9a1aae3
Merge pull request #5154 from emontnemery/improve_weblog
Improve weblog robustness
2019-02-08 12:27:40 +01:00
Andre Thomas
567b12e1ce
PN532: Update resource requirements in config
PN532: Update resource requirements in my_user_config.h
2019-02-08 09:59:33 +02:00
andrethomas
707b51f292 PN532: Implement HSU (Serial) 2019-02-08 01:06:54 +02:00
andrethomas
b76b615a6e PN532: Deprecate I2C support 2019-02-08 00:41:46 +02:00
Erik
6f4e658f03 Increase length of name in HA AD msg. 2019-02-07 20:54:30 +01:00
Erik
afe797fd6e Improve weblog robustness 2019-02-07 20:42:46 +01:00
andrethomas2
fd9f66ed6e
ADS1115: Housekeeping 2019-02-07 19:09:49 +02:00
Kevin Baluha
da3f4bcab7 add a check for TLS2561 to prevent false positives 2019-02-07 03:54:56 -07:00
Kevin Baluha
58c7fac140 check id reg 2019-02-07 03:40:44 -07:00
Kevin Baluha
a1ef7b254e check if TSL2561::begin returns true to prevent false positives 2019-02-07 03:08:13 -07:00
Colin Kuebler
4dc4f38323 Added USE_SM16716 to the feature list 2019-02-06 18:53:44 -05:00
Colin Kuebler
1bf7d32544 Renamed SM16716 Select to SM16716 Enable to avoid confusion with a SM16726 feature also called select 2019-02-06 18:51:54 -05:00
Jason2866
08314bd9f8
Rf Bridge Gpio12 / 14 selectable
Add GPIO12 and GPIO14 in Rf Bridge as GpioUser. This Gpio are not used and easy reachable via solder pads
2019-02-06 22:34:41 +01:00
Theo Arends
6c934ca8f6
Merge pull request #5139 from emontnemery/hass_status_sensor
Add HASS status sensor + improve HASS discovery
2019-02-06 20:29:04 +01:00
Erik
3281055438 Add HASS status sensor 2019-02-06 20:07:28 +01:00
Theo Arends
ee2660b2bc Update xdrv_10_rules.ino
Move const to flash
2019-02-05 17:45:35 +01:00
Laurent Dong
09732c9f2d Add new compare operators ("==", "!=" ,">=" and "<=") for rule
Introduce new compare operators for rules and did some optimization as well.
The new "==" operator act as a real number comparison instead of the previous "=" operator which is doing string comparison which result in FALSE for "1 + 1 = 2". For example:
rule1 on event#test do backlog var1 1;add1 1; event CompareWith2=2 endon on event#CompareWith2=%var1% do ledpower on endon
ledpower off
rule1 on
event test
2019-02-05 09:34:17 -05:00
Theo Arends
9c8af6428e Update xdrv_08_serial_bridge.ino
Fix regression
2019-02-05 14:13:53 +01:00
Theo Arends
adecf6a9ce Fixes and Tuning
Fixes and Tuning
2019-02-05 12:21:31 +01:00
Theo Arends
e9ad78c616 Update xnrg_04_mcp39f501.ino
Fix Exception 9 (Buffer overflow)
2019-02-05 10:13:22 +01:00
Gabor Simon
9b3a204ae5
Merge branch 'development' into sm16716 2019-02-04 22:14:05 +04:00
Theo Arends
b839d7e80e Add user configuration of MCP39F501
Add user configuration of MCP39F501 Energy Monitoring as used in Shelly2
2019-02-04 18:18:47 +01:00
Theo Arends
48faabc1cf Revert "Add user configuration of MCP39F501"
This reverts commit c340e2b8bd.
2019-02-04 18:17:50 +01:00
Theo Arends
c340e2b8bd Add user configuration of MCP39F501
Add user configuration of MCP39F501 Energy Monitoring as used in Shelly2
2019-02-04 18:17:17 +01:00
Theo Arends
16ec25bdff Prep for user config
Prep CSE7766 (S31 and PowR2) and MCP39F501 (Shelly2) for user configuration
2019-02-04 14:57:20 +01:00
Gabor Simon
e23d4201c1
Merge branch 'development' into sm16716 2019-02-04 16:48:49 +04:00
Theo Arends
d061d5abb8 Add user configuration
Add user configuration of HLW8012 and HJL-01/BL0937 Energy Monitoring
2019-02-04 12:53:10 +01:00
Theo Arends
6ee3d1abc6 Fix IR local echo
Fix IR local echo
2019-02-03 18:45:20 +01:00
Theo Arends
54aaaf50c9 6.4.1.14 Add diag info to status 3
6.4.1.14 20190203
 * Add SetOption32 until SetOption49 diagnostic information to Status 3 report as replacement for second property value in SetOption property name
 * Add Resolution property to Status 3 report providing previous SetOption second value property
2019-02-03 12:38:41 +01:00
Gabor Simon
654826f78d
Merge branch 'development' into sm16716 2019-02-03 10:54:23 +04:00
Theo Arends
ee5aed07d8
Merge pull request #5086 from netpok/device-waga
Device waga
2019-02-02 16:11:47 +01:00
Theo Arends
0c747a7499 Split module and GPIO ajax list
Split module and GPIO ajax list
2019-02-02 15:16:35 +01:00
Colin Kuebler
35060dfa45 Measured impact of USE_SM16716 on binary filesize 2019-02-01 20:12:13 -05:00
Colin Kuebler
d7b8a6453d Added preprocessor constant for LT_SM16716 for improved code readability
Note that this differs from other LT_* in that it's not an enum
Ensure the SM16716 codepath is only taken when the top half of light_type is LT_SM16716
2019-02-01 19:41:12 -05:00
Colin Kuebler
6d19a9c998 Generalize the SYF05 a tiny bit so it can be easily adapted to similar bulbs 2019-02-01 19:28:16 -05:00
netpok
4dc1d2f260 Fix led polarity 2019-02-02 01:10:35 +01:00
Colin Kuebler
817d0af598 No need (and pointless) to call SM16716_Init until color updates, iff using sel pin 2019-02-01 17:37:37 -05:00
Colin Kuebler
99b027852b Fixed first color command failing; need to wait for chip to power up 2019-02-01 17:33:21 -05:00
andrethomas
7e56dc538d MHZ19: Allow enable and disable of ABC 2019-02-01 18:46:37 +02:00
netpok
b927237aad Fix LED numbering 2019-02-01 15:01:45 +01:00
netpok
b2109c3eab Merge branch 'development' into device-waga 2019-02-01 14:56:28 +01:00
netpok
1bb22c06a6 Update SP10 descriptions 2019-02-01 14:55:33 +01:00
netpok
edb0cf8f69 Add WAGA life CHCZ02MB device 2019-02-01 14:54:35 +01:00
Theo Arends
de41a88bec Fix stop flash rotate functionality
Fix stop flash rotate functionality
2019-02-01 14:05:55 +01:00
Colin Kuebler
25856c323a Track sm16716 select pin state so we don't waste cycles continuously enabling/disabling color
Added some comments; disabled sm16716 debug messages by default
Removed delay after setting select pin; didn't seem to help anyway
2019-02-01 00:59:53 -05:00
Gabor Simon
737cd7a2d0 Merge branch 'sm16716' of https://github.com/gsimon75/Sonoff-Tasmota into sm16716 2019-02-01 04:38:15 +00:00
Gabor Simon
ef40aff62a Added SM16716_SEL pin to SYF05 template, enabled SM16716 support 2019-02-01 04:37:22 +00:00
Gabor Simon
bbce19a74e
Merge branch 'development' into sm16716 2019-02-01 08:27:35 +04:00
Kevin Baluha
8be3da63e1 add functionality to use multiple ads1115's on one i2cbus 2019-01-31 20:13:23 -07:00
Colin Kuebler
04f1ed1659 Implemented sm16716 select
If SM16716_SEL is specified, it will toggle it on/off depending on whether or not there is color data
2019-01-31 17:17:01 -05:00
Theo Arends
79e001caae
Merge pull request #5071 from netpok/device-sp10
Add Tuya SP10
2019-01-31 21:14:17 +01:00
andrethomas
12361df705 PN532: Fix regression 2019-01-31 22:03:47 +02:00
Colin Kuebler
1c76991c7f Added sm16716 select to the pin definitions 2019-01-31 13:28:38 -05:00
Colin Kuebler
f60dd3c06a Moved pin mode selection for sm16716 out of init function
Made void
Call SM16716_Init before setting the color
2019-01-30 18:32:37 -05:00
Colin Kuebler
4b6ddfb76f Moved PWM control to its own block while using SM16716 to skip RGB values 2019-01-30 18:15:25 -05:00
Colin Kuebler
adcfeeaed5 Fixed bug in web config page caused by merge from dev 2019-01-30 17:57:47 -05:00
Colin Kuebler
ec984ab841 Fixed compiler errors
Missing #endif oops
Vestigial function call
2019-01-30 17:32:17 -05:00
Colin Kuebler
fa7440fb9a Allow PWM while SM16716 is enabled, for mixed control devices 2019-01-30 17:28:25 -05:00
Colin Kuebler
3a43050d93 Integrated Gabor's SM16716 code into the light driver code
Removed redundant processing and variables
Added new light type to distinguish SM16716 devices
2019-01-30 17:19:40 -05:00
netpok
ed41370d24 Add Tuya SP10 2019-01-30 19:44:48 +01:00
Theo Arends
9825d6ffb6 Add resiliency to saved Settings
Add resiliency to saved Settings (#5065)
2019-01-30 16:27:17 +01:00
Theo Arends
0007df121a Update settings.ino
Fix for new installs
2019-01-30 15:14:24 +01:00
Theo Arends
2c164a8b4b 6.4.1.13 Add boot loop offset
6.4.1.13 20190130
 * Add command SetOption36 to control boot loop default restoration (#4645, #5063)
2019-01-30 14:34:31 +01:00
Theo Arends
cb13e8b05e Update xdrv_12_home_assistant.ino
Minor gain in string length
2019-01-30 14:33:20 +01:00
Gabor Simon
e2d8040338 Type changed from boolean to bool applied to xdrv_20_sm16716.ino as well
The upstream commit that changed the types in the interface:
	commit 304ac6fe44
	Author: Theo Arends <11044339+arendst@users.noreply.github.com>
	Date:   Mon Jan 28 14:08:33 2019 +0100
	    6.4.1.12 code changes (byte/boolean)
2019-01-30 07:05:38 +00:00
Gabor Simon
e0033fbaa0
Merge branch 'development' into sm16716 2019-01-29 17:38:27 +04:00
Theo Arends
ea59ed6abd
Merge pull request #5052 from Jason2866/development
Fix Alexa bug in Core v.2.4.2
2019-01-29 13:34:01 +01:00
Gabor Simon
a770f54e90 misplaced #endif fixed 2019-01-29 06:58:52 +00:00
Theo Arends
4509019d64 Fix valid button range check
Fix valid button range check
2019-01-28 18:04:33 +01:00
Jason2866
82b69885fe
Fix Alexa bug in Core 2.4.2.
Use patched Parsing.cpp only for Core 2.4.2 to fix Alexa bug
2019-01-28 17:53:25 +01:00
Theo Arends
15c5e15f7c Update support_wifi.ino
Add TLS remarks (#4952)
2019-01-28 15:13:14 +01:00
Theo Arends
304ac6fe44 6.4.1.12 code changes (byte/boolean)
6.4.1.12 20190128
 * Change code use of boolean to bool and byte to uint8_t
 * Change code uint8_t flags to bool flags
2019-01-28 14:08:33 +01:00
Theo Arends
6c8e15dadd Fix inverted buttons
Fix inverted buttons
2019-01-28 10:18:44 +01:00
Theo Arends
2fc2535c7b Remove functionality not present
Remove functionality not present (#5043)
2019-01-27 15:13:57 +01:00
Theo Arends
dc75b473cf Add support for inverted buttons
* Add core version conditional compile options to provided PWM files (#4917)
 * Add support for inverted buttons and inverted buttons without pullup (#4914)
2019-01-27 14:54:28 +01:00
Theo Arends
d1c6cfb6f9 Disable patched core PWM
Disable patched core PWM starting with core 2.5.0-beta3
2019-01-27 12:42:05 +01:00
Theo Arends
f8350d65c4
Merge pull request #5031 from andrethomas/patch-1
Disable sleep 0 for scheme 0
2019-01-27 11:25:41 +01:00
Theo Arends
269258bde5
Update xdrv_04_light.ino 2019-01-27 11:25:28 +01:00
Theo Arends
2827de40a3 Set initial legacy interlock state
Set initial legacy interlock state
2019-01-27 11:02:12 +01:00
Andre Thomas
13b8401089
Update xsns_40_pn532_i2c.ino 2019-01-27 01:11:55 +02:00
andrethomas
5dfc8a951b PN532:Allow RAW DATA usage by define 2019-01-27 00:53:52 +02:00
Andre Thomas
f23d18723e
Disable sleep 0 for scheme 0
Disable sleep 0 for scheme 0 as there is no animation required
2019-01-26 16:43:36 +02:00
Theo Arends
1fb7eb646f Add 50 mSec delay
Add 50 mSec delay between interlocked relay switch
2019-01-25 18:30:10 +01:00
Theo Arends
505c4794d1 6.4.1.11 Rewrite interlock
6.4.1.11 20190124
 * Remove command SetOption14 as it has been superseded by command Interlock
 * Remove command SetOption63 as it has been superseded by command Interlock
 * Add command Interlock 0 / 1 / 1,2 3,4 .. to control interlock ON/OFF and add up to 8 relays in 1 to 4 interlock groups (#5014)
2019-01-25 17:46:27 +01:00
Theo Arends
eab6be8bcb Fix WS2812 led command
Fix WS2812 led command to address last pixel (#5015)
2019-01-24 11:55:31 +01:00
Theo Arends
ced019eaa5 Add support for MAX44009
Add support for MAX44009 Ambient Light sensor (#4907)
2019-01-24 11:41:52 +01:00
Theo Arends
669f6c86c9
Merge pull request #4907 from llagendijk/development
Add support for MAX44009 ambient light sensor
2019-01-24 11:21:40 +01:00
Theo Arends
caabada214
Update my_user_config.h 2019-01-24 11:21:16 +01:00
Louis Lagendijk
4cdc3d5404 Implemented changes suggested by Theo (Thanks!):
- use functions from support.ino (had to split reading in Max4409Detect
  in 2 8 bits reads as the MAX44009 only supports 16 bits reads for
  luminance registers)
- Used the << instead of pow() to save a lot of xompiled code
- Improved float -> string conversion along the suggested lines
- Code size is now +/- 750 bytes (without other I2C sensors compiled in
  I think
2019-01-23 22:20:29 +01:00
Louis Lagendijk
ee3ab87d07 Made requested changes:
- Added checks for improved MAX44009 detection
- removed HTTP_SNS_ILLUMINANCE_S (show only integer in web-interface)
- removed missed readings and repeated detection
2019-01-23 16:06:06 +01:00
Theo Arends
1fe1839690 Force Hass fulltopic change
Force Hass fulltopic change (#4988)
2019-01-22 16:07:16 +01:00
Theo Arends
bda3126d9c
Merge pull request #5001 from araczkowski/development
fixed some typos in Polish translation
2019-01-22 13:45:11 +01:00
araczkowski
e13fd7983e fix 2019-01-22 12:56:35 +01:00
araczkowski
2f8b083bda fixed some typos 2019-01-22 12:53:02 +01:00
Theo Arends
7745e1e779 Fix Hass Software Watchdog
Fix Hass Software Watchdog exception during discovery (#4988)
2019-01-22 12:46:55 +01:00
Theo Arends
dcabb9c6dc 6.4.1.10 Fix Hass discovery of MHZ19(B)
6.4.1.10 20190121
 * Fix Hass discovery of MHZ19(B) sensors (#4992)
2019-01-21 22:18:19 +01:00
Gabor Simon
f833dd07ad Enabled 'warm white' pwm in the module config, code comments added, coding style improved 2019-01-21 06:44:07 +00:00
Gabor Simon
d9e0e9f89e Added missing definitions to Greek localisation header 2019-01-20 21:18:28 +00:00
Theo Arends
2b7fbe22e3 Fix MQTT host detection
Fix MQTT host detection
2019-01-20 16:57:07 +01:00
Gabor Simon
5537383352 sm16716 works via mqtt 2019-01-19 22:28:58 +00:00
Louis Lagendijk
08512fc5fa First draft of better MAX44009 detection 2019-01-19 23:27:12 +01:00
Gabor Simon
c6ddba8fd7 Started SM16716 support 2019-01-19 14:37:22 +00:00
Staars
99bb6977bf make tsl2561 compatible with SHT3x 2019-01-18 22:10:22 +01:00
Theo Arends
b5824fc361 Housekeeping 2019-01-18 10:52:18 +01:00
Mike
c963900709 If the MDNS hostname is set, use it to verify the cert name. 2019-01-17 19:09:58 -08:00
Theo Arends
e7e378f463 Add (S)SerialSend features
* Fix mDNS addService (#4938, #4951)
 * Add (S)SerialSend3 escape sequence \x to allow hexadecimal byte value (#3560, #4947)
 * Add SerialBridge command SSerialSend5 <hexdata>
2019-01-17 17:48:34 +01:00
Daniel Schroeder
092aba945f
Tiny typo fix in comment 2019-01-17 15:29:41 +01:00
Theo Arends
726ec469b9
Merge pull request #4951 from araczkowski/development
MDNS.update();
2019-01-17 12:39:15 +01:00
araczkowski
6f173a59c3 fix MDNS.update(); between ifdefs 2019-01-17 12:34:06 +01:00
andrethomas
66c39ce88c PN532: Prevent non AlphaNumberic on DATA 2019-01-17 02:10:22 +02:00
andrethomas
01ecc12f13 PN532: Prevent non AlphaNumberic on DATA 2019-01-17 01:22:51 +02:00
araczkowski
b074d94ef4 #4938 MDNS.update(); 2019-01-16 17:53:23 +01:00
Louis Lagendijk
2a9ad52776 Merge remote-tracking branch 'upstream/development' into development 2019-01-16 14:17:01 +01:00
Mike
838b113fa3 Add a define for mDNS hostname to connect to for MQTT. 2019-01-15 21:48:07 -08:00
Mike
5e06ae1d81 Do MDNS even if TLS is enabled.
I imagine this was disabled due to memory issues, but this seems to work
fine on a Sonoff Basic.
2019-01-15 18:08:28 -08:00
Mike
d2d07543b2 Do an MDNS resolve before using the cached host.
MDNS shouldn't be aggressively cached, since the IP could change. This
makes using DHCP for the host a lot easier.
2019-01-15 17:26:51 -08:00
andrethomas
44ea65a389 PN532: Segregate UID and DATA usage 2019-01-15 22:03:55 +02:00
Theo Arends
0186a97cb0 Fix allowable MAX_RULE_VARS to 16
Fix allowable MAX_RULE_VARS to 16 (#4933)
2019-01-15 16:30:20 +01:00
Theo Arends
e5fd45c9c8 6.4.1.9 Fix mDNS addService
6.4.1.9 20190115
 * Add support for Mi LED Desk Lamp with rotary switch (#4887)
 * Fix mDNS addService (#4938)
2019-01-15 16:11:42 +01:00
Theo Arends
fbf8370b4a
Update sonoff_template.h
Move rotary GPIO to non-user config for now.
2019-01-15 15:35:13 +01:00
dh.harald
9f030ae431 Change color temp with rotary when Button1 pressed 2019-01-15 00:45:19 +00:00
Peter Nyilas
b5ad2c8c06 Remove rotary_debounce from settings 2019-01-14 22:53:49 +00:00
andrethomas2
4952c4d72f Update support_rotary.ino 2019-01-14 22:53:15 +00:00
andrethomas2
8e43bb3810 Add void's to functions that have no parameters 2019-01-14 22:53:15 +00:00
dh.harald
2aac0683be Add support for Mi Desk Lamp 2019-01-14 22:53:15 +00:00
Theo Arends
fc1198c1f9 Add features
* Add support for Luminea ZX2820 Smart Socket with Energy monitoring (#4921)
 * Add define MDNS_ENABLE to control initial mDNS state (#4923)
 * Add split interlock part 1 (#4910)
2019-01-14 10:57:01 +01:00
Adrian Scillato
2e38c5ba07
Fix missing , 2019-01-13 23:35:33 -03:00
Adrian Scillato
1f8665496c
Add template for Luminea ZX2820
https://github.com/arendst/Sonoff-Tasmota/issues/4904
2019-01-13 15:33:27 -03:00
Joel Stein
bab1e4e6ac light: improve handling of dimmer_plugin (fix rules) 2019-01-13 14:52:33 +01:00
lobocobra
15e4918238 As requested in issue 824# by ascillato2, implement split interlock.
=> Split interlock of SONOFF with more than 2 channel into 2 groups
=> This is needed for shutter and similar utilization
2019-01-13 11:00:02 +01:00
Louis Lagendijk
7b9c2d6797 Added MAX44009 in my_user_config.h 2019-01-12 23:27:37 +01:00
Louis Lagendijk
5b7ba95b0c Added Max44009 support 2019-01-12 22:09:50 +01:00
Theo Arends
72bc9b8107 Add support for Smanergy KA10
Add support for Smanergy KA10 Smart Wall Socket with Energy monitoring
2019-01-12 15:16:37 +01:00
Theo Arends
a124529015 Add support for Digoo DG-SP202
Add support for Digoo DG-SP202 Smart Socket (#4891)
2019-01-11 14:29:54 +01:00
Theo Arends
0b4bed6099
Merge pull request #4884 from netpok/bugfix-pulldown
Fix GPIO16 Pull-down
2019-01-11 14:14:53 +01:00
netpok
54763329f8 Fix GPIO16 Pull-down 2019-01-10 21:41:36 +01:00
Andre Thomas
63b01ec674
Update xsns_40_pn532_i2c.ino 2019-01-10 18:22:38 +02:00
andrethomas
5f1d6aa4de PN532: Fix memcpy bugs 2019-01-10 18:19:53 +02:00
andrethomas
abce4f1a13 PN532: Prevent exception for S, 2019-01-10 18:11:49 +02:00
Theo Arends
2e101839a4 Change web authentication
Change web authentication (#4865)
2019-01-10 12:57:42 +01:00
Theo Arends
5776faf857 Update sonoff_template.h 2019-01-10 11:59:18 +01:00
Donat Marko
c8043e2f5b 🏷️ Improves Hungarian (hu-HU) translation 🇭🇺 2019-01-10 00:07:43 +01:00
Theo Arends
24fd7653eb Fix missed JSON sensors
Fix missed JSON sensors in DisplayMode > 0
2019-01-09 14:56:16 +01:00
Theo Arends
b69f173706 Fix display t (time) and add T (date)
Fix display t (time) and add T (date)
2019-01-09 14:14:55 +01:00
Andre Thomas
b7f361ebbf
PN532: Queue events through backlog 2019-01-09 12:29:12 +02:00
Theo Arends
95bd91b6db
Merge pull request #4863 from blittan/development
Clearer meaning of Static or DHCP
2019-01-09 09:13:52 +01:00
blittan
faa3e9a741 Updated Swedish translation 2019-01-08 23:05:54 +01:00
blittan
15041873c2 Clearer meaning of Static or DHCP 2019-01-08 22:12:09 +01:00
Theo Arends
4b741cd1b6
Merge pull request #4860 from andrethomas/development
PN532: Add Read/Write Data support
2019-01-08 21:28:53 +01:00
Andre Thomas
4f568fc365
Update xsns_40_pn532_i2c.ino 2019-01-08 21:15:14 +02:00
andrethomas
549080b850 PN532: Add Read/Write Data support 2019-01-08 20:53:09 +02:00
Theo Arends
c5f6823570 Add two modules
* Add support for OBI Power Socket 2 (#4829)
* Add support for YTF IR Bridge (#4855)
2019-01-08 16:27:16 +01:00
Theo Arends
efbc74b2a2 Add GPIOs to 12V DC Shelly 1
Add user GPIOs to Shelly 1 only to be used when Shelly is connected to 12V DC (#4854)
2019-01-08 15:58:35 +01:00
Theo Arends
53b8f1f877 Fix HAss Sensor Software Watchdog
Fix Home Assistant Sensor Discovery Software Watchdog restart (#4831)
2019-01-08 15:25:12 +01:00
Theo Arends
9730df7adc Fix exception 28 in display driver 2019-01-08 14:22:45 +01:00
Theo Arends
23fa3c624a Clarify Link/Power LED selection
Clarify Link/Power LED selection
2019-01-08 11:44:45 +01:00
Adrian Scillato
a38750bf66
Updated Spanish Translation 2019-01-07 18:55:26 -03:00
Jason2866
941500d1f7
Update de-DE.h 2019-01-07 19:13:11 +01:00
Theo Arends
f2835d0ae5 Update sonoff_template.h 2019-01-07 17:47:36 +01:00
Theo Arends
3dc643d9d0 Update sonoff_template.h 2019-01-07 17:44:30 +01:00
Theo Arends
148fe4aec0 Only restart if module supports it 2019-01-07 16:58:44 +01:00
Theo Arends
70619ed610 Housekeeping 2019-01-07 16:43:03 +01:00
Theo Arends
a23f01080b 6.4.1.8 Add template flags
6.4.1.8 20190107
 * Change sonoff_template.h layout regarding optional module flags like ADC0
 * Add command SetOption62 1 to force no Button/Switch pullup on dedicated modules. Currently only supported on Shelly2 (#4841)
2019-01-07 16:33:18 +01:00
Theo Arends
95f39be2ef Change button driver making it modular
Change button driver making it modular
2019-01-07 12:38:47 +01:00
Theo Arends
3d31dd1457 Disable Button/Switch 4 seconds
Disable both Buttons and Switches 4 seconds after power on to workaround Wemos and Obi startup issues.
2019-01-07 10:15:00 +01:00
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
Theo Arends
0b10f48e41 6.4.1.1 Fix most compiler warnings
6.4.1.1 20181224
 * Fix most compiler warnings
2018-12-24 18:14:25 +01:00
Theo Arends
87ddbd8f38 Release 6.4.1 2018-12-24 16:45:41 +01:00
Theo Arends
0539775cf0 Change MQTT GUI password handling
Change MQTT GUI password handling (#4723)
2018-12-24 14:31:34 +01:00
Joel Stein
a013f4de82 PS_16_DZ: fix broken if-statement 2018-12-23 21:06:10 +01:00
Theo Arends
77c07a2e00 Change FallbackTopic
Change FallbackTopic from cmnd/<mqttclient>/ to cmnd/<mqttclient>_fb/ to discriminate from Topic (#1528)
2018-12-23 14:48:57 +01:00
Theo Arends
ed6e411f7f Add optional TLS_CA_CERT
Add define USE_MQTT_TLS_CA_CERT for checking MQTT TLS against root ca using Let's Encrypt cert from sonoff_letsencrypt.h - not supported with core 2.3.0 (#4703)
2018-12-22 18:09:27 +01:00
Theo Arends
9e15a1d266
Merge pull request #4703 from fmeies/development
Added option for checking mqtt tls against root ca
2018-12-22 16:50:07 +01:00
Theo Arends
e2cd656286 6.4.0.3 Hass and Alexa fixes
6.4.0.3 20181222
 * Change Hass discovery to short MQTT messages as used by Hass 0.81 and up (#4711)
 * Change FallbackTopic detection (#4706)
 * Add define WIFI_SOFT_AP_CHANNEL in my_user_config.h to set Soft Access Point Channel number between 1 and 13 as used by Wifi Manager web GUI (#4673)
 * Fix Alexa "this value is outside the range of the device". Needs power cycle and Alexa deletion/discovery cycle. (#3159, #4712)
2018-12-22 16:13:07 +01:00
Theo Arends
a20ae4fd04
Merge pull request #4712 from gourry/master
Remove Alexa message "this value is outside the range of the device"
2018-12-22 16:08:38 +01:00
gourry
6702113308 Remove Alexa message "this value is outside the range of the device" 2018-12-22 14:56:14 +01:00
Erik
c348848200 Rename HASS discovery string constants 2018-12-22 13:21:04 +01:00
Erik
fd965eba09 Remove SetOption55 (hass_short_discovery_msg) 2018-12-22 13:16:04 +01:00
Frank Meies
59056935f9 Check for core version when enabling tls ca cert, changed names of defines
Signed-off-by: Frank Meies <19324766+fmeies@users.noreply.github.com>
2018-12-21 22:54:42 +01:00
Frank Meies
d722387344 Check for core version when enabling tls ca cert
Signed-off-by: Frank Meies <19324766+fmeies@users.noreply.github.com>
2018-12-21 22:49:46 +01:00
Theo Arends
893f64cfb6 Still need patched PWM for core 2.5.0
Still need patched PWM for core 2.5.0
2018-12-21 17:56:09 +01:00
Theo Arends
c1102a4863 6.4.0.2 Fix possible dtostrf bos
6.4.0.2 20181221
 * Fix possible dtostrf buffer overflows by increasing buffers
2018-12-21 16:17:06 +01:00
Theo Arends
a80fcd98d7 Fix wifi strongest signal detection
Fix wifi strongest signal detection (#4704)
2018-12-21 13:53:38 +01:00
Theo Arends
ec931fe5fe Change RAM usage BMP/BME
Change RAM usage BMP/BME I2C sensors
2018-12-21 11:36:55 +01:00
Frank Meies
435b3afde7 Added option for checking mqtt tls against root ca
Signed-off-by: Frank Meies <19324766+fmeies@users.noreply.github.com>
2018-12-21 11:28:47 +01:00
reey
ebd12235c4
add empty unit of measurement for any sensors 2018-12-21 10:38:44 +01:00
reey
6c158434ee
removed some errors from copy pasting.. 2018-12-20 23:27:05 +01:00
reey
c1e098403c
add missing units of measurements for energy 2018-12-20 23:06:56 +01:00
dcandi
1fb4e8bc23 pressure unit of measure reporting
Added a dedicated pressure sensor management to report back as pressure sensor and not fallback as a generic sensor in HA autodiscovery process
2018-12-19 20:51:39 +01:00
andrethomas2
8a7dd3e06d
Add support for AZ-Instrument 7798 CO2
Add support for AZ-Instrument 7798 CO2 meter/datalogger
2018-12-19 00:00:19 +02:00
andrethomas2
a6a927b24b
Fix temperature conversion
Fix temperature conversion to still use ConvertTemp() even if meter sends the value in F
2018-12-18 21:31:00 +02:00
andrethomas2
201baa3513
Add void to functions without parameters 2018-12-18 21:14:55 +02:00
Arthur de Beun
6185a08d89 Updated from originals: platformio.ini, sonoff/my_user_config.h. 2018-12-19 06:57:37 +13:00
Arthur de Beun
ff1e51613e Include changes from original into sonoff/language/bg-BG.h 2018-12-19 06:51:13 +13:00
Arthur de Beun
2b0987da47 Revert platformio.ini and my_user_config to original version,
adding line for new sensor but leaving it commented out.
2018-12-19 06:36:53 +13:00
Arthur de Beun
db65b9c23a Add support for AZ-Instrument 7798 CO2 meter/datalogger. 2018-12-18 22:32:34 +13:00
Arthur de Beun
604f341e9a Add support for AZ-Instrument 7798 CO2 meter/datalogger. 2018-12-18 22:22:41 +13:00
Theo Arends
a23226793c
Merge pull request #4663 from vladimirjendrol/development
Add sk-SK language
2018-12-17 21:57:49 +01:00
Vladimír Jendroľ
d76a71b2fd Add sk-SK language 2018-12-17 21:46:39 +01:00
Theo Arends
9b2edb1d54
Merge pull request #4656 from chaosmaster/patch-1
introduce new api-call for dimmer-devices
2018-12-17 20:07:24 +01:00
Theo Arends
b44506466a
Merge pull request #4657 from chaosmaster/patch-2
SerialLog: output CR + LF instead of just LF
2018-12-17 20:04:14 +01:00
Joel Stein
c92ce53ddf SerialLog: output CR + LF instead of just LF 2018-12-17 19:28:31 +01:00
Joel Stein
b2005fba40 introduce new api-call for dimmer-devices 2018-12-17 18:29:42 +01:00
Theo Arends
8c48ad3d93 Tune driver RF Sensor
- Free memory when driver RF Sensor is compiled but not used.
- Fix possible buffer overflow exceptions
- Add rule and hardware info to source
2018-12-17 18:06:19 +01:00
Joel Stein
9737ec560c webserver: swap index and name in module configuration 2018-12-17 16:33:07 +01:00
Gennaro Tortone
6869790e47 it-IT language updated 2018-12-17 10:23:58 +01:00
Theo Arends
8792ea48a9 6.4.0.1 New dev release 2018-12-16 16:26:40 +01:00
Theo Arends
cb0b5f6eab Merge branch 'master' into development 2018-12-16 16:22:04 +01:00
Theo Arends
44b45e15b3 Prep for merge 2018-12-16 16:14:56 +01:00
Theo Arends
1f38107043 Updates for release 6.4.0
Updates for release 6.4.0
2018-12-16 14:28:33 +01:00
Theo Arends
f83bcc2b89 Updates for release 6.4.0
Updates for release 6.4.0
2018-12-15 17:15:51 +01:00
Theo Arends
26d60e5dd7 Updates for release 6.4.0
Updates for release 6.4.0
2018-12-15 17:06:54 +01:00
Theo Arends
a7bc97a5af Prep for release
Prep for release
2018-12-15 17:02:05 +01:00
Theo Arends
fc7c1ac6b7 Updates for release 6.4.0
Updates for release 6.4.0
2018-12-15 15:55:51 +01:00
Adrian Scillato
3795667f36
Fix HomeAssistant Temp Sensor AutoDiscovery
https://github.com/arendst/Sonoff-Tasmota/issues/4627
2018-12-14 23:57:12 -03:00
andrethomas2
5f560bae13
Fix ArduinoOTA for Core 2.5.0
Fix ArduinoOTA for Core 2.5.0
2018-12-14 01:10:10 +02:00
Adrian Scillato
dcbf5a8c94
Fix ArduinoOTA for Core 2.5.0 (fix is backwards compatible)
https://github.com/arendst/Sonoff-Tasmota/issues/4619
2018-12-13 23:04:48 +00:00
Theo Arends
26e84a139e
Merge pull request #4616 from Staars/development
possibility to change measurement range for MHZ-19b
2018-12-13 16:18:43 +01:00
Staars
df4f305e3a correcting memcpy calls 2018-12-13 13:46:59 +01:00
Staars
47629a9d61 add debug code to show final command sequence 2018-12-13 12:34:51 +01:00
Erik
d3ccd668b0 Publish state message when changing effect 2018-12-12 20:32:10 +01:00
Staars
5c613040a1 mqtt messages updated 2018-12-12 10:11:19 +01:00
Staars
b6165e9a81 initial work on range-support 2018-12-12 10:03:58 +01:00
Xavier MULLER
493b76b5ac
Merge branch 'development' into localhost61-fr.FR 2018-12-12 05:22:50 +01:00
Xavier MULLER
b7610aab6f
Update fr-FR.h
SDM220 strings  reworked to fit in the space available
2018-12-12 05:14:00 +01:00
Xavier MULLER
276c11fe4e
Update fr-FR.h
Added SDM220  new strings
2018-12-12 02:44:07 +01:00
Theo Arends
160f184e7d
Merge pull request #4596 from emontnemery/hass_fix_button_switch2
More tweak of Hass switch/button
2018-12-11 22:49:47 +01:00
Erik
85c515cc97 More tweak of Hass switch/button 2018-12-11 22:00:34 +01:00
Jason2866
4df23beab1
Update de-DE.h 2018-12-11 20:27:37 +01:00
Adrian Scillato
0c90db5d85
Updated Spanish Translation 2018-12-11 17:30:51 +00:00
Theo Arends
b3e5e35cea Add more support
* Add support for decoding Theo V2 sensors as documented on https://sidweb.nl using 434MHz RF sensor receiver
 * Add support for decoding Alecto V2 sensors like ACH2010, WS3000 and DKW2012 using 868MHz RF sensor receiver
 * Add support for Manzoku Power Strip (#4590)
2018-12-11 18:00:12 +01:00
Ikarulus
808e2c073f add manzuko "power strip" 2018-12-11 15:02:14 +01:00
Theo Arends
67ec0678a3 6.3.0.17 Add features
6.3.0.17 20181211
 * Add support for TheoV2 sensors as documented on https://sidweb.nl
 * Add support for SDM220 (#3610)
 * Enhance support for MPU6050 using DMP (#4581)
2018-12-11 14:24:52 +01:00
Theo Arends
a913c4459a Fix language file
Fix language file
2018-12-11 13:58:37 +01:00
Theo Arends
f573d92207
Merge pull request #3610 from Dees7/development
SDM220 Support
2018-12-11 13:12:36 +01:00
Theo Arends
00792bcaf7
Update my_user_config.h 2018-12-11 13:12:19 +01:00
Theo Arends
400529cd8f
Merge pull request #4581 from Staars/development
Add DMP-use to MPU-6050
2018-12-11 11:33:51 +01:00
Dees7
9980707a0a
Merge branch 'development' into development 2018-12-11 15:22:16 +05:00
Adrian Scillato
bc30a18ade
Corrected Domoticz Temp published from MPU6050 2018-12-11 00:57:41 +00:00
Adrian Scillato
e5d3c3b793
USE_MPU6050_DMP moved to my_user_config.h 2018-12-10 20:04:48 +00:00
Adrian Scillato
384cc5cb16
USE_MPU6050_DMP moved to my_user_config.h 2018-12-10 20:03:36 +00:00
Adrian Scillato
4fb6773ffb
Update my_user_config.h 2018-12-10 19:28:22 +00:00
Erik
9f515c6c08 Add support for device registry 2018-12-10 19:51:47 +01:00
Theo Arends
a516b25c1b Clean and shrink lights
Clean and shrink lights
2018-12-09 16:45:26 +01:00
Staars
140aa8780a add DMP mode to MPU-6050 2018-12-09 09:34:22 +01:00
Erik
9b5e90e24e Fix reversed logic when announcing buttons / switches 2018-12-08 15:24:16 +01:00
Theo Arends
4c2110749c
Merge pull request #4562 from emontnemery/force_local
Enable forced local operation when button- or switchtopic is set
2018-12-08 10:47:11 +01:00
Erik
ebf74ab424 Update Hass discovery 2018-12-08 09:43:48 +01:00
Erik
a65041fee5 Enabled forced local operation when button- or switchtopic is set 2018-12-08 08:44:59 +01:00
Erik
d8cf001304 Announce RGBW light, add 'White' command 2018-12-07 21:32:01 +01:00
Theo Arends
dc63d0f91c
Merge pull request #4554 from emontnemery/fix_hass_switch
Fix HASS discovery of switches
2018-12-07 17:43:14 +01:00
Erik
fe9103eb68 Fix HASS discovery of switches 2018-12-07 17:19:14 +01:00
Andre Thomas
99e6d7f2ff
MCP230xx driver - add interrupt retention
MCP230xx driver - add interrupt retention over teleperiod.
2018-12-07 01:09:33 +02:00
andrethomas
46816f2f07 MCP230xx - Add Interrupt Retain 2018-12-07 00:55:44 +02:00
Theo Arends
9a3c3895fb Fix Domoticz Fanspeed
Fix Domoticz Fanspeed
2018-12-06 15:03:42 +01:00
Theo Arends
61aa428646 6.3.0.16 - Bump version
6.3.0.16 20181201
 * Add support for iFan02 Fanspeed in Domoticz using a selector (#4517)
 * Add Announce Switches to MQTT Discovery (#4531)
2018-12-06 11:17:25 +01:00
Theo Arends
9471163d86
Merge pull request #4531 from emontnemery/hass_announce_switch
MQTT Discovery - Announce switches
2018-12-06 11:02:40 +01:00
Theo Arends
e64c8d61c9
Update sonoff.ino 2018-12-06 11:01:57 +01:00
Theo Arends
dfa0d2ef11 Add Domoticz Selector for Fanspeed
Add support for iFan02 Fanspeed in Domoticz using a selector (#4517)
2018-12-06 10:49:49 +01:00
Andrzej
3777dbe45c localization for Polish - KNX, timers, etc. 2018-12-06 09:52:02 +01:00
Theo Arends
597cc42f93
Merge pull request #4538 from blittan/development
Initial translation to Swedish
2018-12-06 08:55:17 +01:00
Adrian Scillato
3b68d606ab
Matched the order of days with Tasmota Timers 2018-12-05 20:14:11 -03:00
Adrian Scillato
5f35f7ebae
Added missing " 2018-12-05 20:11:54 -03:00
Adrian Scillato
eda86acaa0
Added Key to select Swedish Translation 2018-12-05 20:01:45 -03:00
Gunnar Norin
a36ead52fa
Initial translation to Swedish 2018-12-05 23:25:25 +01:00
Erik
94786d3217 Fix logic for ON/OFF vs TOGGLE 2018-12-05 20:20:36 +01:00
Theo Arends
4b287ab4cb Final fix compile error (#4509)
Final fix soft_spi_flg compile error (#4509)
2018-12-05 12:23:42 +01:00
Erik
be19af15e2 Announce switches 2018-12-04 21:32:02 +01:00
Adrian Scillato
24ef9ab6b8
Fix Compilation issue with STAGE Core
Now the Stage core has the the same STR macro defined in sonoff.h.
2018-12-03 17:38:31 -03:00
andrethomas
dcaf6164d4
Add support for GPIO02 for newer Sonoff Basic
Add support for GPIO02 for newer Sonoff Basic
2018-12-03 17:34:35 +02:00
andrethomas
b148c8bbe5
Add GPIO2 for Sonoff Basic Template
Add GPIO2 for Sonoff Basic Template
2018-12-03 17:30:06 +02:00
andrethomas2
a2e865bb44
Add dummy soft_spi_flg to satisfy compiler
@arendst Just adding this, for now, to satisfy the compiler until you get time to merge the rest of the Software SPI support.
2018-12-02 18:53:49 +02:00
Erik
74172f14d3 Further improve Hass auto discovery 2018-12-02 16:39:59 +01:00
andrethomas2
f3d625d06d
Update _changelog.ino 2018-12-02 11:18:29 +02:00
Theo Arends
f4348f19dc
Merge pull request #4488 from winstona/hc-sr04-newping
HC-SR04: switch to using NewPing libraries directly
2018-12-02 09:50:35 +01:00
Adrian Scillato
7e09195083
Delete duplicated min and max functions 2018-12-01 19:16:32 -03:00
Adrian Scillato
c68fe7e7ad
RULES: Added BREAK as an alternative ENDON 2018-12-01 19:00:34 -03:00
andrethomas2
e37dbd1f6a
Update xsns_22_sr04.ino 2018-12-01 23:15:19 +02:00
Adrian Scillato
7f2b3643f5
RULES: Added BREAK as an alternative ENDON
RULES: Added BREAK as an alternative ENDON that will stop the execution of the following rules.

If a rule that ends with BREAK, is triggered, then the following rules of that set will not be executed. This is useful for cases like: https://github.com/arendst/Sonoff-Tasmota/issues/4477
2018-12-01 18:12:33 -03:00
Adrian Scillato
98a2e6e175
Added Support for ButtonN and SwitchN 2018-12-01 16:26:15 -03:00
Theo Arends
eb3c1a327d 6.3.0.15 Update dynamic sleep
6.3.0.15 20181201
 * Removed command SetOption36 (#4497)
 * Add command SetOption60 0/1 to select dynamic sleep (0) or sleep (1) (#4497)
2018-12-01 18:53:42 +01:00
andrethomas
0bd4ac8eea
Update support_wifi.ino 2018-12-01 18:58:26 +02:00
andrethomas
a1c464d34c
Bump version to 0x0603000F
Bump version to 0x0603000F to make sure new sleep command takes effect on 50 as default for upgrades where sleep is < 50.
2018-12-01 18:55:06 +02:00
andrethomas
6050cd40f3 Merge sleep command 2018-12-01 18:47:25 +02:00
Theo Arends
694c29508d
Merge pull request #4492 from localhost61/development
Update fr-FR.h
2018-12-01 10:26:39 +01:00
Xavier MULLER
be86811628
Update fr-FR.h
Synced with changes since  v6.2.1.7
2018-12-01 02:48:10 +01:00
andrethomas
5f402c8f34 Fix sleep->SetOption36 transition 2018-12-01 00:18:08 +02:00
andrethomas
3613946f18
Prevent sleep and SetOption36 being used concurrently
Prevent sleep and SetOption36 being used concurrently
2018-11-30 20:00:20 +02:00
andrethomas
33f85b2023
Upd settings.ino - set sleep=0 when SetOption36>0
Update settings.ino - set sleep=0 when SetOption36>0
2018-11-30 19:55:22 +02:00
Theo Arends
d7df73784f Housekeeping 2018-11-30 12:04:17 +01:00
Winston Ametsitsi
b03c761eee switch to using NewPing lib directly for sr04
add NewPing-1.9.1 lib
2018-11-29 19:45:40 -08:00
Theo Arends
8b5bbd773e Update display and epaper drivers
Update display and epaper drivers
2018-11-29 17:50:45 +01:00
Theo Arends
4d556d159f Merge branch 'development' of https://github.com/arendst/Sonoff-Tasmota into development 2018-11-29 15:13:33 +01:00
Theo Arends
7383ab4f45 Add support for Teckin US
Add support for Teckin US Wifi Smart Switch with Energy Monitoring (#4481)
2018-11-29 15:13:28 +01:00
Theo Arends
20480cee47
Merge pull request #4478 from emontnemery/hass_fix_light
Small improvements to Hass MQTT discovery
2018-11-28 20:54:20 +01:00
Erik
259d9f5f6c Small improvements to Hass MQTT discovery 2018-11-28 20:43:36 +01:00
Theo Arends
e3bff56092 Fix possible overflow situation
Fix possible overflow situation
2018-11-28 14:06:02 +01:00
Theo Arends
9738f640cf
Merge pull request #4473 from chaosmaster/patch-1
PS_16_DZ: cleanup/optimize
2018-11-28 09:21:15 +01:00
Joel Stein
0ce7537371 PS_16_DZ: cleanup 2018-11-28 00:04:06 +01:00
Erik
6d3223f962 Hass: Restart if topic is changed 2018-11-27 19:31:45 +01:00
Joel Stein
f75c4a27ad PS_16_DZ: leave space for trailing 0-byte 2018-11-27 19:01:06 +01:00
Joel Stein
49403243d5 PS_16_DZ: further optimization 2018-11-27 18:02:00 +01:00
Joel Stein
6825b78153 PS_16_DZ: optimize for size 2018-11-27 17:18:41 +01:00
Joel Stein
5099d8f20d PS_16_DZ: reduce buffer-size and actually check for overflow 2018-11-27 16:52:09 +01:00
Joel Stein
7a2c5154aa PS_16_DZ: only update brightness if it actually changed 2018-11-27 16:11:14 +01:00
Theo Arends
be358b3314 Prep for Software SPI
Prep for Software SPI used by some displays
2018-11-27 15:11:10 +01:00
Theo Arends
fd20706ef7 Move static to dynamic buffers
* Add support for SM Smart Wifi Dimmer PS-16-DZ (#4465)
 * Move some static (serial) buffers to dynamic buffers
2018-11-27 14:38:09 +01:00
Theo Arends
0df7df9b08 Fix dynamic buffer handling
Fix dynamic buffer handling
2018-11-27 12:18:27 +01:00
Theo Arends
3f33e3efa8 Add dynamic buffer space
Add dynamic buffer space
2018-11-27 12:09:36 +01:00
Theo Arends
a360ac4ef6 Add dynamic buffer space
Make serial buffer space reservation dynamic
2018-11-27 11:55:54 +01:00
Theo Arends
33a158fb0c
Merge pull request #4465 from chaosmaster/ps16dz
Add support for PS-16-DZ Dimmer
2018-11-27 11:16:23 +01:00
Theo Arends
101cf83d7d
Update settings.ino 2018-11-27 10:54:34 +01:00
Adrian Scillato
e3d1971e51
Add Command CalcRes 2018-11-26 23:08:23 -03:00
Joel Stein
281166841b PS_16_DZ: cleanup code 2018-11-27 02:04:59 +01:00
Joel Stein
7e34f402c9 PS_16_DZ: GPIO13 => LED1 2018-11-27 01:30:05 +01:00
Adrian Scillato
e46a81c193
6.3.0.14 Added command CalcRes 2018-11-26 21:29:06 -03:00
Adrian Scillato
f115120d9b
6.3.0.14 Added Calc Resolution 2018-11-26 21:27:07 -03:00
Adrian Scillato
f7a8f39f89
Added command CalcRes 2018-11-26 21:22:44 -03:00
Adrian Scillato
5d11a4f444
Added command CalcRes 2018-11-26 21:16:47 -03:00
Adrian Scillato
c51e657ed9
Added command CalcRes 2018-11-26 21:16:09 -03:00
Adrian Scillato
0b988c561b
Added command CalcRes 2018-11-26 21:14:12 -03:00
Joel Stein
7931b3433a PS_16_DZ: bright as int 2018-11-27 01:07:57 +01:00
Theo Arends
c3f07f0bd2 Fix WifiManager functionality
Fix WifiManager functionality on initial installation (#4433)
2018-11-26 17:00:18 +01:00
Joel Stein
6f6e4382ec PS_16_DZ: change logprefix to PSZ 2018-11-26 15:27:51 +01:00
Joel Stein
375a684adf PS_16_DZ: merge development 2018-11-26 15:09:35 +01:00
Joel Stein
87d7609b97 PS_16_DZ: init sequence as 0 2018-11-26 13:53:33 +01:00
Joel Stein
3650ab5fd3 PS_16_DZ: use unix-timestamp as sequence 2018-11-26 13:49:21 +01:00
Joel Stein
41ddab2cbe PS_16_DZ: flush serial after sending command 2018-11-26 13:29:00 +01:00
Joel Stein
a6124c376e Revert "PS_16_DZ: wait for acknoledgement before sending more commands"
This reverts commit 7203d6ad03.
2018-11-26 13:27:30 +01:00
Theo Arends
b4e2fe0439 6.3.0.13 Add command SetOption59
6.3.0.13 20181126
 * Add command SetOption59 0/1 to change state topic from tele/STATE to stat/RESULT (#4450)
2018-11-26 13:01:42 +01:00
Theo Arends
eb851a9a90
Merge pull request #4450 from emontnemery/hass_send_tele
WIP - Support sending tele/STATUS as state/RESULT
2018-11-26 12:49:43 +01:00
andrethomas
acdbd39124
Fix math in LoadAvg
Fix the math in LoadAvg calculation. To keep average we take away one Nth of loops and add one Nth of current cycle ration to the average.

Now the math makes more sense... maximum load average on setoption36 0/1 = 999 (as it should be)
2018-11-26 11:37:15 +02:00
Joel Stein
7203d6ad03 PS_16_DZ: wait for acknoledgement before sending more commands 2018-11-26 03:20:15 +01:00
Joel Stein
1dc7a5847c PS_16_DZ: correctly parse sequence 2018-11-26 02:22:18 +01:00
Joel Stein
283f023f29 PS_16_DZ: move in nicelist 2018-11-26 01:19:09 +01:00
Joel Stein
985db96f91 PS_16_DZ: print correct sequence 2018-11-26 00:47:00 +01:00
Joel Stein
b7a18f7bcc PS_16_DZ: tryfix dimming 2018-11-26 00:31:45 +01:00
Joel Stein
977822f131 PS_16_DZ: start must be 'A' 2018-11-25 23:41:11 +01:00
Joel Stein
0f2ea2800e PS_16_DZ: start must be 'A' 2018-11-25 23:39:44 +01:00
Joel Stein
e024ca3beb PS_16_DZ: start sequence with 1529000000000 2018-11-25 23:09:58 +01:00
Joel Stein
5ce19fc3f7 PS_16_DZ: don't use String class 2018-11-25 22:43:28 +01:00
Erik
eda60b6124 Support sending tele/STATUS as state/RESULT 2018-11-25 21:27:19 +01:00
Nick Galfas
3af44ab81f
Update el-GR.h
Improved Greek translation including the latest versions text fields
2018-11-25 20:19:20 +02:00
Theo Arends
243ec16d80 Fix another calcuation error
Fix another calcuation error
2018-11-25 17:31:53 +01:00
andrethomas
0b14a95082
Remove assumption of 100% to report correctly
Remove the assumption of 100% loop duty cycle as we want an accurate loop load average and not a percentage as such - so if it overshoots the value stored for setoption36 this should be known by looking at the load average and not be distorted by reducing it to 100 basis points on the assumption that my_acitivity took as long as setoption36.
2018-11-25 17:52:07 +02:00
Theo Arends
05be1ee21c Fix exception due to divide by 0
Fix exception due to divide by 0
2018-11-25 16:41:29 +01:00
andrethomas
7c84f892fc Add target loop delay to telemetry 2018-11-25 14:29:53 +02:00
andrethomas
c22fcc2a3a
Update CPU average load function
Remove unnecessary manipulations :)
2018-11-24 19:00:42 +02:00
Theo Arends
52eeef95f0 Add CPU average load
Add CPU average load to state message (#4431)
2018-11-24 17:43:18 +01:00
Theo Arends
164db4e12b Clean up
Clean up
2018-11-24 17:22:06 +01:00
Theo Arends
4700e49d70
Update sonoff.ino 2018-11-24 17:16:27 +01:00
andrethomas
0e56044eb5
Add main loop load average
Add main loop avarage duty cycle measured against setoption36 value to telemetry data as LoadAvg
2018-11-24 18:12:49 +02:00
Theo Arends
eada06a66c
Merge pull request #4430 from chaosmaster/patch-1
OBI: make UART user configurable
2018-11-24 16:58:26 +01:00
Joel Stein
f391c0fd65 OBI: make UART user configurable 2018-11-24 16:47:26 +01:00
Joel Stein
9574fc7c65 PS_16_DZ: fixes 2018-11-24 16:24:44 +01:00
Theo Arends
4b57bff728 Rename Module 45 to Blitzwolf SHP
Rename Module 45 to Blitzwolf SHP as it serves both SHP2 and SHP6 (among others)
2018-11-24 16:08:53 +01:00
andrethomas2
01db8fa25b
Update _changelog.ino 2018-11-24 13:28:32 +02:00
Theo Arends
4aadc328ce
Merge pull request #4423 from andrethomas/patch-1
Increase delays before web ui is refreshed
2018-11-24 12:05:08 +01:00
Theo Arends
9608bfd2e5
Update xdrv_01_webserver.ino 2018-11-24 12:04:30 +01:00
Theo Arends
263839a1a0 Fix MqttRetry values above 255
Fix MqttRetry values above 255 seconds (#4424)
2018-11-24 12:01:13 +01:00
andrethomas
ef4e2b297c
Decrease update webui refresh to 5 seconds
Decrease update webui refresh to 5 seconds
2018-11-24 13:00:45 +02:00
andrethomas
a6983d52f7
Increase delays before web ui is refreshed
The current 5-second delay before refreshing web ui after settings were changed is not always sufficient as wifi can take up to 10 seconds to re-connect and be available on some wireless networks, depending on the device's RSSI.

This change increases the delay from 5 seconds to 10 seconds which have been tested down to RSSI levels of 25 to be sufficient.

This change also increases the refresh delay when a local OTA is uploaded to 20 seconds which allows enough time for the cp: process to complete and the device to reconnected to wifi under >= 25 RSSI conditions.
2018-11-24 12:46:32 +02:00
Joel Stein
34da2859ba PS_16_DZ: fixes 2018-11-24 05:08:14 +01:00
Joel Stein
55b287d6da PS_16_DZ: fix define in xdrv04 2018-11-24 04:09:57 +01:00
Joel Stein
dfc154ab16 PS_16_DZ: remove unwanted file 2018-11-24 03:38:55 +01:00
Joel Stein
64d6ef86ce PS_16_DZ: initial support 2018-11-24 03:29:32 +01:00
Theo Arends
763a280903 Fix MPU6050 JSON message
Fix MPU6050 JSON message (#4412)
2018-11-23 11:04:05 +01:00
Theo Arends
8c1b966004 Move IrSend rawdata to stack
Move IrSend rawdata from heap to stack
2018-11-22 17:58:07 +01:00
andrethomas
c436ed5d3d
Update boot delay code
Since the driver boot delay has been removed, this is a better strategy for getting a smoother boot cpu cycle vs loop delay.
2018-11-22 17:13:55 +02:00
Theo Arends
6c87ab205a Fix possible strncat buffer overflows
Fix possible strncat buffer overflows
2018-11-22 15:41:30 +01:00
Theo Arends
d71ae77900 6.3.0.12 Change boot delays
6.3.0.12 20181122
 * Remove delays introduced in 6.3.0.11 (#4233)
 * Add additional start-up delay during initial wifi connection
 * Add support for I2C MGC3130 Electric Field Effect sensor by Christian Baars (#3774, #4404)
 * Add initial support for Hass sensor discovery (#4380)
2018-11-22 12:25:18 +01:00
Theo Arends
29f46c5804
Merge pull request #4380 from emontnemery/hass_announce_dht_sensor
Add support for sensor discovery
2018-11-22 12:16:41 +01:00
Theo Arends
8cae2a5ba9
Merge pull request #4403 from ascillato/patch-1
Fix PIO Linter Warning
2018-11-22 12:04:28 +01:00
Theo Arends
a9c5eeece1
Merge pull request #4404 from Staars/development
support for MGC3130
2018-11-21 21:17:17 +01:00
Christian
02dd07cb95
Language keys for MGC3130 2018-11-21 21:09:17 +01:00
Christian
ae9d66bfa9
Language keys for MGC3130 2018-11-21 21:08:46 +01:00
Christian
0d6df5ed61
Language keys for MGC3130 2018-11-21 21:08:19 +01:00
Christian
08ae15db6f
Language keys for MGC3130 2018-11-21 21:07:42 +01:00
Christian
20d3343e85
Language keys for MGC3130 2018-11-21 21:07:13 +01:00
Christian
ba6433ccf7
Language keys for MGC3130 2018-11-21 21:06:32 +01:00
Christian
87a9d3e0cf
Language keys for MGC3130 2018-11-21 21:06:02 +01:00
Christian
e08f2126b6
Language keys for MGC3130 2018-11-21 21:05:34 +01:00
Christian
3c3ae73e60
Language keys for MGC3130 2018-11-21 21:05:09 +01:00
Christian
1961e5b9d9
Language keys for MGC3130 2018-11-21 21:04:41 +01:00
Christian
65c848e4a2
Language keys for MGC3130 2018-11-21 21:04:15 +01:00
Christian
70188e0aeb
Language keys for MGC3130 2018-11-21 21:03:41 +01:00
Christian
c5223b5af8
Language keys for MGC3130 2018-11-21 21:03:16 +01:00
Christian
4af915ff56
Language keys for MGC3130 2018-11-21 21:02:39 +01:00
Christian
16e65c1541
Language keys for MGC3130 2018-11-21 21:01:50 +01:00
Christian
9bf5b17351
Language keys for MGC3130 2018-11-21 21:01:09 +01:00
Christian
039e228cfe
Language keys for MGC3130 2018-11-21 20:59:44 +01:00
Christian
f4115c17fd
Language key for MGC3130 2018-11-21 20:59:08 +01:00
Christian
855cc53d93
Disable MGC3130 by default 2018-11-21 20:51:15 +01:00
Erik
bee50cba06 Add support for sensor discovery 2018-11-21 19:21:51 +01:00
Staars
0924d7a2e6 first integration of the driver into the TASMOTA-repo 2018-11-21 19:13:52 +01:00
Adrian Scillato
4cbbfd8a02
Fix PIO Linter Warning
This fixes the linter warning for Platformio due to module is defined in platformio.ini and also my_user_config.h

If module is not defined in my_user_config.h nor in platformio.ini, sonoff_post.h will make SONOFF_BASIC as the default.

This works for both Arduino and Platformio

This will work as the same as #define MY_LANGUAGE works. If you define it in my_user_config.h, the compiler will use that language, if not defined, the compiler will use en-GB as the default language.
2018-11-21 15:13:29 -03:00
Adrian Scillato
c32b7b50e9
Fix warning when compiling sonoff-sensors.bin 2018-11-21 13:58:10 -03:00
Theo Arends
25f24cd318 Change default WIFI_CONFIG_TOOL
Change default WIFI_CONFIG_TOOL from WIFI_WAIT to WIFI_RETRY in my_user_config.h (#4400)
2018-11-21 17:19:06 +01:00
Theo Arends
070843200f Add IR Raw data control
* Add command SetOption58 0/1 to enable IR raw data info in JSON message (#2116)
 * Add command IRSend <frequency>|0,<rawdata1>,<rawdata2>,.. to allow raw data transmission (#2116)
2018-11-21 16:36:10 +01:00
Theo Arends
0924dfcfb7 Update IRRemoteESP8266 library
Update IRRemoteESP8266 library from 2.2.1 to 2.5.2
2018-11-20 15:53:56 +01:00
Theo Arends
23c16e58a9 Housekeeping
Housekeeping
2018-11-20 15:00:24 +01:00
Theo Arends
76829d4ced 6.3.0.11 Add delays
6.3.0.11 20181120
 * Add delays removed in 6.3.0.9 (#4233)
 * Allow user definition of defines WIFI_RSSI_THRESHOLD (default 10) and WIFI_RESCAN_MINUTES (default 44)
 * Add support for Fujitsu HVac and IrRemote (#4387)
2018-11-20 14:10:32 +01:00
Theo Arends
7218d86722
Merge pull request #4387 from dizel-by/development
Fujitsu HVAC support
2018-11-20 13:31:27 +01:00
Theo Arends
5ee6922da9 Fix wifi re-scan connection baseline
Fix wifi re-scan connection baseline
2018-11-20 12:03:42 +01:00
Adrian Scillato
ca24d20551
Update de-DE.h
#4388
2018-11-20 00:08:29 -03:00
Theo Arends
c502f0934f Add command SetOption57
* Add command SetOption57 0/1 to enable wifi network re-scan every 44 minutes with a rssi threshold of 10 to select highest RSSI (#3173)
 * Fix MQTT connection error after restart
2018-11-19 23:06:42 +01:00
Alexander Savchenko
bf90e60f99 Fujitsu HVAC support 2018-11-19 20:45:37 +02:00
Theo Arends
93cb0a18a9 Update support_wifi.ino
Fix undefine
2018-11-19 18:14:53 +01:00
Theo Arends
e34a1f0719 Add wifi network scan
* Add command SetOption56 0/1 to enable wifi network scan and select highest RSSI (#3173)
2018-11-19 18:07:25 +01:00
Norbert Richter
88528d8ef3 Fix NovaSDS sensor rare checksum failure
- NodeSDS send/rec rewritten (common func)
2018-11-19 12:56:54 +01:00
Theo Arends
1708131ef5
Merge pull request #4377 from evzone/development
Added support for LG wall hvac
2018-11-19 11:00:48 +01:00
Theo Arends
288fefebb7
Update xdrv_05_irremote.ino 2018-11-19 11:00:24 +01:00
Theo Arends
fe7f154b25
Update my_user_config.h 2018-11-19 10:59:01 +01:00
digiblur
a2ca0dd567
Add SK03 Outdoor Module with Power Monitoring
Couldn't add the module using Generic as the power monitoring had to be added.

See the Tasmota wiki entry for more info:  https://github.com/arendst/Sonoff-Tasmota/wiki/SK03-Outdoor-Smart-Plug-w--Power-Monitoring-(HLW8012-&-Tuya-Module)
2018-11-18 17:02:09 -06:00
andrethomas2
809ae966df
Update _changelog.ino 2018-11-18 20:03:59 +02:00
Theo Arends
50f4f0300b Update sonoff.h
Update default loop sleep delay from 10 to 50
2018-11-18 17:25:39 +01:00
Theo Arends
4899178362 6.3.0.10 Add command SetOption36
6.3.0.10 20181118
 * Add command SetOption36 0..255 milliseconds (10 default) to tune main loop dynamic delay
2018-11-18 16:49:02 +01:00
Theo Arends
18997e841f 6.3.0.9 Add dynamic delay in loop
6.3.0.9 20181118
 * Moved command SetSensorXX to debugging driver freeing user code space
 * Add dynamic delay to main loop providing time for wifi background tasks
 * Remove delays introduced in 6.3.0.1 (#4233)
2018-11-18 15:02:52 +01:00
evzone
beb9d0ff84 add IR support to LG wall HVAC systems 2018-11-18 11:35:53 +02:00
evzone
13c7958c99 Revert "add support to LG wall HVAC systems"
This reverts commit 68e7803651.
2018-11-18 11:28:23 +02:00
evzone
68e7803651 add support to LG wall HVAC systems 2018-11-18 11:15:54 +02:00
evzone
1900aec318 Revert "commented user override to pass travis ci test"
This reverts commit 7e576a58f9.
2018-11-18 11:08:48 +02:00