Commit Graph

1752 Commits

Author SHA1 Message Date
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
evzone 7e576a58f9 commented user override to pass travis ci test 2018-11-18 11:05:50 +02:00
evzone 3be1b7a1e0 Revert "Added support for LG wall hvac"
This reverts commit 40c1331b8a.
2018-11-18 11:03:02 +02:00
evzone 40c1331b8a Added support for LG wall hvac 2018-11-18 09:06:59 +02:00
Norbert Richter e07cd3e48b Fix NovaSDS sensor Checksum failure 2018-11-17 12:47:44 +01:00
Theo Arends e284e78b4d Add support for Armtronix dimmers
Add support for Armtronix dimmers. See wiki for info (#4321)
2018-11-16 12:22:15 +01:00
Theo Arends 48fa0705e0
Merge pull request #4321 from wvdv2002/armtronix
WIP: Added Armtronix dimmer support
2018-11-16 10:43:18 +01:00
Theo Arends 77e76691b6
Fix correct module index 2018-11-16 10:39:57 +01:00
Theo Arends 5d798e3381
Make it optional on first implementation 2018-11-16 10:37:52 +01:00
Theo Arends 04cc11b46d
Use correct index 2018-11-16 10:36:43 +01:00
wvdv2002 45cc387748 Added small description in the driver 2018-11-16 09:58:14 +01:00
wvdv2002 9ab3eb05bd Renamed driver so it is more clear that it is not only for the dual dimmer 2018-11-16 09:53:23 +01:00
wvdv2002 c2dfd559eb Added user config define to enable armtronix dimmers 2018-11-16 09:48:55 +01:00
Theo Arends 9eacabc4f0 Delay initial flash write
* Stop enforcing flashmode dout but it is still mandatory
 * Moved bootcount update (being first) flash write to 10 seconds after restart
2018-11-16 09:36:41 +01:00