Commit Graph

252 Commits

Author SHA1 Message Date
Theo Arends 5015409af6 Fix GPIO Not supported message
Fix GPIO Not supported message (#10673)
2021-01-23 17:59:06 +01:00
Theo Arends efaed8046d Refactor AddLog usage 2021-01-23 16:26:23 +01:00
polarduck-dev 6ab6708c34
Merge branch 'development' into development 2021-01-19 16:39:31 +00:00
Stephan Hadinger 2f139d0e47 More PROGMEM 2021-01-18 21:48:04 +01:00
polarduck-dev ff08501b39 fixed IPv6 address acquisition 2021-01-18 15:32:58 +00:00
Theo Arends d99ba6992c Refactor BLE 2021-01-18 11:51:24 +01:00
Simon Hailes 37beaca119 Implements xdrv_52 - BLE_ESP32
Modifies xsns_52 - iBeacon,  and xsns_62 - MI32 to use the new BLE driver
2021-01-17 17:08:54 +00:00
Theo Arends fdbd1dcc0a Changed command ``Sleep 0``
Changed command ``Sleep 0`` removes any sleep from wifi modem except when ESP32 BLE is active
2021-01-14 17:03:01 +01:00
Stephan Hadinger 800f86d56e Moving more to PROGMEM 2021-01-12 19:31:15 +01:00
Theo Arends d319bc8ecb Support rotary encoder on Shelly Dimmer
Support rotary encoder on Shelly Dimmer (#10407)
2021-01-07 17:53:48 +01:00
Theo Arends 9722f6b666 Remove obsolete USE_TFS 2021-01-06 15:46:27 +01:00
Theo Arends 2b7d605696 Changed maximum chars in AddLog_P logging
Changed maximum chars in AddLog_P logging reduced from 700 to 128 (LOGSZ) to enhance stability
2021-01-02 16:20:15 +01:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
Stephan Hadinger 488712c3f0 Commands `CTRange` and `VirtualCT` 2020-12-29 19:31:27 +01:00
Stephan Hadinger 51d39798d4 Reduce tasmota-minmal
Making `WebColor` and `Template` commands read-only
Saves 4kb on tasmota-minimal. No changes for other versions.
2020-12-27 14:13:23 +01:00
Theo Arends fb15736ed7 Unload use of global log_data 2020-12-23 16:35:46 +01:00
Barbudor 8b1eb54fc4 remove superfluous 2020-12-23 11:49:55 +01:00
Theo Arends 761281e55c Fix ESP32 command ``gpio 255`` output
Fix ESP32 command ``gpio 255`` output
2020-12-16 12:34:43 +01:00
Theo Arends 88b3de0138 Fix SPIFFS filesystem
Fix enabling SPIFFS filesystem (#10121)
2020-12-16 12:01:10 +01:00
Theo Arends 80ab642076 Add command ``RfProtocol`` to control RcSwitch
Add command ``RfProtocol`` to control RcSwitch receive protocols by BBBits (#10063)
2020-12-06 14:58:00 +01:00
BBBits c5c28dec25 Address Theo's requests & some cleanups + errors
Removed all code changes out i18n.h  & support_command.ino
2020-12-06 10:45:01 +13:00
BBBits c62c6a821a Remove BAZMOD tags 2020-12-06 00:13:24 +13:00
BBBits 7d19e9b0e2 RC-Switch Protocol Disable via Console 2020-12-05 23:51:57 +13:00
Theo Arends b527ab4d66 Prep for ESP32-C3 ph1 2020-11-28 12:46:17 +01:00
Theo Arends 39b79f9a97 Add all ipaddress info to ipaddress command 2020-11-28 12:19:23 +01:00
Theo Arends c57e79d51f
Merge pull request #9995 from emontnemery/fix_backlog_wrap_around
Fix wraparound bug in backlog
2020-11-27 15:31:29 +01:00
Erik aa12879356 Fix wraparound bug in backlog 2020-11-27 14:43:45 +01:00
Theo Arends 547e5d9c5d Fix command ``gpio``
Fix command ``gpio`` using non-indexed functions regression from v9.1.0 (#9962)
2020-11-24 15:14:22 +01:00
Theo Arends fa3504464e Remove command Wifi Off for ESP8266
Remove command Wifi Off for ESP8266 (#9389)
2020-11-16 13:57:26 +01:00
Theo Arends 203124d678 Add command ``SetOption115 1`` to enable ESP32 MiBle
Add command ``SetOption115 1`` to enable ESP32 MiBle
2020-11-13 17:00:44 +01:00
Theo Arends 29e990dd23 Remove obsolete code 2020-11-13 14:23:16 +01:00
Theo Arends 979735bb95 Implement ESP32 Reset 3 2020-11-12 17:38:15 +01:00
Theo Arends fa7fdbd51a Consolidate `AddLog_P`
Consolidate `AddLog_P` into `AddLog_P2` and rename to `AddLog_P`
2020-11-06 17:09:13 +01:00
Christopher Tremblay b5b6b97295 Swapped strstr for strchr where applicable
strstr calls with a single character were changed to strchr which should be more efficient.
2020-11-04 02:20:17 -08:00
Theo Arends cf9b8fe619 Restore status command 2020-11-02 15:21:32 +01:00
Theo Arends c2482e9913 Add command ``SwitchText``
Add command ``SwitchText`` to change JSON switch names by barbudor (#9691)
2020-11-01 13:26:35 +01:00
Theo Arends 31e5617043 Add command ``Gpios 255``
Add command ``Gpios 255`` to show all possible GPIO configurations
2020-10-30 16:08:38 +01:00
Theo Arends af5082320d Use global struct 2020-10-30 12:29:48 +01:00
Theo Arends 8a703adf84 Use global struct 2020-10-29 16:16:34 +01:00
Theo Arends e59bfc1d69 Use global struct 2020-10-29 13:58:50 +01:00
Theo Arends 280f0a9de7 Use global struct 2020-10-29 13:37:09 +01:00
Theo Arends 0d85f5c583 Use global struct 2020-10-29 12:58:22 +01:00
Theo Arends 0cfe1ac3e1 Use global struct 2020-10-29 12:39:44 +01:00
Theo Arends 3bebfb32d3 Use global struct 2020-10-29 12:21:24 +01:00
Theo Arends f1ac7b2d67 Use global struct 2020-10-28 19:03:39 +01:00
Theo Arends b93b719108 Use global struct 2020-10-28 17:32:07 +01:00
Theo Arends 85d2626e84 Refactor feature list build 2020-10-28 11:37:59 +01:00
Paul C Diem f075a89d6b Add PWM Dimmer multi-press and ledmask support 2020-10-19 20:12:41 -05:00
Theo Arends 7bc8956d86 Changed management of serial baudrate
Changed management of serial baudrate (#9554)
2020-10-16 15:18:16 +02:00
Theo Arends 074aec0a23 Adjust command ``NoDelay`` 2020-10-15 15:33:17 +02:00
Paul C Diem d5216091e7 Add PWM Dimmer color change/trigger on tap and SO88 brightness led support. Add DGR WITH_LOCAL flag support. 2020-10-05 15:15:32 -05:00
Theo Arends d13b4c8448 Add some thoughts 2020-10-05 12:23:07 +02:00
Theo Arends 96b2c8010e Change ``Status`` command output for disabled status types
Change ``Status`` command output for disabled status types
2020-10-05 11:45:58 +02:00
Theo Arends 7a73dd7019 Merge branch 'development' into dev-gpio16 2020-09-30 14:54:29 +02:00
Theo Arends 1ae9adc642 Change redesigning ESP8266 GPIO internal numbering
Change redesigning ESP8266 GPIO internal numbering in line with ESP32
2020-09-30 14:19:18 +02:00
Theo Arends c00d7035d9 Redesign GPIO to 16-bit 2020-09-29 18:10:21 +02:00
Theo Arends 9cbd2d531d Initial GPIO redesign 2020-09-25 18:15:31 +02:00
Theo Arends bbd15fa174 Fix Status13 shutter exception 9 2020-09-23 17:13:10 +02:00
Theo Arends 765cbe6289 Fix Status13 shutter json and exception 9 2020-09-23 16:51:38 +02:00
stefanbode b7565811db
Adding new shuttermode 2020-09-05 20:45:42 +02:00
Stephan Hadinger f8f0f4f616 Reduce memory usage of BackLog 2020-09-03 15:11:14 +02:00
Theo Arends 0f1e4fc917 Add command ``PowerDelta1`` to ``PowerDelta3``
- Bump version to 8.4.0.3
- Add command ``PowerDelta1`` to ``PowerDelta3`` to trigger on up to three phases (#9134)
2020-08-23 18:29:16 +02:00
Theo Arends 474fb2518a Update status 13 2020-08-20 17:58:58 +02:00
stefanbode 9a3fe2d0bb
Update support_command.ino 2020-08-20 16:24:17 +02:00
Theo Arends 4724fa2c49 Add support for DYP ME007
Add support for DYP ME007 ultrasonic distance sensor by Janusz Kostorz (#9113)
2020-08-17 16:25:24 +02:00
Stephan Hadinger d31e720291 Add Virtual CT for 4 channels lights, emulating a 5th channel 2020-08-15 19:24:57 +02:00
Federico Leoni 612e2be2db SO59 support for Power0 2020-08-14 11:43:50 -03:00
Theo Arends 18bf102e4f Prep support for SO114 until SO145 2020-08-13 16:49:11 +02:00
Stephan Hadinger b0188642b1 Change triple-mode TLS via configuration in a single firmware (TLS AWS IoT, Letsencrypt and No-TLS) 2020-08-12 17:20:37 +02:00
Charles 48a346c443 Added SetOption102 to switch between mode 2020-08-11 19:57:39 +02:00
Theo Arends f268697e54 Add command ``Restart 2`` to halt system
Add command ``Restart 2`` to halt system. Needs hardware reset or power cycle to restart (#9046)
2020-08-10 16:19:44 +02:00
Theo Arends 1d990ad091 Fix ESP32 PWM range 2020-08-03 11:52:25 +02:00
Theo Arends ac780d5e9a
Merge pull request #8937 from grob6000/serialsend6
Serialsend6 - comma-separated decimal send as binary
2020-07-21 12:23:53 +02:00
Theo Arends a84ebe552a Refactor rules processing 2020-07-20 17:24:51 +02:00
George 8a4a0d67ff serialsend6 - fixes
Forgot to fix top condition
2020-07-20 10:08:20 +10:00
George 63242de249 Serialsend6
* Adds serialsend6, allowing sending of binary data with comma-delimited string of decimal numbers.
2020-07-19 20:34:43 +10:00
Sammy BAUER b7c7943b00
ESP32 port: JSON error
A double quote is missing in the JSON response of the status command, so the result is not valid for ESP32.
2020-07-14 16:07:35 +02:00
Theo Arends 0315ef3a3c Add some comments to led commands 2020-07-04 15:40:38 +02:00
Federico Leoni 03db100197 TuyaMCU baud rate 2020-06-29 11:01:55 -03:00
Theo Arends 7dafeb280e Rename global temp and pressure
- Rename global temp and pressure (#8808, #8810)
- Fix SGP30 calculation (#8808)
2020-06-28 12:23:18 +02:00
Theo Arends ff327106be Refactor ESP32 support 2020-06-24 15:58:56 +02:00
Theo Arends 7c8b06ce16 Add compile time interlock parameters
Add compile time interlock parameters (#8759)
2020-06-22 22:36:54 +02:00
halfbakery 2e43715343 SwitchDebounce flags should be added to every valid imeout values 2020-06-21 20:46:37 +02:00
Theo Arends b5f45aa295 Fix ESP32 SPI config 2020-06-20 17:58:21 +02:00
Norbert Richter 9b44a369d8
Fix some json unescapes 2020-06-19 12:33:31 +02:00
Theo Arends 83bbe757db Add command ``Module2``
Add command ``Module2`` to configure fallback module on fast reboot (#8464)
2020-06-17 14:06:46 +02:00
Theo Arends ef0b797686 Add basic support for ESP32 ethernet
Add basic support for ESP32 ethernet adding commands ``Wifi 0/1`` and ``Ethernet 0/1`` both default ON (#8503)
2020-06-15 18:27:04 +02:00
Theo Arends 0abfcf1954 Fix global temperature
- Fix global temperature use of float solving intermittend power off (#8175)
- Fix BL0940 power monitoring when powered on but no load present
2020-06-12 16:51:21 +02:00
Theo Arends 56c491050e Fix AP switch
Fix AP switch (#8635)
2020-06-09 11:25:43 +02:00
Theo Arends 29070f1136 Add ``CpuFrequency`` and ``FlashFrequency`` to status 0
- Add ``CpuFrequency`` to ``status 2``
- Add ``FlashFrequency`` to ``status 4``
2020-05-30 14:59:52 +02:00
Staars 7e28e03d78 add commands to touch pin button on ESP32 2020-05-30 13:50:22 +02:00
Theo Arends 90d3cd45c4 Add command ``Time 4``
Add command ``Time 4`` to display timestamp using milliseconds (#8537)
2020-05-25 11:44:17 +02:00
Theo Arends ca8b38d0d0 Add LedPwm commands
Add commands ``LedPwmOn 0..255``, ``LedPwmOff 0..255`` and ``LedPwmMode1 0/1`` to control led brightness by George (#8491)
2020-05-23 15:17:13 +02:00
Theo Arends dc9ce42888 Refactor LedPwm code 2020-05-23 13:04:17 +02:00
George e780f25283 Gamma correction
Implement changes proposed by @s-hadinger review.
* Use 0-255 range in settings
* Apply gamma correction from xdrv_light & use changuintscale helper fn (as per pwm light routine)
2020-05-23 17:13:04 +10:00
George 603b628f97 Add pwm mode masking
* Extra setting & command to set - allows masking of pwm mode. Use case is for leds attached to buttons for seeing at night; this way user can combine both pwm and digital leds (i.e. pwm for the button leds but non-button status leds can stay on/off).
2020-05-20 13:23:54 +10:00
George e21cbfdc5d More sensible behaviour
* When setting PWM values, updates all the LEDs (instant response). Uses led_power values.
* If LEDLINK not set, but LED1 is, LED1 is the status led. When turning on/off, setledlink uses digitalwrite (which does not respect the new pwm operation). In this case only, we will use the setledpoweridx instead of digitalwrite - costly (every 250ms this runs), but edge case / legacy. Allows more intuitive operation - if we blink an LED with the max and min PWM limits, we'd expect it to respect these. In this case, blink will also now update the led_power status, which keeps this accurate e.g. if ledpower 1 cmnd was sent, then blink occurred, led_state would read a 1 for that bit but the led would be off (but nothing was reading it for status so it didn't cause any trouble). Leaving digitalwrite when LEDLINK is defined as this is more efficient and the use case for pwm leds is to find buttons - link indicator would become more ambiguous for no benefit.
2020-05-20 13:23:53 +10:00
George bea58f223f Oops
Compile error. Forgot bracket.
2020-05-20 13:23:53 +10:00
George fb179c27af Fixes
* Setting commands don't update if no data is sent
* Didn't understand how pin mapping worked duh. Fixed.
2020-05-20 13:23:53 +10:00
George ce2696fef0 Fix compile errors
Missing brackets and semicolons of course. Blame python.
2020-05-20 13:23:53 +10:00