Commit Graph

2327 Commits

Author SHA1 Message Date
Theo Arends ce4e9b0e30 Add stable strtoull to core 2.3.0
Add stable strtoull to core 2.3.0
2019-04-04 17:52:14 +02:00
Theo Arends f455b738a5 QFix for core 2.3.0 compile error on strtoull
QFix for core 2.3.0 compile error on strtoull
2019-04-03 10:28:13 +02:00
Theo Arends 3766e1b0a1
Merge pull request #5578 from yury-sannikov/sns15-fix
Fix Sensor15 command crash due to the wrong memory specifier
2019-04-03 09:14:17 +02:00
Yury Sannikov 2c286c43f1 Fix Sensor15 command crash due to the wrong memory specifier 2019-04-02 21:16:50 -04:00
Adrian Scillato bf33e8fcd7
Update _changelog.ino 2019-04-02 21:44:01 -03:00
Adrian Scillato 43bc2a31a3
Fixed Display Bug in KNX webmenu for Phys Address 2019-04-02 21:41:52 -03:00
Theo Arends 531c4fe44e Disable unused code
Disable unused code
2019-04-02 20:53:17 +02:00
Theo Arends 2fd15c4633 Fix WifiManager Pop Up when no SSID is configured (#5575)
Fix WifiManager Pop Up when no SSID is configured (#5575)
2019-04-02 20:26:30 +02:00
Theo Arends 8ff2759ccc 6.5.0.4 Fix Configure Timer Web GUI
6.5.0.4 20190402
 * Fix Configure Timer Web GUI (#5568)
 * Add validation check when loading settings from flash
2019-04-02 15:47:39 +02:00
Theo Arends 76eec9b8ab Fix Configure Timer Gui webinterface (#5568)
Fix Configure Timer Gui webinterface (#5568)
2019-04-02 11:26:55 +02:00
Theo Arends c58b40e838 Revert "Fix Configure Timer Gui webinterface (#5568)"
This reverts commit 7c31bedc9b.
2019-04-02 11:07:30 +02:00
Theo Arends 7c31bedc9b Fix Configure Timer Gui webinterface (#5568)
Fix Configure Timer Gui webinterface (#5568)
2019-04-02 10:35:19 +02:00
Theo Arends 7f590e62f3 Change Spanish Argentina to Spanish Spain (#5565)
Change Spanish Argentina to Spanish Spain (#5565)
2019-04-01 17:41:47 +02:00
Theo Arends a380eb9566 Fix possible compile error
Fix possible compile error
2019-04-01 16:39:13 +02:00
Theo Arends 127892e0c1 Change IRsend and receive for 64-bit support
* Change IRsend and receive for 64-bit support (#5523)
 * Change IRSend Panasonic protocol to 64-bit (#5523)
2019-04-01 15:15:16 +02:00
Theo Arends 880bbe357d Change String to char
Change String to char
2019-03-31 17:57:28 +02:00
Theo Arends 8d8e060550 Revert "Test for easier MQTT reconnects"
This reverts commit b7adb10923.
2019-03-31 17:55:58 +02:00
Theo Arends b7adb10923 Test for easier MQTT reconnects
Test for easier MQTT reconnects
2019-03-31 17:51:05 +02:00
Theo Arends b9a0581280 Fix parameter exceptions (#5555)
Fix parameter exceptions (#5555)
2019-03-31 13:06:42 +02:00
Theo Arends f7c30250c1 Change some more defines to const
Change some more defines to const
2019-03-31 11:59:04 +02:00
Theo Arends 929292f7a8 Update xdrv_02_mqtt.ino
Restore MQTT attempting connection message
2019-03-30 16:32:22 +01:00
Theo Arends 2aad0567bf Change some defines to const
Change some defines to const
2019-03-30 16:29:27 +01:00
Theo Arends eb9617e3f9 Tune some functionality
Tune some functionality
2019-03-30 13:03:45 +01:00
Theo Arends d9bd959119 Fix compile error (#5544)
Fix compile error (#5544)
2019-03-30 10:02:22 +01:00
Staars 1400a15076 always check for vars_events and mems_events 2019-03-29 09:42:50 +01:00
Theo Arends b8dfc6b1b5 Change order of evaluation
Change order of evaluation
2019-03-28 15:29:08 +01:00
Theo Arends e19ba70c7f Fix exception due to UDP packet memory flooding (#5540)
Fix exception due to UDP packet memory flooding (#5540)
2019-03-28 14:39:12 +01:00
Theo Arends e8e5d1c03c 6.5.0.3 Add command Sensor20
6.5.0.3 20190328
 * Add command Sensor20 1..255 to change Nova Fitness SDS01 working period in minutes (#5452)
2019-03-28 12:06:48 +01:00
Theo Arends e631d49d0f Housekeeping
Housekeeping
2019-03-28 11:25:38 +01:00
Theo Arends 64ab5d95e5 Add optional support for Badger HR-E Water Meter
Add optional support for Badger HR-E Water Meter (#5539)
2019-03-28 11:14:09 +01:00
Jon Little a596fc7948 renamed driver from 91 to 43 2019-03-27 21:36:32 -05:00
Jon Little deaf1f3d5b Adding additional languages 2019-03-27 21:30:03 -05:00
Jon Little fb81b65bbc Cleaned up debugging output 2019-03-27 20:21:25 -05:00
Jon Little d375d95529 Updating to work with new web/mqtt api 2019-03-27 20:21:25 -05:00
Jon Little 17a5e90e86 Fixing copyright and name 2019-03-27 20:21:25 -05:00
Jon Little 3ad8046166 Adding HRE interface for en-GB 2019-03-27 20:21:25 -05:00
Theo Arends feb11dd49e wemohue tuning
wemohue tuning
2019-03-27 18:09:27 +01:00
Christoph Hofmann 43e79e8352 Fix pca9685 driver command 2019-03-27 03:39:22 +01:00
Theo Arends e1c92b701b Change NULL to nullptr
Change NULL to nullptr
2019-03-26 18:26:50 +01:00
Theo Arends f83a5bb989 More Wemo tuning
More Wemo tuning
2019-03-26 17:10:07 +01:00
Theo Arends bf8845c3bd Increase emulation stability (#5505)
Increase emulation stability (#5505)
2019-03-26 10:28:30 +01:00
Theo Arends 1c7fb82af8 6.5.0.2 Change UDP initial message handling
6.5.0.2 20190325
 * Change UDP initial message handling from string to char using static memory and add debug info (#5505)
2019-03-25 16:03:28 +01:00
Theo Arends 57cb570b8f Fix GUI corruption
Fix GUI corruption due to format string usage (#5519)
2019-03-25 11:20:03 +01:00
Theo Arends a7a07c5b96 Fix JSON message error (#5521)
Fix JSON message error regression  (#5521)
2019-03-25 10:02:12 +01:00
Theo Arends 10d32acccc Free some flash used by hass
Free some flash used by hass
2019-03-24 14:23:20 +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 76b7d778ec Fix incomplete syslog
Fix incomplete syslog when MQTT is disabled (#5512)
2019-03-23 12:41:35 +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 83188c926c Update GUI
Update GUI
2019-03-19 18:02:38 +01:00
Theo Arends b7f89c0a8c 6.5.0.1 Change GUI data collection
6.5.0.1 20190319
 * Change Web GUI sensor data collection
2019-03-19 17:31:43 +01:00
Theo Arends bcd6cf0e34 Release 6.5.0
Release 6.5.0
2019-03-19 15:37:21 +01:00
Yuval 28694bff7a
Add new translate and fix some 2019-03-19 15:09:32 +02:00
Theo Arends 46b2fcac08 Second try
Second try
2019-03-19 13:03:46 +01:00
Theo Arends 47e9361d55 Revert "Update minimal text"
This reverts commit c114530e34.
2019-03-19 13:02:12 +01:00
Theo Arends c114530e34 Update minimal text
Update minimal text
2019-03-19 12:23:09 +01:00
Adrian Scillato 7f43eff739
Hiding User Configurable Pins for SHELLY 1
As explained in https://github.com/arendst/Sonoff-Tasmota/issues/5487 some users had tried to connect sensors to shelly 1, being it powered using mains AC. So, as it is very dangerous and a safety concern, those extra GPIO are being taken from the template. Comments on this is, were left on the code for people who really know what they are doing.
2019-03-17 22:10:10 -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 3dbd49f9b7 Update GUI template screen
Update GUI template screen
2019-03-15 14:10:42 +01:00
Adrian Scillato c1a2da1a46
Fix compiling issue
Deleted and extra " that prevents compiling.
2019-03-14 22:05:07 -03: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
Yuval 3332a54942
Update he-HE.h 2019-03-14 16:05:40 +02:00
Theo Arends 282744d5fd Houskeeping
Houskeeping
2019-03-13 18:06:20 +01:00
Theo Arends 4803b864be
Merge pull request #5440 from emontnemery/improve_hass_sensor
Add MQTT connect count to HASS sensor
2019-03-12 10:28:03 +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
Erik d4ca635db6 Add MQTT connect count to HASS sensor 2019-03-11 18:29:39 +01:00
Theo Arends 6c69b8d12d Add button control when no relay configured
Add button control when no relay configured (#4682)
2019-03-11 18:18:47 +01:00
Theo Arends 58d075deff Update xsns_22_sr04.ino
Fix debug compile error
2019-03-11 16:49:59 +01:00
Theo Arends 5927f7501c Update xdrv_12_home_assistant.ino
Quick fix for #5356
2019-03-11 15:41:06 +01:00
Theo Arends d7715d1d2a Add 0x to IRRemote and RCSwitch
Add 0x to IRRemote (SetOption29) and RCSwitch (SetOption28) received hexadecimal data (#5431)
2019-03-11 14:55:14 +01:00
Theo Arends baa5825569 Free some flash
Free some flash
2019-03-11 10:38:41 +01:00
Theo Arends d0ac200a78 Replace webserver flash string to char
Replace webserver flash string to char
2019-03-10 15:36:34 +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
Neel Malik bbc63c2077 preliminary SCD30 support 2019-03-09 17:44:42 -08:00
Theo Arends 8a43cfb3e6 Add headers to status update data
Add headers to status update data (#5410)
2019-03-09 15:51:16 +01:00
Theo Arends ecbe6ac618 6.4.1.21 Fix exception on GUI
6.4.1.21 20190309
 * Fix exception on GUI Configure Logging and Configure Other (#5424)
2019-03-09 14:39:48 +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 69874301b9
Merge pull request #5418 from emontnemery/hass_improve_status
Add more information to status sensor
2019-03-08 16:53:26 +01:00
Theo Arends a80aac91f1 Fix additional characters in fallbacktopic
Fix additional characters in fallbacktopic, hostname and mqttclient on core 2.5.0 (#5359, #5417)
2019-03-08 16:52:37 +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 b72df698a2 Add more information to status sensor 2019-03-08 16:38:36 +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
Theo Arends fb9b1c83f3 Merge branch 'development' of https://github.com/arendst/Sonoff-Tasmota into development 2019-03-07 18:59:44 +01:00
Theo Arends 89f55563f7 Add secure test
Add secure test
2019-03-07 18:59:24 +01:00
Theo Arends 578d12c4fb
Merge pull request #5414 from emontnemery/fix_hass_button
Fix broken hass button announcement
2019-03-07 18:58:11 +01:00
Erik 32c69ff0c2 Fix broken hass button announcement 2019-03-07 18:40:50 +01:00
Theo Arends ae50f663fe Merge branch 'dev-chunks' into development 2019-03-07 18:34:51 +01:00
Theo Arends 58fe50d81a Update webserver layout
Update webserver layout
2019-03-07 18:18:30 +01:00
Theo Arends cfcf125b7e Default disable new rule features
Default disable rule USE_EXPRESSION and SUPPORT_MQTT_EVENT (#5369)
2019-03-07 17:47:14 +01:00
Theo Arends 7ab884afc9 Fix compile error
Fix compile error
2019-03-06 20:38:13 +01:00
Theo Arends 2ec545d739 Fix float calculations
Fix float calculations in range from 0 to -1 (#5386)
2019-03-06 17:59:18 +01:00
Theo Arends b393cdc9f1 Replace menu button list
Replace menu button list
2019-03-04 18:32:23 +01:00
Theo Arends d790b1cfca 6.4.1.20 Webserver uses chunks
6.4.1.20 20190304
 * Changed webserver content handling from single String to small Chunks increasing RAM
2019-03-04 18:16:07 +01:00
Theo Arends 3e1e565dff Update xdrv_01_webserver.ino
Fix webpage redirect
2019-03-04 12:36:44 +01:00
killadm de220cefd0
zh-CN language updated 2019-03-03 00:35:44 +08:00
Theo Arends 9f42e6dced Fix DS18S20 temperature calculation
Fix DS18S20 temperature calculation (#5375)
2019-03-02 12:33:52 +01:00
Theo Arends d70ed77f1a Update xdrv_01_webserver.ino
Prep for chunks
2019-03-01 18:25:46 +01:00
Theo Arends 9e8ed1ae79 Kudos and houskeeping
Kudos and houskeeping
2019-03-01 15:37:22 +01:00
Theo Arends f0a7a1f2a1 Fix Energy TotalStartTime
Fix Energy TotalStartTime when commands EnergyReset0 and/or EnergyReset3 used (#5373)
2019-03-01 12:08:41 +01:00
Theo Arends 4b69a7d115 Update xdrv_04_light.ino
Fix core 2.3.0 compile error
2019-02-26 10:54:27 +01:00
Theo Arends 16e14558ea
Merge pull request #5349 from sensor-freak/development
Refactor initialization of NeoPixel instance
2019-02-26 10:30:01 +01:00
Theo Arends 5871c7ebae Add Korean language translations
Add Korean language translations (#5344)
2019-02-26 10:16:56 +01:00
Theo Arends 278e9fe95d
Merge pull request #5344 from NyaamZ/development
a Korean translation
2019-02-26 10:11:01 +01:00
Franz-Josef Kaiser cfabceca06 Refactor initialization of NeoPixel instance to make it easier to select communication speed option 2019-02-26 09:10:41 +01:00
NyaamZ 8aba96c894
Korean translate
Korean translate
2019-02-26 11:00:38 +09:00
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