Commit Graph

495 Commits

Author SHA1 Message Date
thirug010 6b013144ab Updated the code based on the feedback
* Updated xdrv_01_webserver.ino to show dimmer slider2 by default for Tuya Dimmer Module

 * Updated xdrv_16_tuyadimmer.ino remove the use of XdrvMailbox and removed the pow functions now the size for 6.5.0 build is 510kb

 * updated sonoff.ino to hold current device id
2019-05-18 18:13:57 -05:00
thirug010 d59d631e40 New Tuya Serial Based Devices support
Updated the Code to support most of the new Tuya Serial devices like 4Gang Serail switch, 1 Dimmer + 1 relay, 3 Gang  ...
2019-05-17 22:03:53 -05:00
Theo Arends f9ca25755b Add experimental light sensor code to ADC0
Add experimental light sensor code to ADC0. See xsns_02_analog.ino for information.
2019-05-16 18:43:23 +02:00
Theo Arends 038079a865 Add rule support for single JSON value pair
Add rule support for single JSON value pair like {"SSerialReceived":"on"} by expanding it to {"SSerialReceived":{"Data":"on"}} allowing for trigger SSerialReceived#Data=on (#5638)
2019-05-15 16:31:13 +02:00
Theo Arends 0b6c62f5f9 Add support for Shelly 1PM Template
Add support for Shelly 1PM Template {"NAME":"Shelly 1PM","GPIO":[56,0,0,0,82,134,0,0,0,0,0,21,0],"FLAG":2,"BASE":18} (#5716)
2019-05-13 18:26:07 +02:00
Theo Arends ad54ece2fb 6.5.0.10 Enable ADC0 by default
6.5.0.10 20190513
 * Enable ADC0 by default in my_user_config.h (#5671)
 * Add user configurable ADC0 to Module and Template configuration compatible with current FLAG options (#5671)
2019-05-13 15:56:01 +02:00
Theo Arends e8e7b25b80 6.5.0.9 Add command SetOption63
6.5.0.9 20190418
 * Add command SetOption63 0/1 to disable relay state feedback scan at restart (#5594, #5663)
 * Fix TasmotaSerial at 9600 bps solving DFPlayer comms (#5528)
 * Fix Shelly 2.5 overtemp
2019-04-18 16:24:46 +02:00
Theo Arends 5e810f1ff3 Add Shelly 2.5 overtemp functionality
* Add all temperature, humidity and pressure for global access
 * Add Shelly 2.5 overtemp functionality
 * Fix Shelly 2.5 I2C address priority issue when VEML6070 code is present by disabling VEML6070 for Shelly 2.5 (#5592)
2019-04-15 18:12:42 +02:00
Theo Arends 4fa4397ab5 6.5.0.8 Fixes syslog and SerialDelimiter
6.5.0.8 20190413
 * Fix use of SerialDelimiter value 128 (#5634)
 * Fix lost syslog connection regression from 6.5.0.4
2019-04-13 15:52:32 +02:00
Theo Arends 2ec7d1853e
Merge pull request #5634 from revk/development
Fix use of SerialDelimiter value 128
2019-04-13 15:44:46 +02:00
Theo Arends 11146c2225 Fix lost syslog connection regression from 6.5.0.4
Fix lost syslog connection regression from 6.5.0.4
2019-04-13 15:12:25 +02:00
RevK 7d055b2271
Fix use of SerialDelimiter value 128
This was allowing printable characters when set to 128, but also allowed all characters that are not 128.
2019-04-13 06:51:11 +01:00
Theo Arends a454ab71de Update LedMask info
- Add hexadecimal info to command LedMask
- Add LedMask to Status
2019-04-10 15:02:38 +02:00
Theo Arends df6645481e 6.5.0.7 Add command LedMask
6.5.0.7 20190410
 * Add command LedMask to assign which relay has access to power LED (#5602, #5612)
2019-04-10 14:26:36 +02:00
Theo Arends be385ecb5c Add command WebColor
* Add rule Http#Initialized
 * Add command WebColor to change non-persistent GUI colors on the fly
   Use a rule like:
   rule3 on http#initialized do webcolor {"webcolor":["#eeeeee","#181818","#4f4f4f","#000000","#dddddd","#008000","#222222","#ff0000","#008000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999","#000000"]} endon
   or
   rule3 on http#initialized do webcolor {"webcolor":["#eee","#181818","#4f4f4f","#000","#ddd","#008000","#222"]} endon
   to make color changes persistent)
2019-04-08 22:37:39 +02:00
Theo Arends ce53ee07e7 Fix template activation and/or module selection regression from 6.5.0.4 (#5598)
Fix template activation and/or module selection regression from 6.5.0.4 (#5598)
2019-04-08 13:26:17 +02:00
Theo Arends c673ea1728 Make MI Desk Lamp optional
Make MI Desk Lamp optional
2019-04-05 15:41:01 +02:00
Theo Arends 5e1cbcf94f Make MI Desk Lamp optional
Make MI Desk Lamp optional
2019-04-05 15:27:06 +02:00
Jason2866 82ef09b684
Make MI Desk Lamp default off
Mi Desk Lamp can be activated in my_user_config.h by setting uncommenting //#define ROTARY_V1
2019-04-05 08:41:26 +02:00
Theo Arends 2aad0567bf Change some defines to const
Change some defines to const
2019-03-30 16:29:27 +01:00
Theo Arends e1c92b701b Change NULL to nullptr
Change NULL to nullptr
2019-03-26 18:26:50 +01:00
Theo Arends dcc69bdff0 Shrink code/flash space pt.2/2
Shrink code/flash space pt.2/2
2019-03-23 17:57:31 +01:00
Theo Arends 6922e657d9 Shrink code/flash space
Shrink code/flash space
2019-03-23 17:00:59 +01:00
Theo Arends 878205335f Consolidate MqttPublishTeleState
Consolidate MqttPublishTeleState
2019-03-20 14:05:43 +01:00
Adrian Scillato f4da1d1d86
Added HASS_STATE to command STATE
The command STATE has a secondary mqtt message in the case that SETOPTION59 is 1
This adds a HASS_STATE mqtt message if HomeAssistant discovery is enabled.

This is useful for syncing HomeAssistant with all the states of a Tasmota device when HA is restarted.
The actual automation for HA explained in the wiki will also make use of this new message.
2019-03-20 00:57:26 -03:00
Theo Arends 99d20f803b More web chunks
More web chunks
2019-03-16 16:23:41 +01:00
Theo Arends ca5c3d1eeb 6.4.2.22 Remove support for MQTT_LIBRARY_TYPE
6.4.2.22 20190315
 * Remove support for MQTT_LIBRARY_TYPE, MQTT_ARDUINOMQTT and MQTT_TASMOTAMQTT (#5474)
2019-03-15 14:29:47 +01:00
Theo Arends 2959ec9341 Prep for release with fix some warnings
Prep for release with fix some warnings
2019-03-14 16:50:56 +01:00
Theo Arends 73be43b60f Fix exception caused by wrong baudrate selection
Fix exception caused by wrong baudrate selection (#5441)
2019-03-12 10:23:20 +01:00
Theo Arends 2aaca4bc2b Revert "Fix exception caused by wrong baudrate selection"
This reverts commit ffc1505872.
2019-03-12 10:22:40 +01:00
Theo Arends ffc1505872 Fix exception caused by wrong baudrate selection
Fix exception caused by wrong baudrate selection
2019-03-12 10:21:33 +01:00
Theo Arends baa5825569 Free some flash
Free some flash
2019-03-11 10:38:41 +01:00
Theo Arends 37e1b31937 Add support for sensor SCD30
* Add support for sensor SCD30 (#5434)
 * Add support for commands in sensor drivers
2019-03-10 13:33:32 +01:00
Theo Arends aec3842bee
Merge pull request #5420 from laurentdong/Code-review
Code review: Copy string with strlcpy() instead of snprintf()
2019-03-09 12:22:07 +01:00
Laurent Dong b87afc3bcb Code review: Copy string with strlcpy() instead of snprintf()
Copying string with snprintf() is unsafy and slow because it check and replace plcaehold (%?)
2019-03-08 13:24:02 -05:00
Theo Arends 0d8545f658 Add command Template 255
Add command Template 255 to copy module configuration over to current active template and store as user template named Merged (#5371)
2019-03-08 17:42:21 +01:00
Theo Arends 4ba3331bc7
Merge pull request #5417 from emontnemery/fix_bad_snprintf
Fix bad snprintf in format()
2019-03-08 16:45:07 +01:00
Erik 168b1332e0 Fix bad snprintf in format() 2019-03-08 16:28:46 +01:00
Theo Arends 06a9fbd792 Changed logging message handling
Changed logging message handling
2019-03-08 15:15:42 +01:00
netpok 01ce2a31d3 Implement RGB CT linking 2019-02-25 22:29:39 +01:00
Theo Arends 9f00978a79 Fix Domoticz Color regression
Fix Domoticz Color regression (#5310 )
2019-02-25 19:47:45 +01:00
Gabor Simon 48f6b09987 Initialisation and updating of color mapping added 2019-02-24 23:48:03 +00:00
Theo Arends 68c60c321e Handle too many command data
Handle too many command data
2019-02-23 19:19:31 +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
netpok 6cbfb0308a Check no hold retain flag on hold action sending 2019-02-21 21:30:30 +01:00
netpok 3c58f5b7b9 Add password validation to password command 2019-02-21 15:57:45 +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 32c1e2d13c Tuning uptime and add utctime
Tuning uptime and add utctime
2019-02-19 10:48:19 +01: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