Commit Graph
171 Commits
Author SHA1 Message Date
Bartłomiej Zimoń 08dc1d9bdf docs: add 'd' formating in rules 2020-03-08 22:07:30 +00:00
Gijs Noorlander a8682e23ae [DateTime] Documented command + few fixes
- Argument number was incorrect
- did not set time source.  (so you had to set NTP which defeats the purpose of this command
- Added documentation
- Moved the command call to the correct first letter of the alphabet.
2020-03-06 01:33:14 +01:00
Gijs Noorlander 6a5e622d58 [docs] Document RTC memory 2020-02-26 22:54:58 +01:00
Gijs Noorlander ff53e7477a [Cron] Fix handling bogus last/next times + restructure code
The plugin was assuming the values stored in UserVar were correct.
After a cold boot, or when the NTP time (or via GPS) was not yet set, these values for last time or next time could be just about any value.
This means it was possible the Cron task would never fire an event if the next time was computed far in the future.

Also restructured the code a bit, to make it more readable.
2020-02-26 01:57:38 +01:00
TD-er 18f5ff9492 Merge pull request #2904 from TD-er/feature/enable_disable_command
[Commands] Update docs + add task/controller enable/disable commands
2020-02-25 17:08:06 +01:00
Gijs Noorlander 6ce3e74029 [docs] Document P036 Framed OLED 2020-02-25 17:06:51 +01:00
Gijs Noorlander 1094144f1a [docs] Document P081_Cron 2020-02-25 15:33:36 +01:00
Gijs Noorlander 5f11850bb8 [Commands] Update docs + add task/controller enable/disable commands
Also removed ProtocolIndex from the event struct as it is redundant information which can easily be forgotten to set.

Sorted the described commands in the documentation and added a few missing commands.
2020-02-25 11:56:08 +01:00
TD-er 0397eae003 [Rules] Use curly braces for string conversion commands 2020-02-24 23:40:04 +01:00
TD-er 6022fc5837 [Rules] Remove [div100ths:...] as it is too specific
Will add a more generic variant later.
2020-02-24 22:50:10 +01:00
Gijs Noorlander 079e84b3d3 [Rules] Make nested string modification commands possible 2020-02-24 13:02:12 +01:00
Gijs Noorlander 4a19cc8b77 [docs] Document string handling in rules (PR #2828 )
Closes: #2828
2020-02-24 01:46:35 +01:00
Gijs Noorlander a15955979a [CCS811] Act on each reading, but only send to controller on PLUGIN_READ
The same as been done in P083_SGP30.
2020-02-23 00:11:52 +01:00
Gijs Noorlander 05f1134d9c [CCS811] Plugin 089 CCS811 TVOC/eCO2
Taken from Playground and adapted a bit to use modern coding style
2020-02-22 22:53:27 +01:00
Gijs Noorlander 045e9ddd19 [Docs] Added doc stubs of recently added plugins 2020-02-22 21:37:53 +01:00
Grovkillen 619600f99c Merge branch 'mega' into mega 2020-02-21 14:58:54 +01:00
Toni 5f0b4f0d6f HeatpumpIR 1.0.11 update, P088_HeatpumpIR support for Mitsubishi MSC and Mitsubishi Heavy FDTC 2020-02-05 18:58:50 +02:00
Gijs Noorlander 058bdd645f [docs] Corrected supported SenseAir sensors in docs 2020-02-04 17:21:30 +01:00
Grovkillen 661026f3a7 [docs] added rules example + fixed S11 (P052) links 2020-02-04 17:14:35 +01:00
Grovkillen b72c3d9d64 [docs] added rules example + fixed S11 (P052) links 2020-02-04 14:29:45 +01:00
TD-er 3ae3b457d6 Merge pull request #2809 from Grovkillen/mega
[DOCS] P052 Senseair S11 added
2019-12-11 12:36:22 +01:00
Grovkillen 639511cd01 [DOCS] S11 re-phrased a sentance 2019-12-10 09:27:19 +01:00
Grovkillen d37edbfea6 [DOCS] S11 fixed PR after Gijs review 2019-12-10 09:21:56 +01:00
Grovkillen baf0dd7210 [DOCS] S11 fixed some incorrect data 2019-12-09 22:03:54 +01:00
Grovkillen 80eb56ac61 [DOCS] P052 Senseair S11 added 2019-12-09 21:59:55 +01:00
Gijs Noorlander ddf44e8d49 [Events] Run events from rules immediately + add AsyncEvent command
It appears the events called from rules must be run immediately, but there are some use cases where it can be useful to have async events.
So changed back the behavior for events called from rules, to be executed immediately.
Added the new command AsyncEvent.
2019-12-04 15:45:36 +01:00
Gijs Noorlander 836ad1397b [Rules] Parse template for all command calls
Until now a lot of ways to handle a command were handling the pre-processing of the command differently.
So the source of the command can make a difference whether system variables can be used for example.

Now all use the same function to pre-process the commands.
2019-12-03 19:20:43 +01:00
Gijs Noorlander 8c52881d54 [WiFi] Use last known BSSID & channel from RTC + MQTT fixes
Store the last used BSSID and channel in the RTC and use it for initial WiFi connect attempt.
This does speed up the WiFI connection to about 1.8 sec after boot.
Old situation was connected at about 3.9 sec after boot.

When booting from cold boot, the strongest known RSSI is chosen first.

MQTT controller queue handling is now more aggressive in trying to get rid of buffered packets.
It also now accepts the MQTT messages before it is connected to WiFi (or when not yet reconnected)
2019-12-01 23:26:20 +01:00
Florin 28cb9a42b4 add documentation for subscribe command. 2019-11-15 19:01:10 -05:00
Gijs Noorlander a5daf6ff5f [Pulse Counter] Add taskIndex parameter to resetPulseCounter command
Fixes: #2710
2019-11-11 13:34:51 +01:00
Gijs Noorlander 2025228ce3 [Docs] Document changed rules parameter parsing
See also https://github.com/letscontrolit/ESPEasy/issues/2724
2019-11-09 23:52:45 +01:00
TD-er 78486f5c6c [Docs] Document new resetpulsecounter command 2019-11-07 23:02:53 +01:00
Gijs Noorlander dd928b0776 [Docs] Describe PlatformIO installation 2019-10-27 13:38:42 +01:00
Gijs Noorlander 83c600e82d [Build] Rename ESP32 env 1M8_partition to 4M316k
1M8 does look a bit too much like "1MB".
4M316k does use the same naming schema as the other builds, stating the flash size and SPIFFS size.
2019-10-27 13:38:16 +01:00
Gijs Noorlander 07e30ff616 [WiFi] Only reset wifi connect attempt on stable connection (#2650)
See #2650
The counter wifi_connect_attempt is being used to determine whether the fallback SSID should be tried.
It is also used to determine whether a "quick reconnect" is possible using the BSSID and channel of the last successful connection.
If the connection is unstable, (last connection was active for over 5 minutes) then the connect attempt counter can be reset.
2019-10-25 17:32:19 +02:00
Gijs Noorlander a81bfc35c6 [Docs] Describe project directory structure 2019-09-25 00:46:04 +02:00
Gijs Noorlander 83e9d20f78 [Rules] Some minor code improvements (suggests from @uzi18 ) 2019-09-25 00:44:44 +02:00
Gijs Noorlander efbb4e13ac [Rules] Allow transformations on [var#n] and add [int#n]
Also add some caches to find task-value names.
Fix some minor issue when referring [var#n] variables. These were always rounded to 2 decimals.
Also added [int#n] to address the same variables as with [var#n] but rounded to integer values, to be used in rules for more reliable comparing.
2019-09-25 00:44:44 +02:00
Gijs Noorlander 8b5470e9a8 [Rules] Reduce memory usage when parsing rules templates
The parsetemplate function was almost always shown as function with the lowest free memory when called.
The function did make a lot of memory re-allocations and was very hard to read.

This commit is about reducing the memory allocations and speed up the parsing.
Will also fix [this issue reported on the forum](https://www.letscontrolit.com/forum/viewtopic.php?p=39219#p39219)
2019-09-25 00:44:44 +02:00
Gijs Noorlander 58826ef1b8 [WiFi] Fix No reconnect when setup page was not completed
The WiFi setup page does set a flag to indicate the connect attempt was initiated from the setup. 
But the flag was only reset when the setup page reloaded..
If that did not happen, the node could retry forever to (re)connect to the AP if the channel was changed or the node cannot see the old BSSID anymore (e.g. out of reach when using repeater)
Also the first attempt after changing WiFi settings would also (initially) fail due to retrying with old BSSID/channel combination.
2019-09-09 12:12:40 +02:00
Toni 2f1c801100 Documentation for P088 HeatpumpIR plugin 2019-08-30 11:01:40 +03:00
Gijs Noorlander a94185a90c [Settings Archive] Only allow on core 2.5.0 and newer 2019-08-29 17:23:34 +02:00
Gijs Noorlander 6a4d8bc0c7 [Settings Archive] Documentation 2019-08-29 17:23:34 +02:00
Gijs Noorlander 88735f532b [WiFi] Move functions to separate files and document
Move WiFi/Network related functions into separate files to keep them organized and easier to locate.
Also added lots of comments and some documentation on the state machine handling WiFi connect and reconnects.
2019-08-23 18:32:04 +02:00
Gijs Noorlander 8be2dd2d0c [Docs] Document Timing Stats page 2019-08-23 18:28:25 +02:00
Gijs Noorlander 022ca8a6ec [LoRa/TTN] Add Sample Set Initiator to mark samples of the same set
For LoRa, it may take a while to send out samples of different plugins.
This makes it hard to match samples belonging to the same set after receiving them.
The Sample Set Initiator is a task index which should always be considered as the first of a set samples sent to the controller.
For example when triggering to send a set of samples from rules, its order can be always the same. 
Setting the initiator to the first one of the sequence, the same sample set counter will be sent along with the samples.
2019-08-14 19:50:27 +02:00
Gijs Noorlander 8a72d288d8 [LoRa/TTN] Document LoRaWAN/TTN controller 2019-08-13 01:49:02 +02:00
Gijs Noorlander 74d790f105 [LoRa TTN] Add documentation stubs for C018-LoRaTTN and C017-Zabbix 2019-08-12 23:10:17 +02:00
Gijs Noorlander 1d2c3ef87b [Docs] Building ESPeasy using PlatformIO in VS-Code
As discussed on the [Forum](https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=6922&p=38512#p38512)
2019-08-11 21:32:08 +02:00
Gijs Noorlander 800e7d224c [Docs] Document sharing plugin via ESPeasy p2p controller
Fixes #2522
2019-08-08 23:11:57 +02:00