Commit Graph

2818 Commits

Author SHA1 Message Date
Theo Arends 48783a4772 Add define USE_WS2812_BTYPE to select different bitbang timing
Add define USE_WS2812_BTYPE to select different bitbang timing (#6292)
2019-08-29 18:03:30 +02:00
Stephan Hadinger 5e962879c1 Align to new behavior for codes >64 bits 2019-08-28 22:24:40 +02:00
Stephan Hadinger ab5af7bf47 Add Full support of all protocols in IRremoteESP8266, to be used on dedicated-IR Tasmota version. Warning: +81k Flash when compiling with USE_IR_REMOTE_FULL 2019-08-28 22:01:01 +02:00
Theo Arends b04bf63446 Add possibility to receive more then 64 bits to IRremote
Add possibility to receive more  then 64 bits to IRremote. May still need change of IR_RCV_BUFFER_SIZE (#6286)
2019-08-28 16:13:19 +02:00
Theo Arends 9af67a5278 Bump version to 6.6.0.9
Change theoretical baudrate range to 300..19660500 bps in 300 increments (#6294)
2019-08-28 12:02:27 +02:00
Theo Arends 387c10f118 Fix lost energy values
Fix lost energy values (#6302)
2019-08-28 11:08:23 +02:00
Theo Arends b52da68a68 Fix energy smart calculation at day roll-over
Fix energy smart calculation at day roll-over
2019-08-28 10:52:24 +02:00
Theo Arends 3a63ff3728 Fix Serial Bridge set baudrate regression from 6.6.0.4
Fix Serial Bridge set baudrate regression from 6.6.0.4
2019-08-28 10:17:31 +02:00
Theo Arends 3048b6550c
Merge pull request #6303 from s-hadinger/fix_echo_2nd_gen
Fix Unrecognized relay with Echo Dot 2nd Gen
2019-08-27 22:24:44 +02:00
Stephan Hadinger e14c560f51 Fix Unrecognized relay with Echo Dot 2nd Gen 2019-08-27 22:19:27 +02:00
Theo Arends f5646d6bbe Add SH1106 and e-paper 4.2 inch to sonoff-display.bin
Add SH1106 and e-paper 4.2 inch to sonoff-display.bin
2019-08-27 17:29:54 +02:00
Theo Arends 1776f7d06a Fix sonoff-sensor compilation by removing iram user TX20
Fix sonoff-sensor compilation by removing iram user TX20
2019-08-27 17:24:19 +02:00
Theo Arends f31b903fab Bump version to 6.6.0.8
* Add Tuya Energy monitoring by Shantur Rathore
 * Add phase 1 Domoticz P1 Smart Meter support using energy sensors handled by xdrv_03_energy.ino based on an idea by pablozg
 *   Add commands Tariff1 0..23 (start Off-Peak hour), Tariff2 0..23 (start Standard hour) and Tariff3 0/1 (Saturday and Sunday Off-Peak)
2019-08-27 17:01:12 +02:00
Theo Arends 5413b95963 Fix Greek language compilation error
Fix Greek language compilation error
2019-08-27 16:44:51 +02:00
Theo Arends 9d04ca0ccd
Merge pull request #6300 from shantur/tuya-serial-fixes
Fix sonoff-display compilation after Tuya Power metering changes
2019-08-27 15:53:05 +02:00
Theo Arends a82742126f
Merge pull request #6298 from gemu2015/meter-driver
meter driver
2019-08-27 15:49:01 +02:00
Theo Arends b661c6a414 Fix baudrate calculation allowing max 30600 baud
Fix baudrate calculation allowing max 30600 baud (#6294)
2019-08-27 15:44:30 +02:00
Shantur Rathore 6c3d9d2ff5 Fix sonoff-display compilation after Tuya Power metering changes 2019-08-27 14:40:43 +01:00
gemu2015 e96bf9af4e updata tasmota serial, add sml driver 2019-08-27 15:33:09 +02:00
Theo Arends 022df89950
Merge pull request #6296 from shantur/tuya-serial-fixes
More Tuya support
2019-08-27 14:39:09 +02:00
Shantur Rathore 231a1ba137 Tuya Serial: Add support for power metering
Capable Tuya serial devices send power metering data over serial interface. User needs to identify the ids of all power metering functions and set as
SetOption44 -> Voltage
SetOption45 -> Current
SetOption46 -> Power
2019-08-27 10:50:34 +01:00
Shantur Rathore 579f68cf2f Tuya Dimmer: Add support for dimmers with max 24
New Tuya Dimmer has dim values from 0 to 24. Currently the code expects it to be 0-100 or 0-255.
With this change we move the flag to a param and use that to calculate correct dim percentage.

This change also makes sure to update settings on version upgrade.
2019-08-27 10:46:27 +01:00
Stephan Hadinger 0cb49214e4 Fix Would not compile if USE_LIGHT not defined 2019-08-27 10:02:25 +02:00
Theo Arends 0ef45c1fa3 Add IsDst()
Add IsDst()
2019-08-25 17:31:27 +02:00
Theo Arends 427dee028d Fix compile error
Fix compile error
2019-08-25 17:30:12 +02:00
Theo Arends 43c3d3611d Prep domoticz for P1 smart meter
Prep domoticz for P1 smart meter
2019-08-25 16:25:38 +02:00
Theo Arends 459101ee3a Add translation
Add translation
2019-08-25 16:19:23 +02:00
Theo Arends 6c905b65a4 Expand Settings area to 4k for future use
Expand Settings area to 4k for future use
2019-08-25 14:58:45 +02:00
Theo Arends dc76792b5f Bump version to 6.6.0.7
Bump version to 6.6.0.7
2019-08-25 12:41:00 +02:00
Theo Arends 28eb6d7661 Integrate ibeacon 2019-08-25 12:29:48 +02:00
gemu2015 f6503ca01d Update xsns_52_ibeacon.ino 2019-08-24 15:56:28 +02:00
gemu2015 3b30ba8810 ibeacon added 2019-08-24 13:20:00 +02:00
Theo Arends 5cb863d35b Restore define USE_DISPLAY_EPAPER_42
Restore define USE_DISPLAY_EPAPER_42
2019-08-23 17:33:30 +02:00
Shantur Rathore 92a6f6672c Tuya Fix: Dimmer doesn't switch on from HASS
Tuya serial dimmer doesn't switch on from HASS because when powered off, HASS sends dimmer command.
Internally, dimmer update and power command are sent too quickly to serial out and switch doesn't turn on.
Adding a delay fixes things.
2019-08-23 10:02:24 +01:00
Shantur Rathore 9fb804b426 Fix: Tuya Switches are detected as dimmers.
Tuya switches are detected as dimmers even after setting SetOption65 to 1.
Currently SetOption65 just hides the dimmer from Web UI for Tuya switches with SetOption65 to 1 but they are advertised as dimmer to HASS.
With this change we set light_type to LT_BASIC (on/off) instead of LT_SERIAL1 (dimmable) when option 65 is set.
2019-08-23 10:02:24 +01:00
Shantur Rathore 1c7fd88ec4 Tuya: Rename tuya_show_dimmer to tuya_disable_dimmer to make the option clear.
By default the option is set to 0 in which case the tuya serial will act as dimmer
When its set to 1 tuya serial will disable dimmer functions.
2019-08-23 10:02:24 +01:00
gemu2015 8c3c3f1709 display update 2019-08-23 10:26:09 +02:00
Stephan Hadinger 993216c8c6 Fix Hue Emulation not responding on /resourcelinks, issue #6238 2019-08-22 19:13:14 +02:00
Theo Arends 944cf3877f Final fix buffer dump
Final fix buffer dump
2019-08-22 12:36:13 +02:00
Theo Arends 5ddd5633ff Fix watchdog restarts due to buffer overflow
Fix watchdog restarts due to buffer overflow (#6266)
2019-08-22 10:54:12 +02:00
Theo Arends c2474f8d5d Quick fix MHZ19 watchdog reset
Quick fix MHZ19 watchdog reset (#6266)
2019-08-21 09:44:34 +02:00
Theo Arends 86b6dc7ecb Fix warning
Fix warning
2019-08-20 12:17:21 +02:00
Theo Arends e04bea8768
Merge pull request #6262 from s-hadinger/fix_http_head
Renamed HTTP_HEAD to HTTP_HEADER
2019-08-20 09:29:16 +02:00
Shantur Rathore e9475592b3 Fix: Legacy Led1 doesn't power up with Relay1.
https://github.com/arendst/Sonoff-Tasmota/pull/6246 broke Legacy Led1 power up logic. Make sure the if statement matches the if statement before #6246
2019-08-19 21:04:27 +01:00
Stephan Hadinger a49c416c81 Renamed HTTP_HEAD to HTTP_HEADER 2019-08-19 21:14:58 +02:00
Theo Arends 5f6a87c7c0 Update libraries and fix SSD1306 power control
Update libraries and fix SSD1306 power control
2019-08-19 18:17:44 +02:00
Theo Arends 42c8ac61e8 Bump version to 6.6.0.6
Bump version to 6.6.0.6
2019-08-19 17:09:31 +02:00
Theo Arends b6e95e818c Add new display driver defines
Add new display driver defines
2019-08-19 16:58:24 +02:00
Theo Arends e8f28740a7 Display fixes part 1
Display fixes part 1
2019-08-19 16:49:20 +02:00
gemu2015 eb7ca618c7 display update 2019-08-19 13:38:14 +02:00
gemu2015 cb0de03df7 update displays 2019-08-19 13:21:54 +02:00
Theo Arends 33aa430f64 Add support for RDM6300 125kHz RFID Reader by Gerhard Mutz
Add support for RDM6300 125kHz RFID Reader by Gerhard Mutz
2019-08-19 11:47:59 +02:00
Theo Arends 347ebe5e0d
Merge pull request #6258 from gemu2015/rdm6300
rdm6300 support
2019-08-19 11:22:50 +02:00
Theo Arends 7d690dcc1b Gain a little code space on WebSend response
Gain a little code space on WebSend response
2019-08-19 11:21:00 +02:00
Theo Arends cae714e300 Optimize rule/script processing
Optimize rule/script processing
2019-08-19 11:18:50 +02:00
gemu2015 70cb8f3822 rdm6300 support 2019-08-19 10:54:58 +02:00
Theo Arends bfad4f815f Add define USE_WEBSEND_RESPONSE
Add define USE_WEBSEND_RESPONSE
2019-08-19 10:36:42 +02:00
gemu2015 f981c13ae6 Update xdrv_10_scripter.ino 2019-08-19 08:24:41 +02:00
gemu2015 f6d22a6e4d scripter update 2019-08-19 08:20:51 +02:00
Theo Arends 7965ada5c5 Clean code
Clean code
2019-08-18 15:21:38 +02:00
Theo Arends 54364484fa Add Driver and Sensor info to status 4
* Add Driver and Sensor info to status 4
* Change WebSensor return information to show disabled state using exclamation mark
* Clean up debug code
2019-08-18 13:23:43 +02:00
Theo Arends 049dd72ca5 Refactor wifi saving code space
Refactor wifi saving code space
2019-08-17 17:13:09 +02:00
Theo Arends c107864b92 Refactor RTC saving code space
Refactor RTC saving code space
2019-08-17 16:49:17 +02:00
Theo Arends ef63883a1c Refactor Button, Switch and Rotary to save code space
Refactor Button, Switch and Rotary to save code space
2019-08-17 16:19:58 +02:00
Theo Arends 9eed3ebfea Refactor Armtronix driver
Refactor Armtronix driver
2019-08-17 15:07:46 +02:00
Theo Arends 12d17030ca Refactor Tuya driver saving code space
Refactor Tuya driver saving code space
2019-08-17 15:00:57 +02:00
Theo Arends 9a15663ca0 Correction
Correction
2019-08-17 14:50:12 +02:00
Theo Arends 069be6edd9 Refactor PS16DZ driver saving code space
Refactor PS16DZ driver saving code space
2019-08-17 14:48:42 +02:00
Theo Arends d87181e22d Refactor rules saving code space
Refactor rules saving code space
2019-08-17 14:27:41 +02:00
Theo Arends 38c6254833 Refactor light driver saving code space
Refactor light driver saving code  space
2019-08-17 13:17:30 +02:00
Theo Arends b9302d9ab9
Merge pull request #6246 from shantur/development
LedX should show power status even if there is no wifi or mqtt.
2019-08-17 11:56:45 +02:00
Shantur Rathore f4b7e422fc LedX should show power status even if there is no wifi or mqtt.
Fixes: https://github.com/arendst/Sonoff-Tasmota/issues/6244
2019-08-17 10:10:06 +01:00
Stephan Hadinger 859156c395 Fix #6247 2019-08-17 11:06:49 +02:00
Stephan Hadinger bd97621363 Update _changelog.ino for #6191 2019-08-16 18:35:16 +02:00
Stephan Hadinger 1de7abe9f4 Merge branch 'development' of https://github.com/arendst/Sonoff-Tasmota into issue_6191 2019-08-16 18:33:53 +02:00
Stephan Hadinger 4aeaff66aa Fix wrong telemetry message when SetOption68 1 (#6191) 2019-08-16 18:33:41 +02:00
Theo Arends 676c7867ca Refactor Sensors available
Refactor Sensors available
2019-08-16 18:30:45 +02:00
Theo Arends 26d331501b Add embedded sensor numbering to Status 4
Add embedded sensor numbering to Status 4
2019-08-16 17:48:05 +02:00
Theo Arends b5f290b4a2 Change display ledtable location from RAM to flash
Change display ledtable location from RAM to flash
2019-08-16 17:29:19 +02:00
Theo Arends c61f2cc5ec Refactor WebSensor
Refactor WebSensor
2019-08-16 16:54:36 +02:00
Theo Arends 9746489380 Bump version to 6.6.0.5
* Add command WebSensor<sensor number> 0/1 to control display of sensor data in web GUI (#6085)
 * Change some table locations from RAM to Flash
2019-08-16 16:12:33 +02:00
Theo Arends 0e4d4a889a Refactor Energy code saving space
Refactor Energy code saving space
2019-08-16 14:41:02 +02:00
gemu2015 807aff4675 subscribe with strings, smal bug fixes 2019-08-16 07:37:16 +02:00
caphm 7e0ae16c4f Add MAC address to Home Assistant Discovery Message, fixes #6226 2019-08-15 14:35:13 +02:00
Theo Arends 697ec3fc7f Refactor code saving code space
Refactor code saving code space
2019-08-15 13:50:28 +02:00
Theo Arends a85588aa3d Add support for PAJ7620 gesture sensor by Christian Baars
Add support for PAJ7620 gesture sensor by Christian Baars
2019-08-15 11:34:35 +02:00
Theo Arends c9d271802f
Update sonoff_post.h 2019-08-15 11:26:30 +02:00
Staars 578b89c9de remove #define USE_PAJ7620 from driver code 2019-08-15 11:20:53 +02:00
Staars 458e8c60c0 add support for PAJ7620 gesture sensor 2019-08-15 10:20:14 +02:00
Theo Arends 741ad7c26a
Merge pull request #6227 from shantur/development
Tuya Dimmer fixes
2019-08-14 16:47:40 +02:00
Theo Arends 78c61031da
Merge pull request #6228 from shantur/tuya-dimmer-min-limit
Tuya Dimmer: Make dimmer lower limit optional.
2019-08-14 16:42:01 +02:00
Theo Arends 82622e1c1a
Keep defaults 2019-08-14 16:41:45 +02:00
Ivan Kravets 982480b012
Remove non-ASCII symbols
Causes issue on Windows OS
2019-08-14 17:27:51 +03:00
Shantur Rathore 0235bc0f8c Tuya Dimmer: Make dimmer lower limit optional.
Not all Tuya dimmers have a lower limit of 10% (25)
2019-08-14 14:52:37 +01:00
Shantur Rathore f08e7ff5df tuya-dimmer: Fix dimmer skipping power/dimmer commands
This tuya dimmer mcu sends data for multiple dimmer ids which breaks `tuya_ignore_dim` logic and sometimes when `power on` is sent its blocked due to multiple serial commands being sent at the same time. This patch makes sure we send dimmer commands only when we need to.
Bug is explained in https://github.com/arendst/Sonoff-Tasmota/issues/6215#issuecomment-521191828
2019-08-14 14:32:52 +01:00
Stephan Hadinger 8661a2ead6 Change ToHex to ToHex_P PROGMEM compatible 2019-08-13 19:53:12 +02:00
Theo Arends 09f8a7967e Minor Refactor
Minor Refactor
2019-08-13 17:33:35 +02:00
Theo Arends e2040b70de Refactor Sonoff Bridge
Refactor Sonoff Bridge
2019-08-13 16:10:47 +02:00
Theo Arends 72baffdf81 Refactor Counter and Dht code
Refactor Counter and Dht code
2019-08-13 14:52:46 +02:00
Theo Arends 52ccc2e7da Change buzzer tune to more user friendly input by swapping input
Change buzzer tune to more user friendly input by swapping input
2019-08-13 11:40:34 +02:00