Commit Graph

208 Commits

Author SHA1 Message Date
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
George
a305f435e8 First pass at led pwm settings
* Added settings for ledpwm_on and ledpwm_off with defaults that mimic current digitalwrite function
* Changed ledpoweridx from digitalwrite to analogwrite
* Add commands to change new settings
2020-05-20 13:23:52 +10:00
Theo Arends
e1fbf64037 Add command `Rule0`
Add command ``Rule0`` to change global rule parameters
2020-05-19 11:15:31 +02:00
Theo Arends
90e833238f Allow no DeviceName 2020-05-17 17:38:28 +02:00
Theo Arends
d7f6c78ed9 Add command `DeviceName`
Add command ``DeviceName`` defaults to FriendlyName1 and replaces FriendlyName1 in GUI
2020-05-17 17:10:17 +02:00
Theo Arends
80c8bf675c Publish teleperiod data on command TelePeriod
Publish teleperiod data on command ``TelePeriod`` (#2567)
2020-05-16 17:44:29 +02:00
Theo Arends
af32b3f5e5 Add ESP32 configuration webcam 2020-05-12 15:42:16 +02:00
Theo Arends
02f61a5259 Allow rule processing on single Status command
Allow rule processing on single Status command only
2020-05-10 11:10:55 +02:00
Stephan Hadinger
646f76e459 Minor size optimizations 2020-05-06 08:56:09 +02:00
Stephan Hadinger
b07edd1d74 Move constants in PMEM 2020-05-04 20:00:05 +02:00
Theo Arends
99178c2f5d
Merge pull request #8315 from gemu2015/esp32-pwm
esp32 initial pwm support
2020-05-01 18:04:43 +02:00
gemu2015
bf29904b7a esp32 initial pwm support 2020-05-01 17:38:40 +02:00
Theo Arends
5d18ad1c74 Add experimental basic support for ESP32
- Add experimental basic support for Tasmota on ESP32 based on work by Jörg Schüler-Maroldt
- Bump version to 8.2.0.6
- This ESP32 upgrade breaks current ESP32 templates
2020-05-01 17:30:09 +02:00
Theo Arends
c0a05e9586 Change ESP32 pin allocation part 3 2020-04-30 18:47:34 +02:00
Theo Arends
ef61668037 Change ESP32 pin allocation part 2 2020-04-29 17:44:03 +02:00
Theo Arends
ae4ec4325d Change pin handling part 5 2020-04-27 17:16:52 +02:00
Theo Arends
c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends
c9149b53c5 Change pin handling part 1 2020-04-26 17:33:27 +02:00
Theo Arends
104e3c4838 Implement ARRAY_SIZE macro 2020-04-25 11:37:36 +02:00
Theo Arends
c0bc7abeee
Merge pull request #8272 from joerg555/development
Nimble no warnig, optimise CommandHandler()
2020-04-25 09:36:29 +02:00
Theo Arends
209c8f4eb7
Merge pull request #8270 from pcdiem/device-groups-10
Use defined mcast addr for device groups instead of sharing emuation
2020-04-25 09:35:22 +02:00
Jörg Schüler-Maroldt
4c0a85ba0f CommandHandler() optimize and maybe security fix 2020-04-25 00:55:39 +02:00
Theo Arends
9ed8e7c254 Fix internal array size checks 2020-04-24 17:39:26 +02:00
Paul C Diem
81a874ec72 Use defined mcast addr for device groups instead of sharing emuation's, Code size reductions 2020-04-24 09:12:43 -05:00
Theo Arends
be1fb3756c Change ESP32 freeHeap to MaxAllocHeap 2020-04-22 16:07:52 +02:00
Theo Arends
965c44c0a9 Fix shortcut SO response 2020-04-21 10:03:34 +02:00
Theo Arends
6c5e9a89c4 Add command `SO as shortcut for command SetOption` 2020-04-21 09:48:27 +02:00
Theo Arends
19796a7f97 Refactor ESP32 code 2020-04-19 16:58:13 +02:00
Theo Arends
e1d7416a36 Add features to ESP32
- Decided to support ONLY flash mode DOUT (no software change but allows for RX1/TX1)
- Add GPIO9 (RX1) and GPIO10 (TX1) for hardware serial support
- Add above two GPIOs to template
- Moved basic ADC0 support from GPIO36 to GPIO33
2020-04-18 18:10:41 +02:00
Theo Arends
09599bb4a1 Provide ESP32 base module support 2020-04-17 16:17:01 +02:00
Theo Arends
367658b75b More ESP32 compatibility 2020-04-16 18:33:26 +02:00
Paul C Diem
b7454d7bd8 Add DevGroupStatus command, Include member add/remove logging 2020-04-15 08:40:18 -05:00
Theo Arends
ba01cb2046 Fix GlobalTemp and GlobalHum
Fix GlobalTemp and GlobalHum (#8156)
2020-04-14 11:58:24 +02:00
Theo Arends
e8f3d1d986 Increase ESP32 compatibility
Increase ESP32 compatibility (breaks current ESP32 configuration again!)
2020-04-13 17:45:06 +02:00
device111
20c9a9cadf Add change global hum and temp with command 2020-04-13 13:26:49 +02:00
Theo Arends
ad1054a6ae Increase ESP32 compatibility
Increase ESP32 compatibility (breaks current ESP32 configuration!)
2020-04-12 18:17:35 +02:00
Theo Arends
93fd5dd618 Add experimental minimal support for ESP32
Add experimental minimal support for ESP32 (#8110)
2020-04-10 18:24:08 +02:00
Theo Arends
03968925eb Small optimization in Group Topic 2020-04-10 14:38:00 +02:00
Theo Arends
aad1aa0dbd Fix grpflg regression
Fix grpflg regression (#8114)
2020-04-10 10:38:39 +02:00
Theo Arends
24fa00ad57 Fix grpflg detection
Fix grpflg detection (#8095)
2020-04-09 11:51:39 +02:00
Paul C Diem
9794f12460 Add DevGroupSend command 2020-04-07 13:25:58 -05:00
Paul C Diem
2a367512d7 Add DevGroupName command 2020-04-06 12:29:50 -05:00
Theo Arends
d713468c0c Add support for longer template names
Add support for longer template names
2020-03-29 17:41:31 +02:00
Theo Arends
e5a44e6326 Refactor template 2020-03-28 18:08:43 +01:00
Theo Arends
dbc9f16ffc Add support for up to four MQTT GroupTopics
- Bump version to 8.2.0.2
- Add support for up to four MQTT GroupTopics using the same optional Device Group names (#8014)
2020-03-28 16:48:36 +01:00
Theo Arends
dad82fc472
Merge pull request #7934 from effelle/development
New command: Humidity Offset
2020-03-17 08:47:57 +01:00
Stephan Hadinger
9df5294f12 Moving more strings to PROGMEM 2020-03-16 18:55:58 +01:00
Federico Leoni
5ba26780e9 Humidity Offset 2020-03-16 14:29:55 -03:00
Paul C Diem
322952a54f Move PWM Dimmer init logic to pre init, Use dimmer_hw_min for PWM, Remote mode fixes 2020-03-14 18:53:09 -05:00
Theo Arends
d26ce074d8 Fix command FriendlyName when no index is given
Fix command FriendlyName newname when no index is given
2020-03-13 12:50:27 +01:00
Theo Arends
71d810aac4 Update Tx2x Sensor
Update Tx2x Sensor with command SpeedUnit (#7843)
2020-03-02 15:51:33 +01:00
Theo Arends
9962b311d5 Add support for UDP Group commands
Add commands ``SetOption85 0/1`` and ``DevGroupShare`` supporting UDP Group command using ``GroupTopic`` without MQTT by Paul Diem (#7790)
2020-02-25 12:13:49 +01:00
Paul C Diem
a550fe3ac7 Use newly allocated settings and flag 2020-02-24 16:34:45 -06:00
Paul C Diem
8182d6ef7b Merge branch 'development' of https://github.com/pcdiem/Tasmota into device-groups 2020-02-21 09:15:47 -06:00
Paul C Diem
f409d7258e Initial device groups support (power and light) 2020-02-21 09:09:21 -06:00
Theo Arends
6a84899e10 Eliminating call sntp_get_real_time
Change display of some date and time messages from "Wed Feb 19 10:45:12 2020" to "2020-02-19T10:45:12"
2020-02-19 15:23:59 +01:00
Theo Arends
af63bb363d Add support for FiF LE-01MR energy meter
Add support for FiF LE-01MR energy meter by saper-2 (#7584)
2020-02-10 15:18:11 +01:00
Theo Arends
1a074da0b5 Add BootCount Reset Time to Status
Add BootCount Reset Time as BCResetTime to ``Status 1``
2020-02-07 12:38:10 +01:00
Theo Arends
45ed0257b6 Better support for Prefix1 equals Prefix2 2020-01-18 16:57:48 +01:00
Theo Arends
a6e95211cc Add more web page sliders
Add web page sliders when ``SetOption37 128`` is active allowing control of white(s)
2020-01-16 14:22:39 +01:00
Theo Arends
338499d8e2 Fix unknown command topic 2020-01-14 16:57:55 +01:00
to-scho
80773f74c7 initialize shutters when interlock is changed 2020-01-12 15:41:51 +01:00
Theo Arends
0e0d8190fa Change some commands displaying all items
Change commands ``Prefix``, ``Ssid``, ``StateText``, ``NTPServer``, and ``FriendlyName`` displaying all items
2020-01-12 13:10:21 +01:00
Theo Arends
8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
Theo Arends
df944ed058 Fix Serial initialization regression
Fix Serial initialization regression from previous fix
2019-12-29 13:27:48 +01:00
Theo Arends
ab167b0974 Add more crash dump information 2019-12-28 14:54:26 +01:00
Hadinger
4d9c551083 Add WDT crash status 2019-12-28 13:14:51 +01:00
Theo Arends
24aff9b415 Add info to Status 0
- Add SerialConfig to ``Status 1``
- Add WifiPower to ``Status 5``
2019-12-27 11:13:22 +01:00
Theo Arends
b66cc3479f Add support for user defined GUI button text
Add commands ``WebButton1`` until ``WebButton16`` to support user defined GUI button text (#7166)
2019-12-24 17:10:50 +01:00
Theo Arends
ad4a7e91ac Add support for max 150 characters
Add support for max 150 characters in most command parameter strings (#3686, #4754)
2019-12-22 15:23:52 +01:00
Theo Arends
aae86a6718 Add fallback functionality
Add fallback functionality from next version 7.1.2.7
2019-12-16 15:13:57 +01:00
Theo Arends
72aa161ddd Extent statistics 2019-12-11 10:49:57 +01:00
Theo Arends
d3673963a2 Add Char Usage Ratio
Add Char Usage Ratio for future Settings char redesign
2019-12-09 16:16:21 +01:00
Theo Arends
29d5d68ca0 Redesign Exception reporting
Redesign Exception reporting removing exception details from both MQTT info and Status 1. Now consolidated in Status 12 if available.
2019-12-08 13:18:15 +01:00
Theo Arends
f3a5b033c8 Add save call stack in RTC memory in case of crash
Add save call stack in RTC memory in case of crash, command ``Status 12`` to dump the stack (#7114, #5883)
2019-12-07 18:32:39 +01:00
Theo Arends
2686ccb117 Revert "Merge pull request #7134 from s-hadinger/crashrecorder_rtc"
This reverts commit 758b255078, reversing
changes made to f4993736a5.
2019-12-07 16:50:10 +01:00
Hadinger
edc2dc5c79 Add save call stack in RTC memory in case of crash 2019-12-07 11:02:37 +01:00
Hadinger
7e1e85eba9 Add save call stack in RTC memory in case of crash 2019-12-07 11:01:48 +01:00
Hadinger
7796714ba0 Change from Crash to Restart -1 2019-12-07 11:00:32 +01:00
Hadinger
5a0febc64e Add save call stack in RTC memory in case of crash 2019-12-07 10:41:29 +01:00
Theo Arends
00fd7f2f7c Bump version to 7.1.2.2
Add command ``SerialConfig 0..23`` or ``SerialConfig 8N1`` to select Serial Config (#7108)
2019-12-06 15:02:05 +01:00
Theo Arends
e150717e95 Restore hardware detection 2019-12-02 10:31:33 +01:00
Theo Arends
1692241b25 Fix lost functionality of GPIO9 and GPIO10
- Remove inconsistent hardware detection introduced in version 7.0.0.5
- Fix lost functionality of GPIO9 and GPIO10 on some devices (#7080)
2019-12-01 19:03:53 +01:00
Theo Arends
0f68ccfe23 Add full exception data to Status 1 2019-11-20 21:49:57 +01:00
Theo Arends
14f6f6f22b Add command TempOffset -12.6 .. 12.6
Add command TempOffset -12.6 .. 12.6 to set global temperature sensor offset (#6958)
2019-11-18 12:15:49 +01:00
stefanbode
68c3255658
Enable Temp. Compensation by global offset 2019-11-18 09:18:21 +01:00
Theo Arends
7b10bec8fe Refactor SDK erase
Add device hardware type to status 2
2019-11-14 15:57:52 +01:00
Theo Arends
e099ebe7b6 Bump version to 7.0.0.4
Add command WifiPower 0 .. 20.5 to set Wifi Output Power which will be default set to 17dB
2019-11-08 13:00:32 +01:00
Theo Arends
6be5daa77c Fix Tele message when DeepSleepTime is 0
Fix Tele message when DeepSleepTime is 0 (#6842)
2019-11-07 14:49:29 +01:00
stefanbode
5dcf0de19a
fix. teleperiod issue with deep_sleep. #6842
#6842 fixed
2019-11-07 10:55:31 +01:00
Theo Arends
b46c6ef3e5 Refactor I2c drivers 2019-11-04 10:38:05 +01:00
Theo Arends
8ba8f406f6 Update support_command.ino 2019-11-03 17:57:22 +01:00
Theo Arends
1e29593469 Bump version 7.0.0.3
Initial support for I2C driver runtime control using command I2CDriver and document I2CDEVICES.md
2019-11-03 17:54:39 +01:00
Theo Arends
4891bad69a Change sonoff references to tasmota 2019-11-03 15:37:33 +01:00
Theo Arends
4b49979274 Add SetOption comments to code 2019-11-03 13:51:22 +01:00
Theo Arends
5f4e38023d Add SetOption comments to code 2019-11-03 12:33:36 +01:00
Theo Arends
e497421ace Add command SetOption75 0/1 to switch between grouptopic
Add command SetOption75 0/1 to switch between grouptopic (0) using fulltopic replacing %topic% or (1) is cmnd/<grouptopic> (#6779)
2019-10-31 17:24:06 +01:00
Theo Arends
23cef04b9e Refactor command SetOption 2019-10-31 13:18:00 +01:00
Theo Arends
c541457763
Merge branch 'development' into fix_so37 2019-10-31 12:15:35 +01:00
Theo Arends
50e1038c05 Add support for SetOption82-113 2019-10-31 12:12:48 +01:00
Stephan Hadinger
a8d0d8a67f Fix better control of RGB/White when SetOption37 >128, added Dimmer1 and Dimmer2 commands 2019-10-31 11:12:00 +01:00
Theo Arends
6fc9dccfe8 Some CppCheck optimizations 2019-10-30 14:08:43 +01:00
Theo Arends
0e07397ff7 Change Sonoff-Tasmota to Tasmota 2019-10-27 12:04:08 +01:00