Compare commits

..
Author SHA1 Message Date
ESPEasy release bot b5fd0e0ed1 automatically updated release notes for mega-20190903 2019-09-03 04:00:13 +02:00
Gijs NoorlanderandGitHub 5bf1127ca2 [Build] Fix build error after rename flash layouts 2019-09-02 23:20:37 +02:00
Gijs NoorlanderandGitHub bc80d2f025 Merge pull request #2596 from jimmys01/gitignore
[Git] Ignore custom files and the .ino.cpp
2019-09-02 13:18:20 +02:00
Gijs NoorlanderandGitHub 04eacb57c4 [Vagrant] Fix changed PIO env name in bootstrap.sh 2019-09-02 13:15:38 +02:00
jimmys01 83f2111689 [Git] Ignore custom files and the .ino.cpp 2019-09-02 14:12:24 +03:00
Gijs NoorlanderandGitHub a37716449e Merge pull request #2595 from TD-er/bugfix/Vagrant
[Vagrant] Check if file exists before adding CRC info and quiet ZIP
2019-09-02 13:00:19 +02:00
Gijs Noorlander 8b9f66e465 [Vagrant] Check if file exists before adding CRC info and quiet ZIP 2019-09-02 12:59:45 +02:00
Gijs NoorlanderandGitHub a68dc433a3 Merge pull request #2584 from ToniA/HeatpumpIR
Documentation for P088 HeatpumpIR plugin
2019-09-02 11:10:26 +02:00
Gijs NoorlanderandGitHub bf5c4208f6 Merge pull request #2589 from TD-er/bugfix/minimal_IRext_4mbuild
[build] Add Minimal IRext 4M build
2019-09-02 11:09:56 +02:00
Gijs NoorlanderandGitHub 5aad747ded Merge branch 'mega' into bugfix/minimal_IRext_4mbuild 2019-09-02 11:09:49 +02:00
Gijs NoorlanderandGitHub 823f130ac5 Merge pull request #2582 from uzi18/patch12
- [C011] fix method save #2550
2019-09-02 11:08:34 +02:00
Gijs Noorlander 98a17a39aa [Build] Start making Vagrant provisioning for quick self builds
Installing Vagrant:

Vagrantup.com site: https://www.vagrantup.com/docs/installation/
VirtualBox: https://www.virtualbox.org/

Great tutorial: https://www.sitepoint.com/getting-started-vagrant-windows/



After installing Vagrant and VirtualBox, open a shell in the tools/vagrant folder.
Run:
  vagrant up

To halt the VM, type:
  vagrant halt
2019-09-02 11:07:25 +02:00
Gijs Noorlander a8d379f7b0 Disable Home MQTT for dev build to make it fit max sketch size
Is a temporary disable to let the build succeed again.
This controller is included in the test build.
2019-09-02 01:38:46 +02:00
Gijs Noorlander 523541e7f5 [MemAnalyzer] Fix MemAnalyzer.py script to work with USES_.... defines
The MemAnalyzer tool was not able to perform a proper analysis of the current builds, since we introduced the `USES_P001` syntax of defines to determine what should be included and what not.
2019-09-02 00:49:31 +02:00
Gijs Noorlander 9dd800d6b7 Add TextArea option for C11 and fix some build inconsistencies 2019-09-01 01:26:16 +02:00
Gijs Noorlander 8695e59bba Disable Settings Archive on minimal builds
Added new define for this: USE_SETTINGS_ARCHIVE
2019-08-31 13:19:32 +02:00
Gijs Noorlander 5f13a58658 [Build] Fix typo error in platformIO.ini
Query-replace mistake in capitalization.
2019-08-31 13:18:27 +02:00
Gijs Noorlander 89b4616066 Add minimal_IRext_ESP8266_4M2M build using 2M SPIFFS
The first build to use 4M/2M layout
2019-08-31 12:57:12 +02:00
Gijs Noorlander 64d714a475 [build] Add Minimal IRext 4M build
Fixes: #2587
2019-08-31 12:41:56 +02:00
Bartlomiej Zimon 0d6d136699 [DHT] change to input with pullup 2019-08-30 10:37:33 +00:00
Bartlomiej Zimon 879c75da96 [DHT] change pin into input before delay 2019-08-30 10:19:20 +00:00
Toni 2f1c801100 Documentation for P088 HeatpumpIR plugin 2019-08-30 11:01:40 +03:00
ESPEasy release bot 298d45e984 automatically updated release notes for mega-20190830 2019-08-30 04:00:13 +02:00
Bartlomiej Zimon f8f2db919b - [C011] fix method save #2550 2019-08-29 23:39:40 +00:00
Gijs NoorlanderandGitHub 68061f876e Merge pull request #2572 from TD-er/feature/download_settings
Download settings from archive or other node
2019-08-29 23:58:55 +02:00
Gijs Noorlander 2ff0b43a27 Move dev build to core 2.6.0 (to make it fit) 2019-08-29 23:16:25 +02:00
Gijs Noorlander bfb67d4866 Merge remote-tracking branch 'origin/feature/download_settings' into feature/download_settings 2019-08-29 17:23:59 +02: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 b977f9b0b7 [Settings Archive] Allow to download settings from some HTTP archive 2019-08-29 17:23:34 +02:00
Gijs NoorlanderandGitHub 0ded95cd7d Merge pull request #2571 from uzi18/patch-5
[DHT] start conversion improvements
2019-08-29 17:23:12 +02:00
Gijs NoorlanderandGitHub 805e76dfb8 Merge pull request #2574 from TD-er/bugfix/gratuitous_arp
[Gratuitous ARP] Only send ARP packets when IF is up
2019-08-29 17:22:59 +02:00
Gijs NoorlanderandGitHub a2d8c3a2c9 Merge pull request #2575 from clumsy-stefan/code_dependencies
Reduce bin size by excluding unneeded parts
2019-08-29 17:22:25 +02:00
Bartłomiej ZimońandGitHub 9005734dbc [DHT] fix timeout reading 2019-08-28 22:42:37 +00:00
stefan 85518c92f7 Revert "Reduce bin size -- cast blynk code"
This reverts commit 1050a07f78.
2019-08-28 21:28:05 +02:00
stefan 679ca3e4a1 Reduce bin size -- enable all controller structs again
enable all controller structs to make platformIO happy again (hopefully)..
However, this does not seem to add any  size at least not on Arduino IDE....
2019-08-28 15:56:20 +02:00
stefan 1050a07f78 Reduce bin size -- cast blynk code
save some bytes by casting unused blynk code
2019-08-28 12:58:56 +02:00
stefan 0a674f5e33 Reduce bin size -- add PubSubClient to #ifdef's
Added all references to PubSubClient to the `#ifdef USES_MQTT`castings and included it only if MQTT is used or P37 is enabled.
2019-08-28 11:49:46 +02:00
stefan 322b8330d6 Reduce bin size -- changed macro definitions
Changed macro definitions (by @TD_er) to hopefully make travis happy again...
2019-08-28 11:02:20 +02:00
stefan 5cb8e8cde3 Reduce bin size -- Typos.
Corrected some typos...
2019-08-28 08:59:49 +02:00
stefan 24e9244dca Reduce bin size by excluding unneded parts
Trying to reduce size of the compiled binaries by  excluding certain parts of the code if not needed.

See definitions at the end of  'define_plugin_sets.h'
 Currently done:
- Casting all controllers that are not included
- Casting all MQTT related code
- Casting all Domoticz related code
2019-08-28 07:54:51 +02:00
Gijs Noorlander d540b624d5 [PlatformIO] Changes for core 2.6.0 (Tasmota patched core)
As suggested [here](https://github.com/letscontrolit/ESPEasy/commit/54117e908fd48771bc810718de7a1b13bde671ec#commitcomment-34851091) by @Jason2866
2019-08-28 00:33:35 +02:00
Gijs Noorlander a6ab40ed96 [Gratuitous ARP] Only send ARP packets when IF is up
See this PR: https://github.com/xoseperez/espurna/pull/1877  and discussion here: https://github.com/esp8266/Arduino/issues/5998#issuecomment-525332517


Fixes https://github.com/letscontrolit/ESPEasy/issues/2374
2019-08-28 00:31:16 +02:00
Gijs Noorlander 8c3d2155c2 [Settings Archive] Only allow on core 2.5.0 and newer 2019-08-27 22:48:01 +02:00
Gijs Noorlander a4bcd4c57b [Settings Archive] Documentation 2019-08-27 21:29:20 +02:00
Gijs Noorlander 33549c2e4b [Settings Archive] Allow to download settings from some HTTP archive 2019-08-27 21:00:53 +02:00
Bartłomiej ZimońandGitHub 18d26a382c [DHT] start conversion improvements
- use delays according to datasheets
- set bus high after a request for every type of sensor (this may fix problems with pullup resistors)

fixes #2569
2019-08-27 15:44:34 +02:00
ESPEasy release bot 4a8cfd2d9b automatically updated release notes for mega-20190827 2019-08-27 04:00:08 +02:00
Gijs NoorlanderandGitHub f2cede25e0 Merge pull request #2568 from jimmys01/mega
Update IR library and usage instructions
2019-08-27 00:17:13 +02:00
jimmys01 0e054ea2af IR Update library and usage instructions 2019-08-26 14:06:23 +03:00
Gijs NoorlanderandGitHub 1a1b7ce219 Merge pull request #2559 from TD-er/bugfix/WiFi_AP_disable
[WiFi] Improve WiFi reconnect stability and fix initial setup
2019-08-26 12:26:37 +02:00
Gijs Noorlander 6c88239256 [WiFi] Add RSSI symbol to WiFi setup page 2019-08-26 11:25:55 +02:00
TD-er d8e7fbf284 [LoRa] Keep out LoRa code if no supported controller is used
Building for core 2.6.0 was next to impossible with the LoRa related code to create packed raw data streams was included.
2019-08-25 23:58:24 +02:00
Gijs Noorlander d5a5accbef [WiFi] Clean up WiFi code and modernize WiFi setup page
The last page of the wizard now shows the network info, just like in the sysinfo page and has a button at the bottom which links to the IP address of the node on the normal network
This last page of the setup also has the menu bar at the top and also the default template now shows a warning when you're connected via AP mode.
This allows for easier setup, since you don't have to switch networks anymore
2019-08-24 00:52:27 +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
ESPEasy release bot 4b3a2ff712 automatically updated release notes for mega-20190823 2019-08-23 04:00:05 +02:00
Gijs Noorlander 1a98133b5a [WiFi] Improve WiFi reconnect stability and fix initial setup
Simplified the WiFi connect state machine.
Fixed setup of initial WiFi configuration.

AP mode is now kept as long as client is connected.
AP mode will be started immediately if there are no valid WiFi credentials, or after 20 seconds of no wifi connection.
AP mode will be disabled 60 seconds after starting it, or after the last client disconnected from the AP.
2019-08-23 01:50:29 +02:00
Gijs NoorlanderandGitHub ee4a6a63b3 Merge pull request #2543 from TD-er/plugin/HeatpumpIR
New Plugin: Heatpump IR (from Playground P115)
2019-08-22 23:54:46 +02:00
Gijs Noorlander 817d0c3f12 [Build] Remove all core 2.6.0 SDK2 builds
They are now obsolete and the test builds no longer fit in the iram.
2019-08-22 12:58:20 +02:00
Gijs NoorlanderandGitHub 23a32c65a6 Merge pull request #2549 from uzi18/patch12
Modbus RTU received packet improvements
2019-08-22 11:36:01 +02:00
Gijs Noorlander a70360f4aa Remove test_core_260_sdk2_alpha builds
These use too much iram, so cannot be built anymore.
2019-08-22 11:06:43 +02:00
ToniandGijs Noorlander 61bac376f8 Configurable MQTT package size in Controller.ino
A problem was found with Domoticz MQTT testing, when sending heatpumpir commands via Domoticz MQTT api
2019-08-22 11:05:36 +02:00
Gijs Noorlander 63dff349ba [PlatformIO] Fix missing define on some core 2.4.x builds 2019-08-22 00:29:52 +02:00
Gijs Noorlander 4b6e4c270a [PlatformIO] Maintain same order of platform and build_flags
This makes it easier to adapt settings, since platform and build_flags both depend on the same variable section.
Thus it makes sense to have them on consecutive lines.
2019-08-22 00:17:46 +02:00
Gijs Noorlander 0eaa1de569 [PlatformIO] Move duplicate lines to global [env] 2019-08-22 00:01:16 +02:00
ESPEasy release bot a4377aca02 automatically updated release notes for mega-20190817 2019-08-17 04:00:12 +02:00
Bartlomiej Zimon 12f9eb29b3 [Modbus RTU] add slave number check 2019-08-17 00:23:42 +00:00
Bartlomiej Zimon 52a701b05b [Modbus RTU] one more buffer check 2019-08-17 00:19:09 +00:00
Bartlomiej Zimon cc06ef13bf [Modbus RTU] do more checks with received packet 2019-08-16 22:55:00 +00:00
Bartlomiej Zimon 805c45ba93 [Modbus RTU] drop all data in buffers 2019-08-16 22:54:06 +00:00
Gijs NoorlanderandGitHub 54117e908f Merge pull request #2546 from TD-er/feature/LoRaTTN_decoder
[LoRa/TTN] Add raw packed decoder (more values, less data) & reduce joins
2019-08-17 00:36:37 +02:00
Gijs Noorlander 72f80d121c [Heatpump IR] Add minimal IR_ext build for 4M flash nodes
See discussion here: https://github.com/letscontrolit/ESPEasy/pull/2543#issuecomment-521676593
2019-08-16 11:10:30 +02:00
Gijs Noorlander 49a7b541f8 [LoRa/TTN] Correct decoder example in comments 2019-08-15 15:56:44 +02:00
Gijs Noorlander 4bda90bd58 [LoRa/TTN] Add decoder for the packet header
Makes the rest of the decoder.js a lot simpler.
Also changed the GPS lat/long into 3 bytes again, saving 2 bytes in the packet length.
GPS outputs now 7 values  using 18 bytes (incl. header)
2019-08-15 14:20:36 +02:00
Gijs Noorlander 2a30651a7f [LoRa/TTN] Add raw encoder/decoder for sysinfo plugin
This does send out all 11 values of the sysinfo plugin.
2019-08-15 14:18:42 +02:00
Gijs Noorlander 77b39b748c [LoRa/TTN] Output packed raw format for uploading to TTN
This does allow uploading even more parameters than the 4 supported by ESPeasy, since encoder and decoder can be tailored to the specific plugin.
For example the GPS plugin can now upload 7 parameters in only 20 bytes.

Still to do: Why can the decoder not handle encoding per 24 bit? (lat/lon do fit perfectly fine in 24 bit).
2019-08-15 02:12:13 +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 915cadf0a8 [LoRa/TTN] Reduce number of join requests
Assume module is joined. If not, a TX attempt will return "not_joined" after which a join should be attempted.
2019-08-14 17:07:16 +02:00
Gijs Noorlander bfc95bb32d [LoRa/TTN] Toggle visibility of OTAA/ABP parameters based on selection 2019-08-14 09:43:30 +02:00
ToniandGijs Noorlander d0734e678b Fix compile warnings in HeatpumpIR plugin 2019-08-13 11:35:35 +02:00
ESPEasy release bot aba4d88ee1 automatically updated release notes for mega-20190813 2019-08-13 04:00:10 +02:00
Gijs Noorlander 8a72d288d8 [LoRa/TTN] Document LoRaWAN/TTN controller 2019-08-13 01:49:02 +02:00
Gijs Noorlander d8eb4dfa84 Fix Build issues P088_HeatpumpIR 2019-08-13 00:21:11 +02:00
Gijs Noorlander 5afa2c59d3 Wrap P088 in USES_P088 defines 2019-08-12 23:30:51 +02:00
Gijs Noorlander 00ff69c34f Rename _P115_HeatpumpIR.ino to _P088_HeatpumpIR.ino 2019-08-12 23:30:44 +02:00
ToniandGijs Noorlander 6ac0f6e561 Add HeatpumpIR plugin P115 2019-08-12 23:30:37 +02:00
ToniandGijs Noorlander b2214f0848 Add HeatpumpIR 1.0.9 library 2019-08-12 23:30:30 +02:00
Gijs NoorlanderandGitHub 34c891177d Merge pull request #2539 from TD-er/feature/LoRaWAN_TTN_controller
Feature: LoRaWAN TTN controller  RN2384 [Experimental]
2019-08-12 23:10:56 +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 16bcd6220d [LoRa TTN] Make settings configurable & add support ABP 2019-08-12 21:07:48 +02:00
Gijs Noorlander 716ead2146 [LoRa TTN] Add decoder types 2019-08-12 01:02:14 +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 49ce799795 [LoRa TTN] Add basic decoder for all plugins
Next step will be to let the plugin generate the binary data.
2019-08-11 01:33:11 +02:00
Gijs Noorlander 472d004fdd [Encoder] ICACHE_RAM_ATTR added for encoder plugin
Fixes #2492
2019-08-10 22:45:00 +02:00
Gijs Noorlander 13e6b94e16 [LoRa TTN] Start working on the interpreter of decoded data
Currently BME280 and SystemInfo are being detected.
2019-08-10 14:10:51 +02:00
Gijs Noorlander 7d54a43b96 [LoRa TTN] Send data to the TTN network + decoder 2019-08-10 02:59:54 +02:00
Gijs Noorlander b5e9784fd5 [LoRa TTN] Show Dev Addr in controller overview page as host
Normally a controller uses a hostname or IP to connect to.
But a LoRa node does not connect to any specific host, but does broadcast messages using its own unique dev addr.
This will be shown as host description in the Controller overview page.
2019-08-09 23:33:16 +02:00
Gijs Noorlander 8e2f4f3d87 [Cleanup] Stop using global declared dummyString
This string may end up keeping quite some memory for way longer than actually needed.
2019-08-09 22:39:07 +02:00
Gijs Noorlander d1c7e3f67c [Cleanup] Split handle_devices() function into separate functions 2019-08-09 22:38:10 +02:00
Gijs Noorlander 50fea573ce [Cleanup] Split handle_controllers() function into separate functions
The handle_controllers function is rather long, so it is now split into one main wrapper and 4 smaller parts.
2019-08-09 20:55:31 +02:00
Gijs Noorlander 49012df16e [Cleanup] Uncrustify of all WebServer_*.ino files 2019-08-09 17:24:47 +02:00
Gijs Noorlander 9bff07fd65 [Cleanup] Split Webserver.ino is separate files per page 2019-08-09 17:23:38 +02:00
Gijs Noorlander 25ec44c1b8 Missing break; statement in controllers function switch statement
Some controllers were missing a break; in switch statements.
This would then also execute the next case in the switch list.
2019-08-09 15:20:21 +02:00
Gijs Noorlander 29ac2dfa9b [Controller page] Restructure Controller rendering page
Move loading and saving of controller settings to separate functions per item.
Also string generation is now done in a function to keep internal strings in sync.
2019-08-09 15:18:43 +02:00
ESPEasy release bot 3aef271c6a automatically updated release notes for mega-20190809 2019-08-09 04:00:19 +02:00
Gijs Noorlander 94f66e3db2 [LoRa TTN] Create special interface for LoRa TTN controller
Lots of elements of a standard controller are not needed for LoRa, or called differently.
2019-08-09 02:22:01 +02:00
Gijs Noorlander 39de02cf62 [LoRa plugin] Use separate object for C018 data
To avoid object initialization before the controller is set active.
2019-08-08 23:14:34 +02:00
Gijs Noorlander 5e9be55656 [RN2384 lib] Only use const String& in function parameters
Making these functions a lot more memory efficient
2019-08-08 23:14:34 +02:00
TD-er e0689f621b [LoRa TTN] Add some statistics to the controller info page 2019-08-08 23:14:34 +02:00
TD-er 39f8d405b0 Improve RN2xx3 LoRo TTN library 2019-08-08 23:14:34 +02:00
Gijs Noorlander 847f353b9d [TTN] Skeleton for C018 TTN RN2xx3 controller
Initial support for LoRaWan TTN controller for ESPeasy
2019-08-08 23:14:34 +02:00
Gijs Noorlander c88bf664af [TTN] Add RN2483-Arduino-Library 2019-08-08 23:14:34 +02:00
Gijs NoorlanderandGitHub a355e2ea8c Merge pull request #2537 from TD-er/documentation/ESPeasy_p2p
[Docs] Document sharing plugin via ESPeasy p2p controller
2019-08-08 23:12:33 +02:00
Gijs Noorlander 800e7d224c [Docs] Document sharing plugin via ESPeasy p2p controller
Fixes #2522
2019-08-08 23:11:57 +02:00
Gijs NoorlanderandGitHub a227f0fe7b Merge pull request #2534 from uzi18/patch-5
[P076] setMode is not needed in interrupt mode
2019-08-08 17:15:28 +02:00
Gijs NoorlanderandGitHub 02dce83525 Merge pull request #2536 from TD-er/feature/ShowExtraDeviceInfo
[Plugin info] Show extra info in devices web page
2019-08-08 14:18:16 +02:00
Gijs Noorlander 1ac2b97d6d [Plugin info] Show extra info in devices web page
For example the GPS fix state and nr. sats tracked.
2019-08-08 13:06:31 +02:00
Gijs NoorlanderandGitHub 445362f722 Merge pull request #2533 from TD-er/bugfix/misc_fixes
Various fixes and add better port description for devices
2019-08-08 10:43:16 +02:00
Gijs NoorlanderandGitHub bbc9451003 Merge pull request #2531 from tiomny/WeekDayStr
String representation for requested weekday
2019-08-08 10:43:02 +02:00
Gijs Noorlander 4a29795409 [Shutdown] Move delay(100) to after SPIFFS.end() 2019-08-06 23:00:21 +02:00
Bartłomiej ZimońandGitHub 6392bd2bfc [P076] setMode is not needed in interrupt mode 2019-08-06 21:20:03 +02:00
Gijs Noorlander f33a0ec3e6 [ArduinoOTA] Suggest UDP port to use 18266 since 8266 is for ESPeasy p2p
UDP port 8266 is an officially IANA registered UDP port for ESPeasy p2p, so do not use it (on ESPeasy at least) for Arduino OTA.
2019-08-06 17:31:23 +02:00
Gijs Noorlander 6c5d5dce3c [Reboot] Flush all buffers and controllers before reboot
When calling a reboot, not everything was flushed and stored the same way as when going to deep sleep.
2019-08-06 17:29:43 +02:00
Gijs Noorlander 5dbfc1bd68 [WiFi] Fix issue where node could disable plugins when offline for long
The flag to signal a successful boot was only set when there was a successful WiFi connection.
But this can lead to step by step disabling of plugins when the accesspoint is unreachable for a long time.
2019-08-06 17:26:07 +02:00
Gijs Noorlander 4052b3b271 [WiFi] Cleanup some WiFi code 2019-08-06 17:23:38 +02:00
Gijs Noorlander 89a49a3355 [Webserver] Do not allow writing to internal buffer for chunked transfer
Some plugins and controllers were writing to TXBuffer.buf directly.
This should not happen, since then the memory usage of that buffer will increase and never decrease again.
Also C011 Generic HTTP advanced was not using existing functions for displaying config page.
2019-08-06 17:21:20 +02:00
Gijs Noorlander 3c4492ed54 [ESPeasy p2p] Show remote node as port description on device page
The node delivering the data for a plugin is now shown on the device page in the "Port" column.

Also added a fix to only allow updates from 1 node to a remote node.
Previously it was possible to have several nodes writing to the same remote p2p shared plugin.
This could lead to very strange results.

This also means that a remote installed plugin must now be deleted and re-installed to allow receiving data from a remote host if the remote host unit id has changed.
2019-08-06 17:17:14 +02:00
Gijs Noorlander 1f7f3af31d [Serial] Show serial port description as port in device page 2019-08-06 17:13:33 +02:00
Gijs Noorlander 4420c253c3 [ESPeasy Serial] Update to 1.0.12 to allow invalid pin config 2019-08-06 17:09:25 +02:00
Gijs Noorlander 1406f3df99 Check for WiFi connected before trying to connect to host 2019-08-06 10:29:44 +02:00
Gijs Noorlander 7c572ceb83 Config page not able to clear all WiFi settings
If SSID in the WiFi settings was set empty, the config would not be saved.
2019-08-06 10:28:58 +02:00
ESPEasy release bot d32ac6cea8 automatically updated release notes for mega-20190805 2019-08-05 04:00:12 +02:00
Gijs NoorlanderandGitHub a71c79fa37 Merge pull request #2532 from TD-er/feature/serial_proxy
bugfix Deepsleep called from command/rules should flush data
2019-08-05 01:53:10 +02:00
Gijs Noorlander 4b5af356ac [Serial Proxy] Check for null pointer 2019-08-05 00:24:53 +02:00
Gijs Noorlander 95ab1d1cc9 [DeepSleep] Proper flush when going to deep sleep from rules
See [Forum](https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=6918&p=38369#p38360)
2019-08-05 00:23:59 +02:00
Artem ffb61388b9 String representation for requested weekday
Introduced weekday_str(wday) function for obtaining string representation of requested week day.
2019-08-05 01:22:56 +03:00
Gijs NoorlanderandGitHub c5db687f21 Merge pull request #2524 from jimmys01/mega
[IR TX RX] Minor adjustments
2019-08-04 21:32:04 +02:00
Gijs Noorlander b09b24707e [Serial Proxy] Must read at 50x sec interval
For example a stream at 38400 bps can fill up the serial buffer over 27x a second.
This means that receiving data strings over 128 bytes (buffer size) may already be corrupted when reading at 10x a sec.
2019-08-04 21:24:39 +02:00
Gijs NoorlanderandGitHub d23b6272cf Merge pull request #2529 from TD-er/feature/serial_proxy
[Feature] Serial Proxy reading strings from serial
2019-08-04 17:57:07 +02:00
Gijs NoorlanderandGitHub 8969b04c57 Merge pull request #2527 from tiomny/DTParts
Introduced unix time part variables
2019-08-04 17:56:35 +02:00
Gijs NoorlanderandGitHub d8c0961fb0 Merge pull request #2526 from letscontrolit/bugfix/1M_ota_build
[OTA] Fix check 1M filesize during build
2019-08-04 17:55:19 +02:00
Gijs Noorlander 28b75dfb42 [Docs] Document the new %unixday% and %unixday_sec$ variables
See PR #2527
2019-08-04 15:51:01 +02:00
Gijs Noorlander d3ffd76753 Fix build issue in changes of P023_OLED. 2019-08-04 15:24:44 +02:00
Gijs Noorlander a02097937e Disable Serial Proxy in other builds
Since it is still highly experimental, only include in custom build.
2019-08-04 15:20:39 +02:00
Gijs Noorlander 6bf1178d45 [Custom Build] Move custom build definition up in platformio.ini
To make VScode use the defines of esp8266 as default.
Otherwise the ESP32 related code is used in the code highlighting.
2019-08-04 15:18:19 +02:00
Gijs Noorlander dd9463b74c Uncrustify of P001 Switch plugin. 2019-08-04 15:16:48 +02:00
Gijs Noorlander 813d5fa60e [PWM] Fade always starts at 0, not the last set value
Fixes #2461
2019-08-04 15:12:36 +02:00
Gijs Noorlander fd8d363032 Make loading of custom task settings more memory efficient 2019-08-04 12:44:06 +02:00
Artem 08a21f0b9c Introduced unix time part variables
%unixday% = %unixtime% / 86400
%unixday_sec% = %unixtime% % 86400
2019-08-04 00:53:29 +03:00
Gijs NoorlanderandGitHub fc4033a727 [OTA] Fix check 1M filesize during build
fixes #2525
2019-08-03 21:38:57 +02:00
Gijs Noorlander 96c50617e2 [Serial Proxy] Use custom init string 2019-08-03 17:22:55 +02:00
ESPEasy release bot a770feadbd automatically updated release notes for mega-20190803 2019-08-03 04:00:17 +02:00
Gijs Noorlander 4d062f8e5b [Serial Proxy] Send init string and read sentences from serial 2019-08-03 01:07:55 +02:00
Gijs NoorlanderandGitHub 33b9804204 Merge pull request #2517 from Misiu/mega
Rename OpenHAB MQTT to Home Assistant (openHAB) MQTT
2019-08-02 14:09:59 +02:00
jimmys01 2e223eec8d IR library update 2019-08-01 12:16:57 +03:00
jimmys01 81295d2a4f [IR TX RX] Minor adjustments
Fixed some comments and log entries.
Fixed Celcius conversion.
Fixed some code indentation.
2019-08-01 12:12:44 +03:00
ESPEasy release bot 5675d0c2d7 automatically updated release notes for mega-20190731 2019-07-31 04:00:09 +02:00
Gijs Noorlander 4438e49656 [Serial Proxy] Process sentence and send to controller
Tested with GPS data sending to Domoticz and OpenHAB MQTT controller.
2019-07-30 16:50:45 +02:00
Gijs Noorlander 888ed8c644 [GPS] Uncrustify GPS plugin source code. 2019-07-30 14:57:11 +02:00
Gijs Noorlander 2347b95e56 [GPS] Only serial RX pin is really needed.
Init will fail if  the optional TX pin was not set.
2019-07-30 14:56:12 +02:00
Gijs Noorlander ce956ca5f5 [Serial Proxy] Read sentence
First test to read a sentence and write it to log.
2019-07-30 14:47:09 +02:00
Gijs Noorlander cb91d270b7 [String support] Make controllers aware of String type values
Just to make sure they can process the String value type. Not tested yet to see if they can actually handle it.
2019-07-30 14:47:09 +02:00
Gijs Noorlander 986eddf5f2 [New Plugin] Serial Proxy plugin skeleton
Just an initial skeleton to build the new Serial Proxy plugin.
It will fetch data and move it to a controller.
This will be the first plugin to handle something other than float values.
2019-07-30 14:47:09 +02:00
Gijs NoorlanderandGitHub b7de560b61 Merge pull request #2520 from TD-er/bugfix/static_ip
[Static IP] Fix unable to connect with static IP. (#2519)
2019-07-30 14:46:23 +02:00
Gijs Noorlander 73dcd6b89e [Static IP] Fix unable to connect with static IP.
Some logic got mixed up regarding static IP configuration and handling events.
2019-07-30 13:51:34 +02:00
ESPEasy release bot 642167e130 automatically updated release notes for mega-20190730 2019-07-30 04:00:18 +02:00
Gijs NoorlanderandGitHub b7258d49ca Merge pull request #2514 from TD-er/bugfix/7dgt_crash
[7dgt]  Uncrustify cleanup and remove F() & PROGMEM macro
2019-07-29 10:54:18 +02:00
Gijs Noorlander 269c43fadd [WiFi] Fix build issue on ESP32 2019-07-29 02:18:05 +02:00
Gijs Noorlander ed19925d0a [WiFi] Revert WiFi changes to 20190630 and force wifi wake/sleep
Main change is this one: https://github.com/esp8266/Arduino/issues/6266#issuecomment-515803290
Let's hope all WiFi related WDT reboots are now over.
2019-07-29 01:18:08 +02:00
MisiuandMisiu 2e885f40b1 Remove backslash at start 2019-07-22 11:25:42 +02:00
MisiuandMisiu 82760f28f9 Rename OpenHAB MQTT to Home Assistant (openHAB) MQTT
As described by @davidgraeff openHAB is supporting Home Assistant MQTT convention, so C005 should have Home Assistant in name.
Arguments:
openHAB is following HA convention
this will help new users (like me) to setup ESPEasy with Home Assisnant
2019-07-22 09:36:38 +02:00
Gijs Noorlander 1c451bba24 [ESP32] Force Gratuitous ARP 2019-07-21 16:21:37 +02:00
Gijs Noorlander 261d7d767d Use volatile and IRAM attributes on wifi event related code 2019-07-21 15:53:03 +02:00
Gijs Noorlander 5fe5121e56 [Strings] Make sure generated strings are zero-terminated
Looked at `sprintf_P` usage in the code.
2019-07-21 15:51:28 +02:00
Gijs Noorlander cd9d755e8a [CPPcheck] Reduce scope of variables 2019-07-20 10:45:02 +02:00
Gijs Noorlander 8ed4c17ba9 [Build] Remove hidden unicode characters preventing build of AccuEnergy 2019-07-19 01:50:18 +02:00
Gijs Noorlander 91c7170981 [CPPcheck] Remove unneeded code 2019-07-19 01:45:38 +02:00
Gijs Noorlander 463eddf552 Change "To much plugins" to "Too many plugins" 2019-07-18 01:47:12 +02:00
Gijs Noorlander e634a35bc6 [PIO] include latest fixes for core 2.5.2 (PIO espressif8266@2.2.2) 2019-07-18 01:45:59 +02:00
Gijs Noorlander 6bc2bd285c [Range check] Perform some basic range checks in Calculate function
There was no boundary check in the calculate function.
2019-07-18 01:44:22 +02:00
Gijs Noorlander c33323f20c [Memory] Be a bit more careful with memory allocation for serial buffer
Make sure no memory allocation error will occur when writing to the serial buffer.
2019-07-18 01:42:41 +02:00
Gijs Noorlander 6c950fcd77 [CPPcheck] Fix some suggestions from CPPcheck
Most are initialization issues, but some are actually programming errors like missing break; in switch statements.
2019-07-18 01:40:27 +02:00
Gijs Noorlander f6f1e12907 [WiFi] Add 1000 msec delay after WIFI_OFF and fix initial connect
Disabled some optimizations and added ridiculous long delay after WIFI_OFF to make initial connect to AP more reliable.
2019-07-18 01:37:01 +02:00
Gijs Noorlander 22d60f04b1 [7dgt] Uncrustify cleanup and remove F() & PROGMEM macro
[Related forum topic](https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=6848&p=38024#p38024)
[Related issue](https://github.com/letscontrolit/ESPEasy/issues/2380)
2019-07-16 11:56:58 +02:00
ESPEasy release bot a1db2c353b automatically updated release notes for mega-20190716 2019-07-16 04:00:11 +02:00
Gijs NoorlanderandGitHub d1219cd237 Merge pull request #2512 from TD-er/cleanup/uncrustify
[Uncrustify] Cleanup code using Uncrustify
2019-07-16 00:12:59 +02:00
Gijs Noorlander 85348971d6 [Uncrustify] Cleanup code using Uncrustify
Since there are not that much PRs open and in progress, this is maybe the least intrusive moment to cleanup some code using the given uncrustify.cfg 
If there is a PR merge issue, checkout the PR and perform an uncrustify first before trying to merge.
2019-07-15 15:11:30 +02:00
Gijs NoorlanderandGitHub 1bb3d6ce78 [Dallas] Accidentally removed delay in init call. 2019-07-15 14:50:43 +02:00
Gijs NoorlanderandGitHub e7ae75b5f3 Merge pull request #2511 from TD-er/buildfix/pio_40
[Build] PIO 4.0 uses different locations for built binary (#2510)
2019-07-15 12:09:42 +02:00
Gijs Noorlander 16c2568fb3 [Build] PIO 4.0 uses different locations for built binary 2019-07-15 11:23:53 +02:00
ESPEasy release bot f965a4c04a automatically updated release notes for mega-20190715 2019-07-15 04:00:12 +02:00
Gijs NoorlanderandGitHub 2c87316c54 Merge pull request #2509 from TD-er/buildfix/minimal_IR_1m
[Build] Reduce build size normal_esp8266_IR_1M to minimal
2019-07-14 15:20:49 +02:00
Gijs Noorlander 4c4e18e4a6 [Build] Fix build issue on core 2.4.0
Just tested core 2.4.0 to see if WiFi issues still present, but that one doesn't even boot well with current code (or settings)
2019-07-14 11:30:12 +02:00
Gijs Noorlander ded7e71bd2 [Build] Reduce build size normal_esp8266_IR_1M to minimal
It just doesn't fit on 1M flash with SPIFFS anymore
2019-07-14 10:55:07 +02:00
ESPEasy release bot c90dc79571 automatically updated release notes for mega-20190714 2019-07-14 04:00:15 +02:00
Gijs NoorlanderandGitHub 89c004822b Merge pull request #2508 from TD-er/feature/upgrade_esp32_core190
[ESP32] Upgrade to core v1.9.0
2019-07-14 02:22:02 +02:00
Gijs Noorlander bdac44ac42 [ESP32] Upgrade to core v1.9.0 2019-07-14 02:19:55 +02:00
Gijs NoorlanderandGitHub ed1504a2df Merge pull request #2501 from TD-er/feature/log_last_executed_task
Feature/log last executed task
2019-07-14 02:14:35 +02:00
Gijs NoorlanderandGitHub 54c8a83d3b Merge pull request #2495 from jimmys01/Zabbix_controller_push
[Controller] Zabbix controller initial commit
2019-07-14 01:46:27 +02:00
Gijs Noorlander ec3c469926 [WiFi] Code cleanup WiFi/WiFi event files 2019-07-14 01:25:41 +02:00
Gijs Noorlander 32e38e7f4f [Dallas] Add ignore option as error state output value 2019-07-14 01:25:41 +02:00
Gijs Noorlander e7446802cb [Dallas 1wire] Add error state value selector
The Dallas 1wire sensor can get into some error state.
To signal an error state, a NaN was ouput, but that may be hard to use in rules.
This selector allows to set a fixed value to signal an error state.

Also removed a lot of redundant code and make sure no data is shared among other active instances of the same plugin.
2019-07-14 01:25:41 +02:00
Gijs Noorlander 943a4e90b7 [TSL2561] Add auto gain and extended auto gain
Auto gain will switch on/off the gain to extend the range of the sensor.
The 16x gain will be turned on below 10 Lux.
It will be off at 1/16th of the full range of the ADC.

On top of that there is also an option to extend the range of the sensor to about 130'000 lux.
The ratio ch1/ch0 will be stored as long as no ADC is clipping. This ratio will be applied to the measured ch1 (IR part) of the measured data when the ch0 value is clipping.

For example meauring direct sunlight may give upto 130'000 Lux of light intensity, but the sensor itself can only handle upto about 30'000 Lux without clipping.
2019-07-14 01:25:41 +02:00
Gijs Noorlander 996757d3e1 [TSL2561] Small fix to detect saturation of ADC
Saturation level of the CH0 and CH1 ADCs is not at 65535 for all integration time settings.
For an integration time less than 178 msec, the max ADC value is less. This fix does detect those saturation levels.
2019-07-14 01:25:41 +02:00
Gijs Noorlander da88dfb537 [Build] Set core 2.5.2 as default and add custom build 2019-07-14 01:25:41 +02:00
Gijs Noorlander 2a5eb1a5ab [Uncrustify] Move uncrustify.cfg to project dir
The Uncrustify package in VS code does look in the project dir for a config file.
When it is present, there is hardly any configuration needed. Therefore I moved it and updated it a bit to behave more uniform than the cfg file we already had.
2019-07-14 01:25:41 +02:00
Gijs Noorlander c16e24e33a [WiFi] Add more debug information 2019-07-14 01:25:41 +02:00
Gijs Noorlander 2453637533 [WiFi] Debugging connect/disconnect behavior 2019-07-14 01:25:41 +02:00
Gijs Noorlander 0d3a121b4f [WiF] Improve disconnect/reconnect stability
The ESP node appears to reboot at the reconnect sequence when the wifi connection was lost.

See also https://github.com/esp8266/Arduino/issues/5527#issuecomment-508260107
2019-07-14 01:25:41 +02:00
Gijs Noorlander 88c34c5b5c [SW WD] Count SW watchdog and feed HW watchdog
As suggested here: https://github.com/letscontrolit/ESPEasy/issues/2477
2019-07-14 01:25:41 +02:00
Gijs Noorlander 1b614583e3 [PIO] Ignore .pio folder in Git. 2019-07-14 01:25:41 +02:00
Gijs Noorlander 8d145e0523 [Crash info] Report last scheduled task before reboot
Just for testing/debugging purposes, the last executed task from the scheduled is logged into RTC memory.
This decoded string is also logged at boot and shown in the system info page.

It still demands quite some expertise to interpret but maybe we can find some pattern to where the crashes occur most often.
2019-07-14 01:25:41 +02:00
Gijs NoorlanderandGitHub e0b98eb44f Merge pull request #2499 from letscontrolit/bugfix/pio_400_emptyflags
[PIO] Fix build issue with PIO core 4.0.0
2019-07-13 14:26:57 +02:00
Gijs NoorlanderandGitHub 7f5fdc4160 Merge pull request #2503 from jimmys01/mega2
[IR TX RX] Extended AC commands
2019-07-13 14:26:23 +02:00
Gijs NoorlanderandGitHub 7f759ddfe6 Merge branch 'mega' into Zabbix_controller_push 2019-07-13 14:24:59 +02:00
jimmys01 50ecf4f8f8 Commit the changed define_plugin_sets.h after conflicts have been resolved 2019-07-13 13:39:48 +03:00
jimmys01 c50934f181 Resolving conflicts #2 2019-07-13 13:38:43 +03:00
jimmys01 6e9e784fbc Resolve conflicts with C015 2019-07-13 13:30:48 +03:00
jimmys01 1fca795f1a Couple payload_len to actual JSON payload length. 2019-07-05 16:11:46 +03:00
jimmys01 346308ea26 [IR TX RX] Extended AC commands
-Extended command example:
IRSENDAC,"protocol":"GREE","power":"off","mode":"heat","temp":21,"fanspeed":"max","swingv":"middle","swingh":"off"}

-Refactored and simplified code based on new libary updates
-1M  IR build does not support Extended AC commands
-Usage instructions added

-Also added back the ability to have arbitrary bits to the IR send command. Reflected that also in the received signal decoding. Using 0 bits as an argument the ir send command will still use the default protocol bits
ref: https://www.letscontrolit.com/forum/viewtopic.php?f=4&t=6452&p=37373#p37373
2019-07-05 14:19:07 +03:00
jimmys01 db3384d932 Update IR library to 2.6.3 2019-07-05 13:14:00 +03:00
Gijs NoorlanderandGitHub c093ddcaa7 [PIO] Fix build issue with PIO core 4.0.0
See https://github.com/platformio/platformio-core/issues/2734
2019-07-02 22:56:42 +02:00
ESPEasy release bot a8ab3bcd7c automatically updated release notes for mega-20190630 2019-06-30 04:00:18 +02:00
jimmys01 3ca267d078 Increace PLUGIN_MAX by 10 2019-06-29 16:26:03 +03:00
jimmys01 823106e13b [ZABBIX] Update code to JSON6+
Also added F macros and a check for not sending empty TaskDeviceValueNames
2019-06-29 16:19:49 +03:00
Gijs NoorlanderandGitHub e19d938e75 Merge pull request #2489 from jimmys01/JSON
[JSON] Update to Json 6
2019-06-29 14:59:25 +02:00
jimmys01andGitHub a5456fa84d Update _C002.ino 2019-06-29 14:05:06 +03:00
jimmys01 c6b9978e64 More improvments 2019-06-26 22:09:12 +03:00
jimmys01 fe935d582e Improvments
Opted as TDer sugested to send one (larger) packet, than openning and closing the connection for each value.
2019-06-26 12:40:26 +03:00
ESPEasy release bot befa809b80 automatically updated release notes for mega-20190626 2019-06-26 04:00:15 +02:00
Gijs NoorlanderandGitHub ad8a066afb Merge pull request #2430 from okar1/blynk-native
Blynk native (ESPEasy changes only)
2019-06-25 22:31:12 +02:00
jimmys01 bfb395c259 Zabbix secont attempt 2019-06-25 20:15:02 +03:00
jimmys01 b41c8a59d7 Scheduler fix
I knew it had to bee something small
2019-06-25 17:21:26 +03:00
jimmys01 91b9bf702b [Controller] Zabbix controller initial commit 2019-06-25 16:48:47 +03:00
jimmys01 6196477667 Update code to version JSON 6 2019-06-10 14:24:54 +03:00
jimmys01 c864e1c028 [JSON] Update to Json 6 2019-06-10 14:21:00 +03:00
ESPEasy release bot 5b42210c47 automatically updated release notes for mega-20190607 2019-06-07 04:00:17 +02:00
Gijs NoorlanderandGitHub ec650eee17 Merge pull request #2470 from Christian-Me/mega
Handling incomming Homie messages via receiver Plugin
2019-06-06 23:41:07 +02:00
Gijs NoorlanderandGitHub 18506b723f Merge pull request #2478 from letscontrolit/bugfix/AcuDC243_Modbus_address
[AcuDC243] Fix modbus address not set
2019-06-06 23:39:22 +02:00
Gijs NoorlanderandGitHub 63fa8c24ea [Readme] Added download counter 2019-06-06 23:39:00 +02:00
Gijs NoorlanderandGitHub ffe2583df8 Merge pull request #2485 from TD-er/bugfix/ArduinoIDE_build
[Build] Make it build in Arduino IDE again (#2481)
2019-06-06 23:35:34 +02:00
Gijs Noorlander 9013bac3aa [build] Changes from SPIFFS to FS #2482
Core 2.6.x has changed _SPIFFS_* to _FS_*
See #2482
2019-06-06 21:37:26 +02:00
TD-er 3438ce9412 [Build] Make it build in Arduino IDE again (#2481) 2019-06-06 20:41:49 +02:00
Gijs Noorlander 883a583db6 [AcuDC243] Fix bug in reading 4th set variable 2019-05-25 00:11:58 +02:00
Gijs NoorlanderandGitHub 02f11fe106 [AcuDC243] Fix modbus address not set 2019-05-24 16:05:52 +02:00
ESPEasy release bot 5702efdcb2 automatically updated release notes for mega-20190523 2019-05-23 04:00:18 +02:00
Gijs NoorlanderandGitHub 98352a3e7f [Blitzwold SHP] Add build for 1M power nodes
See #2436
2019-05-22 17:25:39 +02:00
ChrisandGitHub 66abcfea53 Merge branch 'mega' into mega 2019-05-22 07:43:48 +02:00
Christian Meinert c8e3bd076a Changes as requested 2019-05-22 07:40:16 +02:00
ESPEasy release bot 0cf096ee6f automatically updated release notes for mega-20190522 2019-05-22 04:00:19 +02:00
Gijs NoorlanderandGitHub c1c5e69d0e Merge pull request #2425 from TD-er/feature/PubSubClient_upgrade
[PubSubClient] Upgrade to 2.7
2019-05-21 23:50:08 +02:00
Gijs Noorlander a3c6fc5cdf [TimeDiff] Clean up timeDiff() function and add ICACHE_RAM_ATTR
So the function can be called from ISR functions.
2019-05-21 22:54:20 +02:00
Gijs NoorlanderandGitHub d3a4eced49 Merge pull request #2469 from letscontrolit/bugfix/P003_ICACHE
[P003 Pulse] Adding ICACHE_RAM_ATTR attributes
2019-05-21 22:27:45 +02:00
Gijs Noorlander 2c8fc6dfc0 [PIO build] Core 2.5.2 has been released
Core 2.5.2 does contain a lot of fixes.
If this core version does seem to appear stable in the next few weeks, we will use it as the standard core for nightly builds.
2019-05-21 22:10:37 +02:00
Gijs Noorlander 0ed12601f2 [PubSubClient] Check for valid initialized _client
Especially on disconnect, there should be a check for a valid `_client` pointer.
2019-05-21 21:49:58 +02:00
Gijs Noorlander 9c8ede259e [MQTT] Do not connect with cleanSession flag set
See https://github.com/knolleary/pubsubclient/issues/458#issuecomment-493875150
2019-05-21 21:19:33 +02:00
Gijs Noorlander b2d471f7f5 [PubSubClient] Fix publish() for payload == nullptr (528)
See PR [528](https://github.com/knolleary/pubsubclient/pull/528/files)
2019-05-21 20:56:27 +02:00
Gijs Noorlander 0f80893901 [PubSubClient] Add delay() calls in connect() and write()
Based on PR [567](https://github.com/knolleary/pubsubclient/pull/567/files)
2019-05-21 20:50:46 +02:00
Gijs Noorlander e4c79db8e1 [PubSubClient] Support pre-connected client
Pull Request [571](https://github.com/knolleary/pubsubclient/pull/571/files)
2019-05-21 20:45:55 +02:00
Gijs Noorlander 244b3059fe [PubSubClient] Removed an unused variable 618
Pull request [618](https://github.com/knolleary/pubsubclient/pull/618/files)
2019-05-21 20:32:57 +02:00
Gijs Noorlander 734d0562be [PubSubClient] Fix Publish_P return value
PR from [PubSubClient PR 600](https://github.com/knolleary/pubsubclient/pull/600)

N.B. we had this fix already present in ESPeasy before update to 2.7
2019-05-21 20:30:47 +02:00
TD-er a115415df2 [PubSubClient] Upgrade to 2.7 2019-05-21 20:18:24 +02:00
Gijs NoorlanderandGitHub 2d6988f786 Merge pull request #2439 from TD-er/bugfix/selectableOutputs
[Plugins] Make number of outputs dynamic for some plugins
2019-05-21 18:49:05 +02:00
Gijs NoorlanderandGitHub 6c35956c04 Merge pull request #2474 from Meek-HA/mega
Allow GPIO-16 for software serial (ESP82xx)
2019-05-21 18:46:45 +02:00
Meek Home Automation a63cf6216f Update ESPEasySoftwareSerial.cpp
Since Release mega-20190215, the plugin “ P065_DRF0299_MP3.ino “ wasn’t functioning on GPIO16.
With this small change, it’s operational once again and also available to connect other serial (non-critical) devices on GPIO16.
2019-05-21 10:56:09 +02:00
Christian Meinert c1b8e437ac Merge branch 'mega' of https://github.com/Christian-Me/ESPEasy into mega 2019-05-21 06:45:31 +02:00
Christian Meinert 5725090f6d Plugin Number chnaged to 86, HSV2RGB functions moved to misc.ino, little bugfixes and documentation 2019-05-21 06:42:57 +02:00
TD-er 274934f658 [GPS] Allow to select output values and update on time or distance travelled
It is now possible to select different values for output.
A new output will be given when either the Interval time has passed, or a set minimal traveled distance is exceeded.
This can then be used in rules to trigger other samples.
2019-05-18 01:49:41 +02:00
TD-er 7dda5712a6 Make output value selection more dynamic
- P026 Sysinfo
- P052 SenseAir
- P078 Eastron
- P085 AcuDC243
2019-05-18 01:46:38 +02:00
TD-er 0cb933580f [AccuEnergy] Make output value selectable 2019-05-17 17:52:28 +02:00
TD-er b749da0ced [SenseAir] Add preliminary support for S11 Sunrise CO2 sensor
Support reading CO2 & temperature 
Support setting continuous measurement parameters in sensor.
2019-05-16 01:27:08 +02:00
TD-er 5c9cebee0a Merge remote-tracking branch 'origin/bugfix/selectableOutputs' into bugfix/selectableOutputs 2019-05-15 12:55:01 +02:00
TD-er 9c4e769ff8 [Modbus RTU] Removed a delay and increase reading success
There was still a hard-coded delay left in the process modbus command function.
Now it returns as soon as a valid reply is received.
This will make the PLUGIN_READ call of SenseAir S8 take 45.1 msec instead of 59.1 msec on average.
2019-05-15 12:54:38 +02:00
ChrisandGitHub 02624f89a5 Merge branch 'mega' into mega 2019-05-15 07:03:25 +02:00
Christian Meinert dfea96f7f3 Handling incomming messages via Plugin
Using rules to handle incomming messages.
2019-05-15 01:49:44 +02:00
Gijs NoorlanderandGitHub 76a2ae99ee [P003 Pulse] Adding ICACHE_RAM_ATTR attributes
As reported here: https://github.com/letscontrolit/ESPEasy/issues/2463#issuecomment-491842239  by @s0170071
2019-05-14 09:03:44 +02:00
ESPEasy release bot da8cfaa28d automatically updated release notes for mega-20190511 2019-05-11 04:00:20 +02:00
Gijs NoorlanderandGitHub c5c38b487d Merge pull request #2465 from Christian-Me/mega
Documentation for Homie Controller C014 & a minor fix
2019-05-10 15:48:30 +02:00
Gijs NoorlanderandGitHub 9c16b6c936 Merge pull request #2416 from svmac/GPIO16PullDown
PullDown for GPIO16
2019-05-10 15:43:27 +02:00
Gijs NoorlanderandGitHub 677c319a9a Merge branch 'mega' into blynk-native 2019-05-10 15:34:47 +02:00
Gijs NoorlanderandGitHub 67dab88b60 Merge branch 'mega' into bugfix/selectableOutputs 2019-05-10 15:16:51 +02:00
TD-er c7017bdc2b [AccuEnergy] Rename plugin to P085
Was already a plugin with nr 084 present.
2019-05-10 15:15:52 +02:00
TD-er d6025656e9 [WiFi] Perform explicit disconnect when wifi gets disconnected 2019-05-10 01:03:31 +02:00
TD-er f424e0de92 [AccuEnergy] Improve calibration and allow to clear logged data
The calibration is now presented more clear.
Added an option to clear the logged data in the AccuEnergy sensor
Fixed an inconsistency in reported Watt and Wh.
Added display of imported/exported/net/total energy.
2019-05-10 01:02:38 +02:00
Christian Meinert dad6490d9f Revert "Modified P019 & C014 to receive Values"
This reverts commit e0464c3959.
2019-05-09 00:52:09 +02:00
Christian Meinert c282e2ebb8 Fixed subscribe topic default 2019-05-09 00:51:47 +02:00
Christian Meinert f2183bbe1a C014 Documentation 2019-05-09 00:44:40 +02:00
ESPEasy release bot d4e04ecfba automatically updated release notes for mega-20190508 2019-05-08 04:00:18 +02:00
Gijs NoorlanderandGitHub b1801aba1e Merge pull request #2438 from uzi18/patch12
ESP32: Webserver fix-es
2019-05-07 20:12:52 +02:00
Gijs NoorlanderandGitHub cc39bcaa0e Merge branch 'mega' into patch12 2019-05-07 09:36:07 +02:00
Gijs NoorlanderandGitHub d97dca0dcb Merge pull request #2451 from MrBenzim/mega
Update _P003_Pulse.ino - Fix the debounce of the edge detection
2019-05-07 09:33:34 +02:00
Gijs NoorlanderandGitHub df41e2fca1 Merge pull request #2440 from RemCom/mega
[VEML6070] Added VEML 6070 UV sensor
2019-05-07 09:31:17 +02:00
Christian Meinert 435cebb399 Minor fixes 2019-05-02 18:12:18 +02:00
Christian Meinert fdee013fcc 1st draft version of docs for C014 Homie Controller 2019-05-02 00:02:04 +02:00
Christian Meinert e0464c3959 Modified P019 & C014 to receive Values
Switching outputs of a pcf port expander via Homie Controller
2019-04-30 03:10:44 +02:00
ESPEasy release bot 08dae01c07 automatically updated release notes for mega-20190425 2019-04-25 04:00:18 +02:00
Gijs NoorlanderandGitHub f5cbdca4f5 Merge pull request #2446 from TD-er/feature/slowdown_SHT1x
[SHT1x] Add delay to slow down clock rate (#2444)
2019-04-24 15:35:38 +02:00
TD-er d4f6305ba7 [AccuEnergy] Allow setup internal parameters
Allow to set the internal parameters like:
- Voltage full range
- Current full range
- Shunt full range (mV)
- enable/disable logging.
2019-04-23 02:18:45 +02:00
TD-er c79d75a5a6 New plugin: AccuEnergy Modbus 2019-04-22 12:15:44 +02:00
MrBenzim e467ada183 Update _P003_Pulse.ino
Bugfix: Debouncing is fixed now
2019-04-20 23:04:59 +02:00
TD-er 77f2389ddb [WiFi] Use RSSI value to determine connected state
See https://github.com/letscontrolit/ESPEasy/issues/1774#issuecomment-484882388
2019-04-20 00:41:35 +02:00
TD-er 5c6dec3d4e [Modbus RTU] Add DE/RE pin for use with MAX485 chip
Modbus logic need to be able to use DE/RE pin to use MAX485 converter.
2019-04-20 00:32:07 +02:00
TD-er 2f7b7e5c9a [Plugins] Add plugin call to load defaults
- Call to load defaults of a plugin, after it is added.
- Some fixes to make System Info plugin easier to set to different number of outputs.
2019-04-20 00:30:06 +02:00
TD-er ce762eeafd [Plugins] Make number of outputs dynamic for some plugins
For example the SysInfo plugin should be made more flexible in the number of outputs.
Also the SenseAir plugin now supports multiple outputs to be able to get CO2 and sensor temperature for example. (temp reading is not yet correct)
2019-04-19 22:22:59 +02:00
TD-er 7557551dd8 [SHT1x] Make clock delay configurable. 2019-04-19 22:12:32 +02:00
ESPEasy release bot 5ce3e2f4c4 automatically updated release notes for mega-20190419 2019-04-19 04:00:28 +02:00
Gijs NoorlanderandGitHub 086d5dff5c Merge pull request #2452 from TD-er/feature/remove_cachefiles
[Cache Controller] Add option to delete all cache files
2019-04-18 20:38:40 +02:00
Gijs NoorlanderandGitHub 66c0e84790 Merge pull request #2432 from TD-er/feature/16M_spiffs
Add 16M/14M builds (experimental)
2019-04-18 20:38:27 +02:00
TD-er 264fc7b31f [Cache Controller] Add option to delete all cache files
And call the Garbage Collector to make sure all freed blocks are erased for writing.
2019-04-18 14:14:57 +02:00
ESPEasy release bot 8c4404ecfe automatically updated release notes for mega-20190416 2019-04-16 04:00:12 +02:00
Gijs NoorlanderandGitHub 4cd25a1dde Merge pull request #2449 from TD-er/feature/cache_delete_files
[Cache Controller] Delete oldest files when no room left
2019-04-15 23:49:48 +02:00
MrBenzim 07771fe742 Update _P003_Pulse.ino
Debouncing was no real debouncer before, this is fixed now.
Instead of setting a delay after a change occured during this the counter is "blind" the counter now waits for the next edge in the pulse signal and calculates then the time that the last state was active.
Only if the debounce threshold is exceeded the counter will be increased.
2019-04-15 22:47:01 +02:00
TD-er 8e72145871 [SPIFFS] Add garbage collection timing statistics 2019-04-15 18:58:30 +02:00
TD-er ab7324b644 [SPIFFS] Use result of GarbageCollectio()
- When successful call gc a few times at boot, to clear more.
- When successful gc at write error, retry first and then try to remove old files.
2019-04-15 18:35:06 +02:00
Gijs NoorlanderandGitHub 3b8e7b3500 Merge pull request #2447 from letscontrolit/bugfix/DHT_interrupts
Fix P005_DHT enabling interrupts on error reading.
2019-04-15 18:14:51 +02:00
Gijs NoorlanderandGitHub b49d26aa67 Homie 3.0.0 & 4dev convention controller Plugin (testing)
Homie 3.0.0 & 4dev convention controller Plugin
2019-04-15 15:28:54 +02:00
TD-er df23c96a4c [SPIFFS] Use standard functions for SPIFFS operations
This allows also to gather information on ESP32 platform about the SPIFFS filesystem
2019-04-15 13:36:48 +02:00
TD-er 6a818479cc [Cache Controller] Delete oldest files when no room left
The SPIFFS may become fragmented, so it is possible a file cannot be appended to even though there is room on the file system.
So there has to be a proper check to see if writing fails and also delete oldest file(s) when needed + call to the garbage collector.
See also https://github.com/esp8266/Arduino/issues/5987
2019-04-15 13:35:46 +02:00
Gijs NoorlanderandGitHub 877e0f2eea Fix P005_DHT enabling interrupts on error reading.
Inspired by this remark: https://github.com/letscontrolit/ESPEasy/issues/1774#issuecomment-483059794
When looking for the use of interrupts, I found this bug, where it is possible the interrupts were not enabled anymore if there was no reading.
2019-04-15 08:49:57 +02:00
TD-er 07d5f57155 [SHT1x] Add delay to slow down clock rate (#2444)
First test using 10 micro seconds delay between clock ticks
2019-04-14 10:45:33 +02:00
Christian-Me 2109c8a2c4 Revert "Update platformio.ini"
This reverts commit 3441f35199.
2019-04-14 09:07:58 +02:00
Christian-Me 26e159bce5 Merge branch 'mega' of https://github.com/Christian-Me/ESPEasy into mega 2019-04-13 09:02:50 +02:00
Christian-Me 3441f35199 Update platformio.ini
for dev_ESP8266_4M build
2019-04-13 09:01:03 +02:00
Christian-Me 2f8cda30ea Hook for CPLUGIN_GOT_INVALID implemented & minor chnages
- hook for CPLUGIN_GOT_CONNECTED placed correctly
- hook for CPLUGIN_GOT_INVALID placed + added log
- fixed return values
- some log fixes
- cleaned up code

issues

I Think MQTTclient_should_reconnect=true does not reconnect if there is a working connection. In case of  CPLUGIN_GOT_INVALID  success a MQTTDisconnect(); function added.
2019-04-13 08:58:41 +02:00
ESPEasy release bot f7c52bcdfb automatically updated release notes for mega-20190413 2019-04-13 04:00:21 +02:00
Gijs NoorlanderandGitHub 07d96c80a0 Merge pull request #2435 from jimmys01/TX-RX
[IR Tx Rx] Added IR code repeat functionality, stability improvments for long key presses for RX plugin
2019-04-12 22:10:35 +02:00
jimmys01 c73b799284 Add F() Macros to the IR lib 2019-04-12 12:23:07 +03:00
ChrisandGitHub 1d659468d2 Merge branch 'mega' into mega 2019-04-12 11:11:23 +02:00
Christian-Me 2d34d68c92 Updates on pull request
Adressed "most of" the comments.
2019-04-12 11:05:53 +02:00
Remco van Essen 08e54fa430 [VEML6070] Removed unneeded include 2019-04-10 21:38:14 +02:00
Remco van Essen 33e374056d [VEML6070] Updates to plugin and add I2C function for 8 bit reads without sending command code first 2019-04-10 21:32:57 +02:00
Remco van Essen 3d136ab80e [VEML6070] Added VEML 6070 UV sensor 2019-04-09 22:30:07 +02:00
ESPEasy release bot f882c93996 automatically updated release notes for mega-20190409 2019-04-09 04:00:18 +02:00
Gijs NoorlanderandGitHub 2e9d296fa4 Merge pull request #2434 from TD-er/feature/cache_controller
C016 - Cache Controller (experimental)
2019-04-09 01:23:25 +02:00
Gijs NoorlanderandGitHub bbff11935e [ESP32] Fix build/flash issue (#2403)
As fixed by @uzi18 in https://github.com/letscontrolit/ESPEasy/pull/2438
See also #2403
2019-04-09 00:21:33 +02:00
Bartlomiej Zimon 747f11f426 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch12
# Conflicts:
#	src/WebServer.ino
2019-04-08 21:37:04 +00:00
Bartlomiej Zimon 3bbcea9c09 # Conflicts:
#	src/WebServer.ino
2019-04-08 21:34:47 +00:00
Bartlomiej Zimon 20d0bd32bf spiffs.open -> tryOpenFile 2019-04-08 21:30:39 +00:00
Bartlomiej Zimon 7bd797ecd1 ESP32: fix booting after flash 2019-04-08 20:53:06 +00:00
Bartlomiej Zimon 833474c363 ESP32: fix (custom) dashboard downloading 2019-04-08 20:39:15 +00:00
Bartlomiej Zimon 7287ec1faa ESP32: fix spiffs files downloading 2019-04-08 20:38:36 +00:00
Bartlomiej Zimon 9a1b15a479 ESP32: fix files upload 2019-04-08 20:38:10 +00:00
TD-er 9787cbe6db [RTC user var] Store read values in RTC memory to survive crash
The last read values were only saved when the device enters sleep mode, not when new values are read.
So after a reboot (as a result of a crash) the values were at their initial values.
2019-04-07 12:53:11 +02:00
okarasev 9f5f37914e thumbrint gui set option (when compilled in ssl mode) 2019-04-07 12:50:34 +03:00
okarasev f3fdff568c log prefix show in log (ssl/open) 2019-04-07 11:04:26 +03:00
okarasev c9dd125854 fix 2019-04-06 17:01:23 +03:00
okarasev 9d7a95d25a ssl support (disabled by default) 2019-04-06 16:27:43 +03:00
jimmys01 584255efdf [IR RX] Small enchacments, again
P016_TIMEOUT is set now to 50 instead of 90 as a compromise between stability of decoding and accomodating large IR signals.
Also added breaks to mitigate unstability with long operations that might starve the ESP from backround tasks
2019-04-06 14:15:17 +03:00
jimmys01 529016bdbd [IR TX] Add back repeat functionality in a reverse compatible way
Reverted and made compatible and optional the old style of the irsend command that supported also repeats
Both commands
IRSEND,NEC,ASDF123
and
IRSEND,NEC,ASDF123,0,0
will produce the same result.

to repeat the signal 1 time the command is
IRSEND,NEC,ASDF123,0,1
2019-04-06 14:12:40 +03:00
okarasev eb2bdf61fb fix: reconnect_interval not worked correctly 2019-04-06 12:40:18 +03:00
ESPEasy release bot 5c4fc606d6 automatically updated release notes for mega-20190406 2019-04-06 04:00:18 +02:00
TD-er 0b23c9cf58 [Cache controller] ESP32 compile issues SPIFFS related 2019-04-05 23:45:27 +02:00
TD-er 6477c152b5 [Controller Queue] Add code examples for future controllers up-to ID 20 2019-04-05 22:41:36 +02:00
TD-er 0f03a5888b [Cache controller] Documentation 2019-04-05 22:38:53 +02:00
TD-er 07e8317aef [Cache controller] Clean up code 2019-04-05 22:38:31 +02:00
TD-er 6650e62ddb [16M flash] Add warning about slow speed for 16M flash builds 2019-04-05 15:54:42 +02:00
TD-er d4914be8fb [SPIFFS] Add 16M14M option for build images
Known issue: File access on 16M14M config is quite slow, probably due to high number of blocks in the filesystem.
See: https://github.com/esp8266/Arduino/issues/5932
2019-04-05 15:43:46 +02:00
TD-er 6982f98276 [Cache controller] Rename C014 to C016 2019-04-05 15:36:07 +02:00
TD-er b2a2760a83 [C014] Fix logging to flash without network connection 2019-04-05 15:35:59 +02:00
TD-er f905cf5559 [Cache controller] Add UTC timestamp to the CSV export columns 2019-04-05 15:35:51 +02:00
TD-er 84513c55f3 [C014 cache] Read JSON to fetch cache files. 2019-04-05 15:35:41 +02:00
TD-er 50752ef7b2 [C014 cache] Compile issues using core 2.4.2
Somehow the F() macro cannot be used in separate structs in Core 2.4.2
2019-04-05 15:35:34 +02:00
TD-er f964daa5c0 [C014 cache] Dump to CSV in all columns
Create a much bigger CSV using 12*4 value columns with all labels on top.
6000 samples takes about 35 - 80 seconds depending on the number of 0.0 values (more zeroes, less time, smaller size)
The size of the CSV ranges between 900 and 2600 kByte for 6000 samples.
Export speed is 70 - 160 samples per second.
2019-04-05 15:35:09 +02:00
TD-er b47ce1fc3f [C014 cache] Dump to CSV
Calling `/dumpcache' will generate a CSV file of all logged data.
This may block the ESP for a while, since it outputs about 250 samples per second.
So 480'000 bytes of flash storage takes roughly 70 seconds to dump to a 1.6 MByte CSV. (20'000 samples)
2019-04-05 15:35:04 +02:00
TD-er 0ac6824983 [C014 cache] Write part is ready
Still have to make the read part and maybe have the controller cache global.
2019-04-05 15:34:58 +02:00
TD-er d535ccccf9 [C014 cache] Use RTC cache to store samples then move to file 2019-04-05 15:34:48 +02:00
TD-er 08400aa07f [C014] Cached HTTP controller 2019-04-05 15:33:53 +02:00
TD-er c41fe2d98a [RTC] Move RTC related functions to a separate file 2019-04-05 15:31:47 +02:00
Gijs NoorlanderandGitHub 1aba4286be Merge pull request #2424 from TD-er/bugfix/0-terminate_strings
[SPIFFS] optimizations file access & 0-terminate strings in settings
2019-04-05 14:42:15 +02:00
Gijs NoorlanderandGitHub 8620d7d0c2 Merge branch 'mega' into bugfix/0-terminate_strings 2019-04-05 13:08:02 +02:00
Gijs NoorlanderandGitHub dbdd6270f4 Merge pull request #2426 from TD-er/bugfix/flush_queue_before_sleep
Flush stored data in the delay queue before sleep
2019-04-05 13:06:52 +02:00
okarasev 605ccb9d0b library files added 2019-04-05 13:43:51 +03:00
okarasev ef6a15e266 EspEasy changes only 2019-04-05 13:27:50 +03:00
okarasev 357f9f3d63 blynk library added 2019-04-05 13:13:48 +03:00
okarasev df3c9d0021 plugin number changed 14->15 2019-04-05 13:01:58 +03:00
Christian-Me af134a244e For 1st pull request
Should work with "complete" autodiscover, dummy device receive and many commands over SYSTEM/command/set topic
2019-04-05 01:03:41 +02:00
TD-er cfd25f2ce2 [SPIFFS] Fix ESP32 build issues 2019-04-04 16:46:47 +02:00
TD-er 8b6e6d053a [SPIFFS] Fix ESP32 build 2019-04-04 15:56:55 +02:00
okarasev c6583496aa compilation fixes 2019-04-04 12:02:36 +03:00
okarasev de1da6d4e7 testing version 2019-04-04 09:28:27 +03:00
ESPEasy release bot 0b21d3a7f5 automatically updated release notes for mega-20190404 2019-04-04 04:00:18 +02:00
TD-er 443af433ba Flush stored data in the delay queue before sleep 2019-04-04 00:43:37 +02:00
TD-er 4aaa3773fc [SPIFFS] optimizations file access & 0-terminate strings in settings
Some settings have char arrays. Make sure these are 0-terminated when stored or loaded.
For example the ExtraTaskSettings were used without these checks
2019-04-04 00:33:20 +02:00
Gijs NoorlanderandGitHub 118e09be11 Merge pull request #2419 from TD-er/bugfix/multipleInstances_SHT1x
[Fix] Multiple instances of sht1x
2019-04-03 16:16:14 +02:00
Gijs NoorlanderandGitHub c71bb79aa6 Merge pull request #2421 from TD-er/feature/compiletime_check
[Build] Run compile time checks on struct sizes
2019-04-03 16:15:58 +02:00
Gijs NoorlanderandGitHub 587b8cbc62 Merge pull request #2402 from jimmys01/mega
[IR TX RX] Update the library - Add protocols - Improve RX
2019-04-03 15:34:52 +02:00
Gijs NoorlanderandGitHub efb0998a9d Merge pull request #2398 from TD-er/bugfix/missingP040
Plugin P040_ID12 not included (#1761)
2019-04-03 15:33:29 +02:00
TD-er 417af27ceb [Build] Run compile time checks on struct sizes 2019-04-03 15:29:25 +02:00
TD-er ecff2ea188 [SHT1x] Remove delays in reading sensor
Use a state to process reading temp and hum or keep error.
The state is handled in the 10/sec call and when a new measurement is ready it will schedule itself to read the new values.

See #2407
2019-04-03 15:21:52 +02:00
TD-er 1a70776616 [SHT1x] Support multiple instances 2019-04-03 15:21:46 +02:00
svmac 87998fb076 Changes requested 2019-03-30 01:39:30 +01:00
svmac 57830b2947 Update _P001_Switch.ino 2019-03-29 17:49:12 +01:00
svmac 30936a52b7 PullDown for GPIO16
Option to activate PullDown on GPIO16
2019-03-29 16:48:58 +01:00
jimmys01 d8e55527a3 [IR RX] Fixed typo 2019-03-28 16:04:07 +02:00
jimmys01 22e34a42a2 [IR RX] Enhancements
Tidy up the log output even more
Increace tollerance for RAW2 from 7% to 8%
2019-03-28 15:39:15 +02:00
Bartlomiej Zimon cdad90ea45 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch12 2019-03-27 16:39:51 +00:00
jimmys01 60faa821c3 [IR RX] Add more F macros 2019-03-21 16:48:52 +02:00
jimmys01 0bfe31ae4a [IR RX] Improve RX decoding stability 2019-03-21 12:04:59 +02:00
jimmys01 cb7e031d0c [IR TX] Updates with the newest IR protocol support 2019-03-21 12:00:29 +02:00
jimmys01 e85bdc9c5a [IR TX RX] Update the IR LIB 2019-03-21 11:58:47 +02:00
jimmys01andGitHub 159339e46e Merge pull request #1 from letscontrolit/mega
merge
2019-03-21 11:15:03 +02:00
TD-er 0a176cdfd2 Plugin P040_ID12 not included (#1761)
P040 was not included in the builds.
2019-03-15 13:02:14 +01:00
ESPEasy release bot 147da97f24 automatically updated release notes for mega-20190315 2019-03-15 04:00:21 +01:00
Gijs NoorlanderandGitHub 5eba85000b Merge pull request #2388 from jimmys01/mega
[IR TX RX] Update the library and the Plugins
2019-03-15 00:37:44 +01:00
Gijs NoorlanderandGitHub adec34956a Merge pull request #2397 from TD-er/bugfix/2394_MHZ19_stability
[MH-Z19] Do not reset sensor for wrong values within 3 min after init (#2394)
2019-03-15 00:37:22 +01:00
TD-er e09ed5bc2a [Travis] Fix build error on ESP32 with debug error enabled 2019-03-14 23:31:45 +01:00
TD-er 196bbba472 [debug log] Do not remove debug logs from all builds
As discussed here: https://github.com/letscontrolit/ESPEasy/issues/1970#issuecomment-473074737
Only remove them from "normal" and "minimal" builds.
2019-03-14 23:04:26 +01:00
TD-er 933bceb7a9 [MH-Z19] Do not reset sensor for wrong values within 3 min after init
There may be some unexpected responses after the reset.
So do not reset the sensor unless > 10 unknown responses were seen and also do not reset within 3 minutes after sensor reset.
2019-03-14 22:17:05 +01:00
Gijs NoorlanderandGitHub f3964e52c2 Merge pull request #2396 from TD-er/feature/build_SDK222
[SDK2.2.2] Add test build for SDK2.2.2
2019-03-14 20:26:25 +01:00
Gijs NoorlanderandGitHub 3ebaa0ee8a [P049 MHZ19] Fix check for unexpected response 2019-03-14 20:23:27 +01:00
Gijs NoorlanderandGitHub 2c53feded6 [P083_SGP30] New plugin should be in [TESTING] 2019-03-14 17:09:09 +01:00
Gijs NoorlanderandGitHub faf8d469ed Merge pull request #2302 from blackhu/mega
add Sensor SGP30 in _P83_SGP30.ino and Upload Lib Adafruit_SGP30-1.0.…
2019-03-14 17:06:50 +01:00
Gijs NoorlanderandGitHub 57409fe588 Merge branch 'mega' into mega 2019-03-14 17:06:42 +01:00
Gijs NoorlanderandGitHub 93a660fb09 Merge pull request #2389 from TD-er/bugfix/1970_lineending
[C011] Fix HTTP header in 'Generic HTTP Advanced' controller (#1970)
2019-03-14 17:05:08 +01:00
Gijs NoorlanderandGitHub 46d9c8b6db Merge pull request #2392 from TD-er/feature/new_ui_repo
[Webserver] Reduce flash strings in build via String Provider class
2019-03-14 17:04:38 +01:00
Gijs NoorlanderandGitHub 4d1acd02de Merge pull request #2391 from TungstenE2/patch-1
Update _P079_Wemos_Motorshield.ino
2019-03-14 17:04:27 +01:00
Gijs NoorlanderandGitHub f0c04d1bd0 Merge pull request #2395 from TD-er/bugfix/2394_MH-z19
[MH-Z19 CO2] Fix handling unexpected response from sensor (#2394)
2019-03-14 17:03:34 +01:00
TD-er 6871a8441f [SDK2.2.2] Add test build for SDK2.2.2
See this esp8266/Arduino pull request for all changes in the SDK: https://github.com/esp8266/Arduino/pull/5873
2019-03-14 16:48:18 +01:00
TD-er 9c90aee005 [MH-Z19 CO2] Fix handling unexpected response from sensor (#2394)
Apparently the last update broke handling of unexpected response to commands.
According to the datasheet, the sensor should not give a response to some commands, but it does.
These responses should not lead to a reset of the sensor.
2019-03-14 16:20:12 +01:00
jimmys01andGitHub d4f071e2c7 [IR TX] Set Coolix to default to 1 repeat
Newest IR Library commit, fixes coolix protocol repeating the signal by default
2019-03-14 15:39:53 +02:00
TD-er dd695d5d99 [C011] Fix newlines in header (#1970)
Only 1 CRLF per header line and 2x CRLF between headers and body.
2019-03-14 13:43:42 +01:00
jimmys01andGitHub ccf9441702 [IR TX RAW] Uncomment code that was commented by mistake 2019-03-14 13:36:23 +02:00
TD-er 6d3286f059 [Docs] Added P079 WemosMotorshield documentation to RTD 2019-03-14 12:09:35 +01:00
TD-er e27a34e07d [#2390] Added Wemos Motor Shield firmware binary to ESPeasy repo
Just to make sure it will remain available.
2019-03-14 11:09:12 +01:00
TD-er ccaa065dad [Travis] Build issue with ESP32 getHostname() vs hostname() 2019-03-14 10:28:37 +01:00
TD-er dd8aaaa570 remove the [TESTING] tag for plugin P079 (#2390)
See #2390
2019-03-13 17:26:31 +01:00
TD-er af480396c4 [Webserver] Reduce flash strings in build via String Provider class
This will allow to reduce code duplication, reduce strings used in binary and makes code better readable.

This is a project which may take some time to cover all code.
2019-03-13 17:25:39 +01:00
jimmys01 71cb9ff8dc [IR TX RX] Small fixes 2019-03-13 16:22:04 +02:00
jimmys01 ac5a93356b [IR RX] Make the log output more readable 2019-03-13 13:51:18 +02:00
jimmys01 9c33ea3121 [IR TX RX] Add comments, Removed debug log prints, some refactoring to compact the code. 2019-03-13 12:46:31 +02:00
jimmys01 37e1916d79 [IR] Latest Ir lib commit
Daikin AC related fix
2019-03-13 11:15:43 +02:00
TungstenE2andGitHub 8f67df35c1 Update _P079_Wemos_Motorshield.ino
added link to wiki regarding initial setup and flashing of motor_shield.bin first
2019-03-13 09:46:58 +01:00
jimmys01andGitHub bdf8272c67 Small Fix 2019-03-12 12:14:51 +02:00
TD-er 61897a1495 [C11] Fix HTTP header in 'Generic HTTP Advanced' controller
As suggested here: https://github.com/letscontrolit/ESPEasy/issues/1970#issuecomment-471759787
2019-03-12 10:57:52 +01:00
jimmys01 1b6891a448 [IR TX RX] Add the new protocols to the TX RX plugins
Also shorth alphabetically the protocols to match the library shorting
2019-03-12 11:31:29 +02:00
jimmys01 5ddb810821 [IR TX RX] Update IR Library 2019-03-12 11:20:06 +02:00
ESPEasy release bot 8377429ee5 automatically updated release notes for mega-20190311 2019-03-11 04:00:15 +01:00
Gijs NoorlanderandGitHub f93095db9e Merge pull request #2375 from jimmys01/patch-2
[IR RX] Disable Extended decoding of AC protocols by default
2019-03-11 00:51:45 +01:00
TD-er 12f6a326e3 Merge remote-tracking branch 'jimmys01/patch-2' into patch-2 2019-03-10 22:36:11 +01:00
jimmys01andTD-er ad9819aa3e Travis rebuild 2019-03-10 22:35:46 +01:00
jimmys01andTD-er baeb153df9 Fix endIf statement 2019-03-10 22:35:46 +01:00
jimmys01andTD-er 75dcaaad4e [IR RX] Disable Extended decoding of AC protocols by default
Saves 20K of flash memmory. They provide no functionality other than giving log stirngs of that short:  
"Mesg Desc.: Power: On, Fan: 5 (AUTO), Mode: 3 (HEAT), Temp: 22C, Zone Follow: Off, Sensor Temp: Ignored"
2019-03-10 22:35:46 +01:00
Gijs NoorlanderandGitHub 84021bbdc2 Merge pull request #2376 from TD-er/bugfix/2374_gratARP_esp32
[ESP32] Disable Gratuitous ARP for ESP32 (#2374)
2019-03-10 22:24:43 +01:00
Gijs NoorlanderandGitHub 3c6e42dd81 Merge pull request #2377 from TD-er/feature/ADC_filter
[ADC] Use simple filter for ADC plugin and show value on setup page
2019-03-10 22:22:56 +01:00
jimmys01andGitHub 6771ccbcef Travis rebuild 2019-03-10 23:05:41 +02:00
TD-er 8aeb25e1e9 [ADC] Increase readability of ADC calibration settings
Output example:
Current:	405 ≙ 13.034
Minimum:	0 ≙ 1.664
Maximum:	1023 ≙ 30.346
Step size:	1 ≙ 0.028
2019-03-10 16:12:36 +01:00
TD-er 11b44f4216 [Webserver] Add documentation link to Advanced settings page
And output the new settings in the info page & JSON output
Not yet included in the JSON used for the new UI.
2019-03-10 16:11:29 +01:00
TD-er 6a955efb8a [Cleanup] Remove P030 BMP280 since it has become obsolete by BMx280 2019-03-09 11:49:45 +01:00
TD-er 56b50cdc6b [MPU6050] Reverted to old version before adding Plugin_task_data array
See issue: #2381
Commits:
- https://github.com/letscontrolit/ESPEasy/commit/af20984079d3e7aa59e08fd9b232f6d17ba3b523#diff-ec860ac195fffa61ec11dd419fefa5b9
- https://github.com/letscontrolit/ESPEasy/commit/6400c495e24f39ebac88eb634f29cfb73137fa2b#diff-ec860ac195fffa61ec11dd419fefa5b9
2019-03-09 10:44:00 +01:00
TD-er f8e97ebe23 [Travis] F-macro related build issues
Some core version builds were not using the same disable debug flags.
2019-03-09 10:13:11 +01:00
TD-er 727db11629 [ADC] Show calibration range + step size
This min/max/stepsize info makes it easier to set the calibration.
2019-03-09 09:02:04 +01:00
TD-er 044294e0ee [Travis] Build error including F-macro in private class webserver 2019-03-09 09:00:13 +01:00
TD-er b87b52ed69 [Modbus] Split Modbus RTU from Senseair plugin
To allow other plugins to use Modbus RTU also.
2019-03-09 02:02:41 +01:00
TD-er 6ac3823b93 [Memory] Add several F() macro markers and disable some debug logs
All in order to reduce memory usage.
2019-03-09 02:01:47 +01:00
Bartlomiej Zimon 2854bc17f2 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch12 2019-03-08 14:09:01 +00:00
TD-er 7baa1ea2b4 [Build] Add build stats to track
See also [PlatformIO docs](http://docs.platformio.org/en/latest/faq.html#program-memory-usage) and https://github.com/esp8266/Arduino/issues/3740#issuecomment-338416331
2019-03-08 13:18:21 +01:00
TD-er d4207ec5e3 [Travis] Changes needed due to update core 2.6.0 for File::write 2019-03-06 23:51:30 +01:00
TD-er d2190cacc7 [Travis] Change needed due to change in core 2.6.0 File::write
See   https://github.com/esp8266/Arduino/commit/b1da9eda467cc935307d553692fdde2e670db258#r32622483
2019-03-06 22:17:34 +01:00
TD-er 3f3dfada9a [ADC] Use simple filter for ADC plugin and show value on setup page
When using 'Oversampling' the Analog input plugin is simply summing all samples and upon calling the read function it will divide this sum by the number of samples.
This added filtering is keeping track of the lowest and highest value measured in this loop and excludes these extremes.
This makes the reading a lot more stable, since it is often only a single extreme value which causes noise in the reported values.

Also added a note to the setup page near the calibration points to make it easier to add calibration values. It shows the current raw value + its calibrated equivalent (if enabled).
2019-03-06 17:26:17 +01:00
TD-er 869b1c8c57 [ESP32] Disable Gratuitous ARP for ESP32 (#2374)
See #2374
2019-03-06 16:45:49 +01:00
jimmys01andGitHub 1ece813572 Fix endIf statement 2019-03-06 16:13:44 +02:00
jimmys01andGitHub c9f17ee1a5 [IR RX] Disable Extended decoding of AC protocols by default
Saves 20K of flash memmory. They provide no functionality other than giving log stirngs of that short:  
"Mesg Desc.: Power: On, Fan: 5 (AUTO), Mode: 3 (HEAT), Temp: 22C, Zone Follow: Off, Sensor Temp: Ignored"
2019-03-06 15:31:06 +02:00
ESPEasy release bot 976432b16e automatically updated release notes for mega-20190305 2019-03-05 04:00:16 +01:00
Gijs NoorlanderandGitHub 006e16bf6e Merge pull request #2370 from TD-er/bugfix/delay_during_idletime
[Energy] Call delay from scheduler during idle time
2019-03-04 15:47:34 +01:00
TD-er bd04d80d70 [Energy] Document new Special and Experimental Settings 2019-03-04 15:44:13 +01:00
TD-er e37700c9a7 [Energy] Default Eco mode off.
Eco mode may lead to lost packets when receiving them.
2019-03-03 01:19:42 +01:00
TD-er cad8583565 [Energy] Add Eco mode, wifi none sleep and gratuitous ARP
Eco mode will call delay() from scheduler during idle loops. (significant energy reduction of up-to 0.25 Watt)
WiFi_NONE_SLEEP will keep wifi on continously (max energy consumption)
Gratuitous ARP will be sent to keep the MAC tables in switches know about the MAC of the ESP node.

The interval for sending ARP messages is dynamic. The interval between these ARP's is increasing up-to 60 seconds interval, so we're not flooding the network.
But on some occasions this interval time is reset to 100 msec (and doubled each next interval step), so we're announcing ourselves a bit more often.

Known issue:
- WiFi always on does seem to miss some packets (unstable RF due to heat?)
- UDP packets sent for ESPeasy p2p do seem to be missed more often as soon as the power consumption of the node is actually reducing.
- Eco mode may take some time to actually reduce power consumption of the node. It is like the underlying core library is dynamically increasing/decreasing the power consumption of the node.  (core 2.6.0, SDK2.2.1)
2019-03-02 01:46:59 +01:00
ESPEasy release bot 08d0602d81 automatically updated release notes for mega-20190301 2019-03-01 04:00:23 +01:00
TD-er 9961080510 [Energy] Call delay from scheduler during idle time
This will reduce the loop counter and even cause some inverse effect. Higher loop count means the node has more work to do (less scheduled tasks which are not yet due for work)

Initial tests show a significant lower power consumption and thus hopefully a more stable wifi connection.
The average used delay during idle calls can be seen in the timing stats (likely around 2.5 msec per idle loop)
The CPU load (in %) is still the same as before this patch, but the node feels a bit more 'snappy' and the extremes in the timing stats are lower.
2019-03-01 01:10:19 +01:00
Gijs NoorlanderandGitHub 5f1831aba9 Merge pull request #2369 from TD-er/bugfix/2356_digest_auth_mac
[Digest_auth] on Safari browser (#2356)
2019-03-01 00:03:58 +01:00
TD-er 8b9ea2bc42 [Digest_auth] Fix compiler issues ESP32 2019-02-28 23:18:23 +01:00
TD-er 7003a25031 [Digest_auth] on Safari browser (#2356)
See #2356
Also did change some defines to make core version detection simpler.
2019-02-28 18:06:23 +01:00
Gijs NoorlanderandGitHub 65a32aad75 Merge pull request #2360 from jimmys01/patch-2
[IRTX] Fix RAW2 bug introduced at 20190202
2019-02-28 16:24:20 +01:00
Gijs NoorlanderandGitHub bff65f3f3f Merge pull request #2367 from TD-er/bugfix/HLW8012_crash
[HLW8012] Fix build difference between Linux/Windows (#2355)
2019-02-28 16:16:53 +01:00
TD-er 5fbd1dda8d [HLW8012] Fix build difference between Linux/Windows (#2355)
No longer use a flash stored struct, since it may lead to crashes when built on Linux.
2019-02-28 15:13:43 +01:00
ESPEasy release bot c188825124 automatically updated release notes for mega-20190227 2019-02-27 04:00:18 +01:00
Gijs NoorlanderandGitHub aa08d89df0 Merge pull request #2362 from TD-er/bugfix/wifiClientTimeouts
[WiFiClient] Make sure all clients use at least some timeout
2019-02-26 18:13:07 +01:00
TD-er 591988c2ee [WiFiClient] Make sure all clients use at least some timeout
Default timeout is 6000 msec, so we must make sure this will not exceed our own default timeout of 1000 msec.
2019-02-26 17:31:04 +01:00
Bartlomiej Zimon 0feca38c87 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch12 2019-02-26 16:03:45 +00:00
Gijs NoorlanderandGitHub 98e1ff7712 Merge pull request #2361 from TD-er/bugfix/wifi_connect_timeout
Bugfix/wifi connect timeout
2019-02-26 15:34:21 +01:00
Gijs NoorlanderandGitHub bfb42c656f Merge pull request #2359 from TD-er/bugfix/factory_reset_rules
[Factory Reset] Make default switch/relay rules more intuitive
2019-02-26 15:34:02 +01:00
Gijs NoorlanderandGitHub b21699c402 Fix build error 2019-02-26 14:59:01 +01:00
TD-er 98a72cd450 [Build] Add normal core 2.6.0 SDK2 build 2019-02-26 14:56:54 +01:00
TD-er c057695291 [WiFi] Only perform network activity when connected
In the backgroundtasks and also for a number of other network related operations there was no check for connectivity.
This could lead to various timeouts and maybe hanging processes. (Hardware watchdog resets)
2019-02-26 14:56:13 +01:00
jimmys01andGitHub 469709affe Fixed a check 2019-02-26 15:36:16 +02:00
jimmys01andGitHub 88975f077d [IRTX] Fix RAW2 bug introduced at 20190202
Fixes #2339
2019-02-26 14:03:50 +02:00
TD-er f5a2e3bbf9 [Heap stats] Show heap statistics on core 2.5.0 and newer
The heap statistics are a great help in trying to find the cause of some issues.
They are added to the sysinfo page.
2019-02-26 11:46:05 +01:00
TD-er 4c9f4cd638 [Factory Reset] Change #switch in rules and plugin to #state
Also updated in all rules examples.
N.B. some examples already were using #state, which is more intuitive.
2019-02-26 11:44:39 +01:00
ESPEasy release bot 694ee7eeb1 automatically updated release notes for mega-20190226 2019-02-26 04:00:13 +01:00
TD-er 83e8959e93 [Factory Reset] Make default switch/relay rules more intuitive
As suggested on the [forum](https://www.letscontrolit.com/forum/viewtopic.php?p=33065#p35422) by #ShaMAD
2019-02-26 00:52:34 +01:00
Gijs NoorlanderandGitHub 37fa8babf1 Merge pull request #2358 from TD-er/bugfix/ESP32_settings
Bugfix/esp32 settings
2019-02-25 23:39:28 +01:00
Gijs NoorlanderandGitHub c430f52aa3 Merge pull request #2357 from uzi18/patch-4
IRTX: fix memory leak in case of error
2019-02-25 23:01:09 +01:00
Gijs NoorlanderandGitHub 6b5755d30e Undo F() macro due to build errors 2019-02-25 23:00:46 +01:00
TD-er 674d6f3003 [Settings] Get rid of error when deleting plugin
Error was "SaveTaskSettings taskIndex does not match"
See #1856 #2264
2019-02-25 22:56:51 +01:00
Bartłomiej ZimońandGitHub 08d4657162 IRTX: move error string to flash 2019-02-25 21:23:28 +00:00
Bartłomiej ZimońandGitHub 5983bd5775 IRTX: fix memory leak in case of error
related to #2339
2019-02-25 21:07:20 +00:00
TD-er 2ec6cd524c [ESPeasySerial] Update to v1.0.8 Fix some compiler issue. 2019-02-25 21:55:44 +01:00
TD-er 0089abfce9 [ESP32] Setting won´t save #2354
I kept getting the error myself, so for now, I removed the check for ESP32.
Not sure what's going on here.
2019-02-25 21:54:55 +01:00
Gijs NoorlanderandGitHub fce9acdba3 Merge pull request #2352 from TD-er/bugfix/ser2net_revert
[Ser2Net] Revert of Ser2Net and P1WifiGateway (#1617 and #2343)
2019-02-25 20:28:57 +01:00
Gijs NoorlanderandGitHub 086e51d87c Merge pull request #2353 from TD-er/bugfix/unitNameTrim
Trim trailing spaces in unit name  (#2329)
2019-02-25 20:28:43 +01:00
TD-er e89aba128b Trim trailing spaces in unit name (#2329)
See #2329
2019-02-25 17:50:27 +01:00
TD-er e48e744d0e [P1WifiGateway] Fix memory leak
In the reverted code this was fixed in another way, so this is just a quick fix for now.
See #2352 and #2236
2019-02-25 17:13:42 +01:00
TD-er 85210c46f6 [SerialHelper] Added comment to help finding issue later 2019-02-25 16:56:27 +01:00
TD-er 89c7648520 [Ser2Net] Revert of Ser2Net and P1WifiGateway (#1617 and #2343)
See #1617 and #2343
2019-02-25 16:39:58 +01:00
ESPEasy release bot 7d0fb2dcf2 automatically updated release notes for mega-20190225 2019-02-25 04:00:17 +01:00
Gijs NoorlanderandGitHub 29eee7139e Merge pull request #2350 from TD-er/build/core_250
Build/core 2.5.0 & core 2.6.0 with different SDKs
2019-02-24 23:59:13 +01:00
Gijs NoorlanderandGitHub e8445684ac Merge pull request #2347 from TD-er/bugfix/remove_new_ui_from_minimal
[Minimal OTA] Remove JSON handles for new UI from minimal build
2019-02-24 23:59:00 +01:00
Gijs NoorlanderandGitHub 7728186906 Merge pull request #2349 from TD-er/bugfix/MHz19_reset
[MH-Z19] Reset/re-init sensor when unknown response received
2019-02-24 23:58:27 +01:00
Gijs NoorlanderandGitHub c5761db451 Merge pull request #2348 from TD-er/bugfix/SonoffPOW_r1
[HLW8012] Fix crash when saving settings (#2251)
2019-02-24 23:58:05 +01:00
Gijs NoorlanderandGitHub 4b808e7b7d Merge pull request #2335 from TD-er/bugfix/Nextion_cleanup
[Nextion] Cleanup of plugin after moving to serial wrapper
2019-02-24 23:57:48 +01:00
TD-er c2e8fbbd24 [Minimal OTA] F() macros were lost in last fix. 2019-02-24 23:30:41 +01:00
TD-er 3e7d641973 [Build] Use PlatformIO Espressif8266@2.0.1 (core 2.5.0)
Also:
- included core 2.6.0 alpha build with SDK2.2.1
- included core 2.6.0 alpha build with SDK3.0.0-dev
- Made memory size in bin filenames consistent (_4M instead of _4096)
2019-02-24 23:21:56 +01:00
TD-er 37d6140434 [Sphinx docs] Some small doc build fixes
- There were some unicode characters
- JPG file had wrong image type
- Documented the needed packages to build LaTeX documentation in Linux (still fails to build PDF dus to chapter count overflow)
2019-02-24 23:19:46 +01:00
TD-er acfbb6b7fe [MH-Z19] Reset/re-init sensor when unknown response received
See #2254
2019-02-24 21:59:56 +01:00
TD-er 478950b67b [HLW8012] Fix crash when saving settings (#2251)
See #2251
Problem was in accessing the members of the pre-defined node settings. (need to perform memcpy on the progmem data or else it will crash)
2019-02-24 15:25:33 +01:00
TD-er d213880da6 [Minimal OTA] Handling '/' was lost in last fix. 2019-02-24 13:34:24 +01:00
TD-er d8577c2fa8 [Minimal OTA] Remove JSON handles for new UI from minimal build
These will be made available again when the new UI is been taken into operations.
2019-02-24 13:04:53 +01:00
Bartlomiej Zimon 8e08251ae9 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch12 2019-02-23 12:48:28 +00:00
nichu 0f1366f2fa Reduction tools/build_ESPeasy.sh 2019-02-20 00:25:59 +08:00
nichu 20a4efd831 add sgp30 to define list 2019-02-19 23:56:45 +08:00
ESPEasy release bot 74713e5fa4 automatically updated release notes for mega-20190219 2019-02-19 04:00:16 +01:00
Gijs NoorlanderandGitHub a8bfa71bd5 Merge pull request #2332 from ppisljar/fix/json_number
fixing json numbers
2019-02-18 23:19:39 +01:00
ppisljar 0a0eb59043 always use string in json 2019-02-18 19:28:50 +01:00
ppisljar 75228c7d08 fixing json numbers 2019-02-18 19:16:34 +01:00
Gijs NoorlanderandGitHub e89f5afd45 Merge pull request #2330 from ppisljar/newui/dowload/fix
fixing download ui button
2019-02-18 14:54:31 +01:00
ppisljar 4906c7b390 fixing download ui button 2019-02-18 14:30:10 +01:00
Gijs NoorlanderandGitHub ac968b5bec Merge pull request #2327 from ppisljar/newui/download
adding new ui download button
2019-02-18 13:57:23 +01:00
Gijs NoorlanderandGitHub 12cfea924a Merge pull request #2328 from TD-er/bugfix/esp32_build
[build] Fix ESP32 build issues for #2326
2019-02-18 13:56:02 +01:00
TD-er 702cfebf8b [build] Fix ESP32 build issues for #2326 2019-02-18 13:55:04 +01:00
Gijs NoorlanderandGitHub 1bc7630f4f Merge pull request #2326 from ppisljar/json/8
updating sysinfo json endpoint
2019-02-18 13:44:01 +01:00
TD-er 4641297a64 [Nextion] Cleanup of plugin after moving to serial wrapper 2019-02-18 13:40:54 +01:00
ppisljar 765a6d10b8 adding new ui download button 2019-02-18 13:34:33 +01:00
ppisljar a2879b588a updating sysinfo json endpoint 2019-02-18 08:33:40 +01:00
ESPEasy release bot d5f2fa21fd automatically updated release notes for mega-20190218 2019-02-18 04:00:07 +01:00
Gijs NoorlanderandGitHub 09d89eaa4b Merge pull request #2325 from ppisljar/json/7
adding sysinfo json endpoint
2019-02-17 21:56:24 +01:00
ppisljar e383949413 adding sysinfo json endpoint 2019-02-17 21:54:20 +01:00
Peter PisljarandGijs Noorlander 85d849d825 p2p node list json endpoint (#2323) 2019-02-17 20:46:07 +01:00
Gijs NoorlanderandGitHub 4e42e426cf Merge pull request #2324 from ppisljar/fix/index.htm
fixing index.htm serving
2019-02-17 20:16:33 +01:00
ppisljar 097d34758e fixing index.htm serving 2019-02-17 20:15:14 +01:00
Gijs NoorlanderandGitHub 14b8f1b183 Merge pull request #2322 from ppisljar/json/5
adding support for index.htm.gz
2019-02-17 19:06:14 +01:00
ppisljar 27453a59d9 adding support for index.htm.gz 2019-02-17 19:03:12 +01:00
Gijs NoorlanderandGitHub 78ae8f097f Merge pull request #2320 from ppisljar/web/gzip
add support for serving gziped files
2019-02-17 17:57:23 +01:00
ppisljar 29ce3a8e34 fixing 2019-02-17 17:50:16 +01:00
Gijs NoorlanderandGitHub 107673bd9a Merge pull request #2321 from TD-er/bugfix/normal_webpage_no_SDsupport
[bugfix] Load old webpage when no index.htm present and no SD support
2019-02-17 15:30:37 +01:00
TD-er 6e3135416f [bugfix] Load old webpage when no index.htm present and no SD support 2019-02-17 15:28:58 +01:00
ppisljar 179969b79e typo 2019-02-17 14:28:28 +01:00
ppisljar 4be24ab480 add support for serving gziped files 2019-02-17 14:22:21 +01:00
Gijs NoorlanderandGitHub 1ade390468 Merge pull request #2319 from ppisljar/web/config
load index.htm if it exists

If for some reason this is not working well (error in the index.htm) you can go to /filesystem
or /devices
or any other page, and it will load the old ui
Then go to /filesystem and delete index.htm
2019-02-17 14:15:35 +01:00
ppisljar 593d4f255b load index.htm if it exists 2019-02-17 14:08:18 +01:00
Gijs NoorlanderandGitHub 7fbd484391 Merge pull request #2318 from TD-er/build/disable_esp32dev
[ESP32dev] Disable ESP32dev build due to space constraints
2019-02-17 14:08:02 +01:00
TD-er 954565844d [ESP32dev] Disable ESP32dev build due to space constraints
This build was still using the 1.34 MB default sketch partition size, but that no longer fits.
So for now this build is disabled.
2019-02-17 14:05:58 +01:00
Gijs NoorlanderandGitHub 91940f0335 Merge pull request #2317 from ppisljar/json/4
factory reset json endpoint
2019-02-17 13:59:44 +01:00
Gijs NoorlanderandGitHub 1d2bd8f18b Merge pull request #2316 from ppisljar/auth/Digest
Auth/digest
2019-02-17 13:59:24 +01:00
Gijs NoorlanderandGitHub 957539e9e4 Merge pull request #2313 from ppisljar/json/2
adding upload json endpoint
2019-02-17 13:58:30 +01:00
ppisljar 3cb09febd6 factory reset json endpoint 2019-02-16 21:15:26 +01:00
ppisljar 831bdf60a1 digest auth 2019-02-16 20:53:11 +01:00
ppisljar 0c1c6b5c7a adding upload json endpoint 2019-02-16 13:41:00 +01:00
ESPEasy release bot b620188d2a automatically updated release notes for mega-20190216 2019-02-16 04:00:15 +01:00
Gijs NoorlanderandGitHub b6736e7c95 [#2286] Missing build normal_IR_ESP8266_1024
It was missing in the nightly built ZIP file.
2019-02-16 00:57:44 +01:00
ESPEasy release bot d7866164ea automatically updated release notes for mega-20190215 2019-02-15 04:00:17 +01:00
Gijs NoorlanderandGitHub 77714d3105 Merge pull request #2308 from Grovkillen/UpdateDocs
[docs] Adding P015 + some filters to rules + ThingSpeak info
2019-02-14 22:49:51 +01:00
Gijs NoorlanderandGitHub 3d7f032ad1 Merge pull request #2297 from ppisljar/json/1
adding json endpoints
2019-02-14 20:00:07 +01:00
ppisljar 8f1f55b6b1 removing unused var 2019-02-14 19:19:34 +01:00
ppisljar a4c029f6f3 json endpoints 2019-02-14 18:27:24 +01:00
Grovkillen 391452246f [docs] upgraded to Sphinx 1.8.4 2019-02-14 15:02:28 +01:00
Grovkillen e028b9d02a [docs] fixed error in event list 2019-02-14 14:52:30 +01:00
Grovkillen 7f70abd1c2 [docs] added GPIOtoggle command 2019-02-14 14:35:10 +01:00
Grovkillen 2564bcd4b8 [docs] event+commands for GPIO#N + Monitor added 2019-02-14 14:28:58 +01:00
Grovkillen c1a0a26cd4 [docs] P082 added screenshot 2019-02-14 14:19:39 +01:00
Grovkillen 7118dce882 [docs] Rules (fixed error in syntax) 2019-02-14 12:40:54 +01:00
Grovkillen 77062e50ce [docs] Rules (Let used in filters) 2019-02-14 12:36:34 +01:00
Grovkillen 29447d0c8d [docs] P015 TSL2561 added 2019-02-14 12:09:32 +01:00
Gijs NoorlanderandGitHub 5aa3eb7344 Merge pull request #2058 from 3cky/mdns-fix
[WIFI] Fix mDNS startup for log levels below LOG_LEVEL_INFO
2019-02-14 11:42:12 +01:00
Gijs NoorlanderandGitHub de08cd6570 Merge pull request #2306 from TD-er/bugfix/mqttimport_clientname_spaces
MQTT Import : A bad clientId is build in case of a reconnect #2298
2019-02-14 10:29:26 +01:00
TD-er 24b6cf4874 MQTT Import : A bad clientId is build in case of a reconnect #2298
Fix is to trim spaces before adding connection count and replace existing spaces into `_`
2019-02-14 10:28:33 +01:00
Gijs NoorlanderandGitHub b03a7678c9 Merge pull request #2305 from TD-er/feature/2286_1M_IR_build
1MB build with P035 IR plugins #2286
2019-02-14 10:16:02 +01:00
Grovkillen 061b691497 [docs] ThingSpeak (must check acknowledge) 2019-02-14 10:11:55 +01:00
TD-er a780a811f2 1MB build with P035 IR plugins #2286 2019-02-14 10:11:48 +01:00
GrovkillenandGitHub c07ad1780c Merge pull request #9 from letscontrolit/mega
update from master
2019-02-14 10:06:49 +01:00
Victor Antonovich 203c33fe8c [WIFI] Add MDNS.update() for LEAmDNS compatibility 2019-02-14 12:42:08 +04:00
Victor Antonovich 200cb17656 [WIFI] Fix mDNS startup for log levels below LOG_LEVEL_INFO 2019-02-14 12:42:08 +04:00
Gijs NoorlanderandGitHub 1572e86b82 Merge pull request #2235 from TD-er/bugfix/reduce_memusage_plugins
Bugfix/reduce memusage plugins
2019-02-14 08:32:39 +01:00
TD-er 1e0fd8a284 [Serial wrapper] Fix serial issues (for ESP8266) when using HW serial 2019-02-13 18:03:07 +01:00
Bartlomiej Zimon 869d8f38db 1wire - add more data for debug, add a little more time for reset response 2019-02-12 22:02:31 +00:00
TD-er 62ce776c74 [ESPeasySerial] Make it compile for core 2.4.1 2019-02-12 15:03:19 +01:00
nichu b3a6112e42 add Sensor SGP30 in _P83_SGP30.ino and Upload Lib Adafruit_SGP30-1.0.0.13 2019-02-12 15:54:48 +08:00
ESPEasy release bot 85515281d6 automatically updated release notes for mega-20190212 2019-02-12 04:00:31 +01:00
TD-er 19ef8eb796 [Build] Rename build files and disable core 2.5.0 builds
Core 2.5.0 is out, but this gives instability issues serving web pages.
For now the builds of core 2.5.0 are not included in the nightly builds until this is fixed.
2019-02-11 23:35:18 +01:00
TD-er 0b64c3d04f [SWserial] Set TX interrupts for 9600 baud
This was the used setting in older versions of SoftwareSerial
2019-02-11 23:33:49 +01:00
Gijs NoorlanderandGitHub 236a0098c2 Merge pull request #2279 from olliwr/mega
Fixed compile errors that occurred when FEATURE_SD is defined.
2019-02-11 21:53:36 +01:00
Gijs NoorlanderandGitHub 749f0b9c55 Merge pull request #2294 from Grovkillen/UpdateDocs
[flasher] fixed unzip bug (unzipped to root instead of bin folder)
2019-02-11 21:52:29 +01:00
Gijs NoorlanderandGitHub f0861ac66f Merge pull request #2137 from chunter1/mega
[DS18B20] 1-wire timings optimized for stability
2019-02-11 21:44:09 +01:00
Grovkillen ab18f25c5e [flasher] old zip's didn't store in "\bin", downloader comply now 2019-02-11 09:15:47 +01:00
TD-er 4cc5eca3f5 [PlatformIO] Core 2.5.0 is no longer beta
Regular platform is still set to 2.4.2, since 2.5.0 causes issues.
2019-02-11 01:00:25 +01:00
TD-er ec345b1dcc [GPS] Fix some uninitialized issues 2019-02-11 00:56:16 +01:00
TD-er 5e798fa3a9 [ESPeasySerial] return -1 as pins on unset serial type 2019-02-11 00:54:34 +01:00
Grovkillen 0260fad1a9 [flasher] fixed HW port name bug 2019-02-08 08:45:33 +01:00
Grovkillen 555f6d2dd8 [flasher] fixed unzip to root, now (correctly) bin folder 2019-02-08 07:40:17 +01:00
GrovkillenandGitHub 128f8e270d Merge pull request #8 from letscontrolit/mega
Update from master
2019-02-08 07:35:44 +01:00
TD-er 8626a130a8 [#2292] HX711: tareChanA command is not case insensitive 2019-02-08 00:15:14 +01:00
TD-er 5b9a87308a [Eastron] Fix compile error 2019-02-05 14:52:52 +01:00
TD-er 3b1dd8f21f [Eastron] Add CRC pass/fail stats to plugin page and allow retries 2019-02-05 14:44:19 +01:00
TD-er 9a05eaf828 [WiFi] Destruct WiFi object when wifi needs to be reset
See https://github.com/esp8266/Arduino/issues/5527#issuecomment-460537616
2019-02-05 14:16:32 +01:00
TD-er 61d4c50db3 [SenseAir] Some more improvements Modbus implementation 2019-02-05 14:15:40 +01:00
TD-er 6290cb42bc [SenseAir] Improvement on Modbus handling
As a preparation for a generic Modbus layer for other plugins too.
2019-02-05 01:26:38 +01:00
TD-er 30d3598684 [Core 2.5.0] Move tag to beta3
See commit: https://github.com/esp8266/Arduino/commit/21db8fc9285d2f548c0123206d53cab059cf3b3d
2019-02-05 00:52:21 +01:00
TD-er 5880c9173d [ESP8266] Do not use default for TX pin
The RX/TX pins are defined in the init. So no need to hand them to the begin function call again and set some default when not used.
This will lead to issues where the TX pin is not working when using HW serial.
2019-02-05 00:24:32 +01:00
TD-er 64b65cca42 [#2254] Make it compile in all core libraries
Linker issue with F() macro.
2019-02-04 20:28:37 +01:00
TD-er 3d507bdbb9 [#2254] Reduce memory usage on MH-Z19 and improve reading stability
Reading the sensor data will now only accept data starting with 0xFF.
This should improve reading stability.

Also added indicator showing checksum pass/fail and the model detected (MH-Z19 A or B)
2019-02-04 12:44:39 +01:00
olliwr c392e772c0 Update ESPEasy-Globals.h
disabled FEATURE_SD
2019-02-02 19:51:06 +01:00
olliwr af778d28ac Update Command.ino
Fixed several compile errors which occurs in case of active FEATURE_SD.
errors:
(1) #if with no expression
(2) converting to 'const String' from initializer list would use explicit constructor 'String::String(char)'
(3) no matching function for call to 'serialPrintln(uint32_t, int)'
2019-02-02 19:33:51 +01:00
olliwr c57150efec Update ESPEasy-Globals.h
activated FEATURE_SD
2019-02-02 17:53:44 +01:00
ESPEasy release bot d40c449f8d automatically updated release notes for mega-20190202 2019-02-02 04:00:28 +01:00
Gijs NoorlanderandGitHub 0ad7fad5c1 Merge pull request #2275 from joniw/fix-crash-esp32
fix reset bug for esp32 by casting explicitly, should fix #2242
2019-02-01 20:37:45 +01:00
Jonathan Westerholt bdda128be8 fix reset bug for esp32 by casting explicitly, should fix #2242 2019-02-01 19:39:53 +01:00
TD-er 55c1e0c1b9 Merge remote-tracking branch 'origin/bugfix/reduce_memusage_plugins' into bugfix/reduce_memusage_plugins 2019-02-01 10:53:58 +01:00
TD-er c8f0a7ac58 [WiFi] Add option to set wifi off and restart wifi when connection lost
As discussed here: https://github.com/letscontrolit/ESPEasy/issues/1987#issuecomment-457268319
In short, this new setting allows to set wifi completely off when a disconnect is being handled.
This will force a complete restart and configure of the wifi setup.
2019-02-01 10:53:45 +01:00
TD-er 1362363295 Moved testing plugins to test builds & added safety docs for power sensors
See: https://github.com/letscontrolit/ESPEasy/issues/2266
2019-02-01 10:53:45 +01:00
TD-er f604ce490b [WiFi] Correct fall-back when B/G only mode cannot connect 2019-02-01 10:53:45 +01:00
TD-er 6643eb4aaa [WiFi] Allow force to B/G to improve WiFi stability.
See #2012 and discussion here: https://github.com/letscontrolit/ESPEasy/issues/1987#issuecomment-455843832
2019-02-01 10:53:45 +01:00
TD-er 4890d13543 [GPS] Improve displayed satellite stats 2019-02-01 10:53:08 +01:00
TD-er 82358574ba [PubSubClient] Increase MQTT_MAX_PACKET_SIZE from 384 to 1024 2019-02-01 10:53:08 +01:00
TD-er 63e98d805b [PlatformIO] Allow building ESP32 espressif32@1.6.0 2019-02-01 10:53:08 +01:00
TD-er 7d27151ccd [GPS] Use GSV and GSA sentences to view satellite ID and SNR 2019-02-01 10:53:08 +01:00
TD-er a5d5c77314 [TinyGPS++] Added GSA and GSV sentences to get satellite ID & SNR 2019-02-01 10:53:08 +01:00
TD-er e7d21b0bc7 [Settings] Added check for offset on last member of struct
An extra check to see if building on different platforms makes a difference in offset within the SettingsStruct.
2019-02-01 10:53:08 +01:00
TD-er cd570cafba [ESP32] Change P002_ADC range to 4095 for ESP32
See https://github.com/letscontrolit/ESPEasy/issues/1632#issuecomment-454952002
2019-02-01 10:53:08 +01:00
TD-er 8d257df2dd [memory] P020_Ser2Net Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er 30cbb4c0e7 [memory] Shared code to select Serial Config (8N1 etc)
Also fixed a minor issue in GPS plugin destructor
2019-02-01 10:53:08 +01:00
TD-er 0485edc274 [memory] P044_P1WiFiGateway Use Plugin_task_data array and String as buffer
The internal buffer was a char* array, but all it needed was just the same as being already available in the `String` class.
So it has been changed to be a String.
2019-02-01 10:53:08 +01:00
TD-er 6400c495e2 [memory] Change pointer checks to compare with nullptr
As suggested [here](https://github.com/Barracuda09)
2019-02-01 10:53:08 +01:00
TD-er af20984079 [memory] P045_MPU6050 Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er a9b0762d30 [memory] P046_VentusW266 Use member data struct
Not using the Plugin_task_data, since it is using interrupts and callback functions.
Not sure what will happen if we store these volatile variables in the same global array.
2019-02-01 10:53:08 +01:00
TD-er 47cdbb4ee5 [memory] P070_NeoPixel_Clock Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er 989ba1f8b9 [memory] P073_7DGT Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er e0f4991ea3 [memory] P074_TSL2591 Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er 86d4ecc5cf [memory] P075_Nextion Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er 9a80251b76 [memory] P077_CSE7766 Use Plugin_task_data array 2019-02-01 10:53:08 +01:00
TD-er 293a40e2ac [memory] Reduce memory of P082_GPS and P068_SHT3x when not enabled
Also introduce a global pointer array to keep plugin settings per task ID to allow multiple instances of the same plugin.
2019-02-01 10:53:08 +01:00
TD-er e10ac8543d [memory] Reduce memory usage of p070_NeoPixelClock when not enabled 2019-02-01 10:53:08 +01:00
TD-er 82f1594ee7 [p073_7DGT] Reduce memory usage of 7-segment display plugin
Also removed lots and lots of duplicate code and improved readability.
2019-02-01 10:53:08 +01:00
TD-er d5aa9faf15 [Nextion] Reduce memory usage when not active 2019-02-01 10:53:08 +01:00
Gijs NoorlanderandGitHub e964d85987 Merge pull request #2261 from jimmys01/patch-1
[Controllers] Fix small error in commit #2246
2019-02-01 10:46:23 +01:00
Gijs NoorlanderandGitHub 74ed9af212 Merge pull request #2262 from clumsy-stefan/reduce_1M_minimal_ota
[Sketch size] Reduce sketch size if needed
2019-02-01 10:46:08 +01:00
Gijs NoorlanderandGitHub 2732d3ae0e Merge pull request #2263 from Grovkillen/UpdateDocs
[flasher] fixed "empty folder" issue #2247
2019-02-01 10:45:00 +01:00
Gijs NoorlanderandGitHub eee1555c31 Merge pull request #2232 from jimmys01/mega
[IRTX] [IRRX] Update IrRemote Library and corresponding plugins
2019-02-01 10:44:42 +01:00
TD-er 30441c48ed [WiFi] Add option to set wifi off and restart wifi when connection lost
As discussed here: https://github.com/letscontrolit/ESPEasy/issues/1987#issuecomment-457268319
In short, this new setting allows to set wifi completely off when a disconnect is being handled.
This will force a complete restart and configure of the wifi setup.
2019-01-25 00:09:53 +01:00
TD-er d54781f9b7 Merge remote-tracking branch 'origin/bugfix/reduce_memusage_plugins' into bugfix/reduce_memusage_plugins 2019-01-24 23:34:35 +01:00
TD-er 89984fa891 Moved testing plugins to test builds & added safety docs for power sensors
See: https://github.com/letscontrolit/ESPEasy/issues/2266
2019-01-24 23:34:16 +01:00
jimmys01andGitHub 0354aa72c2 Merge branch 'mega' into mega 2019-01-24 20:25:54 +02:00
Gijs NoorlanderandGitHub 1b595bb843 Merge branch 'mega' into bugfix/reduce_memusage_plugins 2019-01-24 17:20:41 +01:00
TD-er 5ba75be5cd [WiFi] Correct fall-back when B/G only mode cannot connect 2019-01-24 17:18:31 +01:00
TD-er e2d05edf72 [WiFi] Allow force to B/G to improve WiFi stability.
See #2012 and discussion here: https://github.com/letscontrolit/ESPEasy/issues/1987#issuecomment-455843832
2019-01-24 17:15:09 +01:00
TD-er 9194357b83 [GPS] Improve displayed satellite stats 2019-01-24 14:23:51 +01:00
stefan 40582bcb38 [1M minimal Size] Exclude debug from minimal Controllers/Plugins
Exclude debug logs from C001, C002, C005, C008, C009, C013 and P001, P026, P033 which are compiled  in by default in the PLUGIN_BUILD_MINIMAL_OTA set.
Reduces sketch about 1k.
2019-01-23 22:10:02 +01:00
stefan 7b71d5aafc [1M minimal Size] Remove another unused variable..
I have no clue why my compiler does not complain about these, even though I have -Werror=unused-variable in the command line options...
2019-01-23 10:51:28 +01:00
stefan 2ac50e20af [1M minimal Size] Remove unused variable..
...and make travis compiler happy again!
2019-01-23 10:31:58 +01:00
stefan c8a81a9dba [1M minimal Size] Include BUILD_NO_DEBUG in plugin sets
Add BUILD_NO_DEBUG in define_plugin_sets.h to PLUGIN_BUILD_MINIMAL_OTA.
This makes commit #316691ad07731798687ada096907c5ccb61fb1b6 included and active in 1M minimal OTA build.
2019-01-23 10:04:29 +01:00
Grovkillen 93e9abbeea [flasher] fixed empty folder issue 2019-01-23 07:45:33 +01:00
GrovkillenandGitHub 5e31e286f0 Merge pull request #7 from letscontrolit/mega
update from master
2019-01-23 07:44:52 +01:00
TD-er ee40ac7d75 [PubSubClient] Increase MQTT_MAX_PACKET_SIZE from 384 to 1024 2019-01-22 23:51:30 +01:00
TD-er 4b623b0455 [PlatformIO] Allow building ESP32 espressif32@1.6.0 2019-01-22 23:50:31 +01:00
TD-er de1f157e9a [GPS] Use GSV and GSA sentences to view satellite ID and SNR 2019-01-22 23:48:14 +01:00
TD-er 8d15fedb05 [TinyGPS++] Added GSA and GSV sentences to get satellite ID & SNR 2019-01-22 23:46:55 +01:00
stefan 316691ad07 [1M minimal Size] Exclude all debug logs from standard files
Exclude all >= LOG_LEVEL_DEBUG except in Controllers, Plugins and Notifications.
Reduces sketch about 3k.
2019-01-22 15:41:07 +01:00
stefan 1011831cce [1M minimal Size] Undefine graphical meminfodetail
Undefine graphical meminfodetail if BUILD_MINIMAL_OTA is defined to reduce sketch size.
Reduces sketch about 3k.
2019-01-22 09:50:19 +01:00
jimmys01andGitHub 7ec6e20c5b [Controllers] Fix small error in commit #2246
Just realized that I had mixed up the default defines. It is now OK.
2019-01-22 09:47:20 +02:00
ESPEasy release bot 672da98f5b automatically updated release notes for mega-20190121 2019-01-21 04:00:15 +01:00
Gijs NoorlanderandGitHub 7a628f6d78 Merge pull request #2256 from clumsy-stefan/wifi_minor_stability_fixes
[WiFi] Some minor changes for WiFi stability
2019-01-20 22:54:19 +01:00
Gijs NoorlanderandGitHub 850a3e1f3b Merge pull request #2234 from eiten/mega
SHT_3x: Add code to start periodic transmission if not enough data is received
2019-01-20 21:41:54 +01:00
Gijs NoorlanderandGitHub ab57241933 Merge pull request #2246 from jimmys01/patch-1
[Controllers] Solves the 0 Max Queue Depth and Max retries bug after and update
2019-01-20 21:41:30 +01:00
Gijs NoorlanderandGitHub 9e48525659 Merge pull request #2259 from clumsy-stefan/decouple_minimal_OTA
[Plugin Sets] Decouple PLUGIN_BUILD_MINIMAL_OTA
2019-01-20 21:41:07 +01:00
Gijs NoorlanderandGitHub 358b0d0ad2 Merge pull request #2231 from letscontrolit/bugfix/2230_IRTX_Mitsubishi
[IRTX] mitsubishi_ac not working #2230
2019-01-20 21:36:42 +01:00
stefan 8cf1d7436d [Plugin Sets] Decouple PLUGIN_BUILD_MINIMAL_OTA
Decouple PLUGN_BUILD_MINIMAL_OTA in define_plugin_sets.h from other #defines in source code, otherwise either plugin set from Custom.h gets overriden by PLUGN_BUILD_MINIMAL_OTA from define_plugin_sets.h or #define's in code (eg. WebServer.ino) are not included.
Also name is misleading, as eg. WebServer is not a plugin..
2019-01-20 20:06:57 +01:00
stefan 80ccd94ca8 [Wifi] Remove unused variable
Remove unused retval variable to make compiler happy...
2019-01-20 15:01:16 +01:00
stefan 362a02a60e [WiFi] Some minor changes for WiFi stability
- Call delay(0) unconditionally after plugin calls as they can take quie some time, even if they fail
- add some more log output in various places for WiFi info
- add some ()/{} to make groupings clear
- add all possible statuses in case statement after WiFi.begin() call
- test for layer 2 availability independent of valid IP (can happen that IP is still valid, but layer 2 is lost)
2019-01-20 13:38:40 +01:00
jimmys01andGitHub 1bc3a28706 [Condrollers] Solves the 0 Max Queue Depth and Max retries bug after an update
Max Queue Depth and Max retries where left to 0 after you update a node from a version that did not have this settings. This solves it.
2019-01-18 11:57:10 +02:00
TD-er b7782944a6 [Settings] Added check for offset on last member of struct
An extra check to see if building on different platforms makes a difference in offset within the SettingsStruct.
2019-01-17 10:12:10 +01:00
TD-er 8b403377c3 [ESP32] Change P002_ADC range to 4095 for ESP32
See https://github.com/letscontrolit/ESPEasy/issues/1632#issuecomment-454952002
2019-01-17 09:07:54 +01:00
ESPEasy release bot 1e885afdad automatically updated release notes for mega-20190116 2019-01-16 04:00:26 +01:00
TD-er a87315ac26 [memory] P020_Ser2Net Use Plugin_task_data array 2019-01-16 01:06:12 +01:00
Gijs NoorlanderandGitHub d46d4eaa29 Merge pull request #2239 from letscontrolit/feature/wifi_preinit
[WiFi] Disable wifi initialization at boot (core 2.5.0-b2)
2019-01-16 00:55:36 +01:00
Gijs NoorlanderandGitHub 586f39ecd9 [WiFi] Disable wifi initialization at boot
See:
- https://github.com/esp8266/Arduino/issues/2111
- https://github.com/esp8266/Arduino/pull/5395/files

Hopefully it will help for modules which have a hard time to connect to WiFi, which may be caused by weak power supply.
It will also not start unintended DHCP-client services which lead to strange issues when using static IP configuration.
Tests should reveal if it will also help to lessen the chaos which may happen now the 'May deal' is off, so please perform some tests and we'll see the coming days.
At least it will save some peak power at startup.
2019-01-16 00:30:44 +01:00
TD-er 63e3113236 [memory] Shared code to select Serial Config (8N1 etc)
Also fixed a minor issue in GPS plugin destructor
2019-01-16 00:13:58 +01:00
GrovkillenandGitHub f973bef3df Merge pull request #2238 from Grovkillen/UpdateDocs
[flasher] fixed API deny error (JSON parser)
2019-01-15 13:59:44 +01:00
Grovkillen 73c2e4f0ef Merge remote-tracking branch 'Grovkillen/UpdateDocs' into UpdateDocs 2019-01-15 13:57:16 +01:00
Grovkillen 3b2fc1804e [flasher] fixed API deny error (JSON parse) 2019-01-15 13:57:08 +01:00
GrovkillenandGitHub 6f2f5a1356 Merge pull request #6 from letscontrolit/mega
update from master
2019-01-15 13:56:57 +01:00
jimmys01andGitHub a87da3c4a3 Update _P035_IRTX.ino 2019-01-15 00:14:37 +02:00
jimmys01andGitHub 66b06e93b1 [IRTX] Allocate big buffers on the heap for RAW and RAW2 encodings 2019-01-14 19:59:00 +02:00
TD-er ef5f5199a4 [memory] P044_P1WiFiGateway Use Plugin_task_data array and String as buffer
The internal buffer was a char* array, but all it needed was just the same as being already available in the `String` class.
So it has been changed to be a String.
2019-01-14 14:25:16 +01:00
TD-er 73e0ed4996 [memory] Change pointer checks to compare with nullptr
As suggested [here](https://github.com/Barracuda09)
2019-01-14 14:19:54 +01:00
jimmys01 c0ce3f0cec [IRTX] Even more timming Buffer added
I keep bumping to AC units with even bigger appetite for lengthy timings. Hopefully this time will be enough
2019-01-14 14:02:47 +02:00
TD-er bf91e3286c [memory] P045_MPU6050 Use Plugin_task_data array 2019-01-13 02:10:03 +01:00
TD-er 843e638d1e [memory] P046_VentusW266 Use member data struct
Not using the Plugin_task_data, since it is using interrupts and callback functions.
Not sure what will happen if we store these volatile variables in the same global array.
2019-01-13 01:12:18 +01:00
TD-er 6142b22fbf [memory] P070_NeoPixel_Clock Use Plugin_task_data array 2019-01-13 00:49:00 +01:00
TD-er ab4a670541 [memory] P073_7DGT Use Plugin_task_data array 2019-01-13 00:43:52 +01:00
TD-er 708806cf42 [memory] P074_TSL2591 Use Plugin_task_data array 2019-01-12 22:59:46 +01:00
TD-er e8aea2028f [memory] P075_Nextion Use Plugin_task_data array 2019-01-12 22:18:57 +01:00
TD-er 0e0b753423 [memory] P077_CSE7766 Use Plugin_task_data array 2019-01-12 01:03:17 +01:00
TD-er 7aaedba05e [memory] Reduce memory of P082_GPS and P068_SHT3x when not enabled
Also introduce a global pointer array to keep plugin settings per task ID to allow multiple instances of the same plugin.
2019-01-11 23:43:21 +01:00
Eduard Iten 04e59c587c Add code to start periodic transmission if not enough data is received 2019-01-11 17:59:21 +01:00
TD-er f34b9ab404 [memory] Reduce memory usage of p070_NeoPixelClock when not enabled 2019-01-11 10:07:56 +01:00
jimmys01 495559e47b Add the newest IR protocols to EspEasy 2019-01-11 10:06:51 +02:00
jimmys01 ee68009b47 Bump up IrRemote Lib to 2.5.4 2019-01-11 09:15:53 +02:00
jimmys01andGitHub 278b3a1402 Merge pull request #4 from letscontrolit/mega
test
2019-01-11 08:58:39 +02:00
Gijs NoorlanderandGitHub bd3bfb7930 [IRTX] mitsubishi_ac not working #2230
See #2230
2019-01-10 23:54:06 +01:00
ESPEasy release bot 0977b7e70e automatically updated release notes for mega-20190110 2019-01-10 04:00:10 +01:00
TD-er 008ccf3789 [p073_7DGT] Reduce memory usage of 7-segment display plugin
Also removed lots and lots of duplicate code and improved readability.
2019-01-09 14:56:40 +01:00
TD-er 4b93eee1c2 [Nextion] Reduce memory usage when not active 2019-01-09 14:54:35 +01:00
Gijs NoorlanderandGitHub b650778482 Replace frequently used settings names with short and clear macros 2019-01-09 14:52:23 +01:00
TD-er 95ed0fd1be [Plugins] Remove redundant includes 2019-01-09 09:46:01 +01:00
ESPEasy release bot f3b33c7ada automatically updated release notes for mega-20190109 2019-01-09 04:00:13 +01:00
TD-er f0a2cff6f8 [CSE7766] Reduce memory when plugin not active 2019-01-08 15:56:41 +01:00
TD-er 2f56ba7606 [Plugins] Replace long settings names with clear macros
See the defines in `_Plugin_Helper.h`
They were already used in some plugins, but now made globally available since they make the source much more readable.
2019-01-08 14:54:26 +01:00
GrovkillenandGitHub db04fbf4b0 Merge pull request #2223 from Grovkillen/UpdateDocs
[flasher] big update!
2019-01-08 12:47:07 +01:00
Grovkillen 329b93bb73 [flasher] big update!
You can now name the physical USB port names (ini file in settings folder).
You can now download (and unzip) directly from GitHub (small "update" button in top right)
You will now receive announcements about ESP Easy (opt out) if we push a message.
2019-01-08 12:42:44 +01:00
Gijs NoorlanderandGitHub edf7f2eabf Compile issue Arduino IDE declare function static
As suggested by @clumsy-stefan
2019-01-08 12:11:49 +01:00
Grovkillen 667f09ce68 [dist] deleted the plugin sizes file (obsolete) 2019-01-08 10:37:07 +01:00
GrovkillenandGitHub 714ff77e9b Merge pull request #5 from letscontrolit/mega
Update from master
2019-01-08 10:35:07 +01:00
ESPEasy release bot fa9efcdb2b automatically updated release notes for mega-20190108 2019-01-08 04:00:08 +01:00
TD-er 4715519b7b [GPS] Reduce memory usage when plugin not active.
Also make sure interrupt driven callback should access volatile memory and have icache_attr set.
2019-01-08 00:31:52 +01:00
Gijs NoorlanderandGitHub 272f3f965d Merge pull request #2179 from uzi18/patch12
Dallas: perform 1wire reset before issue copy to eeprom command
2019-01-07 16:54:54 +01:00
Gijs NoorlanderandGitHub b964d8391b Merge pull request #2221 from Grovkillen/UpdateDocs
[docs] added P082 hardware pages + rearranged stuff
2019-01-07 13:58:13 +01:00
Gijs NoorlanderandGitHub 91a24fd3c2 Merge pull request #2217 from clumsy-stefan/deepSleep
[deepSleep] Make deepSleep work again with 2.5.0 and refactor delay var
2019-01-07 13:57:58 +01:00
TD-er cf95d0ca37 [deepSleep] Prevent overflow issues
The 'old' limit of 4294 seconds was 2^32 usec.
By casting it to an uint32, you may get unexpected results when multiplying it by 10^6 again.
So better to use uint64 as variable and work on that one, now the deepsleep functions support uint64.
2019-01-07 11:47:24 +01:00
Grovkillen 81428a0d22 [docs] fixed some syntax 2019-01-07 11:23:41 +01:00
Grovkillen 44475079df [docs] P082 (GPS) added "where to buy" links 2019-01-07 11:18:22 +01:00
Grovkillen bf46ebb0f3 [docs] added P082 (GPS) pages 2019-01-07 10:58:03 +01:00
Grovkillen 7956583c96 [docs] added an event reference page (similar to the command ref. page) 2019-01-07 08:56:26 +01:00
Grovkillen 5c1d68b627 [docs] moved events to repl file (same as commands) 2019-01-07 08:43:54 +01:00
stefan 1ac0a96b41 [deepSleep] fix type errors of #999e43a
Fix type errors of #999e43a and (hopefully) cast all types correctly now....

Keep deep sleep delay below INT_MAX for parameter storage compatibility.
2019-01-07 08:29:00 +01:00
Grovkillen fa21426852 [docs] added "used libraries" to all plugin pages 2019-01-07 08:28:27 +01:00
Grovkillen a72c6b4965 [docs] added events to all plugin pages
Not their hardware pages...
2019-01-07 08:25:28 +01:00
Grovkillen 8f24fa6c3e [docs] fixed used libraries 2019-01-07 07:45:27 +01:00
GrovkillenandGitHub 042f219bf6 Merge pull request #4 from letscontrolit/mega
update from master
2019-01-07 07:32:54 +01:00
ESPEasy release bot 40757016e1 automatically updated release notes for mega-20190107 2019-01-07 04:00:07 +01:00
Gijs NoorlanderandGitHub 8edae2146a Merge pull request #2218 from TD-er/bugfix/HLW8012
[HLW8012] Fix some issues when selecting device
2019-01-06 21:22:31 +01:00
TD-er 741b702c85 [HLW8012] Update documentation 2019-01-06 21:21:22 +01:00
stefan 999e43a834 [deepSleep] Allow for sleeptimes up to deepSleepMax()
Allow to specify sleep times up deepSleepMax() on core 2.5.0
2019-01-06 20:50:13 +01:00
TD-er 18eedf6616 [HLW8012] Fix some issues when selecting device 2019-01-06 16:41:54 +01:00
Gijs NoorlanderandGitHub 3ec78b68a2 Merge pull request #2216 from TD-er/feature/RPiEasy
Add new Nodetype RPIEasy #2206
2019-01-06 14:03:58 +01:00
Gijs NoorlanderandGitHub 63217fb341 Merge pull request #2183 from CaptainRoot/mega
Update _P076_HLW8012.ino / Add support for BL0937 to plugin _076_HLW8012
2019-01-06 14:03:39 +01:00
stefan c2c311eb78 [deepSleep] only use deepSleepInstant for 2.5.0
added #ifdefs to make build happy also for versions <2.5.0
2019-01-06 13:10:28 +01:00
stefan 1a55b991b9 [deepSleep] Make deepSleep work again with 2.5.0 and refactor delay var
Make deepSleep work again with Core 2.5.0. Changed ESP.deepSleep() to ESP.deepSleepInstant().

Refactor delay variable to dsdelay to avoid conflicts with the delay() function.

Added a delay(100) before going to sleep to give the node time to send the last log messages.
2019-01-06 11:58:06 +01:00
TD-er 66bba2caae Add new Nodetype RPIEasy #2206
Also moved some String lookup functions and got rid of code duplication.
2019-01-06 11:31:22 +01:00
ESPEasy release bot 4d2a76ada8 automatically updated release notes for mega-20190106 2019-01-06 04:00:12 +01:00
Gijs NoorlanderandGitHub c4681b5589 Merge pull request #2213 from TD-er/bugfix/1987_wifi_stability
[WiFi] Some basic fixes to improve wifi reconnect
2019-01-06 01:38:42 +01:00
TD-er c752b30d04 [WiFi] Some basic fixes to improve wifi reconnect
As suggested by @clumsy-stefan  https://github.com/letscontrolit/ESPEasy/issues/1987#issuecomment-451644424
2019-01-06 01:13:07 +01:00
Gijs NoorlanderandGitHub 5713900d0f Merge pull request #2194 from TD-er/feature/GPS_plugin
P082: Feature/gps plugin & Serial port abstraction
2019-01-06 00:21:58 +01:00
TD-er d9d826650c [GPS] Include the GPS docs in the Spinx tree. 2019-01-05 23:57:07 +01:00
TD-er 032d51cd75 [PUYA] Use newest core 2.5.0 backport patch on unpatched sources. 2019-01-05 23:37:03 +01:00
TD-er 6eef558183 [GPS] Add documentation for P082_GPS.ino 2019-01-05 23:32:08 +01:00
TD-er b20eede516 [GPS] Add PPS pin as reference pilot for time sync 2019-01-05 23:31:41 +01:00
TD-er 416e162c2d [JavaScript] Simple JS to update view in web interface on change serial 2019-01-05 03:10:13 +01:00
TD-er 4744d638e4 [Puya] Backport core 2.5.0 Puya patch and make patched platform archives
This makes it possible to build Puya patched versions without having to patch the files first.
2019-01-05 03:09:12 +01:00
TD-er b8aa681421 [ESPEasy Serial] Fix build issues for core 2.4.0 2019-01-05 03:06:20 +01:00
CaptainRoot 90b37e4bd0 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2019-01-03 14:46:27 +01:00
CaptainRoot b708d6f6d4 movepredefind pin settings to PROGMEM
move predefind pin settings for some energy meter sockets to HLW8012 /BL0937 to PROGMEM
2019-01-03 14:18:25 +01:00
ESPEasy release bot 5ee18ec556 automatically updated release notes for mega-20181231 2018-12-31 04:00:13 +01:00
Gijs NoorlanderandGitHub 140b102dc4 Merge pull request #2191 from Grovkillen/UpdateDocs
[docs] P006, P013, P024, P028, P030 added.
2018-12-30 23:54:09 +01:00
Gijs NoorlanderandGitHub fc354fc545 Merge pull request #2170 from giig1967g/bugfix/gpioEvents3
Bugfixes to GPIO handling and MONITOR command
2018-12-30 23:53:30 +01:00
Grovkillen baa211bc74 [flasher] getting ready for info splash with announcements
We could then use this to get in hold of more people than current sticky in the forum...
2018-12-28 13:36:45 +01:00
Grovkillen bf96e341d6 [docs] fixed rule syntax typo 2018-12-28 11:49:37 +01:00
Grovkillen f824c1a050 [travis] -lstdc++-nox removed from esp82xx_2_5_0 2018-12-28 07:52:41 +01:00
Grovkillen f9f6a35ded [docs] added info about bme/bmp similarities 2018-12-27 13:40:20 +01:00
Grovkillen 11c72fcb02 [docs] P028 added 2018-12-27 13:32:48 +01:00
Grovkillen 96352c3cfb [docs] commands updated 2018-12-27 12:12:43 +01:00
Grovkillen 08c14a9d70 [docs] added note to BMP085 and BMP180 2018-12-27 11:30:13 +01:00
Grovkillen 32b76694d6 [docs] P006 added 2018-12-27 11:18:00 +01:00
Grovkillen dcf0bde7b6 [docs] where used added for P024 2018-12-27 10:17:10 +01:00
Grovkillen 43e74893cc [docs] P024 added 2018-12-27 10:12:56 +01:00
TD-er 0caa805452 [GPS] Allow GPS to update system time 2018-12-27 03:08:56 +01:00
TD-er 6f03a81217 [#2197] Correct spelling error in 'Controller'
See #2197
2018-12-27 03:07:24 +01:00
TD-er 64907207fc [build] Added extra include of ESPeasySerial.h
Otherwise build depends on order of included files.
2018-12-26 00:00:46 +01:00
TD-er 6216e79dd3 [build] Register ESPeasySerial as library in PlatformIO 2018-12-24 23:28:23 +00:00
TD-er 5cc65a7d9d [Stability] Add delay(0) to all successful calls to plugin functions
Since these calls can be performed in sequences, the time of these calls can become rather large.
Every call returning success did something, so add a delay(0) after such a plugin function call to make sure background tasks are performed.
2018-12-24 00:45:59 +01:00
TD-er d36fc492fc [Serial] Use uniform serial port selector for all serial plugins 2018-12-24 00:43:27 +01:00
Bartlomiej Zimon fc03a845b4 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch12 2018-12-23 10:38:59 +00:00
TD-er a8b7268f32 [WiFi] Set to auto reconnect. 2018-12-22 16:07:25 +01:00
TD-er 8838f38322 [Serial] Let plugins use new serial wrapper 2018-12-22 16:06:59 +01:00
TD-er a1cb8be2b4 [core 2.3.0] build attempt (failing due to iRAM)
Attempt to test core stability using core 2.3.0.
It compiles, but linking is not possible, since iram1_0_seg is full.
2018-12-22 14:42:49 +01:00
TD-er 0e0c25dc5b [GPS] typo in JSON file caused build issues 2018-12-22 02:41:35 +01:00
TD-er c1e13a0392 [GPS] Serial wrapper support including ESP32 2018-12-22 02:10:02 +01:00
TD-er 70c0d10687 [GPS] Extend helper object for abstracting HW/SW serial 2018-12-21 22:16:59 +01:00
TD-er ec767f6c1c [GPS] Make helper object to abstract hardware/software serial 2018-12-21 17:36:11 +01:00
Grovkillen 3afb44cd6e [docs] P013 syntax fixed 2018-12-21 14:36:36 +01:00
Grovkillen 5903c72751 [docs] P003 added "EndOn" 2018-12-21 13:45:29 +01:00
Grovkillen 370f1eb207 [docs] P013 added 2018-12-21 13:19:17 +01:00
GrovkillenandGitHub 69104b161a Merge pull request #3 from letscontrolit/mega
update from mega
2018-12-21 09:49:17 +01:00
TD-er e7beea5cfb Merge remote-tracking branch 'origin/feature/GPS_plugin' into feature/GPS_plugin 2018-12-21 09:26:51 +01:00
TD-er e2b30e2d6b [GPS] New plugin P082 GPS - initial commit 2018-12-21 09:26:25 +01:00
TD-er 36a44ca787 [GPS] support for fix quality and fix mode
Applied this PR:
[support for fix quality and fix mode](https://github.com/mikalhart/TinyGPSPlus/pull/38)
2018-12-21 09:26:25 +01:00
TD-er 346ff67f8e [GPS] Improved precision
Applied PR from @qbazd
[lat, lng force math operations #47](https://github.com/mikalhart/TinyGPSPlus/pull/47)
2018-12-21 09:26:25 +01:00
TD-er 06697e212e [GPS] Add TinyGPSPlus library 1.0.2
[Source](https://github.com/mikalhart/TinyGPSPlus)
2018-12-21 09:26:25 +01:00
CaptainRoot b3b8a9fd59 Update platformio.ini 2018-12-20 20:46:39 +01:00
CaptainRoot 2c29ec467b Revert changes to platformio.ini 2018-12-20 20:45:45 +01:00
CaptainRoot 8d275631b3 add predefind pin settings for some energy meter sockets to HLW8012 / BL0937 2018-12-20 20:42:10 +01:00
ESPEasy release bot a7f1d6153c automatically updated release notes for mega-20181220 2018-12-20 04:00:08 +01:00
Gijs NoorlanderandGitHub dcfc8ffd01 Merge pull request #2184 from TD-er/feature/2180_APmodeEnabledEvent
[WiFi] Add WiFi#APmodeDisabled & WiFi#APmodeEnabled #2180
2018-12-19 23:42:15 +01:00
TD-er fd9f63aab9 [WiFi] Documentation of new WiFi#APmodeEnabled / Disabled events 2018-12-19 22:13:53 +01:00
TD-er 8b8174daef [WiFi] Add WiFi#APmodeDisabled & WiFi#APmodeEnabled #2180
Added events:
- WiFi#APmodeEnabled
- WiFi#APmodeDisabled
2018-12-19 21:56:23 +01:00
CaptainRoot ddce8865b9 Update _P076_HLW8012.ino
Add support for BL0937  to plugin _076_HLW8012
-Add possibility to set interrupt tigger for cf and cf1
Add possibility to set current reading state (low/high)
2018-12-19 20:10:51 +01:00
Gijs NoorlanderandGitHub 708adf2190 Merge pull request #2182 from TD-er/feature/AddTimers_core250
Feature/add timers core250
2018-12-19 16:05:09 +01:00
TD-er f4a98ea43c [TimingStats] Add handle_schedule() to the timingstats. 2018-12-19 15:25:42 +01:00
TD-er 9affa6b1c4 [TimingStats] Add timing stats for controllers
As requested here:
https://github.com/esp8266/Arduino/issues/5513#issuecomment-448558292
2018-12-19 15:06:48 +01:00
Gijs NoorlanderandGitHub 17f403db5d Merge pull request #2177 from Grovkillen/UpdateDocs
[docs] P005 added to RTD
2018-12-19 11:53:41 +01:00
Gijs NoorlanderandGitHub 7d135716dd Merge pull request #2181 from TD-er/mega
[PUYA] Support for PUYA now in core 2.5.0
2018-12-19 11:52:58 +01:00
TD-er 6c747d15fc [PUYA] Support for PUYA now in core 2.5.0
See: https://github.com/esp8266/Arduino/pull/5504
2018-12-19 11:25:00 +01:00
TD-er 218ace372b [GPS] New plugin P082 GPS - initial commit 2018-12-19 00:22:26 +01:00
Bartlomiej Zimon ea98eb516b Dallas: do not perform eeprom write if configuration does not change 2018-12-18 22:10:32 +00:00
Bartlomiej Zimon 8bcbd2b024 Dallas: perform 1wire reset before issue copy to eeprom command
it is small fix for resolution change after sensor reset #2143
2018-12-18 21:35:29 +00:00
Plebs 2e6f7dcfdb optimized monitor call
Execution time reduced to1ms average
2018-12-18 14:55:55 +01:00
TD-er b101bd15e3 [GPS] support for fix quality and fix mode
Applied this PR:
[support for fix quality and fix mode](https://github.com/mikalhart/TinyGPSPlus/pull/38)
2018-12-18 12:46:58 +01:00
TD-er db6f022401 [GPS] Improved precision
Applied PR from @qbazd
[lat, lng force math operations #47](https://github.com/mikalhart/TinyGPSPlus/pull/47)
2018-12-18 12:37:56 +01:00
TD-er cbd7b69a27 [GPS] Add TinyGPSPlus library 1.0.2
[Source](https://github.com/mikalhart/TinyGPSPlus)
2018-12-18 12:33:57 +01:00
Grovkillen 6c838846c4 [docs] fixed better value name in P003
MomentaryConsumption changed to W
2018-12-18 12:17:36 +01:00
Grovkillen 3a647a9ab1 [docs] P005 DHT11 + DHT22 hardware added 2018-12-18 12:13:08 +01:00
GrovkillenandGitHub 255f297f8a Merge pull request #2 from letscontrolit/mega
update from mega
2018-12-18 11:30:17 +01:00
ESPEasy release bot 398f805a3a automatically updated release notes for mega-20181218 2018-12-18 04:00:10 +01:00
Gijs NoorlanderandGitHub 395abb6e7b Merge pull request #2171 from Grovkillen/UpdateDocs
[docs] Pulse counter (P003) + Dallas (P004) added
2018-12-17 23:54:13 +01:00
Gijs NoorlanderandGitHub c32ee98cda Merge pull request #2173 from TD-er/bugfix/reduce_size_minimal_build
[Minimal build] Reduce file size of minimal build for 1MB OTA
2018-12-17 23:53:40 +01:00
TD-er 2973f32f5a [Minimal build] Reduce file size of minimal build for 1MB OTA
In order to get the build size down, a number of things had to be done:

- Removed notifications
- Reduce favicon.ico size
- Reduce flash string usage
- No SVG images on buttons.

Also made the OTA load button visible but disabled when OTA not possible.
2018-12-17 23:25:17 +01:00
TD-er 680f60e167 [Core 2.5.0] Update label to core "2.5.0-beta2" 2018-12-17 23:19:59 +01:00
TD-er 9a46820d40 [PUYA] Prepare for upcoming PUYA patch in core library
See https://github.com/esp8266/Arduino/pull/5504
This needs a little change in the detect script to see if the previous patch already was applied.
2018-12-17 23:18:28 +01:00
Grovkillen 25b2269e6b [docs] fixed search box on RTD + added HW links in the plugin categories 2018-12-17 20:04:18 +01:00
Grovkillen 7c3bcabe1d [docs] P004 (DS18b20) added 2018-12-17 15:13:42 +01:00
Grovkillen e1d2832195 [docs] P003 documented (generic pulse counter)
Hardware
YFS401
TCR5000
LJ12A3
2018-12-17 14:29:35 +01:00
GrovkillenandGitHub cdeaeeaf14 Merge pull request #1 from letscontrolit/mega
update from mega
2018-12-17 09:18:20 +01:00
ESPEasy release bot 36d6c7d448 automatically updated release notes for mega-20181217 2018-12-17 04:00:07 +01:00
Gijs NoorlanderandGitHub 52893300f7 Merge pull request #2169 from letscontrolit/bugfix/2m256_flash
[2M flash] Change 2M128 into 2M256 for 256k SPIFFS
2018-12-17 01:15:54 +01:00
Plebs b339b75eb3 fixed esp32 compile failure 2018-12-17 00:07:05 +01:00
TD-er 8a984e6e78 [2M flash] Update deploy script to match 2M256 flash layout 2018-12-16 21:12:30 +00:00
Gijs NoorlanderandGitHub e7e4aa1acb [2M flash] Change 2M128 into 2M256 for 256k SPIFFS
See: https://github.com/letscontrolit/ESPEasy/issues/2162#issuecomment-447674460
2018-12-16 22:08:03 +01:00
ESPEasy release bot f8ae031be7 automatically updated release notes for mega-20181216 2018-12-16 04:00:10 +01:00
Gijs NoorlanderandGitHub a516892ce6 Merge pull request #2167 from TD-er/bugfix/restore_wroom02_config
[#2162] Restore PlatformIO config for WROOM02 + new 2M128 flash layout
2018-12-16 01:06:37 +01:00
TD-er caa7e12eb7 [#2162] Restore PlatformIO config for WROOM02 + new 2M128 flash layout
See #2162
Also added a WROOM02 core 2.5.0 beta test build using the new 2M128k flash layout. (allowing OTA)
Using the new layout will remove any existing 2M1M layout.
2018-12-16 00:41:29 +01:00
Plebs 7064e76c97 optimizing PLUGIN_MONITOR call
Timing stats average time is now 1.5ms compared to 2.5ms of the previous version.
2018-12-15 19:31:10 +01:00
Plebs e05cbfc8cb fixed string error 2018-12-15 14:46:04 +01:00
Plebs 4650c638ed bug fix for gpio events for P009 and P019 2018-12-15 00:04:54 +01:00
Plebs 509574e3cb bug fix for state = -1 in JSON
was reporting 65535
2018-12-14 23:45:53 +01:00
Plebs 9487d85766 bugfix for sending event in case of gpio commands 2018-12-14 23:35:38 +01:00
ESPEasy release bot 9b1151baa6 automatically updated release notes for mega-20181214 2018-12-14 04:00:20 +01:00
Gijs NoorlanderandGitHub 40009a49f9 Merge pull request #2161 from TD-er/revert/GPIO_to_20181204
Revert/GPIO to 20181204 & prepare for easier merge future GPIO fixes
2018-12-14 02:02:34 +01:00
TD-er 0a4f7cf174 [core 2.5.0-beta1] Add core 2.5.0 IR build and normal 1M VCC
This commit was added: https://github.com/esp8266/Arduino/commit/8ede8f14593def949aeee9a2ada1c01bbe9afd52
Which allows the IR build to be linked too.

Also the disabled plugins in previous test builds could be enabled again (P003, P008 and Servo)
2018-12-14 01:41:11 +01:00
TD-er b13541cf58 [GPIO] Track output value in plugin overview
Quick fix to see the output value of a GPIO pin in the plugin overview and be able to query its value.
2018-12-14 01:05:33 +01:00
Gijs Noorlander c8094bbecd Merge remote-tracking branch 'origin/revert/GPIO_to_20181204' into revert/GPIO_to_20181204 2018-12-13 17:21:08 +01:00
Gijs Noorlander 98c4905827 Revert GPIO, prepare for easier merge later GPIO fixes
This commit is to cherry-pick all fixes in the reverted commits to make future GPIO related fixes be as easy as possible.
These also contain small fixes which were in the reverted commits, but not really related to the issues for which this revert is meant.
2018-12-13 17:20:46 +01:00
Gijs Noorlander c298c5a457 Revert "[GPIO] GPIO commands with long duration will be stopped async."
This reverts commit 0c0db4f401.
2018-12-13 17:19:48 +01:00
Gijs Noorlander 3bcfb5b0f5 Revert "[GPIO] Add some checks to what GPIO pin can be used."
This reverts commit 77b283197d.
2018-12-13 17:19:13 +01:00
Gijs Noorlander 7824466685 Revert "[GPIO] Move "inputswitchstate" back to Switch plugin"
This reverts commit 8db694bde6.
2018-12-13 17:19:13 +01:00
Gijs Noorlander f30530d470 Revert "[GPIO] Move all GPIO commands out of Switch plugin"
This reverts commit c304efb1b4.
2018-12-13 17:19:13 +01:00
Gijs NoorlanderandGitHub 02ef853e1e Merge pull request #2148 from Grovkillen/UpdateDocs
[docs] Re-added changes reverted due to merge fix + new flasher version
2018-12-13 17:16:18 +01:00
Gijs NoorlanderandGitHub ed50071953 Merge pull request #2157 from TD-er/feature/testbuild_core2_5_0_beta1
Feature/testbuild core2 5 0 beta1
2018-12-13 17:15:18 +01:00
Gijs Noorlander 122c1932e8 [core 2.5.0-beta1] Update build names in deploy script
Must include the "core_250_beta" builds
2018-12-13 16:55:31 +01:00
Gijs Noorlander 59b5adfeee [core 2.5.0-beta1] Clean up PlatformIO.ini & add some 2.5.0 beta builds 2018-12-13 15:54:57 +01:00
Gijs Noorlander 4de68afc7a [Rules] Modulo operator '%' only works on int
As reported here: https://github.com/letscontrolit/ESPEasy/pull/2157#issuecomment-446976418
2018-12-13 15:51:53 +01:00
Gijs Noorlander 5a768fb094 Revert GPIO, prepare for easier merge later GPIO fixes
This commit is to cherry-pick all fixes in the reverted commits to make future GPIO related fixes be as easy as possible.
These also contain small fixes which were in the reverted commits, but not really related to the issues for which this revert is meant.
2018-12-13 12:20:38 +01:00
Gijs Noorlander fd272367f2 Revert "[GPIO] GPIO commands with long duration will be stopped async."
This reverts commit 0c0db4f401.
2018-12-13 11:37:33 +01:00
Gijs Noorlander 20635e91c8 Revert "[GPIO] Add some checks to what GPIO pin can be used."
This reverts commit 77b283197d.
2018-12-13 11:34:43 +01:00
Gijs Noorlander 9b71379687 Revert "[GPIO] Move "inputswitchstate" back to Switch plugin"
This reverts commit 8db694bde6.
2018-12-13 11:33:16 +01:00
Gijs Noorlander 4476bd1016 Revert "[GPIO] Move all GPIO commands out of Switch plugin"
This reverts commit c304efb1b4.
2018-12-13 11:31:46 +01:00
Gijs Noorlander 3b49dca5f5 [core 2.5.0-beta1] Add core number and disable some 1MB builds
Disabling dev/test builds for 1 MB chips, since the bin files will be too big to fit on 1 MB modules.
We have to decide later how to make the plugins in dev/test state available for 1 MB modules.
2018-12-12 16:08:03 +01:00
Gijs Noorlander 3c1c84b288 [build] Add option to give a PR number at command line. 2018-12-12 15:17:15 +01:00
Gijs Noorlander 1d005250c5 [Tools] Set executable bits to scripts 2018-12-12 13:47:01 +01:00
Gijs Noorlander 8c0ded31be [core 2.5.0-beta1] Allow building against core 2.5.0
See: https://github.com/esp8266/Arduino/issues/5476
2018-12-12 13:40:22 +01:00
Gijs Noorlander 63d6b3944f [core 2.5.0-beta1] Test build using platformIO
Created own PIO platform to test 2.5.0-beta1
2018-12-11 13:03:51 +01:00
Grovkillen e6f24edd32 [docs] added hardware Ventus W266 (P046) 2018-12-10 14:13:56 +01:00
Grovkillen 827ef08f50 [flasher] 0.03.002 forgot to add pixel per inch settings (defaulted 144) 2018-12-09 20:49:05 +01:00
Grovkillen f4e84ea4c6 [flasher] 0.03.001 new window layout for long file names in dropdown 2018-12-09 20:19:07 +01:00
Grovkillen 520cee5d0d [docs] fixed the command reference list (looks better on small screens) 2018-12-08 20:09:09 +01:00
Grovkillen 5b80edb943 [docs] Up to date with the info before the merge fix on 181207 2018-12-08 19:04:15 +01:00
ESPEasy release bot 6256cb5255 automatically updated release notes for mega-20181208 2018-12-08 04:00:13 +01:00
Gijs NoorlanderandGitHub 2fbe1a2655 Max OTA filesize on 1MB = 616448 bytes. 2018-12-07 21:25:27 +01:00
Gijs NoorlanderandGitHub d9028a732c [#2144] Extend check for file size of ESP32 images 2018-12-07 21:20:45 +01:00
Gijs NoorlanderandGitHub 09a79a5892 [#2144] Only include OTA images that fit (<600 k)
Added a check to the script that makes the ZIP file, to only add image files that will fit in the sketch space.
See https://github.com/letscontrolit/ESPEasy/issues/2144
2018-12-07 21:06:58 +01:00
GrovkillenandGitHub 8ed77ffb01 Merge pull request #2142 from Grovkillen/UpdatedFlasher0003000
[flasher] Updated flasher with custom serial commands
2018-12-07 15:16:25 +01:00
Grovkillen a7142f4a3c Fixed merge conflict 2018-12-07 15:15:50 +01:00
Grovkillen 9d7750b881 [docs] added hardware tSense 2018-12-07 14:52:47 +01:00
Grovkillen 89da79bbdc Revert "[docs] added commented references to commands list"
This reverts commit e52f85e893.
2018-12-07 13:27:30 +01:00
Grovkillen 2add0fcae2 [flasher] 0.03.000 added custom serial commands. 2018-12-07 13:19:07 +01:00
Grovkillen e1495f9520 Merge remote-tracking branch 'letscontrolit/mega' into DocumentationUpdate 2018-12-07 10:02:02 +01:00
Grovkillen e52f85e893 [docs] added commented references to commands list 2018-12-07 10:00:56 +01:00
ESPEasy release bot e26cf54e47 automatically updated release notes for mega-20181207 2018-12-07 04:00:13 +01:00
chunter1andGitHub b912e5c0a9 1-wire timings optimized for stability 2018-12-06 22:58:09 +01:00
Gijs NoorlanderandGitHub af9d4d925e Merge pull request #2111 from chunter1/mega
HX711 load cell plugin now supports dual channel
2018-12-06 09:00:55 +01:00
Gijs NoorlanderandGitHub fc950b141f Merge pull request #2126 from wdonker/mega
Fix P029 - MQTT Helper: device status not updated when GPIO is (#1708)
2018-12-06 08:55:56 +01:00
Gijs NoorlanderandGitHub 331462877f Merge pull request #2129 from Grovkillen/DocumentationUpdate
[docs] look and feel (headlines css) + P001 hardware + script for screenshots of GUI
2018-12-06 08:55:26 +01:00
Gijs NoorlanderandGitHub 50635d8024 Merge pull request #2131 from TD-er/bugfix/split_gpio_from_switch
Split GPIO commands from switch plugin
2018-12-06 08:54:38 +01:00
Grovkillen 108bdb4b01 [docs] fixed "ESP Easy" logo margin bug
The logo in the top left corner was being pushed down because of my CSS of images in general. Fixed now.
2018-12-05 22:08:19 +01:00
Gijs Noorlander 0c0db4f401 [GPIO] GPIO commands with long duration will be stopped async.
Implemented a GPIO timer for the scheduler to schedule a GPIO state change.

These will be stopped async:

- Tone > 50 msec duration
- Longpulse and longpulse_ms

Also implemented a frequency parameter for the `pwm` command.
2018-12-04 22:38:17 +01:00
Gijs Noorlander 77b283197d [GPIO] Add some checks to what GPIO pin can be used.
Not all pins should be used.
For example GPIO 6 - 11 are often connected to flash and thus not usable.
2018-12-04 22:38:17 +01:00
Gijs Noorlander 021374bf09 [GPIO] Add GPIO pin description page
And some other GPIO related updates.
2018-12-04 22:38:17 +01:00
Gijs Noorlander 8db694bde6 [GPIO] Move "inputswitchstate" back to Switch plugin
And added some checks + documentation.
2018-12-04 22:38:17 +01:00
Gijs Noorlander c304efb1b4 [GPIO] Move all GPIO commands out of Switch plugin
Currently only "gpio", "pwm" , "pulse" and "servo" work
2018-12-04 22:38:17 +01:00
Grovkillen 60edd5208e [docs] Test if arrows (unicode) work with RTD 2018-12-04 15:23:41 +01:00
Grovkillen b6e96a0086 [docs] P052 sensair S8 hardware page updated 2018-12-04 15:03:42 +01:00
Grovkillen 72862e7169 [docs] syntax error fixed. 2018-12-04 14:03:11 +01:00
Grovkillen 25c2f55219 [docs] updated headlines (css) + added P001 hardware 2018-12-04 13:58:34 +01:00
Grovkillen 65d072dcf7 [docs] added phantomJS script to streamline the screenshots 2018-12-04 13:07:00 +01:00
wdonkerandGitHub 89b30dcd88 Update _C002.ino 2018-12-04 12:40:44 +01:00
ESPEasy release bot 7948efb6fe automatically updated release notes for mega-20181204 2018-12-04 04:00:08 +01:00
GrovkillenandGitHub 05723163cc Merge pull request #2123 from Grovkillen/DocumentationUpdate
[docs] added P001 hardware
2018-12-03 14:38:20 +01:00
Grovkillen 79123392a9 Merge remote-tracking branch 'Grovkillen/DocumentationUpdate' into DocumentationUpdate 2018-12-03 14:35:56 +01:00
Grovkillen ccf2929e69 [docs] Added P001 (hardware) 2018-12-03 14:35:41 +01:00
ESPEasy release bot 8ae51cda1c automatically updated release notes for mega-20181203 2018-12-03 04:00:11 +01:00
Gijs NoorlanderandGitHub ebe11246a1 Merge pull request #1813 from workgroupengineering/feature/Issue_1771
Increase the rule speed
2018-12-02 23:39:17 +01:00
Gijs Noorlander 43dfa03f2f [HLW8012] Make reading Sonoff POW non blocking ( #2097 )
See #2097
Timings are now less than a msec per iteration and interrupt driven.
Also settings are no longer saved every time the plugin gets initialized. (flash wear out)
2018-12-02 23:13:20 +01:00
Gijs Noorlander ce1ab3e718 [HLW8012] Update library to 1.1.1 2018-12-02 23:11:05 +01:00
Gijs Noorlander c9fa53914a [webserver CORS] #2119 Allow commands to be scripted
See #2119
2018-12-02 21:21:00 +01:00
Gijs Noorlander 4acedced42 [PWM] #2117 PWM stops after about 80 msec in core 2.4.1
See #2117
2018-12-02 16:41:51 +01:00
Gijs Noorlander dd8a67adcd [ESP32] Disable RTOS Multitasking option (multi_heap_poisoning)
When enabled, we now get crashes and CORRUPT HEAP messages.
2018-12-02 12:15:56 +01:00
Gijs Noorlander ab893a7d14 [Rules] GetArgv should clear the return string before filling it
The `GetArgv` function should clear the return string, since it is re-used in `parseCommandString`

See: https://github.com/letscontrolit/ESPEasy/issues/2112#issuecomment-443494191
2018-12-02 11:07:52 +01:00
Gijs Noorlander aaae79c8d9 [Memory] Pass String as reference or const reference, not deepcopy
A number of functions was given a String parameter as a deepcopy instead of a (const) reference.
This will use a lot more memory and time, where it isn't needed.
Also those deepcopy actions may fail silently and thus lead to crashes.
2018-12-02 01:25:32 +01:00
Gijs Noorlander 6ae627b32a [Uncrustify] Make rules source code files better readable
Since the `ESPEasyRules.ino` file is newly introduced in this branch, now is the best moment to tidy up the source code.
Also included the used Uncrustify.cfg file.
2018-12-02 00:35:00 +01:00
Gijs Noorlander 8369c330de [Stack] P035_IRTX reduction of memory usage & speed improvement
- Parsed commands or IR codes now only use amount of memory needed, no fixed allocation on the stack.
- Strings passed to functions via const reference instead of deepcopy
- Massive checks for brand name is now done on lower case, to improve speed.
2018-12-02 00:31:57 +01:00
Gijs Noorlander 2290de3c98 [Stack] Optimize GetArgv to only allocate what is needed.
And also only allocate on the heap, not on the stack.
2018-12-01 22:51:43 +01:00
ESPEasy release bot 3f00ef5dde automatically updated release notes for mega-20181201 2018-12-01 04:00:09 +01:00
Gijs Noorlander afeed445ca [Stack] Make IP-address formatting simpler 2018-11-30 22:41:56 +01:00
Gijs Noorlander b76e8b4e8b [Stack] Reduce allocations on stack 2018-11-30 17:32:38 +01:00
chunter1andGitHub dab8c16e05 HX711 load cell plugin now supports dual channel support
Channel A and B can now be used completely independently.
2018-11-30 14:49:33 +01:00
Gijs Noorlander 84a31c0af9 [Rules engine] Set UseOldRulesEngine as default
Changed to use one of the VariousBits in the settingsfile, not adding an extra bit.
2018-11-30 14:13:53 +01:00
Saverio CisterninoandGijs Noorlander bdfa4b7eec Adding flag to settings for switch from old to new rules engine (Default engine old). 2018-11-30 13:51:09 +01:00
Saverio CisterninoandGijs Noorlander 99a77ad343 Fixed ESP32 build 2018-11-30 13:51:09 +01:00
Saverio CisterninoandGijs Noorlander 0b4c605f43 Change menu url from relative to absolute 2018-11-30 13:51:09 +01:00
Saverio CisterninoandGijs Noorlander eabf79be54 Redefine Rules WebUi 2018-11-30 13:51:09 +01:00
Saverio CisterninoandGijs Noorlander b14fe5de32 Added addButton, addFormTextBox overload and addSaveButton, AddDeleteButton functions 2018-11-30 13:51:09 +01:00
Saverio CisterninoandGijs Noorlander ed3d8f5371 implement matching of rule file 2018-11-30 13:51:09 +01:00
Saverio CisterninoandGijs Noorlander 459e103a73 Moved the rules related functions from Misc.ino to ESPEasyRules.ino 2018-11-30 13:51:09 +01:00
Gijs NoorlanderandGitHub c62fab5eec Merge pull request #2110 from TD-er/bugfix/1970_remove_newline_HTTP_header
[#1970] Fix: HTTP Header broken in 'Generic HTTP Advanced' controller
2018-11-30 12:20:04 +01:00
Gijs Noorlander ecba3c79e2 [#1970] Fix: HTTP Header broken in 'Generic HTTP Advanced' controller
Also replaced a number of short strings not to use F() macro to reduce binary footprint.
2018-11-30 11:34:53 +01:00
Gijs Noorlander 5146803833 [Docs] Update to Sphinx 1.8.2 2018-11-30 11:33:34 +01:00
ESPEasy release bot 2b5a822cd5 automatically updated release notes for mega-20181130 2018-11-30 04:00:11 +01:00
Gijs NoorlanderandGitHub 5ee53a49f5 Merge pull request #2106 from TD-er/feature/espeasy_p2p_protocol
[Docs] Document ESPeasy p2p controller
2018-11-30 00:18:17 +01:00
Gijs NoorlanderandGitHub b49921eb9a New data structures for P001, P019, P009, etc. plugins
See #2057 

Currently this version works with P001 and P019.

Main changes:
Added a new command to SWITCH 001: unmonitor,pcf,port#
Added two new commands to PCF 019: monitor,pcf,port# and unmonitor,pcf,port#
Added two new http commands: monitor and unmonitor
Added a new rules command: logPortStatus that will print the port status
Added the "SafeButton" functionality to 001 and 019 that will avoid false positives
Added more checks to all commands in WRITE function to avoid possible overflows
Added two more PIN STATUS: OFFLINE and INPUT_PULLUP
Modified SendStatus function so that it will be called only when needed (#1593)
Redesign of the pinstate page
Optimized the WRITE function, changing the serie of 'if' with 'else if'
2018-11-30 00:05:57 +01:00
Gijs Noorlander b9f999d79f [Docs] Split Sphinx plugin substitutions to speed-up build
Split the plugin related substitutions into separate files (per 10) to speed-up building docs.

Please note the use of indirect paths used in includes, needed to link those replacements from other directories.
2018-11-29 23:55:22 +01:00
Gijs Noorlander 776277b179 [Docs] Move Sphinx substitutions to separate file to speed-up build 2018-11-29 22:37:58 +01:00
Gijs Noorlander 56fb47b6a8 [Docs] Document ESPeasy p2p controller
And renamed some structs
2018-11-29 18:41:36 +01:00
Plebs 6d9ea14d6c final cleanup
removed debug strings and functions.
2018-11-29 15:44:59 +01:00
Gijs NoorlanderandGitHub f74ea5f8c8 [Readme] Add badge for ReadTheDocs build status 2018-11-29 09:30:56 +01:00
ESPEasy release bot ee1a9f7cef automatically updated release notes for mega-20181129 2018-11-29 04:00:15 +01:00
Gijs NoorlanderandGitHub c3b1247f9d Merge pull request #2099 from workgroupengineering/feature/embed_files_enhanced
Embed files enhanced
2018-11-29 00:35:48 +01:00
Gijs NoorlanderandGitHub 742aec9598 Merge pull request #2100 from clumsy-stefan/patch-1
Allow for duplicate task names again
2018-11-29 00:33:53 +01:00
GrovkillenandGitHub 496e9443b0 Merge pull request #2101 from Grovkillen/DocumentationUpdate
[docs] Small update, fixed some typos
2018-11-28 14:47:29 +01:00
Grovkillen d708a62efe Merge remote-tracking branch 'letscontrolit/mega' into DocumentationUpdate 2018-11-28 14:46:10 +01:00
Grovkillen 3f1deeef96 [docs] Small update, fixed some typos 2018-11-28 14:45:19 +01:00
clumsy-stefanandGitHub 385bb23484 Allow for duplicate task names again
Only warn if a task name is duplicate but allow it to be saved without clearing the value-names of that task.
2018-11-28 14:22:57 +01:00
Saverio Cisternino f30977f6f3 [Embed Files] Avoid redirect http to https of minify_html_css 2018-11-28 13:26:34 +01:00
Saverio Cisternino a3aa944988 [Embed Files] Append zero termination 2018-11-28 13:26:34 +01:00
Saverio Cisternino 52c1e1243e [Embed Files] Add exit code 1 when minify failed 2018-11-28 13:26:24 +01:00
ESPEasy release bot 12852c39d6 automatically updated release notes for mega-20181128 2018-11-28 04:00:07 +01:00
Gijs NoorlanderandGitHub 35b7f586d1 Merge pull request #2089 from TD-er/bugfix/stop_serial_output
[Serial] Redirect all Serial.print/println to a buffer
2018-11-28 00:14:24 +01:00
Gijs NoorlanderandGitHub 4f08ebbf1a Merge pull request #2096 from TD-er/bugfix/MQTT_clientID_setting
[MQTT] change client-id at reconnect - #1918
2018-11-28 00:13:13 +01:00
Gijs NoorlanderandGitHub 45e302c4ee Merge pull request #2095 from TD-er/cleanup/Sonoff_POW_build_merges
[Sonoff POW] Merge POW r1/r2 in the same build
2018-11-27 23:48:09 +01:00
Gijs Noorlander fd6ba18c36 [MQTT] change client-id at reconnect - #1918
As discussed here: https://github.com/letscontrolit/ESPEasy/issues/1918#issuecomment-441203285
2018-11-27 23:45:19 +01:00
Gijs Noorlander f008accd4e [Sonoff POW] Merge POW r1/r2 in the same build
Sonoff POW build now is usable for both POW and POW r2.
Use the Reset Factory default to select proper pre-defined setup for keys and relay.
Both power sensors are included as plugin.
2018-11-27 23:05:06 +01:00
Gijs Noorlander 24f661f80a [Serial] Remove code to detect if serial port is read
See discussion here: https://github.com/letscontrolit/ESPEasy/pull/2089#issuecomment-442066980
2018-11-27 22:10:26 +01:00
GrovkillenandGitHub 98c2c1e6eb Merge pull request #2094 from Grovkillen/DocumentationUpdate
[docs] Added servo motor and plugin sections
2018-11-27 15:58:03 +01:00
Grovkillen f9c9557384 [docs] Added servo motor and plugin sections 2018-11-27 15:54:36 +01:00
Gijs Noorlander 5b5c1f224b [Commands] No longer run commands from scheduler
Problem appeared to be a stack overflow.
There were a lot of large arrays allocated on the stack to parse commands or their arguments.
These are now only temporary allocated and de-allocated as soon as possible.
2018-11-27 13:44:27 +01:00
Gijs Noorlander 3e367c020f [Serial] Forgot the Serial.printf 2018-11-27 13:44:27 +01:00
Gijs Noorlander 80b8b03869 [Serial] Replace serial port activity marker with unprintable marker
Now use ASCII code `1` as char value to detect reading activity.
2018-11-27 13:44:27 +01:00
Gijs Noorlander d3f1dbd934 [Serial] Redirect all Serial.print/println to a buffer
Writing data to the serial port while it is not being read may cause all kinds of issues and maybe even Watchdog Resets.
All `Serial.print` and `Serial.println` calls in our own code is now sent to a dynamic buffer.
This buffer will try to only send data to the serial port when its buffer permits it.
After a while, unread data will be dropped.
2018-11-27 13:44:27 +01:00
GrovkillenandGitHub defdc8215b [flasher] Warning if baud rate too high + info post-flash 2018-11-27 08:44:14 +01:00
ESPEasy release bot 8e1f89035e automatically updated release notes for mega-20181127 2018-11-27 04:00:10 +01:00
Gijs NoorlanderandGitHub c7b2052298 [Travis] make clean + build only once
As suggested here: https://github.com/letscontrolit/ESPEasy/pull/2089#issuecomment-441805148
2018-11-26 23:30:26 +01:00
Gijs NoorlanderandGitHub 0e7c8e4fa0 [PlatformIO] Lower upload_speed to 115200
As suggested here: https://github.com/letscontrolit/ESPEasy/pull/2089#issuecomment-441779773 by @ivankravets
2018-11-26 22:45:05 +01:00
GrovkillenandGitHub fd228119a3 [docs] Fix relative path for command list 2018-11-26 22:15:22 +01:00
Gijs NoorlanderandGitHub d3cf913ece [PlatformIO] Change to LWIP2_LOW_MEMORY
As advised by @ivankravets
See https://github.com/letscontrolit/ESPEasy/pull/2089#issuecomment-441697474
2018-11-26 17:17:47 +01:00
GrovkillenandGitHub 57232e819c Merge pull request #2091 from Grovkillen/DocumentationUpdate
[docs] Core commands added + relay,buzzer etc. etc.
2018-11-26 15:33:11 +01:00
Grovkillen 5630bf83da [docs] command list updated with internal commands 2018-11-26 15:30:14 +01:00
Grovkillen 125bc51ac2 Merge remote-tracking branch 'letscontrolit/mega' into DocumentationUpdate 2018-11-26 12:57:47 +01:00
Grovkillen 3984823de6 [docs] Added GPIO handling pages (tones, relay etc.) 2018-11-26 12:46:21 +01:00
Gijs NoorlanderandGitHub f8e2e34f6f Merge branch 'mega' into new/monitor2 2018-11-25 22:47:57 +01:00
Plebs f1b41d903e more bugfixing 2018-11-25 19:23:51 +01:00
ESPEasy release bot 592e6afd60 automatically updated release notes for mega-20181125 2018-11-25 04:00:07 +01:00
Gijs NoorlanderandGitHub 937fce0fe5 Merge pull request #2087 from TD-er/feature/RTD_links_plugins
[Documentation] Add link to RTD for plugins
2018-11-25 01:50:01 +01:00
Unknown 30bee983b0 [Documentation] Add link to RTD for plugins
Since the documentation at RTD is yet still very preliminary, both Wiki and RTD links will be presented.
2018-11-25 01:49:25 +01:00
Gijs NoorlanderandGitHub 9579cb45b7 Merge pull request #2082 from letscontrolit/feature/lcd_german_umlaute
LCD P012_LCD Plugin German Umlaute #2081
2018-11-24 23:40:58 +01:00
Gijs NoorlanderandGitHub 1cc3889127 Merge pull request #2083 from TD-er/feature/factory_reset_page
Feature/factory reset page
2018-11-24 23:40:16 +01:00
Unknown 376104a8b4 [Factory Reset] Add some documentation 2018-11-24 23:39:57 +01:00
Gijs NoorlanderandGitHub 44a23fb574 Add -mtarget-align to common build_flags
See https://github.com/arendst/Sonoff-Tasmota/issues/3678#issuecomment-419712437
Probably related: #2084 #2008
2018-11-24 14:49:12 +01:00
Gijs NoorlanderandGitHub 2f50cfe26b P012_LCD Remove duplicate lines 2018-11-24 12:02:40 +01:00
ESPEasy release bot d8e4f9d850 automatically updated release notes for mega-20181124 2018-11-24 04:00:07 +01:00
Unknown 222397ea7a [Sysinfo] Add init to P026_sysinfo to set initial config only 1 active. 2018-11-24 01:24:48 +01:00
Gijs NoorlanderandGitHub 73b69d0ca2 LCD P012_LCD Plugin German Umlaute #2081
Thanks to @StefanRied 
See https://github.com/letscontrolit/ESPEasy/issues/2081#issue-383903764
2018-11-24 00:16:27 +01:00
Unknown 78cc4a3d52 [Factory Reset] Show page again after saving. 2018-11-23 22:23:40 +01:00
Unknown bbbbecab56 [Factory Reset] Add more categories not to clear
Settings to keep:
- Keep Unit/Name
- Keep WiFi config
- Keep Network config
- Keep NTP/DST config
- Keep log config
2018-11-23 22:05:46 +01:00
Plebs a451a876e4 bugfixing 2018-11-23 20:48:32 +01:00
Unknown 8ebf6a3c88 [Factory Reset] Add Factory reset page and allow to keep some settings 2018-11-23 17:21:24 +01:00
GrovkillenandGitHub a99ff721d8 Merge pull request #2080 from Grovkillen/DocumentationUpdate
[docs] Fixed some syntax error
2018-11-23 15:53:55 +01:00
Grovkillen 5058d326c7 [docs] Fixed some syntax error 2018-11-23 15:52:44 +01:00
GrovkillenandGitHub 9d4c4b5ea4 Merge pull request #2079 from Grovkillen/DocumentationUpdate
[docs] Added hardware pages
2018-11-23 15:50:53 +01:00
Grovkillen 54c0acf80d [docs] Added hardware pages 2018-11-23 15:49:05 +01:00
GrovkillenandGitHub 915a7beaea Merge pull request #2078 from Grovkillen/DocumentationUpdate
[docs] Added donation links in footer
2018-11-23 13:04:24 +01:00
Grovkillen 0ed9f204ab [docs] Added donation links in footer 2018-11-23 13:03:30 +01:00
GrovkillenandGitHub 601eeb529e Merge pull request #2077 from Grovkillen/DocumentationUpdate
[docs] Added plugin names to plugin pages + fixed "site map"
2018-11-23 11:38:54 +01:00
Grovkillen 541c0bba41 [docs] Added plugin names to plugin pages + fixed "site map" 2018-11-23 11:36:26 +01:00
GrovkillenandGitHub 49a95d06e7 Merge pull request #2075 from Grovkillen/DocumentationUpdate
[docs] fixed the TOC + added changelogs to all plugins + core
2018-11-23 10:46:13 +01:00
Grovkillen 153267b8c5 [docs] fixed the TOC + added changelogs to all plugins + core 2018-11-23 10:44:22 +01:00
ESPEasy release bot 8a2c35d15d automatically updated release notes for mega-20181123 2018-11-23 04:00:08 +01:00
Unknown 5ed2ebf7f7 [Factory Reset] Add initial structure to set defaults for a device model 2018-11-23 00:49:41 +01:00
Plebs 05245ac0da Merge branch 'new/monitor2' of https://github.com/giig1967g/ESPEasy into new/monitor2 2018-11-22 21:25:49 +01:00
Plebs c0c95deb30 fixed pcf8574 to avoid #702 2018-11-22 21:25:46 +01:00
GrovkillenandGitHub 0fcd810074 Merge pull request #2074 from Grovkillen/DocumentationUpdate
[docs] Documentation update (generic plugin pages)
2018-11-22 15:29:02 +01:00
Grovkillen 12f7c559b5 [docs] added all plugins to global + generated generic pages for them 2018-11-22 15:28:01 +01:00
Grovkillen 49271bebf5 [docs] Global variables for plugins + added raw plugin files 2018-11-22 11:40:16 +01:00
Unknown 05963c0f22 [HTML Footer] Change to "Powered by LetsControlIt community"
It is not powered by a website, but by the community.
2018-11-22 10:20:43 +01:00
Gijs NoorlanderandGitHub 417b62e064 Merge branch 'mega' into new/monitor2 2018-11-22 10:00:04 +01:00
Grovkillen 686b9ead85 [docs] Fixed error in image path 2018-11-22 09:24:46 +01:00
ESPEasy release bot 28706197b9 automatically updated release notes for mega-20181122 2018-11-22 04:00:12 +01:00
GrovkillenandGitHub b772c34911 Merge pull request #2065 from Grovkillen/DocumentationUpdate
[docs] Documentation update (first hardware page)
2018-11-21 16:18:41 +01:00
Gijs NoorlanderandGitHub 5ce7abbe56 [P073_7DGT] new commands (7dst, 7dsd, 7dtext), new options to show 12h or 24h clock
Adding new commands (7dst, 7dsd, 7dtext), new options to show 12h or 24h clock and fixing some bugs
2018-11-21 16:03:44 +01:00
papperoneandGitHub 0decde6fd0 Update _P073_7DGT.ino 2018-11-21 14:32:35 +01:00
ESPEasy release bot 2664dae375 automatically updated release notes for mega-20181121 2018-11-21 04:00:13 +01:00
Gijs NoorlanderandGitHub f65fd64c84 Merge pull request #2069 from TD-er/bugfix/Disable_SSDP
[SSDP] Disable SSDP checkbox
2018-11-21 01:03:38 +01:00
Unknown 5e65f18235 [HTML] Made HTML layout more uniform and optimize CSS
- Replaced all <TH> with functions
- Optimized CSS (removed some errors too)
- Uniform rendering of pages (TH, width first column)
- Added some metadata to timing stats page
- Reduction in used flash strings.
2018-11-21 00:29:52 +01:00
Unknown 8f350fcd0c [SSDP] Disable SSDP checkbox
See #1998
2018-11-20 19:49:33 +01:00
jimmys01andGitHub a22563e21d Merge pull request #3 from letscontrolit/mega
Merge it
2018-11-20 09:55:41 +02:00
ESPEasy release bot 24a7330e5d automatically updated release notes for mega-20181120 2018-11-20 04:00:07 +01:00
Gijs NoorlanderandGitHub a8e8c39fa3 Update build_ESPeasy.sh 2018-11-20 01:23:19 +01:00
Gijs NoorlanderandGitHub e986c8a8e1 Merge pull request #2068 from TD-er/feature/build_scripts
Feature/build scripts
2018-11-20 01:16:40 +01:00
Unknown 63f01e7d9b [Build] Add test_ESP8266_1024_VCC to deploy script 2018-11-20 01:15:35 +01:00
Unknown a5f50fda5a [Build scripts] Add build script for Linux and include docs 2018-11-20 01:12:42 +01:00
Gijs NoorlanderandGitHub 0a2f8f9ccf Merge pull request #2066 from TD-er/bugfix/2063_LCD2004
Reduce stack usage on some plugins and fix LCD2004
2018-11-19 21:44:01 +01:00
Unknown 28f321d5c7 [Timing stats] Add LoadCustomTaskSettings() to the timing stats
These may get called quite often by some plugins (e.g. OLED)
2018-11-19 16:55:53 +01:00
Unknown af237c3e42 [P075 Nextion] Do not keep display lines allocated on stack
Large memory block was allocated on the (system) stack.
2018-11-19 16:26:41 +01:00
Grovkillen 84caa6939c [docs] added a first device page
If we like this one I will go ahead and convert the rest.
2018-11-19 15:55:07 +01:00
Unknown c8c9aab308 [OLED framed] Do not keep display lines allocated on stack
Was allocated on (system) stack, even when plugin was not used.
2018-11-19 15:41:54 +01:00
Unknown a06ade4979 [issue 2063] Incorrect saving settings on LCD2004
A bug introduced when renaming internal strings to reduce size of binary.
2018-11-19 15:40:48 +01:00
Plebs 691977c1dd Update _P009_MCP.ino 2018-11-19 15:34:37 +01:00
Plebs fda673ce9d Added support for P011, P022, P059, P063
I would call this version, beta 1 version :)
2018-11-19 15:33:59 +01:00
Plebs cec00400f2 Fixed write function in PCF8574 2018-11-17 18:48:39 +01:00
ESPEasy release bot 125155a9b9 automatically updated release notes for mega-20181117 2018-11-17 04:00:10 +01:00
TD-er 6d45860aa0 [P073_7DGT] Fix uninitialized p073_dispdigit 2018-11-16 21:31:03 +01:00
Gijs NoorlanderandGitHub fbb1f2c9c6 [PlatformIO] Use 2.4.2 platform for Sonoff builds
Sonoff builds were set to use 2.4.1 platform.
Now we're using the same `common` for all ESP82xx builds
2018-11-16 21:10:57 +01:00
TD-er d4206d37f9 [P073_7DGT] Removed old (duplicate) content
The old version was still present in the file, so I removed the duplicate (old) part
2018-11-16 20:30:12 +01:00
Grovkillen 375274b208 [docs] Plugins (added real name) 2018-11-16 15:27:45 +01:00
GrovkillenandGitHub addbcb29d0 Merge pull request #2059 from Grovkillen/UpdateFavicon
[docs] Inverted icon for easy to navigate browser tabs
2018-11-16 14:00:41 +01:00
Grovkillen 818a64b74e [docs] Inverted icon for easy to navigate browser tabs 2018-11-16 13:45:10 +01:00
Gijs NoorlanderandGitHub 31178ef206 Update Sphinx to 1.8.1 2018-11-16 13:32:19 +01:00
Gijs NoorlanderandGitHub 6398aefa63 Merge pull request #2054 from Grovkillen/UpdateDocs
Update docs (wiki ---> rst/sphinx based)
2018-11-16 13:13:38 +01:00
GrovkillenandGitHub 88df0a3417 [fix] reverted test code 2018-11-16 13:12:28 +01:00
Gijs NoorlanderandGitHub a90b9af463 Merge pull request #2050 from stephenhouser/HT16K33_LED_12hour
Update P057 to allow 12-hour clock in addition to existing 24-hour clock
2018-11-16 13:10:47 +01:00
Grovkillen cef698ad36 [docs] Removed some test code 2018-11-16 13:09:02 +01:00
Gijs NoorlanderandGitHub 432655d50b Merge pull request #2024 from jimmys01/mega
Add new IR protocols and some bug fixes
2018-11-16 13:08:07 +01:00
Grovkillen 23005543ef [docs] Plugin list + update to config.py + some CSS 2018-11-16 13:08:05 +01:00
Gijs NoorlanderandGitHub 26defa8700 Merge pull request #2045 from TD-er/feature/build_1024_vcc
Feature/build 1024 vcc
2018-11-16 13:05:46 +01:00
TD-er 34e839477d [Travis] ESP32 does not support timeout on DNS lookups 2018-11-16 12:27:42 +01:00
Grovkillen bbb3275bd1 [docs] Plugins list 2018-11-16 12:21:01 +01:00
Grovkillen 797c1a235e [docs] About us, month as XX
Also some rephrasing of parts. Commented out the release of 2+.
2018-11-16 10:06:57 +01:00
Grovkillen c88b04cd98 [docs] Rules, fixed compile error 2018-11-16 09:51:45 +01:00
TD-er 07c0509dee [Statistics] Add timing statistics on connect and DNS lookup 2018-11-15 22:12:45 +01:00
PlebsandGitHub a42017157f Merge branch 'mega' into new/monitor2 2018-11-15 11:55:41 +01:00
Plebs 25b3e93ddc added P019 PCF support 2018-11-14 22:20:23 +01:00
papperoneandGitHub 4c862c0747 Update _P073_7DGT.ino
Adding new commands (7dst, 7dsd, 7dtext), new options to show 12h or 24h clock and fixing some bugs
2018-11-13 23:50:30 +01:00
Plebs d97335e289 fixing Safebutton 2018-11-13 20:43:24 +01:00
Grovkillen 05d79ce854 [docs] More spelling
Still some compile error...
2018-11-13 19:59:55 +01:00
Grovkillen 89d65c6dd2 [docs] Spelling + syntax fix 2018-11-13 19:14:46 +01:00
Grovkillen cbe9a6de50 [docs] Merged main 2018-11-13 18:59:52 +01:00
Grovkillen 7864863df8 [docs] History converted to rst 2018-11-13 18:55:22 +01:00
Plebs b6f8085170 Added SafeButton feature 2018-11-13 15:58:44 +01:00
Stephen Houser 564eb040ac add comments for new clock functions 2018-11-12 18:53:26 -05:00
Stephen Houser c3e5ece07e Remove update every second 2018-11-12 16:09:47 -05:00
Stephen Houser 3163c589d2 Add 12/24 hour time to clock 2018-11-12 16:06:51 -05:00
Stephen Houser 9f027d14cb initial 12/24 hour config 2018-11-12 13:39:33 -05:00
Plebs a33e4b55d0 added monitor support 2018-11-12 19:05:04 +01:00
Grovkillen bf28625eca [docs] Rules converted from wiki 2018-11-12 13:43:59 +01:00
Plebs 3f6e90229b new data structures
First release for P001
2018-11-12 11:41:09 +01:00
ESPEasy release bot 616115d7e3 automatically updated release notes for mega-20181112 2018-11-12 04:00:07 +01:00
TD-er 7735ea1cf9 [Input check] Add check when copying input texts
Make sure allocated buffers cannot be overflown when entering strings which are too long.
2018-11-12 01:43:41 +01:00
TD-er c04ffaa1f4 [1024 VCC] Add test_ESP8266_1024_VCC
See #2044
2018-11-12 01:41:34 +01:00
Gijs NoorlanderandGitHub bb208c34bd Merge pull request #2043 from uzi18/patch12
Eastron fix for model selection
2018-11-11 19:32:22 +01:00
Bartlomiej Zimon 8c344593b9 Eastron fix for model selection
issue #1684
2018-11-11 17:40:59 +00:00
Gijs NoorlanderandGitHub b54311db2e Merge pull request #2042 from TD-er/bugfix/delay_writespifs_pagebreak
WiFi events and delay(0) during write SPIFFS
2018-11-11 17:23:08 +01:00
TD-er b23a9245da [WiFi] Make sure unhandled WiFi events will be processed 2018-11-11 15:56:31 +01:00
TD-er 936b729b46 Improve comments 2018-11-11 15:19:47 +01:00
TD-er c2d9a03a54 [SPIFFS] perform delay during save per page break
Saving the settings file may sometimes take a few 100 msec.
Added a `delay(0)` per page written to make sure background tasks are dealt with.
These system background tasks should not perform writes to SPIFFS, so this delay should be fine.
2018-11-11 15:17:35 +01:00
Gijs NoorlanderandGitHub 2dec3a367d Merge branch 'mega' into mega 2018-11-11 14:53:39 +01:00
Gijs NoorlanderandGitHub f53a9533a4 Merge pull request #2041 from TD-er/bugfix/uniform_GPIO_labels
Bugfix/uniform gpio labels
2018-11-11 14:48:57 +01:00
TD-er 27a4f081e8 [Cleanup] Change label for P035_IRTX 2018-11-11 14:00:44 +01:00
TD-er 26d7c95b6f [Cleanup] Uniform labels for GPIO pins
For all other plugins not setting the GPIO labels, all are now added.
Also reverted the decision about RX/TX, since these are the only ones to be crossed, the rest is always describing the data on the sensor side.
"GPIO <-- TX" is rather descriptive. The GPIO is on the ESP side, TX is on the sensor side.

So the function to format the label is called `formatGpioName_RX` and it will write "GPIO <- TX"
At least it is clear where it is going to be used, it is the RX channel on the ESP side. (for example SoftwareSerial describes the pins with function on ESP side)
2018-11-11 12:42:36 +01:00
TD-er 72637da44c [Cleanup] Uniform labels for GPIO pins (existing labels)
All custom GPIO labels (set using `PLUGIN_GET_DEVICEGPIONAMES` ) now use the same format.
It is now uniform to describe GPIO functions on ESP side.
It was quite a mixup of sensor pin descriptions and ESP side descriptions (e.g. mixup of RX and TX)
Now all descriptions show the ESP side description.
2018-11-11 10:00:15 +01:00
ESPEasy release bot ca0a16fb9c automatically updated release notes for mega-20181111 2018-11-11 04:00:06 +01:00
Gijs NoorlanderandGitHub 6f895c2e2e Merge pull request #2033 from uzi18/patch12
Webserver content-type set fix for /control handler
2018-11-11 00:18:25 +01:00
Gijs NoorlanderandGitHub 8912ef845c Merge pull request #2038 from TD-er/bugfix/embedded_javascript
[JavaScript] Append zero termination to embedded progmem data
2018-11-10 23:51:26 +01:00
TD-er 1231c6a9c2 [JavaScript] Append zero termination to embedded progmem data 2018-11-10 23:43:52 +01:00
ESPEasy release bot 6313d4344d automatically updated release notes for mega-20181110 2018-11-10 04:00:08 +01:00
Bartlomiej Zimon 6dcfc9e2a1 Webserver optimize /control early handled commands 2018-11-09 23:17:54 +00:00
Bartlomiej Zimon 2e9e1e480f Webserver /control proper Content type
it sets printToWebJSON during PLUGIN_WRITE/SendStatus
fix for #2018
2018-11-09 23:13:28 +00:00
Gijs NoorlanderandGitHub d7dcd9cff0 Merge pull request #2017 from TD-er/feature/upgrade_ESP32_1.5.0
[ESP32] Upgrade core lib to espressif32@1.5.0
2018-11-09 11:39:19 +01:00
Gijs NoorlanderandGitHub bdf0e6e05c Merge pull request #2021 from TD-er/bugfix/wifi_disconnect_handling
[WiFi] Improve disconnect detection and run delay(1) when not connected
2018-11-09 11:37:30 +01:00
Gijs NoorlanderandGitHub 75e411f458 Merge pull request #2025 from uzi18/patch14
[Eastron] remove old duplicate code
2018-11-09 11:02:45 +01:00
Gijs NoorlanderandGitHub bc9a697792 Merge pull request #2022 from uzi18/patch12
HTTP responses have duplicate Content-Types
2018-11-09 10:00:03 +01:00
ESPEasy release bot dfe90363b7 automatically updated release notes for mega-20181109 2018-11-09 04:00:10 +01:00
Bartlomiej Zimon d8dd25593e properly send content-type header
fix for #2022
2018-11-09 00:17:06 +00:00
jimmys01 4cbd8a7ec7 further improvments 2018-11-08 19:46:19 +02:00
jimmys01 cf7faba90a Add appropriate check to irReceiver before disabling it 2018-11-08 14:18:25 +02:00
Bartlomiej Zimon 38d08d6902 remove old duplication 2018-11-08 10:42:36 +00:00
jimmys01 11bc5a716d syntax fix 2018-11-08 11:46:39 +02:00
jimmys01 b430adeefa Put a PLUGIN_EXIT in place 2018-11-08 11:35:48 +02:00
Gijs NoorlanderandGitHub a7b32273ae Merge pull request #2023 from uzi18/patch14
add p078_dev_id to form save
2018-11-08 10:24:58 +01:00
jimmys01 c5d0296bad extra dot fix 2018-11-08 11:23:37 +02:00
jimmys01 798b31fc2e Make max IR command to be 200 chars long
IR2 produces long encoded strings and we must make changes to acomodate that.
2018-11-08 11:11:20 +02:00
jimmys01 23fa1854a8 Ir Remote lib enchantments
Added new protocols supported by the library
Fixed missing _ in protocol names
Small improvments here and there
2018-11-08 10:40:02 +02:00
jimmys01andGitHub ba14acfb37 Merge pull request #2 from letscontrolit/mega
test pull
2018-11-08 10:30:43 +02:00
ESPEasy release bot 5ccbdfff11 automatically updated release notes for mega-20181108 2018-11-08 04:00:09 +01:00
Bartlomiej Zimon 4ff3de5482 add p078_dev_id to form save 2018-11-08 00:44:54 +00:00
Bartlomiej Zimon d52435264d remove double strings for contenttype 2018-11-07 23:34:39 +00:00
Bartlomiej Zimon cd76c88860 HTTP responses have duplicate Content-Types
fix for #2018
2018-11-07 23:18:00 +00:00
TD-er 429fa31ee5 [WiFi] Improve disconnect detection and run delay(1) when not connected
Make sure disconnects will not be missed.
Give background tasks more time when not connected to WiFi.
This may help lowering power consumption and improve chance of getting connected.
2018-11-07 23:03:41 +01:00
Gijs NoorlanderandGitHub 6b33cee8ea Merge pull request #2015 from clumsy-stefan/amend_system_nosleep
Amend nosleep command to accept awake time
2018-11-07 21:23:01 +01:00
Gijs NoorlanderandGitHub a182ca8097 Merge pull request #2016 from giig1967g/bug/p001
BUG fix in P001 - switchstate was referred but not set yet in PLUGIN_INIT
2018-11-07 20:22:24 +01:00
stefan f7feeff9b4 Add System#NoSleep=<time> event
Add a System#NoSleep event which returns the amount of seconds fow which the unit will be awake (at least). However this time can change within the delay or even disabled (by rules, commands, etc.)
2018-11-07 16:53:08 +01:00
Plebs a5cfa1713d BUG fix
in P001 switchstate was referred before setting its value.
2018-11-07 15:34:06 +01:00
TD-er 04edfae8de [ESP32] Upgrade core lib to espressif32@1.5.0 2018-11-07 15:33:00 +01:00
stefan 1e9debf67c Merge branch 'mega' into amend_system_nosleep 2018-11-07 14:39:48 +01:00
stefan 250d8aca59 Amend nosleep command to accept awake time
Amend system command "nosleep" to accept a parameter that sets the awake time (eg. nosleep for <time>).
like this it's possible to send a "nosleep" command to the unit immediately after it awakes, do whatever needed and then reset the awake time with "nosleep,<time>" instead of having to go via web-page.
2018-11-07 14:33:54 +01:00
Gijs NoorlanderandGitHub 19ec7a90cf Merge pull request #2014 from TD-er/bugfix/PUYA_build_v3patch
Bugfix/puya build v3patch
2018-11-07 12:48:35 +01:00
TD-er 74e591ac81 [PUYA] Fix typo in patch 2018-11-07 12:43:43 +01:00
TD-er 29fb32225a [PUYA] share static flash_chip_id among functions 2018-11-07 12:41:32 +01:00
TD-er f90f97e3d0 [PUYA] Fix patch v3 for PUYA support 2018-11-07 12:36:23 +01:00
Gijs NoorlanderandGitHub fd634a12a1 Merge pull request #2005 from TD-er/bugfix/uzi18_puya_patch
[PUYA] Apply generic patch on all builds checking for PUYA flash
2018-11-07 12:13:09 +01:00
TD-er 19b59359e0 [PUYA] Add PUYA patch v3 to check if patch is applied
See: https://github.com/letscontrolit/ESPEasy/pull/2005#issuecomment-436442587
Made by @uzi18
2018-11-07 11:25:12 +01:00
Gijs NoorlanderandGitHub 0fe9566d14 Merge pull request #2010 from uzi18/patch11
Sysinfo update to 4 values
2018-11-07 11:01:54 +01:00
Gijs NoorlanderandGitHub 9e49f6f7b1 Merge pull request #2004 from giig1967g/bug/1977-others
bug fixes
2018-11-07 11:01:34 +01:00
Gijs NoorlanderandGitHub 660377ea02 Merge pull request #2009 from uzi18/patch9
Eastron: Add optional DE PIN configuration
2018-11-07 10:13:30 +01:00
ESPEasy release bot 4e171993ff automatically updated release notes for mega-20181107 2018-11-07 04:00:09 +01:00
Bartlomiej Zimon dfdaa831d5 Sysinfo update to 4 values 2018-11-07 00:52:54 +00:00
Bartlomiej Zimon 946c1a8390 Add optional DE PIN configuration
Add gpio names to form
fix for #1684
2018-11-06 23:51:43 +00:00
TD-er f7c7d176f1 [Travis] Update platformIO packages before build
Since this directory is cached, updates must be applied before building.
2018-11-06 16:58:10 +01:00
TD-er 0a72b711f9 [PUYA] Apply generic patch on all builds checking for PUYA flash
Applied this patch made by @uzi18
https://github.com/esp8266/Arduino/issues/4061#issuecomment-368273656
It is now included in all builds
2018-11-06 15:56:36 +01:00
Gijs NoorlanderandGitHub 2f8962ec52 Merge pull request #1989 from TD-er/cleanup/reduce_flashStrings
[Cleanup] Reduce binary size to allow 1M OTA with minimal plugin set
2018-11-06 12:30:46 +01:00
Plebs b68d91fc58 final cleanup 2018-11-06 11:27:28 +01:00
Gijs NoorlanderandGitHub a8c565ee5f Merge branch 'mega' into cleanup/reduce_flashStrings 2018-11-06 11:27:21 +01:00
Plebs 6f06b57d14 cleaned if from addLog as per uzi18 comment 2018-11-06 11:20:24 +01:00
ESPEasy release bot cf949ab167 automatically updated release notes for mega-20181106 2018-11-06 04:00:10 +01:00
Plebs 21cc1faf25 bug fixes
- Fix for bug #1977 for serial and web sources
- Fix for Publish command not evaluating Formulas
- Fixed addlog commands only when needed
- Fixed logEntry command not showing command line
Fixed nit value of pinstate in P001, P009 and P019
2018-11-05 20:03:33 +01:00
TD-er 99030621b7 [timingstats] Show stats in msec instead of usec. 2018-11-05 17:18:25 +01:00
TD-er 33199ceb12 [timingstats] Improve table layout of timing stats
Highlighting when a timing value exceeds 100 msec.
2018-11-05 16:35:18 +01:00
GrovkillenandGitHub 6175adddd1 [Flasher] fixed ip bug fixed 2018-11-05 12:04:53 +01:00
ESPEasy release bot 35461643ff automatically updated release notes for mega-20181105 2018-11-05 04:00:10 +01:00
TD-er 9397f560dc [timingstats] Disable timing stats in log 2018-11-05 02:00:24 +01:00
TD-er 6de76f8817 [timingstats] Implement HTML table of timing stats
And move to `/timingstats`
All links in the menu use relative paths, so do not use URLs with more than 1 level deep.
2018-11-05 01:53:32 +01:00
Gijs NoorlanderandGitHub ae9deeb702 Merge pull request #1979 from clumsy-stefan/check_client_send
Add sent/return value check to client.print()
2018-11-05 01:21:36 +01:00
Gijs NoorlanderandGitHub 1bdbc97d33 Merge pull request #1992 from Grovkillen/fix_memanalyzer.py
[Memanalyzer] Fix memanalyzer.py
2018-11-05 01:21:08 +01:00
Gijs NoorlanderandGitHub bec97768f4 Merge pull request #1996 from kpalczewski/PioneerSupport
update lib IRremoteESP8266 and add send Pioneer support
2018-11-05 01:20:55 +01:00
TD-er abdc9a0454 [timing stats] Add http://<ip>/stat/timing/json to view timing stats 2018-11-05 01:17:59 +01:00
Gijs NoorlanderandGitHub c9bb2750a3 Merge pull request #1994 from uzi18/patch9
fix for #1986
2018-11-04 21:09:41 +01:00
Bartlomiej Zimon eda3326615 Eastron - save modbus id and enable SDM630 model
partial fix for #1684
2018-11-04 19:05:41 +00:00
TD-er d2644b2da7 [Cleanup] Do not use F-macro for short strings
Got rid of a few kB in the binary image by removing F-macro from numerous 1 or 2 character flash strings.
These very short strings take more space in flash and memory when using the F-macro.

Also appending to a string using a `'a'` character definition takes less resources compared to a one-character string `"a"`.
2018-11-04 01:27:42 +01:00
TD-er 8650bc6aa3 [Cleanup] Increase load speed and lower memory usage rendering web page
The (large) template string was reduced over and over again while parsing for strings to replace.

Now it is using one big string in memory which is not reduced. (and thus taking twice the amount of memory)
2018-11-03 23:39:24 +01:00
TD-er dee5f6df1a [Cleanup] Strip HTML templates into sections to remove duplicate strings 2018-11-03 22:40:57 +01:00
TD-er 0085986701 [OTA] Add ESP8285 1M OTA minimal build 2018-11-03 01:37:42 +01:00
TD-er 7a72836d0f [Cleanup] Make single definition for pin description
- ESP32 could not select GPIO-0 in plugins.
- Only usable pins will be selectable
- Arrow icon will show if GPIO is input or output only
- Added warning sign for pins affecting boot.
- Added RX0/TX0 indicator for GPIO-1 and -3 when serial is enabled.
- Added GPIO-1 and -3 to boot pin state setup, but only selectable when Serial disabled.
- Reduce number of flash strings.
2018-11-03 01:20:50 +01:00
TD-er cec830fe83 [1MB OTA] Add small build to allow for 1MB OTA
Using 128k SPIFFS and 2-step OTA image, it is possible to perform an OTA update on 1 MB nodes.
This 2-step image does not have the ArduinoOTA service running, but does allow for manual upload using web interface.
ArduinoOTA needs 8 kB more, which will not work at the moment.
2018-11-02 09:57:00 +01:00
kpalczewski 894a59e10b bump lib IRremoteESP8266 to 2.5.2 and add send Pioneer support for 035 IR plugin. 2018-11-01 17:24:14 +01:00
stefan e28f46697a Add comment why we check for %256
Added comment to explain why the comparison is done to the length%256
2018-11-01 15:47:54 +01:00
GrovkillenandGitHub 14ced058b5 [Memanalyzer] cmd args are back (un-commented) 2018-11-01 10:09:47 +01:00
Bartlomiej Zimon fabc514f8e fix for #1986 2018-11-01 07:49:45 +00:00
stefan 4ae5e2ce7b Merge remote-tracking branch 'origin/mega' into check_client_send 2018-11-01 08:31:28 +01:00
ESPEasy release bot 0585d48ffa automatically updated release notes for mega-20181101 2018-11-01 04:00:08 +01:00
GrovkillenandGitHub be9a5d622a Merge pull request #1991 from Grovkillen/Flashtool002003
[Flasher] updated flasher (some minor error)
2018-10-31 22:38:20 +01:00
GrovkillenandGitHub 821fcb9e54 [README] removed IRC link... we're not there. 2018-10-31 21:15:14 +01:00
Jimmy Westberg 1a9584134a [Memanalyzer] try to fix the memanalyzer not analyzing all plugins 2018-10-31 20:34:42 +01:00
Jimmy Westberg d2e9337d76 Revert "[Flasher] updated flasher (some minor error)"
This reverts commit 6c5c12a6f2.
2018-10-31 20:29:47 +01:00
Jimmy Westberg 6c5c12a6f2 [Flasher] updated flasher (some minor error) 2018-10-31 20:00:48 +01:00
TD-er 9eb2ebe210 [Cleanup] Minify JavaScript and CSS to reduce sketch size
Sketch size is reduced by 5 - 6 kB
Files are extracted from original source and moved to `static` directory.
2018-10-31 16:25:42 +01:00
Gijs NoorlanderandGitHub 1d5fbd926e Merge pull request #1986 from giig1967g/new/playground
Fixed some bugs and added the possibility to read the user variables with parameter
2018-10-31 12:16:38 +01:00
Gijs NoorlanderandGitHub 4d3ac95e5a Merge pull request #1985 from uzi18/patch-3
BlynkGet add timeout 1,5s.
2018-10-31 12:16:13 +01:00
TD-er 1f1e47530a [Cleanup] Reduce length HTML form data IDs to reduce sketch size
To allow OTA again on 1MB flash units.
2018-10-31 12:08:17 +01:00
TD-er 3b1d26b541 [Cleanup] Reduce build image size by 2k by wrapping flash strings
Only in WebServer.ino.
Looked for the most frequently used strings.
2018-10-31 11:44:51 +01:00
Plebs 8a86ee9b89 Update src/Misc.ino 2018-10-31 09:54:23 +01:00
GrovkillenandGitHub ed592a3a0a [Deploy] "source" folder was named "Source" 2018-10-31 08:53:02 +01:00
GrovkillenandGitHub f2b330424c [README] fixed some \r\n 2018-10-31 08:29:14 +01:00
GrovkillenandGitHub 542a758fde [README] added more info about ESP.Easy.Flasher 2018-10-31 08:28:10 +01:00
stefan 11e4addb41 Merge remote-tracking branch 'origin/mega' into check_client_send 2018-10-31 08:13:39 +01:00
ESPEasy release bot 8921ebbcaa automatically updated release notes for mega-20181031 2018-10-31 04:00:10 +01:00
Plebs d05d669284 Update src/Misc.ino 2018-10-30 23:54:27 +01:00
Bartłomiej ZimońandGitHub 71a6b344e7 BlynkGet add timeout 1,5s. 2018-10-30 23:15:33 +01:00
Gijs NoorlanderandGitHub c67becac0c Merge pull request #1981 from TD-er/feature/ota_warning
[OTA] Add OTA info and disable when not enough space
2018-10-30 22:56:11 +01:00
Gijs NoorlanderandGitHub 0ec06161c5 Merge pull request #1984 from uzi18/patch-2
BlynkGet fix loop #1951
2018-10-30 22:55:40 +01:00
Gijs NoorlanderandGitHub a2b2cd857a Merge pull request #1983 from Grovkillen/UpdateFlashTool
[Flasher] Updated to 0.02.002
2018-10-30 22:49:40 +01:00
Bartłomiej ZimońandGitHub 0e581f0288 BlynkGet fix loop #1951
this commit fix #1951
2018-10-30 22:47:32 +01:00
Jimmy Westberg fffcd0f2a4 [Path] folder rename 2 2018-10-30 22:45:10 +01:00
Jimmy Westberg 1d923a527f [Path] folder rename 1 2018-10-30 22:44:40 +01:00
Jimmy Westberg 356ebbc875 [Flasher] Updated to 0.02.002
Spelling error
2018-10-30 22:35:42 +01:00
Jimmy Westberg 25fadfc1ed [Deploy] small letters are the standard 2018-10-30 22:29:56 +01:00
Jimmy Westberg 54d892e162 [Flasher] Updated to 0.02.001 2018-10-30 22:27:53 +01:00
Jimmy Westberg 007ef78f2b [Deploy] Added sub folder for BIN files
I moved the compiled files to a sub folder (BIN) which makes it auto load if using the ESP.Easy.Flasher.exe
2018-10-30 21:05:09 +01:00
Jimmy Westberg d16daeca56 [Flasher] Added ESP.Easy.Flasher.exe
And moved the bin files to sub folder "BIN"
2018-10-30 20:52:46 +01:00
TD-er 90fdb8f809 [OTA] Add OTA info and disable when not enough space 2018-10-30 15:58:46 +01:00
stefan 383206b149 Add sent/return value check to client.print()
Add a check and debug to client.print() in send_via_http() on sent bytes and fail if not all (or nothing) could be sent to the wifi client
2018-10-30 13:23:32 +01:00
ESPEasy release bot ac20349854 automatically updated release notes for mega-20181030 2018-10-30 04:00:07 +01:00
Gijs NoorlanderandGitHub 1a972d61a6 Merge pull request #1619 from jamestutton/mega
Added Special Case to allow Servo to be disabled
2018-10-30 01:01:17 +01:00
Gijs NoorlanderandGitHub d6cf2e141b Merge pull request #1944 from svmac/mega
P022_PCA9685 Enhancements
2018-10-30 01:00:35 +01:00
Gijs NoorlanderandGitHub 7a2e9ba203 Merge pull request #1978 from TD-er/feature/core_2_4_2
[Core 2.4.2] Set core 2.4.2 as default platform
2018-10-30 00:58:46 +01:00
TD-er e3591aceb2 [Core 2.4.2] Set core 2.4.2 as default platform
Also added separate build using core 2.4.1 for those with PWM issues.
2018-10-30 00:23:36 +01:00
ESPEasy release bot ad3514e765 automatically updated release notes for mega-20181029 2018-10-29 04:00:08 +01:00
Gijs NoorlanderandGitHub f543995d86 Merge pull request #1968 from TD-er/bugfix/increase_ntp_accuracy
[NTP] Improve NTP accuracy
2018-10-29 01:02:09 +01:00
Gijs NoorlanderandGitHub 97ccb8eca1 Merge pull request #1975 from uzi18/patch9
Dallas: use reset timming from OneWire lib
2018-10-29 01:01:51 +01:00
Bartlomiej Zimon f291c9d25a Dallas: use reset timming from OneWire lib 2018-10-28 14:59:50 +00:00
Gijs NoorlanderandGitHub bd9ead3851 Merge pull request #1974 from uzi18/patch9
Dallas: add ScratchPad to debug log
2018-10-28 14:48:29 +01:00
Bartlomiej Zimon 43ea0039fd Dallas: add ScratchPad to debug log - OK suffix means data integrity ok (no communication problems) 2018-10-28 12:50:34 +00:00
ESPEasy release bot 74eb638bcb automatically updated release notes for mega-20181028 2018-10-28 04:00:09 +01:00
TD-er c87b035908 [NTP] Change log level for NTP success to INFO 2018-10-28 01:10:11 +02:00
TD-er 0f450eaa3d [NTP] Improve NTP accuracy
Use fractional part of TX section in NTP packet.
Also compensate for total delay to retrieve answer.

More possibilities for improvement of NTP, see https://github.com/lettier/ntpclient/issues/4#issuecomment-360703503
2018-10-28 00:22:39 +02:00
Gijs NoorlanderandGitHub 02df033fc6 Merge pull request #1967 from TD-er/bugfix/1684_Eastron
[Eastron] Make configurable and allow for multiple values read (#1684)
2018-10-28 00:07:57 +02:00
Gijs NoorlanderandGitHub 74d05e58f0 Merge pull request #1768 from workgroupengineering/feature/cron
[Feature] [Plugin] Cron
2018-10-28 00:07:31 +02:00
ESPEasy release bot 3d88537677 automatically updated release notes for mega-20181027 2018-10-27 04:00:12 +02:00
Gijs NoorlanderandGitHub 95b0a7bed9 Merge pull request #1784 from jazzgil/add-raw-ir-reading
Add IR RAW2 Reading / Transmitting.
2018-10-27 02:45:26 +02:00
Gijs NoorlanderandGitHub bc3434532e Merge pull request #1942 from giig1967g/new/doubleclick-pcf
doubleclick and longpress for PCF and MCP
2018-10-27 02:41:12 +02:00
TD-er 1f7639cb42 [Eastron] Make configurable and allow for multiple values read (#1684)
See #1684
It should now be possible to actually select parameters and configure it from the frontend.

N.B. Not yet tested on real hardware.
2018-10-27 00:49:52 +02:00
Gijs NoorlanderandGitHub 923642bb27 Merge pull request #1966 from uzi18/patch9
CSE7766 - fix stats plus add buffer fill level, #1934
2018-10-26 23:25:21 +02:00
Bartlomiej Zimon a09cb906eb CSE7766 - fix stats plus add buffer fill level 2018-10-26 20:43:31 +00:00
Saverio Cisternino 72b0a32839 [CRON] Fixed Daily flash write rate exceeded! 2018-10-26 09:51:41 +02:00
TD-erandSaverio Cisternino e279e5504b [Cron] Rename plugin name to match naming convention 2018-10-26 09:51:41 +02:00
Saverio Cisternino 6d5ddf06ce [CRON] Intercept event PLUGIN_TIME_CHANGE 2018-10-26 09:51:41 +02:00
Saverio Cisternino 7f544b7a10 [CRON] Add event PLUGIN_TIME_CHANGE 2018-10-26 09:51:41 +02:00
Saverio Cisternino fc407e86e1 [CRON] Plugin 2018-10-26 09:51:41 +02:00
Saverio Cisternino a35c3051df [CRON] Replace timeStruct with standard tm 2018-10-26 09:51:41 +02:00
ESPEasy release bot f8f2ddd33b automatically updated release notes for mega-20181026 2018-10-26 04:00:22 +02:00
Gijs NoorlanderandGitHub 6592b57615 Merge pull request #1934 from uzi18/patch9
fix for #1920
2018-10-25 23:52:04 +02:00
Bartlomiej Zimon 6e8e8214b2 CSE7766 - add some stats to debug log 2018-10-25 20:47:36 +00:00
Gijs NoorlanderandGitHub 24b6611c54 Merge pull request #1956 from workgroupengineering/BugFix/Issue_1995
Fixed plugin timer processing do not start, when call setPluginTaskTimer in PLUGIN_TIMER_IN
2018-10-25 21:37:07 +02:00
Gijs NoorlanderandGitHub 8135defa6f Merge pull request #1957 from TD-er/bugfix/c009_reduce_memory
[C009] Reduce memory usage for C009 controller.
2018-10-25 21:27:18 +02:00
Bartlomiej Zimon d5e9cfb081 Merge branch 'mega' of github.com:letscontrolit/ESPEasy into patch9 2018-10-25 18:17:10 +00:00
TD-er ffc8e1fb97 [C009] Reduce memory usage for C009 controller. 2018-10-25 12:09:49 +02:00
Saverio Cisternino 0255f41897 Fixed plugin timer processing do not start, when call setPluginTaskTimer in PLUGIN_TIMER_IN 2018-10-25 10:24:09 +02:00
ESPEasy release bot e88973861f automatically updated release notes for mega-20181025 2018-10-25 04:00:13 +02:00
Gijs NoorlanderandGitHub d6ec7aa736 Merge pull request #1941 from workgroupengineering/feature/Issue_1794
Added auto redirect to home after run reboot command from web page.
2018-10-25 02:12:08 +02:00
Gijs NoorlanderandGitHub 8aa5866dd9 Merge pull request #1954 from TD-er/bugfix/replace_yield_delay_0
[WDT] Replace yield() with delay(0)  & add Sonoff POW R2 build
2018-10-25 02:11:15 +02:00
TD-er 0c384c332e [Travis] Use variables even when no predefined plugins are added. 2018-10-25 01:54:00 +02:00
TD-er 7a4f3b15b3 [Info] Remove MD5 check fail on self-built images
And add in bold a statement it is self built.
2018-10-25 01:43:26 +02:00
TD-er c38e532e67 [Sonoff] Add pre-defined switch and relay + rules on factory reset
Define `GPIO_KEY1` containing GPIO number to get a pre-configured button input on factory reset.

Define `GPIO_REL1` containing GPIO number to get a pre-configured relay on factory reset.

When couple of `GPIO_KEY1` and `GPIO_REL1` is defined, a rule matching both will be added.
This is defined for 1...4
2018-10-25 01:28:25 +02:00
TD-er f983dd924d [Build] Add Sonoff POW R2 (4MB)
Sonoff POW R2 has 4 MB flash. So this needs a separate build, compared to the regular POW.
2018-10-24 20:44:48 +02:00
TD-er f0ff52b76b [WDT] Change yield() to delay(0)
`delay(0)` is a special case of delay, which also calls the system scheduler, `yield()` does not call.
It may interrupt a bit more than `yield()` 

See #1950
2018-10-24 13:25:36 +02:00
Plebs 3c0e5d1965 fixed as requested
- Fixed bootstate logic and inversed logic
- added selected events for doubleclick and longpress
- fixed log messages
- cleaned code
2018-10-23 23:45:23 +02:00
Bartlomiej Zimon 14489a2e98 optimization - remove double checksum check 2018-10-23 19:53:36 +00:00
Bartlomiej Zimon a920b95cfb move to PLUGIN_SERIAL_IN from PLUGIN_TEN_PER_SECOND - serial commandline uses our data 2018-10-23 15:52:27 +00:00
Saverio Cisternino a111175a8f Added auto redirect to home after run reboot command from web page. 2018-10-23 09:14:31 +02:00
svmac 4fd2166b5e P022_PCA9685 Enhancements
Added freq setting
Added mode2 command and setting
Added range command and setting
2018-10-23 05:06:23 +02:00
ESPEasy release bot db76aeb959 automatically updated release notes for mega-20181023 2018-10-23 04:00:14 +02:00
Gijs NoorlanderandGitHub b313957311 Merge pull request #1943 from TD-er/bugfix/pubsubclient_fixes
Bugfix/pubsubclient fixes
2018-10-23 02:09:38 +02:00
TD-er 9d0f741e84 [Docs] Add some WiFi related information to docs
Last week I added this text in a discussion on an issue.
It is also useful in the documentation so keep a copy there.
2018-10-23 01:48:26 +02:00
TD-er 7c0f1551b8 [WiFi timeout] Set default to 1000 msec again
Lower values might give strange issues
2018-10-23 01:45:33 +02:00
TD-er 8a59811392 [PubSubClient] Add delay when waiting for data and flush on disconnect
Applied suggestions:
- https://github.com/knolleary/pubsubclient/pull/472
- https://github.com/knolleary/pubsubclient/pull/495
2018-10-23 01:44:22 +02:00
Plebs e2e715d7de final fixes 2018-10-22 23:31:49 +02:00
Bartlomiej Zimon ccb4cf6a7a move to PLUGIN_TEN_PER_SECOND
update comments
2018-10-22 21:19:00 +00:00
Plebs 1b4a217bc9 fixed a display bug 2018-10-22 23:07:00 +02:00
Plebs 19ecf36358 doubleclick and longpress for PCF and MCP
Added doubleclick and longpress events for PCF (P019) and MCP (P009)
2018-10-22 22:30:20 +02:00
Bartlomiej Zimon bdea34a583 CSE7766 add online checksumming, autosyncing without data loos 2018-10-22 19:54:58 +00:00
Gijs NoorlanderandGitHub b7b5028c0c Merge branch 'mega' into add-raw-ir-reading 2018-10-22 20:05:59 +02:00
Gijs NoorlanderandGitHub c519d887db Merge pull request #1932 from TD-er/bugfix/1486_rotary_encoder
[#1486] Allow multiple instances of rotary encoder
2018-10-22 19:58:07 +02:00
Gijs NoorlanderandGitHub 29c8b850ba Merge pull request #1930 from Kurairaito/patch-1
Allow multiple instances of _P067_HX711_Load_Cell
2018-10-22 13:01:09 +02:00
Gijs NoorlanderandGitHub d01cb9b9a2 Merge pull request #1933 from TD-er/bugfix/Javascript_update_device_values
[JavaScript] Fix update values on Devices tab
2018-10-22 10:59:29 +02:00
ESPEasy release bot 9d894d7c83 automatically updated release notes for mega-20181022 2018-10-22 04:00:15 +02:00
Bartlomiej Zimon a418cb2bd0 Ser2Net catch serial data only if plugin used 2018-10-21 18:51:43 +00:00
Bartlomiej Zimon 907a672fa0 CSE7766 uses 8E1 serial connection 2018-10-21 18:50:57 +00:00
TD-er 2f10274da2 [JavaScript] Cleanup some code duplication 2018-10-21 17:01:55 +02:00
TD-er 399b344779 [JavaScript] Fix update values on Devices tab
Not all plugins have all values.
Now the JavaScript code checks if a DOM element exists before updating its value.
2018-10-21 16:47:06 +02:00
TD-er 2e06ed14c0 [#1486] Allow multiple instances of rotary encoder
Used same procedure as for P013 ultrasonic
See #1486
2018-10-21 15:51:36 +02:00
KurairaitoandGitHub b0032bebdb Update _P067_HX711_Load_Cell.ino
Reduce Ram footprint by using map vector instead of array
2018-10-21 13:41:40 +02:00
KurairaitoandGitHub a525ec34b0 Update _P067_HX711_Load_Cell.ino
Make it compatible when instantiated multiple time
2018-10-21 12:46:26 +02:00
Gijs NoorlanderandGitHub 024ec7b727 Merge pull request #1928 from TD-er/bugfix/reduce_webserver_strings
Reduce webserver strings
2018-10-21 11:12:52 +02:00
ESPEasy release bot 1ff0141e38 automatically updated release notes for mega-20181021 2018-10-21 04:00:16 +02:00
Gijs NoorlanderandGitHub 125db8046b Merge pull request #1927 from TD-er/feature/1870_build_sysino
[#1870] Feature request build date as system info
2018-10-21 01:20:51 +02:00
TD-er 720317c829 [Webserver] Uniform row labels to reduce flash string size 2018-10-21 01:18:43 +02:00
TD-er bbe9005a32 [Webserver] Generate copyText id names
Reduce amount of flash strings to reduce build file size
2018-10-21 00:05:31 +02:00
Gijs NoorlanderandGitHub afa16e80b6 Merge pull request #1923 from TD-er/bugfix/wifi_stability
Various network stability fixes and reduce memory usage when saving settings
2018-10-20 23:09:50 +02:00
Gijs NoorlanderandGitHub 37f5c92aa7 Merge pull request #1926 from TD-er/bugfix/1891_multiple_values
[#1891] Send all values for Generic UDP controller
2018-10-20 23:08:05 +02:00
TD-er 684b89ae4c [#1870] Feature request build date as system info
See #1870
Added:
- %sysbuild_date%
- %sysbuild_time%
2018-10-20 23:05:59 +02:00
TD-er 8c4612c300 [#1891] Send all values for Generic UDP controller
See https://github.com/letscontrolit/ESPEasy/issues/1891#issuecomment-431612051

A copy of the element from the queue was used, not a reference to it.
Therefore increasing the internal counter to send the next value was only executed on the copy, not the element in the list.
2018-10-20 22:34:11 +02:00
Gijs NoorlanderandGitHub 0afab53659 Merge pull request #1925 from TD-er/revert/1924_pull_request
Revert "fix for #1920"
2018-10-20 20:05:22 +02:00
Bartlomiej ZimonandTD-er e6e98345fe Revert "fix for #1920"
This reverts commit 3f84c35014.
2018-10-20 20:03:56 +02:00
Gijs NoorlanderandGitHub 2394e4a75f Merge pull request #1924 from uzi18/patch9
fix for #1920
2018-10-20 18:51:05 +02:00
ESPEasy release bot e1c4691325 automatically updated release notes for mega-20181020 2018-10-20 04:00:16 +02:00
Bartlomiej Zimon 3f84c35014 fix for #1920
fix for out of sync, check both header bytes
proper check for abnormal state
2018-10-19 22:40:11 +00:00
TD-er bc0bafa96b [#1910] Notification settings extra strings on stack
See #1910
Added a lot more of these changes and changed the input fields of the Notification Settings to be the same as all input fields in other places.
2018-10-20 00:20:58 +02:00
TD-er 4e7e66822d [Rules] Early exit on rules processing when rules not enabled 2018-10-20 00:20:58 +02:00
TD-er 6f226e6d65 Proper look for connection.
See discussion here: https://github.com/esp8266/Arduino/issues/5257
2018-10-20 00:20:58 +02:00
TD-er a50a035238 [stack usage] Allocate temp char array on heap for parsing arguments
These char arrays were rather large, so allocate on heap instead of char[240] on the stack.
Also re-order elements in not stored structs to reduce memory usage
2018-10-20 00:20:58 +02:00
Gijs NoorlanderandGitHub d560c635f5 Merge pull request #1922 from kpalczewski/mega
add support for 64bit IR codes.
2018-10-20 00:05:31 +02:00
kpalczewski f8db0c0a05 add support for 64bit IR codes. 2018-10-19 22:34:04 +02:00
Gijs NoorlanderandGitHub 79616022df Merge pull request #1919 from giig1967g/new/statusvariables
added 4 variables to verify the system status
2018-10-19 22:15:26 +02:00
Gijs NoorlanderandGitHub 559d294607 Merge branch 'mega' into new/statusvariables 2018-10-19 21:36:45 +02:00
Gijs NoorlanderandGitHub d2588c5e01 Merge pull request #1848 from giig1967g/new/plugin_pcf
Added [plugin#pcfgpio#pinstate#xx] and [plugin#mcpgpio#pinstate#xx]
2018-10-19 21:34:18 +02:00
Gijs NoorlanderandGitHub ba45a51576 Merge pull request #1884 from giig1967g/new/uservars
added Global Variables for rules
2018-10-19 21:33:10 +02:00
Gijs NoorlanderandGitHub 8321caaeed Merge branch 'mega' into new/statusvariables 2018-10-19 21:31:18 +02:00
Gijs NoorlanderandGitHub b35ed7d809 Merge pull request #1880 from giig1967g/doubleclick
DEBOUNCE, DOUBLECLICK and LONGPRESS events for PLUGIN001
2018-10-19 21:23:22 +02:00
Plebs a4583d150e added 4 variables to verify the system status
4 new system variables:
%iswifi% (=1 if wifi is connected)
%isntp% (=1 if NTP has been initialized)
%ismqtt% (=1 if mqtt is connected)
%ismqttimp% (=1 if mqtt import is connected)

Example:
if %isntp%=1 and %systime%>%sunset% do
....
endif
2018-10-18 17:44:05 +02:00
ESPEasy release bot cadc0a885d automatically updated release notes for mega-20181017 2018-10-17 04:00:18 +02:00
Gijs NoorlanderandGitHub 061eb20ae5 Merge pull request #1914 from TD-er/bugfix/reduce_stack
[#1906] Move Notification and Controller settings to heap
2018-10-17 00:40:30 +02:00
TD-er 9a9799eee7 [Stack] Add Free Stack to System Info plugin 2018-10-17 00:04:22 +02:00
Gijs NoorlanderandGitHub f4615bb76b Added checklist to the Issue_template
Lately a lot of new issues were non-descriptive and the same basic questions were to be asked over and over again.
These are now included in this template.
2018-10-16 23:02:33 +02:00
TD-er ecc498c359 [#1906] Allocate ControllerSettings on the heap
See #1906
2018-10-16 12:24:06 +02:00
TD-er e0e10fa6c8 [#1906] Allocate NotificationSettings on the heap
See #1906
2018-10-16 11:47:46 +02:00
ESPEasy release bot 228f09f394 automatically updated release notes for mega-20181016 2018-10-16 04:00:06 +02:00
Gijs NoorlanderandGitHub 19ac19778b Merge pull request #1909 from giig1967g/bug/toggle
Fix for "togglegpio" without gpio initialization
2018-10-16 01:11:46 +02:00
Gijs NoorlanderandGitHub 5e2d517ba2 Merge pull request #1913 from TD-er/bugfix/revert_safe_strncpy
[Revert] Safe_strncpy cannot be used as generic strncpy replacement
2018-10-16 01:09:59 +02:00
TD-er 7a4b17983e [Revert] Safe_strncpy cannot be used as generic strncpy replacement
It does do more. So only use it to convert Strings to single char arrays.
2018-10-16 00:11:17 +02:00
Plebs 6eba74ccc1 Fix for togglegpio without gpio initialization 2018-10-15 17:34:35 +02:00
ESPEasy release bot 27a05b674c automatically updated release notes for mega-20181015 2018-10-15 04:00:10 +02:00
Gijs NoorlanderandGitHub 4a66bbf081 Merge pull request #1905 from TD-er/bugfix/safe_strncpy
[safe strncpy] Add warning when entered string is too large
2018-10-15 00:52:34 +02:00
TD-er 109bddb5c3 [safe strncpy] Add warning when entered string is too large
Started with this issue:
"Framed Oled Display mixing up multiple values in different lines" #1904

Now almost all calls to `strncpy` are replaced with this safe variant which does some checking and zero-ing the buffer.
2018-10-15 00:24:57 +02:00
Gijs NoorlanderandGitHub 8158a919d8 Merge pull request #1879 from giig1967g/bug/1864
fix for bug #1864
2018-10-14 10:35:19 +02:00
ESPEasy release bot 706b91168b automatically updated release notes for mega-20181014 2018-10-14 04:00:13 +02:00
Gijs NoorlanderandGitHub d047999c5e Merge pull request #1901 from TD-er/bugfix/warn_incomplete_IPsettings
[UX] Warn user for incomplete network IP settings
2018-10-14 00:59:37 +02:00
Gijs NoorlanderandGitHub 42f361aacd Merge pull request #1902 from TD-er/bugfix/1895_I2C
[#1895] Incorrect number bytes read I2C_read32_reg
2018-10-14 00:43:15 +02:00
TD-er 3dd076cf25 [#1895] Incorrect number bytes read I2C_read32_reg
See #1895
2018-10-14 00:42:03 +02:00
TD-er c0d155dd99 [UX] Warn user for incomplete network IP settings
Was a left-over remark in #1291
2018-10-14 00:22:46 +02:00
Gijs NoorlanderandGitHub c433174d71 Merge pull request #1900 from TD-er/bugfix/time_initialized_event
Time#Initialized event in rules before %syshour% is set
2018-10-13 23:37:04 +02:00
Gijs NoorlanderandGitHub b805b59baf Merge pull request #1899 from TD-er/bugfix/controller_check_reply
Fix send only first value by controller (#1891 #1892 #1835)
2018-10-13 23:07:32 +02:00
Gijs NoorlanderandGitHub 9fae0477d8 Merge pull request #1894 from letscontrolit/feature/1799_SSID_mainpage
[#1799] Add SSID to main page
2018-10-13 23:06:55 +02:00
TD-er f7ac04dc96 Time#Initialized event in rules before %syshour% is set
See [forum](http://www.letscontrolit.com/forum/viewtopic.php?f=6&t=5819&p=31376&hilit=Initialized#p31376) and [other report of same issue](https://www.letscontrolit.com/forum/viewtopic.php?t=5925)
2018-10-13 23:05:35 +02:00
TD-er d50e661efb [Controller] Fix send only first value
See #1891 #1892 #1835
Added an extra option to explicitly check the reply  on sent messages by a controller.
2018-10-13 22:21:36 +02:00
Plebs 57b5338af6 Update src/StringConverter.ino 2018-10-12 15:00:58 +02:00
Plebs bd035c8f81 optimizations 2018-10-12 12:52:22 +02:00
Plebs ac63d93e1a Update src/_P001_Switch.ino 2018-10-12 12:10:10 +02:00
Plebs 4cff0d0e02 Update src/_P001_Switch.ino 2018-10-12 10:16:54 +02:00
TD-er ca83983fd2 [#1891] Generic UPD controller - send only first value from sensor
See #1891
2018-10-12 01:04:46 +02:00
Gijs NoorlanderandGitHub d808f7e79b [#1799] Add SSID to main page
See #1799
2018-10-12 00:57:08 +02:00
Plebs e469350ad9 modified command and variable name 2018-10-11 19:23:42 +02:00
Plebs 60536b1a93 some optimizations 2018-10-11 12:23:08 +02:00
Plebs b9e45bd515 fixed length check 2018-10-11 12:16:55 +02:00
Plebs a0992b8383 fixes 2018-10-11 11:50:37 +02:00
Plebs 9315581858 some fixes 2018-10-11 11:37:15 +02:00
ESPEasy release bot 9a763303ca automatically updated release notes for mega-20181011 2018-10-11 04:00:24 +02:00
Gijs NoorlanderandGitHub 7df9379f47 Merge pull request #1886 from TD-er/bugfix/reduce_memory_usage
Bugfix/reduce memory usage & improve load ExtraTaskSettings check
2018-10-11 01:48:31 +02:00
Plebs c32fe50521 Update src/_P023_OLED.ino 2018-10-10 23:28:34 +02:00
Plebs e4569b26f7 added global variables for rules
Added a new command:
customvar,x,y
that stores in a system variable %customvarx% the value 'y'.

Values are float
2018-10-10 23:19:09 +02:00
TD-er 48998886fe [WebLog] Disable weblog when it is not being read
This will prevent log items being generated when web log level is the highest level and it will clear the web log buffer to free memory.
2018-10-10 20:23:10 +02:00
Plebs 36f97d7909 some fixes 2018-10-10 19:24:45 +02:00
TD-er 0e3b9c9e47 [Travis Doc] Remove building documentation by Travis
It seems to break the nightly builds, so remove for now.
2018-10-10 15:54:34 +02:00
ESPEasy release bot acecff4108 automatically updated release notes for mega-20181010 2018-10-10 04:00:09 +02:00
TD-er 3322b954a7 Make sure to load ExtraTaskSettings when needed
There is only 1 `ExtraTaskSettings` object, so make sure it is always in sync.
2018-10-10 01:29:38 +02:00
TD-er 4c4b844a4d [Controller] Set default timeout to 300 msec (was 100 msec)
300 msec should be enough for most online services like `cloudmqtt.com`
2018-10-10 00:19:26 +02:00
Gijs NoorlanderandGitHub cf4d28eb4f Merge pull request #1877 from giig1967g/new/pcfinvertstate
Fix for #1767
2018-10-10 00:05:11 +02:00
TD-er 555b5386ae [C009] Reduce memory usage of FHEM HTTP delay queue
The entire JSON string was stored in the queue element, but lot of it can be computed later.
2018-10-09 23:52:46 +02:00
Plebs 1903fdc7f2 fix for bug #1864
Removed '.' check
2018-10-09 18:16:15 +02:00
Plebs 918353461e Update src/_P001_Switch.ino 2018-10-09 16:31:55 +02:00
Plebs e648a20fd0 Update src/_P019_PCF8574.ino 2018-10-09 16:24:13 +02:00
Plebs 1d7ea5e129 Update src/_P001_Switch.ino 2018-10-09 14:58:21 +02:00
Plebs 6ce5240dd7 few changes 2018-10-09 09:34:50 +02:00
ESPEasy release bot 692fb248ce automatically updated release notes for mega-20181009 2018-10-09 04:00:18 +02:00
Gijs NoorlanderandGitHub 5a87397ee0 Merge pull request #1872 from TD-er/bugfix/JSON_newline
Bugfix/json newline and memory allocation optimizations.
2018-10-09 01:14:50 +02:00
TD-er 99ba09b024 [StringConverter] Some optimisations to reduce memory allocation 2018-10-09 01:11:45 +02:00
Plebs 3dea091d21 small fixes 2018-10-09 00:20:27 +02:00
Plebs ca13317cbd Update src/_P001_Switch.ino 2018-10-09 00:12:50 +02:00
TD-er f68516d5bb [LWIP1.4] Move back to LWIP1.4
The combination LWIP1.4 and core 2.4.1 were used until begin of May and those were considered stable.
2018-10-08 23:56:55 +02:00
TD-er 8102a0096d [JSON] Replace \n and \r in text fields
Those are not allowed in strings in JSON.
This leads to (web) log viewer crashing.
2018-10-08 23:44:44 +02:00
Plebs 73cec59bd5 Update src/_P001_Switch.ino 2018-10-08 22:30:02 +02:00
Gijs NoorlanderandGitHub 96ecf9bf29 Merge pull request #1871 from TD-er/bugfix/travis_check_for_docs
[Docs] Disable travis_terminate for now
2018-10-08 21:05:55 +02:00
TD-er ef1e371514 [Docs] Disable travis_terminate for now
Apparently `travis_terminate` does not exist anymore as a command to stop the script without failing.
2018-10-08 19:29:56 +02:00
Gijs NoorlanderandGitHub 45d67292a3 Merge pull request #1869 from TD-er/feature/travis_build_docs
Feature/travis build docs
2018-10-08 16:38:16 +02:00
TD-er b5662baad4 [Docs] Run Travic documentation check before compiling project 2018-10-08 16:04:12 +02:00
TD-er 12c3e5f81f [Docs] Add Travis check for documentation and stop build for docs only
Let Travis build the documentation and prevent full build when only documentation changed.
2018-10-08 15:34:02 +02:00
TD-er dececf24ee [Docs] Add favicon to documentation 2018-10-08 15:31:48 +02:00
ESPEasy release bot 3fb6dec382 automatically updated release notes for mega-20181008 2018-10-08 04:00:09 +02:00
Gijs NoorlanderandGitHub cef962c5f1 Added link to ReadTheDocs 2018-10-08 00:05:58 +02:00
Gijs NoorlanderandGitHub cca2335070 Merge pull request #1868 from TD-er/feature/update_sphinx_docs
[Docs] Added some directory structure and template
2018-10-08 00:01:07 +02:00
TD-er ffd0d26ed3 [Docs] Added some directory structure and template 2018-10-08 00:00:27 +02:00
Plebs 9b457ed77b some code optimizations 2018-10-07 23:12:23 +02:00
GrovkillenandGitHub f787a9a9a6 [Sphinx] added extension "sphinx.ext.imgconverter" 2018-10-07 19:11:49 +02:00
Gijs NoorlanderandGitHub a0ae104794 Merge pull request #1865 from TD-er/feature/sphinx_docs
Feature/sphinx docs
2018-10-07 18:26:06 +02:00
TD-er 2b78810457 [Docs] First ESPEasy documentation (Controllers) 2018-10-07 18:23:25 +02:00
TD-er 43081c3ac8 [Sphinx] Initial setup for Sphinx documentation 2018-10-07 17:09:52 +02:00
ESPEasy release bot 33281c08c2 automatically updated release notes for mega-20181007 2018-10-07 04:00:09 +02:00
Gijs NoorlanderandGitHub 461aee26ad Merge pull request #1861 from TD-er/feature/debug_esp32_wrover_kit
Move stack to user memory space and close file handles + Add WROVER dev kit debug support
2018-10-06 23:19:18 +02:00
Gijs NoorlanderandGitHub 2b0b14b2e8 Merge pull request #1853 from blenk92/XSS
Fix XSS-Vulnerabilites on wifi configuration pages
2018-10-06 22:56:47 +02:00
Gijs NoorlanderandGitHub b7404666b1 Merge pull request #1851 from blenk92/mega
Force slash to be converted in htmlEscape
2018-10-06 22:56:37 +02:00
Gijs NoorlanderandGitHub da25aa87dd Merge pull request #1733 from giig1967g/new/invertvalue
Add four new TOGGLE commands
2018-10-06 22:55:57 +02:00
TD-er 10a1e634e2 [SPIFFS] Make sure to close open files on SPIFFS 2018-10-06 22:36:41 +02:00
TD-er 83f86449b9 [Stack] Move Arduino 'cont' stack into user RAM
As suggested [here](https://github.com/letscontrolit/ESPEasy/pull/1858#issuecomment-427578956) the previous used flag may also enable WPS.
So I used [this suggestion](https://github.com/esp8266/Arduino/issues/5148#issuecomment-424334261) to only re-allocate the stack at link time.
2018-10-06 20:01:39 +02:00
TD-er eee337d3e3 [ESP32] Allow Wrover dev kit to be used for PIO debug
Initial setup to be able to debug ESP32 Wrover dev kit from within Visual Studio Code + PIO plus.
2018-10-06 18:31:17 +02:00
ESPEasy release bot c549ecd329 automatically updated release notes for mega-20181006 2018-10-06 04:00:13 +02:00
Gijs NoorlanderandGitHub d9e682668d Merge pull request #1858 from TD-er/bugfix/increase_stack_5k
[Stack] Increase stack to 5k and reduce stack allocations in rules
2018-10-06 00:57:31 +02:00
TD-er e38072ac24 [Build flags] Remove NO_EXTRA_4K_HEAP
Core is now set to 2.4.1 again, so this flag is not needed anymore.
Also not sure if it did fix something in 2.4.2 core.
2018-10-06 00:53:53 +02:00
TD-er 6aebeba5dc [WiFi] Add delay to connection attempts in ControllerSettings
As suggested by @s0170071 [here](https://github.com/letscontrolit/ESPEasy/issues/1774#issuecomment-425038026)
2018-10-06 00:50:43 +02:00
TD-er da01c8f469 [Stack] Increase stack to 5k and reduce stack allocations in rules
Removed some unneeded stack allocations of 240 bytes in the rules processing.

Also gave the `process_system_event_queue()` a bit more priority to make sure it will be looked at at least once every 500 msec.
2018-10-05 00:52:22 +02:00
Plebs d3c86b9824 code optimization 2018-10-04 12:07:32 +02:00
Plebs 9621a91d90 added [plugin#mcpgpio#pinstate#xx] 2018-10-04 11:31:49 +02:00
ESPEasy release bot b3b68856f0 automatically updated release notes for mega-20181004 2018-10-04 04:00:08 +02:00
Max bec5cb5334 Fix XSS-Vulnerabilites on wifi configuration pages
Add escaping of wifi network names that can be discovered using the search
functionality of for instantce the /setup page. As these names are also used
inside an html tag, a stronger html encoding variant has been added.
2018-10-04 03:19:09 +02:00
Gijs NoorlanderandGitHub bda6011390 Merge pull request #1852 from TD-er/bugfix/wificlient_timeout
[#1830] WiFi client timeout & back to core 2.4.1
2018-10-04 00:56:09 +02:00
Gijs NoorlanderandGitHub f3fdb93a52 Merge pull request #1831 from JojoS62/mega
[P013_HCSR04] added error checking and logging
2018-10-04 00:54:02 +02:00
Gijs NoorlanderandGitHub 200b060b15 Merge pull request #1846 from thomastech/mega
Update _P075_Nextion.ino
2018-10-04 00:51:44 +02:00
Gijs NoorlanderandGitHub ff41cb2f94 Merge pull request #1849 from uzi18/patch9
- partial fix for #1723
2018-10-04 00:51:03 +02:00
TD-er c134eb6d13 [Core 2.4.1] Move back to core 2.4.1 from 2.4.2
PlatformIO `espressif8266@1.7.3` instead of `espressif8266@1.8.0`
2.4.2 has a lot of improvements like 4k of extra free memory.
But also the number of hardware watchdog reboots has increased a lot and the PWM related code no longer seems to work on 2.4.2
So for now, back to 2.4.1 library.
2018-10-04 00:24:28 +02:00
TD-er f9e2a211e1 [WiFiClient] Set timeout and make it configurable for controllers
The default timeout for wificlient is 1000 msec. This may cause all kind of strange effects when the node is being blocked for so long.
2018-10-04 00:21:00 +02:00
Max bd3d3f66f4 Force slash to be converted in htmlEscape
According to the owasp XSS prevention cheat sheet it is also necessary to encode / as it may helps to end html entities
(Source https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.231_-_HTML_Escape_Before_Inserting_Untrusted_Data_into_HTML_Element_Content)
2018-10-03 23:58:24 +02:00
Bartlomiej Zimon 3bad683211 - partial fix for #1723 2018-10-03 21:13:56 +00:00
TD-er 68f6e913a2 [sendHttp] #1830 Set timeout and early exit on timeout reached
See #1830
2018-10-03 23:10:47 +02:00
Plebs 0b9c550fd7 Added [plugin#pcfgpio#pinstate#xx]
Added [plugin#pcfgpio#pinstate#xx] variable for rules
2018-10-03 22:49:11 +02:00
Plebs 96420faa2f added "mcpgpiotoggle" command 2018-10-03 22:07:42 +02:00
ThomasandGitHub 8eea77e4ed Update _P075_Nextion.ino (#1)
Added DEBUG_LOG define to reduce info log messages and prevent serial log flooding.
Added SendStatus() to post log message on browser to acknowledge HTTP write.
Added reserve() to minimize string memory allocations.
2018-10-03 09:02:02 -07:00
JojoS62 3d1f723787 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2018-10-03 15:27:40 +02:00
JojoS62 5d459003e4 fixed 'unused variable' warning 2018-10-03 15:19:19 +02:00
JojoS62 ad208c357c code clean up
added default for filter size = 5.
clode clieanup: using constants, read setting into local vars for better readability,
2018-10-03 14:33:17 +02:00
ESPEasy release bot b1c777e6fd automatically updated release notes for mega-20181003 2018-10-03 04:00:18 +02:00
JojoS62 f5ab15c255 max distance depends on measurement unit
setting is in user units, ping function needs cm. Conversion added.
added unit to log output.
2018-10-02 17:41:23 +02:00
JojoS62 001ec6dcd2 added more settings: unit, filtertype and size
Measuring unit can be changed bewtween metric/imperial
Filtertype can none or median. If median a filtersize can be set.
Meauring value time to distance conversion now as float division, resulting in a higher resolution output.
2018-10-02 17:00:22 +02:00
JojoS62 15e5edccd8 added float calculation for time to distance conversion
returns higher resolution, especially for measuring in inches the integer resolution was low.
2018-10-02 16:57:33 +02:00
Gijs NoorlanderandGitHub 651353cc99 Merge pull request #1842 from crankyoldgit/patch-2
Acknowledge credit & origin of code used in _P016IR.ino
2018-10-02 13:41:35 +02:00
Gijs NoorlanderandGitHub 85f97551c5 Merge pull request #1841 from crankyoldgit/patch-1
Acknowledge credit & origin of code used in IRTX
2018-10-02 13:41:23 +02:00
David ConranandGitHub 6a158f68f5 Acknowledge credit & origin of code used in _P016IR.ino
FYI @TD-er

Ref: https://github.com/letscontrolit/ESPEasy/pull/1645#issuecomment-422253497
2018-10-02 21:36:18 +10:00
David ConranandGitHub 1933714de5 Acknowledge credit & origin of code used in IRTX
FYI @TD-er

Ref: https://github.com/letscontrolit/ESPEasy/pull/1645#issuecomment-422253497
2018-10-02 21:29:57 +10:00
ESPEasy release bot 545117ddf7 automatically updated release notes for mega-20181002 2018-10-02 04:00:29 +02:00
Gijs NoorlanderandGitHub 8eb479c411 Merge pull request #1837 from TD-er/bugfix/schedule_commands_yield
[Stack] Report stack usage on ESP32 and increase stack for ESP8266normal
2018-10-01 23:27:07 +02:00
TD-er b39f51ca3c [Stack] Report stack usage on ESP32 and increase stack for ESP8266normal
Stack usage on ESP32 is querying current stack, not statistics per RTOS task.
2018-10-01 22:15:32 +02:00
Gijs NoorlanderandGitHub 4511e08d3c Merge pull request #1805 from giig1967g/new/parse
split parseTemplate function
2018-10-01 17:12:21 +02:00
Gijs NoorlanderandGitHub 086e836956 Merge pull request #1836 from TD-er/feature/esp32_pio_1_4_0
[ESP32] Update to platform espressif32@1.4.0
2018-10-01 17:10:45 +02:00
Gijs NoorlanderandGitHub 3e20f617ea Merge pull request #1827 from TD-er/bugfix/DTH_Si7021_reading_stability
[#1798] Bugfix Sonoff Si7021 stability
2018-10-01 17:10:23 +02:00
TD-er 8d9aacb6a4 [ESP32] Update to PIO espressif32@1.4.0
[ESP32 IDF 3.1](https://github.com/espressif/esp-idf/releases/tag/v3.1)
[ESP32 PIO 1.4.0](https://github.com/platformio/platform-espressif32/releases/tag/v1.4.0)
2018-10-01 16:34:21 +02:00
TD-er 0670fa98a6 [ESP32] Add default partition table for reference 2018-10-01 16:32:20 +02:00
ESPEasy release bot 2b3d1517c9 automatically updated release notes for mega-20181001 2018-10-01 13:13:13 +02:00
Gijs NoorlanderandGitHub 0be79759d1 Merge pull request #1834 from TD-er/bugfix/detect_large_stack_allocs
[Stack] Move Arduino stack back to top of System stack instead of overlap
2018-10-01 01:25:38 +02:00
TD-er d47bede215 [Stack] Revert move Settings from stack to heap
Apparently the settings are allocated on the system stack and not on the Arduino stack.
This means it takes a lot of ram when allocated on the heap. So move it back to the system stack.
2018-10-01 00:51:04 +02:00
TD-er 2988a244b2 [Stack] Check if a block sent to save on SPIFFS is stack allocated 2018-10-01 00:42:01 +02:00
TD-er 8d87dc0175 [Heap] Use NO_EXTRA_4K_HEAP to get old stack address space
Originally the Arduino stack was placed on top of the system stack.
But since the system stack is mostly empty, it was decided to shift the Arduino stack to overlap the system stack to save an extra 4k of memory.

However, since a lot of Watchdog timer reboots are reported lately, this optimisation will now be reverted to see if it will improve stability.
This will use about 4k more RAM.
2018-10-01 00:40:55 +02:00
Gijs NoorlanderandGitHub 21c86e666a Merge pull request #1829 from TD-er/feature/1824_stack_stats
[#1824] Show stack size on main page
2018-09-30 19:37:16 +02:00
JojoS e6fdd3380a added error checking and logging
there were several errors that all resulted in a distance value reading of 0. Added an errorState that is printed to the log and helps troubleshooting.
Max. Distance checking can be turned off by setting max distance to 0 cm. If max. distance is used, exceeding the range will return a distance of 0 cm and print this to the log.
2018-09-30 15:23:36 +02:00
TD-er e04f71ab47 [#1824] Show stack size on main page
See #1824
2018-09-30 09:32:01 +02:00
ESPEasy release bot 90ae0720cf automatically updated release notes for mega-20180930 2018-09-30 04:00:24 +02:00
Gilad Raz 4ec2af24a3 Increased buffer size. Added constants. 2018-09-30 01:10:55 +03:00
TD-er c8ecd8d374 [#1798] Bugfix Sonoff Si7021 stability
See #1798
2018-09-29 22:50:24 +02:00
Gijs NoorlanderandGitHub 7a451dd672 Merge pull request #1825 from TD-er/bugfix/proper_default_settings
Bugfix/proper default settings
2018-09-29 15:39:21 +02:00
Gijs NoorlanderandGitHub b06f6aa360 Merge pull request #1823 from JojoS62/mega
minor change: unit was missing for threshold in 'state' mode
2018-09-29 15:06:36 +02:00
TD-er 6b67415c71 [Defaults] Other default initializations 2018-09-29 15:05:10 +02:00
JojoS b095465d3a minor change: unit was missing for threshold in 'state' mode 2018-09-29 14:09:03 +02:00
Gijs NoorlanderandGitHub 81a5d911ba Merge pull request #1809 from JojoS62/mega
fixed distance reading
2018-09-29 13:38:44 +02:00
TD-er 48060d8d99 [Default Settings] Properly clear settings when reset to default 2018-09-29 12:40:29 +02:00
JojoS d303fa023f changed implementation to use shared_ptr instead of helper structure
this makes it easier to use this as a template for other sensors. No additional helper class/structure is needed.
2018-09-29 11:58:57 +02:00
JojoS 29b0cc1b32 removed sensordefs helper structure
to simplify the code
2018-09-27 22:00:01 +02:00
JojoS 584abd1e75 on INIT, delete sensordef before adding new 2018-09-27 14:19:54 +02:00
JojoS b4d8be0e59 fixed distance reading
the P_013_sensordef object was created on the stack and the destructor was called after leaving the PLUGIN_INIT. That deleted the included NewPingESP8266 object and using this object failed.
2018-09-27 11:56:31 +02:00
ESPEasy release bot 30f5c5cb7d automatically updated release notes for mega-20180927 2018-09-27 04:00:17 +02:00
Plebs 6e7286c6fb split parseTemplate function
simplifying code
2018-09-26 23:40:01 +02:00
Gijs NoorlanderandGitHub ae1db543ce Merge pull request #1804 from TD-er/bugfix/ESP32_partition_build
[ESP32] Split new partition layout to separate build
2018-09-26 22:52:30 +02:00
TD-er 947e1e0343 [Build] Add esp32test_1M8_partition build and warning on ESP32 partition 2018-09-26 22:49:30 +02:00
TD-er 0578d720f4 [ESP32] Split new partition layout to separate build
See "ESP32 not start after last upgrade" #1802
2018-09-26 21:55:02 +02:00
Gilad Raz 3fee6794f2 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into add-raw-ir-reading 2018-09-26 19:03:47 +03:00
Gilad Raz 019e33331b Merge branch 'mega' into add-raw-ir-reading
# Conflicts:
#	src/_P016_IR.ino
#	src/_P035_IRTX.ino
2018-09-26 19:01:50 +03:00
Gijs NoorlanderandGitHub 211d79bbd5 Merge pull request #1792 from TD-er/feature/ESP32_partition_table
[ESP32] Change partition size (will clear all settings) and add plugins
2018-09-26 09:05:44 +02:00
Gilad 8a751a0922 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into mega 2018-09-25 18:43:37 +03:00
Gilad 450eca8dc5 Fixed warnings... 2018-09-25 03:13:14 +03:00
Gilad ce0bfbf717 Fixed warnings... 2018-09-25 02:30:20 +03:00
Gilad bb316bbd30 Improved IR RAW2 format to support RLE. 2018-09-25 01:42:45 +03:00
TD-er 91c5d60af9 [Info] Add board name to the sysinfo page. 2018-09-25 00:19:17 +02:00
TD-er 0d9bc8027d [ESP32] RTOS move handle_schedule() to core1 and increase stack
Enable RTOS flag in advanced settings (and reboot) to create separate threads on the 2nd ESP32 core, which will handle the scheduler.
This lowers stack usage and CPU load.
Also the ESP will no longer crash when saving large settings like for the Framed OLED plugin.
2018-09-25 00:18:46 +02:00
TD-er bd2bdab95c [Stack] Move Settings from stack to heap 2018-09-24 22:08:02 +02:00
TD-er c4f98fbc8e [Travis] Uninitialized variable in P073_7DGT 2018-09-24 20:13:24 +02:00
ESPEasy release bot b332a513b5 automatically updated release notes for mega-20180924 2018-09-24 04:00:20 +02:00
TD-er e36bb714f1 [ESP32] Change partition size (will clear all settings) and add plugins
The last update to > 0.12 increased the binary size a lot. This is mainly due to the added BLE support.
This makes it almost impossible to use the default partition table layout.

This changes the app partitions to 1.8 MB and reduces the SPIFFS to 320 k.
Changing the partition table will clear all settings, so make a backup of the settings.

Also added all plugins that would compile (not tested) for ESP32.

Known issue:
ESP32 might crash due to stack overflow when saving settings of plugins. (e.g. OLED framed plugin)
2018-09-24 00:23:45 +02:00
Gijs NoorlanderandGitHub 6e1cde343f Merge pull request #1791 from TD-er/bugfix/ESP32_I2C
[ESP32] Fix I2C handling to allow I2C devices to work
2018-09-23 22:14:43 +02:00
TD-er cce9ddd2dc [ESP32] Fix I2C handling to allow I2C devices to work
See this issue: [I2C repeated start broken](https://github.com/platformio/platform-espressif32/issues/126)
2018-09-23 21:17:55 +02:00
Gijs NoorlanderandGitHub 51be17a436 Merge pull request #1780 from clumsy-stefan/sensor_type_change
Change type of sensor for MCP and PCF devices
2018-09-23 20:18:38 +02:00
Gijs NoorlanderandGitHub 66d27a6697 Merge pull request #1776 from beigenmann/mega
Fix platformio
2018-09-23 20:17:33 +02:00
Gijs NoorlanderandGitHub a033e458fb Merge pull request #1782 from TD-er/bugfix/MQTT_reconnect_name
[MQTT] Work around for lost MQTT connection
2018-09-23 20:17:07 +02:00
Gijs NoorlanderandGitHub 494436bbff Merge pull request #1789 from sakinit/ESP32-to-core_esp32_1_3_0
ESP32: change to platform version core_esp32_1_3_0
2018-09-23 20:16:52 +02:00
sakinit 23bacd0762 change to platform version core_esp32_1_3_0 2018-09-23 17:49:47 +02:00
Gilad 9bdfab3fa2 Add IR RAW2 Reading / Transmitting - added a safety check. 2018-09-23 15:49:26 +03:00
Gilad 9d446745cc Add IR RAW2 Reading / Transmitting - fixed ambiguity. 2018-09-23 14:38:36 +03:00
Gilad d2ab946d17 Add IR RAW2 Reading / Transmitting. 2018-09-23 12:44:56 +03:00
Gilad fcc71a56b6 Add IR RAW2 Reading / Transmitting. 2018-09-23 12:40:52 +03:00
ESPEasy release bot f131254853 automatically updated release notes for mega-20180923 2018-09-23 04:00:12 +02:00
TD-er 657d15d962 [MQTT] Work around for lost MQTT connection
Maybe a fix for #1525
Meant to be a fix for #1530

It looks like the MQTT broker is refusing to accept a new connection from a specific client ID, as long as the broker thinks a client with that ID is still connected.
This work around adds the number of wifi reconnects to the clientID, to make the ID unique when a reconnect has to be made.
2018-09-23 00:54:55 +02:00
Gijs NoorlanderandGitHub 60910da48d Merge pull request #1749 from sakinit/ESP32-P1WifiGateway-updates
Esp32 p1 wifi gateway updates
2018-09-22 20:59:32 +02:00
Gijs NoorlanderandGitHub 6cee2d0f32 Merge pull request #1779 from TD-er/bugfix/BME280_slow_reading
[BME280] Fix slow reading of BME280 causing watchdog resets
2018-09-22 20:45:20 +02:00
stefan 533cb88a64 Change type of sensor for MCP and PCF devices
MCP and PCF devices should be of type SWNSOR_TYPE_SWITCH instead of SENSOR_TYPE_SINGLE so that the controllers can identify them correctly as switches (for GPIO related functions)
2018-09-22 20:41:53 +02:00
TD-er ffa32fe851 [BME280] Fix slow reading of BME280 causing watchdog resets
The plugin still had some delay and an active polling to see if the reading was ready.
This  took more than 1.5 sec per reading, which could trigger a Watchdog reset.
2018-09-22 20:34:56 +02:00
Gijs NoorlanderandGitHub b900cc9389 Merge pull request #1777 from TD-er/bugfix/MQTTimport
[MQTT import] Fix crash at boot when plugin is enabled
2018-09-22 19:13:25 +02:00
TD-er 8e11c19af6 [MQTT import] Fix crash at boot when plugin is enabled
See #1722
Inspired by [this comment](https://github.com/letscontrolit/ESPEasy/issues/1722#issuecomment-422191721) of @kainhofer
2018-09-22 16:39:16 +02:00
Benno Eigenmann f33ca6df78 Fix platformio 2018-09-22 15:57:09 +02:00
ESPEasy release bot 194a230d20 automatically updated release notes for mega-20180922 2018-09-22 04:00:22 +02:00
Gijs NoorlanderandGitHub 7a5a432016 Merge pull request #1773 from TD-er/reapply_reverts
Reapply reverts
2018-09-22 02:04:30 +02:00
TD-er 07511fe144 Revert "Revert "Fix elseif & Add if-elseif-else nesting levels""
This reverts commit a4fe8d42d2.
2018-09-21 22:15:13 +02:00
Gijs Noorlander 9a390136f9 Revert "Revert "Added 2 new operators in Calculate() function""
This reverts commit fa42cadfa1.
2018-09-21 22:14:30 +02:00
Gijs NoorlanderandGitHub 27a03f166a Merge pull request #1770 from TD-er/bugfix/revert_disable_command_scheduler_0915
Revert "[Scheduler] Disable command scheduler"
2018-09-21 22:10:50 +02:00
TD-er 0a63aeb8f0 Revert "[Scheduler] Disable command scheduler"
This reverts commit 38af765935.
2018-09-20 23:20:19 +02:00
sakinit 22c10ac615 ESP32 platform updated to 1.2.0; Webserver replaced by platform one 2018-09-16 16:44:25 +02:00
ESPEasy release bot ac83cfa249 automatically updated release notes for mega-20180916 2018-09-16 04:00:11 +02:00
Gijs NoorlanderandGitHub 6ef0c08bc4 Merge pull request #1754 from TD-er/bugfix/backgroundtasks_rules
[HW Watchdog] Backgroundtasks instead of yield during rules handling
2018-09-16 01:19:47 +02:00
TD-er 1ee965067d [HW Watchdog] Backgroundtasks instead of yield during rules handling 2018-09-16 01:19:14 +02:00
Gijs NoorlanderandGitHub e46a873fce Merge pull request #1753 from letscontrolit/revert-1641-mega
Revert "Fix elseif & Add if-elseif-else nesting levels"
2018-09-16 01:15:04 +02:00
Gijs NoorlanderandGitHub 784e956c96 Merge pull request #1752 from letscontrolit/revert-1742-new/not
Revert "Added 2 new operators in Calculate() function"
2018-09-16 01:14:32 +02:00
Gijs NoorlanderandGitHub b6eebb330a Added warning to release notes 20180915 2018-09-16 01:13:49 +02:00
Gijs NoorlanderandGitHub a4fe8d42d2 Revert "Fix elseif & Add if-elseif-else nesting levels" 2018-09-16 01:08:42 +02:00
Gijs NoorlanderandGitHub fa42cadfa1 Revert "Added 2 new operators in Calculate() function" 2018-09-16 01:04:37 +02:00
sakinit 17dc6fa859 Reverted Webserver change 2018-09-15 16:22:58 +02:00
sakinit 1432726dec ESP32: Split webserver spiffs filelist into pages 2018-09-15 12:14:33 +02:00
sakinit 7ba6ffa407 Fix ESP32 stack overflow in addPinSelect when called from P1WifiGateway
In addFormPinSelect move local variables from the stack to the heap
because when it is called from the P1WifiGateway there is not enough
stack space resulting in a stack overflow.
2018-09-15 12:14:27 +02:00
sakinit ab555e4d6b ESP32 build issues fixed
- Compiler issue of comment within comment
 - ESP32Webserver renamed to Webserver in ESP32 Arduino library
2018-09-15 12:14:22 +02:00
ESPEasy release bot d4259f4e23 automatically updated release notes for mega-20180915 2018-09-15 04:00:15 +02:00
Gijs NoorlanderandGitHub aef45c06f6 Merge pull request #1747 from TD-er/bugfix/sunrise
[#1698] Incorrect sunrise value southern hemisphere
2018-09-15 00:19:42 +02:00
Gijs NoorlanderandGitHub 828f9e6a30 Merge pull request #1746 from TD-er/feature/hostname_settings
Validate settings + hostname format option
2018-09-15 00:14:30 +02:00
TD-er e79d778cf4 [#1698] Incorrect sunrise value southern hemisphere
See #1698
2018-09-15 00:10:45 +02:00
TD-er 965eb2d994 [#1713] Make hostname-unitnumber optional & validate settings
See #1713
Also added validation check for some values in the settings at load/save of settings.
This could be extended later on for task settings.
2018-09-14 23:44:58 +02:00
Gijs NoorlanderandGitHub 657fccf49f Merge pull request #1641 from svmac/mega
Fix elseif & Add if-elseif-else nesting levels
2018-09-14 23:27:00 +02:00
Gijs NoorlanderandGitHub 228b41a1ac Merge pull request #1742 from giig1967g/new/not
Added 2 new operators in Calculate() function
2018-09-14 23:26:25 +02:00
Gijs NoorlanderandGitHub 3bba294eb7 Merge pull request #1745 from TD-er/bugfix/commands_not_using_scheduler
[Scheduler] Disable command scheduler
2018-09-14 23:22:21 +02:00
TD-er 0254181b3e [Controller settings] Validate settings on load/save
Make sure new values are set to proper defaults and within valid range.
2018-09-14 22:54:23 +02:00
Gijs NoorlanderandGitHub 3b67282abb Merge branch 'mega' into mega 2018-09-14 21:26:21 +02:00
TD-er 38af765935 [Scheduler] Disable command scheduler
For now the commands will no longer use the scheduler.
Commands running asynchronous is causing too much issues.
2018-09-14 21:23:09 +02:00
Plebs ff180b085c Added 2 new operators in Calculate
hi,
added 2 new operators for calculations:

!: Logical NOT:
returns 1 if operand is = 0
returns 0 if operand is != 0

%: MOD:
converts operands in integers and calculates the remainder of the division
2018-09-14 16:44:11 +02:00
ESPEasy release bot e0785eb796 automatically updated release notes for mega-20180914 2018-09-14 04:00:17 +02:00
Gijs NoorlanderandGitHub 75a83787a4 Merge pull request #1740 from TD-er/bugfix/disable_failing_plugin
[CrashRecover] Disable failing step based on failed boot count
2018-09-14 00:18:48 +02:00
Gijs NoorlanderandGitHub 65bea6343c Merge pull request #1734 from giig1967g/new/eventvalue
adding more parameters to EVENT
2018-09-14 00:15:41 +02:00
Gijs NoorlanderandGitHub 6fe61411a0 Added PayPal link 2018-09-14 00:10:48 +02:00
Gijs NoorlanderandGitHub 4552e91022 Merge pull request #1731 from giig1967g/new/calculate
Use parameters inside rules when calling commands
2018-09-14 00:06:13 +02:00
Gijs NoorlanderandGitHub cc94d70e6c Merge pull request #1730 from sakinit/feature-webserver-spiffs-filelist-multiple-pages
Feature: Split webserver spiffs filelist into pages
2018-09-13 23:50:11 +02:00
Gijs NoorlanderandGitHub 2435078f76 Merge pull request #1732 from TD-er/feature/flash_tools
[Flash tools] Add blank files and README.txt to dist folder
2018-09-13 23:49:43 +02:00
Gijs NoorlanderandGitHub dd2cd50d4b Merge pull request #1738 from giddyhup/mega
Fix IR plugin passing received code
2018-09-13 23:48:46 +02:00
TD-er fe38eb629d [CrashRecover] Disable failing step based on failed boot count
When the node gets locked in a boot loop, the only recovery is to erase it and start all over.
This fix will count the number of failed boots and above a certain threshold it will start disabling plugin, then controller and then notification.

Only one will be disabled at once, so the user can see which one is giving issues.
The disabled state will not be saved, so make sure to save the failing part when it is accessible again.
2018-09-13 23:44:24 +02:00
Plebs e961507456 added %eventvalue4% 2018-09-13 19:14:13 +02:00
Plebs e5ee5644bf final version with '=' sign as a prefix to identify the formula in rules 2018-09-12 22:48:44 +02:00
Gijs NoorlanderandGitHub ac6d85e214 Merge branch 'mega' into mega 2018-09-12 21:54:50 +02:00
Markus Gloede 39c2d54aee Fix IR plugin passing received code 2018-09-12 21:09:05 +02:00
Plebs 68efd5ff9e adding more parameters to EVENT
Hi,
adding the possibility to have 3 parameters when calling an event:
event,eventname=p1,p2,p3

The variable name are:
param 1: %eventvalue% or %eventvalue1%
param 2: %eventvalue2%
param 3: %eventvalue3%
2018-09-11 17:38:47 +02:00
Plebs 627f516f85 fixed calls to F-macro 2018-09-11 16:03:35 +02:00
Plebs a45fadf42e fixed ESP32 compatibility issue 2018-09-11 14:38:14 +02:00
Plebs 2ae52b849c few changes
optimized the call to CALCULATE only when needed and description of error codes.
2018-09-11 13:10:00 +02:00
Plebs 639685ea0d fixed float to int conversion 2018-09-11 10:16:44 +02:00
Plebs 867209de6d Add three new TOGGLE commands
Added three new commands to toggle the pins from 0 to 1 or viceversa and to toggle the task value:

Command: taskvaluetoggle
P001: gpiotoggle
P019:pcfgpiotoggle
2018-09-11 00:38:55 +02:00
TD-er 1d8b6d346b [Flash tools] Add blank files and README.txt 2018-09-10 23:02:38 +02:00
Plebs 2a5ac327d3 Use parameters inside rules when calling commands
Hi,
here is a PR for using parameters when calling commands from inside the rules.

The scope is to be able to use formulas instead of an integer when calling a command inside the rules.

Example:
taskvalueset,1,%eventvalue%+65,[Relay1#r1]+1

Usage could be:

Assuming you have a PCF8574 with ports from 65 to 72.

You can write a rule:

on turnOnRelay do
  pcfgpio,%eventvalue%+64,0
endon

And to turn on port65, the rule can be called like this:

event,turnOn=1
2018-09-10 22:59:50 +02:00
sakinit 886101d4d4 Feature: Split webserver spiffs filelist into pages 2018-09-10 17:37:05 +02:00
ESPEasy release bot 8fc6486855 automatically updated release notes for mega-20180910 2018-09-10 04:00:23 +02:00
Gijs NoorlanderandGitHub eeb1cc71b3 Merge pull request #1728 from TD-er/bugfix/command_send_http
Bugfix/command SendToHTTP  & Domoticz IDX > 9999
2018-09-10 01:02:58 +02:00
TD-er 13837830e8 [Domoticz IDX] Allow for IDX of > 9999 2018-09-09 23:00:16 +02:00
Gijs NoorlanderandGitHub f86ff46a82 Merge pull request #1727 from sakinit/P1WifiGatewayModuleBufSize
Reduced buffer size to prevent stack overflow
2018-09-09 22:53:23 +02:00
TD-er e901bc957a [HTTP] Command SendToHttp cannot connect
Incorrect check for return value.
As suggested via the [forum](https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=5794&p=31203#p31181)
2018-09-09 21:58:14 +02:00
sakinit e7e10c5305 Reduced buffer size to prevent stack overflow 2018-09-09 19:54:23 +02:00
ESPEasy release bot 466ddfbe88 automatically updated release notes for mega-20180909 2018-09-09 04:00:14 +02:00
Gijs NoorlanderandGitHub c8f02d2a4c Merge pull request #1721 from TD-er/bugfix/wifi_connection_slow_server
[#1720] WiFi read all lines from slow servers
2018-09-08 23:14:33 +02:00
TD-er af1d9b38c9 [Serial log] Use buffer to prevent Serial buffer to overflow
Write the log lines to a std::deque and write that buffer to the serial port without overflow of the Serial buffer.
This flushing is done during background task.
2018-09-08 20:48:29 +02:00
Gijs NoorlanderandGitHub 7294217489 Revert [WDT] Add watchdog feed to backgroundtasks()
See comment: https://github.com/letscontrolit/ESPEasy/issues/1722#issuecomment-419659193
2018-09-08 20:31:16 +02:00
TD-er 208fa8a3aa [ESP32] Fix Build, ESP32 doesn't have the availableForWrite 2018-09-08 18:24:48 +02:00
TD-er b3b8eff127 [Serial Log] Limit serial log to prevent buffer overflow
As suggested here: https://github.com/letscontrolit/ESPEasy/issues/1625#issuecomment-411558353 by @thomastech
2018-09-08 16:19:58 +02:00
TD-er c6a90ab2d0 Add forward declaration for void backgroundtasks() 2018-09-08 16:00:06 +02:00
TD-er e7d28e8576 [#1720] WiFi read all lines from slow servers
See #1720
2018-09-08 15:20:39 +02:00
ESPEasy release bot efa27dc01d automatically updated release notes for mega-20180908 2018-09-08 04:00:20 +02:00
Gijs NoorlanderandGitHub 7c7b81911d Merge pull request #1669 from TD-er/bugfix/buffer_send_controller
Use queue to manage controllers and add timing settings per controller
2018-09-07 23:31:55 +02:00
Gijs NoorlanderandGitHub c2962d7337 Update README.md 2018-09-07 23:30:33 +02:00
TD-er e2e2059ff0 [Queue] Add memory check to determine full queue
Depending on the type of controller, the queued messages can be quite big.
This means the queue limit set can cause the memory to fill up.
This commit adds another check. If the free memory is less than 5000 bytes, it will consider the queue being full.
It will then also log the actual memory usage of the queue.
2018-09-07 22:32:17 +02:00
TD-er 4e95bbef7f [Scheduler] Do not schedule task device timer for tasks without interval
See #1709
2018-09-06 22:21:39 +02:00
TD-er b0a90b5b14 [#1714] Parse notification sender to allow some sender formatting
`bla@bla.com` will be set as `nodename <bla@bla.com>` in the mail header as from part.
`John Doe <bla@bla.com>` will now be used like that in the mail header.  

N.B. `<` is actually the separator, so as long as that character is being used to separate the name and mail address, it will work. (see #1714 )
2018-09-05 23:20:49 +02:00
TD-er c8ac1bbd59 [#1707] Getting logs from the /log even when password is not entered
See #1707
2018-09-05 22:49:38 +02:00
TD-er e6105bfe71 [WDT] Add yield() and runbackgroundtasks() when parsing rules
Rules parsing may take some time, so perform some yields to prevent watchdog triggers.
2018-09-04 22:48:07 +02:00
ESPEasy release bot 1bb8669ed2 automatically updated release notes for mega-20180904 2018-09-04 04:00:34 +02:00
Gijs NoorlanderandGitHub 34f4a9a8e0 Merge pull request #1704 from TD-er/bugfix/duplicate_names_check
[#1702] Check for duplicate names bug
2018-09-04 00:22:30 +02:00
TD-er a517f3471c [#1702] Check for duplicate names bug
Make sure only enabled devices are used for checking. (see #1702)
Do a full erase of the task settings when deleting a plugin. Just to make sure no obsolete settings may corrupt behaviour of new settings.
2018-09-03 21:25:07 +02:00
TD-er f2b4e17e2a [MQTT] Force MQTT client reconnect when wifi reconnects
It looks like the check for `client->connected()` may return false positives.
This means the MQTT client may assume the connection is still active, while it isn't.
2018-09-02 23:01:36 +02:00
TD-er 6f62ba0f9b [Watchdog] Add watchdog feed to backgroundtasks() function
A lot of reports recently about resets by the Hardware Watchdog.
So maybe this timer is not reset as often as before.
2018-09-02 23:01:36 +02:00
TD-er 36c6fd4bf7 [SPIFFS] Add SPIFFS size + usage to sysinfo page 2018-09-02 23:01:36 +02:00
TD-er 4446d76c83 [MQTT] Give MQTT state in log when connect state changes. 2018-09-02 23:01:36 +02:00
TD-er f354b05b07 [Nodes] Fix String copy to properly read node names 2018-09-02 23:01:36 +02:00
TD-er 467df9dde2 [Cleanup] Memory optimisation in available controllers and plugins
These structs to keep track of available plugins and controllers were fixed in size and also the member variables were not ordered in the most optimum way.
Also the name of the nodes always used 26 Bytes and would impose a memory leak when deleted.
2018-09-02 23:01:36 +02:00
TD-er dac243cc82 [Nodes] Highlight current node in the list of nodes 2018-09-02 23:01:36 +02:00
TD-er 3d1be96f8a [Nodes] Make Nodes list a map with dynamic size
Nodes list is now a std::map, which may contain up-to 254 nodes (1...254), since 255 is reserved for broadcast and 0 for "all known".
2018-09-02 23:01:36 +02:00
TD-er 0dd53e38d7 [C013] Remove some obsolete function
`C013_Send` did actually only call another function and some other bogus object loading without using the data.
2018-09-02 23:01:36 +02:00
TD-er df6338dfee [C012] Controller C012 now also uses Delay Queue 2018-09-02 23:01:36 +02:00
TD-er 1bab99de40 [Controller] Moved the 'magic' default and max values to defines
The Max and Default values for the Controller Delay Queue are now set in the `ESPEasy-Globals.h` file.
2018-09-02 23:01:36 +02:00
TD-er ec44efb59f [C011] Controller C011 now also uses Delay Queue
And some code cleanup of shared code in C001 and C003.
Also fixed an issue in C011, where the result was not returned when sending a value.
2018-09-02 23:01:36 +02:00
TD-er 202a6fd1f7 [Cleanup] Merge code duplication between C008 and C010
Both use the same Queue Element class.
2018-09-02 23:01:36 +02:00
TD-er dc7828d343 [C010] Controller C010 now also uses Delay Queue 2018-09-02 23:01:36 +02:00
TD-er 5c92731b41 [HTTP] Add user agent in request header
Should make this optional later
2018-09-02 23:01:36 +02:00
TD-er 8c34067d9c [HTTP Auth] Now using proper index for retrieving credentials
I was using the controller number and not the controller index to get the user credentials.
Should now work for FHEM.
2018-09-02 23:01:36 +02:00
TD-er 92025249fc [C009] Remove 'no port' option in HTTP packet
As tested by @clumsy-stefan, it didn't make a difference.
2018-09-02 23:01:36 +02:00
TD-er dd5b5bb7c3 [Client Connect] Check for success on connecting with client.
In case of domain name resolution error result can be negative.
See [Dns.cpp](https://github.com/esp8266/Arduino/blob/18f643c7e2d6a0da9d26ff2b14c94e6536ab78c1/libraries/Ethernet/src/Dns.cpp#L44)

Thus must match the result with 1.
2018-09-02 23:01:36 +02:00
TD-er 03bc2f34f6 [C009] Controller C009 now also uses Delay Queue
Also fixed an issue where sending some value to a controller would fail when the buffer is full and the settings set to "Delete Oldest".
2018-09-02 23:01:36 +02:00
TD-er a19b59e184 [C009] Removed port number from HTTP host header
As suggested here: https://github.com/letscontrolit/ESPEasy/pull/1669#issuecomment-414434578
This plugin is not using the Queue yet, but only had some duplicate code moved to a helper class.
I now removed the port number from the HTTP header, since I am not really sure if the standard demands it or only for the connect part.
Also changed the HTTP command to use the code that has the port in the header, just to check if that will break now compared to older builds.
2018-09-02 23:01:36 +02:00
TD-er 861bc64ce3 [#1666] Moved code duplication for HTTP requests to special functions
The controller source files are now much cleaner and all use the same code.
So it is easier to fix issues and add features and checks.
2018-09-02 23:01:36 +02:00
TD-er 7428b03e18 [C008] Let C008 use queue and some bugfixes
Also added statistics
And some optimizations
2018-09-02 23:01:36 +02:00
TD-er 54a6ecac7d [Webserver] Add fields for new Controller settings
Make sure all new settings are configurable for all controllers.
2018-09-02 23:01:36 +02:00
TD-er ec4aa627bb [MQTT] Use set controller settings on MQTT controllers 2018-09-02 23:01:36 +02:00
TD-er 0dc47bc04c [C007] Let C007 controller use queue 2018-09-02 23:01:36 +02:00
TD-er 5f029c59d2 Added USES_Cxxx checks
functions may not be mentioned in the scheduler when the controller is not included in the build.
2018-09-02 23:01:36 +02:00
TD-er 8beeeaf7fa [C004] Let C004 controller use queue and simplify using macros
Added some simplifications to the code by creating one big macro in `_CPlugin_Helper.h` that does all the work and defines.
This will reduce the chance of typo errors a lot.
2018-09-02 23:01:36 +02:00
TD-er 293b63e654 [C003] Let C003 controller use queue 2018-09-02 23:01:36 +02:00
TD-er 734150e87b [C001] Let C001 controller use queue 2018-09-02 23:01:36 +02:00
TD-er 6bb1b4086c [Controller] Make ControllerDelayHandler templated and comment
Added recognisable comments throughout the `ESPEasy-Globals.h` file and made ControllerDelayHandler templated to be used for other controllers to use.
2018-09-02 23:01:36 +02:00
TD-er 9cd2d2d843 [MQTT] Add controller delay queue for MQTT
MQTT messages are queued and processed at set pace to not overload the broker.

N.B. other controllers still need a similar queue to process. Current interval for those is now probably too low.

Also initial queue parameters must still be corrected when set to 0.
2018-09-02 23:01:36 +02:00
TD-er 02c022d7d5 [controller delay] Let controllers handle their own delay and buffer 2018-09-02 23:01:36 +02:00
svmac 5511ee9f38 fix mistake 2018-08-15 05:22:27 +02:00
svmac 427a22d23b some code optimization 2018-08-15 04:54:29 +02:00
svmac d271898968 reenabled code about ! 2018-08-14 03:52:29 +02:00
svmac 4051f0bd2e Fix elseif & Add if-elseif-else nesting levels
- The implementation of elseif is not correct. See this example:

Rule:
On SYSVAL do
if %syssec% < 10
publish %sysname%/IP,%ip%
elseif %syssec% < 20
publish %sysname%/Uptime/min,%uptime%
elseif %syssec% < 30
publish %sysname%/Systime/time,%systime%
elseif %syssec% < 40
publish %sysname%/RSSI/dB,%rssi%
elseif %syssec% < 50
publish %sysname%/Sunrise/time,%sunrise%
else
publish %sysname%/Sunset/time,%sunset-30m%
endif
endon

Result:
109360661 : EVENT: SYSVAL
109360668 : [if 11 < 10]=false
109360675 : [elseif 11 < 20]=true //THIS IS CORRECT
109360677 : ACT : publish Wemos51/Uptime/min,1823
109360686 : Command: publish
109360692 : [elseif 11 < 30]=false
109360697 : [elseif 11 < 40]=false
109360703 : [elseif 11 < 50]=false
109360705 : ReplacementString SunTime: %sunrise% offset: 0
109360708 : else = true //THIS IS NOT CORRECT
109360710 : ReplacementString SunTime: %sunset-30m% offset: -1800
109360712 : ACT : publish Wemos51/Sunset/time,20:46
109360723 : Command: publish
109360729 : EVENT: SYSVAL Processing time:68 milliSeconds

- Added also nesting levels to if-elseif-else clausules define in RULES_IF_MAX_NESTING_LEVEL declaration. Example:

Rule:
On SYSVAL do
if %eventvalue% > 1
publish %sysname%/Sunrise/time,%sunrise+1h%
else
if %syssec% < 10
publish %sysname%/IP,%ip%
elseif %syssec% < 20
publish %sysname%/Uptime/min,%uptime%
elseif %syssec% < 30
publish %sysname%/Systime/time,%systime%
elseif %syssec% < 40
publish %sysname%/eventvalue,%eventvalue%
elseif %syssec% < 50
publish %sysname%/Sunrise/time,%sunrise%
else
publish %sysname%/Sunset/time,%sunset-30m%
endif
endif
endon

Result:
>event,SYSVAL=-5
4977875 : Command: event
4977876 : EVENT: SYSVAL=-5
4977883 : Lev.1: [if -5 > 1]=false
4977886 : ReplacementString SunTime: %sunrise+1h% offset: 3600
4977889 : Lev.1: [else]=true
4977893 : Lev.2: [if 30 < 10]=false
4977900 : Lev.2: [elseif 30 < 20]=false
4977906 : Lev.2: [elseif 30 < 30]=false
4977913 : Lev.2: [elseif 30 < 40]=true
4977916 : ACT : publish Wemos49/eventvalue,-5
4977932 : ReplacementString SunTime: %sunrise% offset: 0
4977935 : Lev.2: [else]=false
4977938 : ReplacementString SunTime: %sunset-30m% offset: -1800
4977944 : EVENT: SYSVAL=-5 Processing time:67 milliSeconds

- Finally, the substitution of %eventvalue% is done earlier so that it can be used in if sentence too.
2018-08-11 16:51:56 +02:00
James TuttonandGitHub 60925778c6 Fixed missing ;
Fixed missing ;
2018-07-30 14:19:56 +01:00
James TuttonandGitHub 15233bf100 Added Special Case to allow Servo to be disabled
Servo Motors by default forcefully hold the desired position.  This consumes power.  In some cases for example to turn a value or open a latch once the position is set  there may be no need to hold the new position.  With this update users can pass a special case value above >9000 which is out of normal range 0-180 or 365. when this value is passed the servo is detached and is free to move.
2018-07-30 14:10:22 +01:00
1626 changed files with 172197 additions and 44933 deletions
+23
View File
@@ -1,3 +1,25 @@
### Checklist
- [ ] The title of this issue is "to the point" and descriptive.
- [ ] This issue describes what is happening.
- [ ] This issue describes what components are affected (e.g. name of plugin/controller)
- [ ] This issue describes how to reproduce it.
- [ ] This issue describes when it was introduced (when known) and what version is now showing the problem.
### I have...
- [ ] searched the [issue tracker](https://github.com/letscontrolit/ESPEasy/issues) or the [forum](https://www.letscontrolit.com/forum/viewforum.php?f=1) for a similar issue. (include links when applicable)
- [ ] entered a system description using "Copy info to clipboard" on the sysinfo page. (when possible)
- [ ] entered the full filename of the used version (e.g. `ESP_Easy_mega-20181001_test_ESP8266_4096_VCC.bin` )
- [ ] given a list of active plugins or controllers when applicable.
- [ ] filled out all applicable fields below.
### Steps already tried...
- [ ] Tried a clean install (empty `.bin` files are included in the ZIP)
- [ ] Tested previous/other build (mention which one already tested)
- [ ] Tested on other node to make sure hardware isn't defective.
- [ ] Verified if the problem is limited to a single plugin/controller
### If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS! ###
<!--- If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS! --->
<!--- NOTE: This is not a support forum! For questions and support go here: --->
@@ -5,6 +27,7 @@
<!--- Remove topics that are not applicable to your feature request of issue --->
<!--- Remember to have a "to the point" TITLE --->
### Summarize of the problem/feature request
<!--- Describe the problem or feature request --->
YOUR TEXT GOES HERE
+20
View File
@@ -12,9 +12,29 @@
.clang_complete
.gcc-flags.json
.piolibdeps
pre_extra_script.py
## Project #####################
lib/readme.txt
src/Custom.h
/ESPEasy
test/output_export.cpp
.vscode
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
src/ESPEasy.ino.cpp
docs/build/
\.pio/
docs/source/_build/
venv/
.idea/
tools/vagrant/.vagrant/
tools/vagrant/build/
+8 -9
View File
@@ -18,23 +18,22 @@ addons:
apt:
packages:
- cppcheck
- binutils
install:
- pip install -U platformio
- pip install -U platformio sphinx recommonmark sphinx_bootstrap_theme
script:
# - cppcheck --enable=warning src/*.ino -q --force -I src --include=src/ESPEasy.ino --error-exitcode=1
# - ./memanalyzer.py ~/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-objdump
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run
- platformio update
# patch platformio core libs for PUYA bug (https://github.com/letscontrolit/ESPEasy/issues/650)
- cd patches; ./check_puya_patch; cd ..
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -s --environment dev_ESP8266PUYA_1024
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run -s --environment dev_ESP8266PUYA_1024
# - bash ./preflight.sh # make sure input files are OK before wasting time with prereqs
# - cppcheck --enable=warning src/*.ino -q --force -I src --include=src/ESPEasy.ino --error-exitcode=1
# - ./memanalyzer.py ~/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-objdump
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run --target clean
- PLATFORMIO_BUILD_FLAGS="-D CONTINUOUS_INTEGRATION" platformio run
before_deploy:
- ./before_deploy
+18 -17
View File
@@ -1,16 +1,17 @@
|Latest Nightly | Build Status | Downloads | Docs | Patreon | Ko-Fi | PayPal |
|-------|-------|-------|-------|-------|-------|-------|
| [![GitHub version](https://img.shields.io/github/release/letscontrolit/ESPEasy/all.svg)](https://github.com/letscontrolit/ESPEasy/releases/latest) | [![Build Status](https://travis-ci.org/letscontrolit/ESPEasy.svg?branch=mega)](https://travis-ci.org/letscontrolit/ESPEasy) | [![Downloads](https://img.shields.io/github/downloads/letscontrolit/ESPEasy/total.svg)](https://github.com/letscontrolit/ESPEasy/releases) | [![Documentation Status](https://readthedocs.org/projects/espeasy/badge/?version=latest)](https://espeasy.readthedocs.io/en/latest/?badge=latest) | [![donate](https://img.shields.io/badge/donate-Patreon-blue.svg)](https://www.patreon.com/GrovkillenTDer) | [![donate](https://img.shields.io/badge/donate-KoFi-blue.svg)](https://ko-fi.com/grovkillentder) | [![donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://www.paypal.me/espeasy) |
For ways to *support* us, see [this announcement on the forum](https://www.letscontrolit.com/forum/viewtopic.php?f=14&t=5787), or have a look at the [Patreon](https://www.patreon.com/GrovkillenTDer), [Ko-Fi](https://ko-fi.com/grovkillentder) or [PayPal](https://www.paypal.me/espeasy) links above.
# ESPEasy (development branch)
Badge | Info |
-------|-------|
[![Build Status](https://travis-ci.org/letscontrolit/ESPEasy.svg?branch=mega)](https://travis-ci.org/letscontrolit/ESPEasy) | build status |
[![GitHub version](https://img.shields.io/github/release/letscontrolit/ESPEasy/all.svg)](https://github.com/letscontrolit/ESPEasy/releases/latest) | latest nightly |
Introduction and wiki: https://www.letscontrolit.com/wiki/index.php/ESPEasy#Introduction
**MEGA**
:warning:This is the development branch of ESPEasy. All new untested features go into this branch. If you want to do a bugfix, do it on the stable branch, we will merge the fix to the development branch as well.:warning:
Next stable branch: https://github.com/letscontrolit/ESPEasy/tree/v2.0 (bug fixes only, since oct 2017))
Check here to learn how to use this branch and help us improving ESPEasy: http://www.letscontrolit.com/wiki/index.php/ESPEasy#Source_code_development
@@ -19,24 +20,24 @@ Check here to learn how to use this branch and help us improving ESPEasy: http:/
Every night our build-bot will build a new binary release: https://github.com/letscontrolit/ESPEasy/releases
The releases are named something like 'mega-20180102' (last number is the build date)
The releases are named something like 'mega-20190225' (last number is the build date)
Depending on your needs, we release different types of files:
Firmware name | Hardware | Included plugins |
----------------------------------------------|-------------------------|-----------------------------|
ESPEasy_mega-20180102_normal_ESP8266_1024.bin | ESP8266 with 1Mb flash | Stable |
ESPEasy_mega-20180102_test_ESP8266_1024.bin | ESP8266 with 1Mb flash | Stable + Test |
ESPEasy_mega-20180102_dev_ESP8266_1024.bin | ESP8266 with 1Mb flash | Stable + Test + Development |
ESPEasy_mega-20180102_normal_ESP8266_4096.bin | ESP8266 with 4Mb flash | Stable |
ESPEasy_mega-20180102_test_ESP8266_4096.bin | ESP8266 with 4Mb flash | Stable + Test |
ESPEasy_mega-20180102_dev_ESP8266_4096.bin | ESP8266 with 4Mb flash | Stable + Test + Development |
ESPEasy_mega-20180102_normal_ESP8285_1024.bin | ESP8285 with 1Mb flash | Stable |
ESPEasy_mega-20180102_test_ESP8285_1024.bin | ESP8285 with 1Mb flash | Stable + Test |
ESPEasy_mega-20180102_dev_ESP8285_1024.bin | ESP8285 with 1Mb flash | Stable + Test + Development |
ESPEasy_mega-20190225_normal_ESP8266_1M.bin | ESP8266 with 1MB flash | Stable |
ESPEasy_mega-20190225_test_ESP8266_1M.bin | ESP8266 with 1MB flash | Stable + Test |
ESPEasy_mega-20190225_dev_ESP8266_1M.bin | ESP8266 with 1MB flash | Stable + Test + Development |
ESPEasy_mega-20190225_normal_ESP8266_4M.bin | ESP8266 with 4MB flash | Stable |
ESPEasy_mega-20190225_test_ESP8266_4M.bin | ESP8266 with 4MB flash | Stable + Test |
ESPEasy_mega-20190225_dev_ESP8266_4M.bin | ESP8266 with 4MB flash | Stable + Test + Development |
ESPEasy_mega-20190225_normal_ESP8285_1M.bin | ESP8285 with 1MB flash | Stable |
ESPEasy_mega-20190225_test_ESP8285_1M.bin | ESP8285 with 1MB flash | Stable + Test |
ESPEasy_mega-20190225_dev_ESP8285_1M.bin | ESP8285 with 1MB flash | Stable + Test + Development |
## More info
Details and discussion are on the Experimental forum: https://www.letscontrolit.com/forum/viewforum.php?f=18
Details and discussion are on the "Experimental" section of the forum: https://www.letscontrolit.com/forum/viewforum.php?f=18
We're also on IRC: #ESPEasy @freenode
Automated builds of the (new) documentation can be found at [ESPEasy.readthedocs.io](https://espeasy.readthedocs.io/en/latest/)
+120 -30
View File
@@ -1,47 +1,137 @@
#!/bin/bash
VERSION=$(git describe)
TMP_DIST=`mktemp -d`
CURPATH=`pwd`
# PIO 3.x :
# BINARY_PATH=".pioenvs"
# PIO 4.0 and newer:
BINARY_PATH=".pio/build"
while getopts d: option
do
case "${option}"
in
d) VERSION=${OPTARG};;
esac
done
if [ ! -d ${TMP_DIST} ]; then
# Could not create temp dir, so exit
exit 1
fi
#Naming convention:
# ESP_Easy_[github version]_[plugin set]_[chip type]_[flash memory].bin
mkdir -p ${TMP_DIST}
cp -r dist/* ${TMP_DIST}/
if [ -d "docs/build" ]; then
# Docs have been created
mkdir -p ${TMP_DIST}/docs
cp -r docs/build/* ${TMP_DIST}/docs/
fi
mkdir -p ${TMP_DIST}/memstats
for ENV in \
normal_ESP8266_1024 \
normal_ESP8266_4096 \
normal_ESP8285_1024 \
normal_IR_ESP8266_4096 \
test_ESP8266_1024\
test_ESP8266_4096\
test_ESP8266_4096_VCC\
test_ESP8285_1024\
dev_ESP8266_1024\
dev_ESP8266_4096\
dev_ESP8285_1024\
dev_ESP8266PUYA_1024\
dev_ESP8266PUYA_1024_VCC\
hard_SONOFF_POW\
hard_Shelly_1\
esp32dev;\
custom_ESP8266_4M1M\
dev_ESP8266_4M1M\
esp-wrover-kit_test_1M8_partition\
esp32test_1M8_partition\
hard_SONOFF_POW_4M1M\
hard_Ventus_W266\
hard_core_252_SONOFF_POW_4M1M\
hard_core_252_Shelly_1_2M256\
hard_core_252_other_POW_ESP8285_1M\
hard_other_POW_ESP8285_1M\
minimal_IRext_ESP8266_1M\
minimal_IRext_ESP8266_4M1M\
minimal_IRext_ESP8266_4M2M\
minimal_core_242_ESP8266_1M_OTA\
minimal_core_242_ESP8285_1M_OTA\
minimal_core_252_ESP8266_1M_OTA\
minimal_core_252_ESP8285_1M_OTA\
normal_ESP8266_1M\
normal_ESP8266_1M_VCC\
normal_ESP8266_4M1M\
normal_ESP8285_1M\
normal_WROOM02_2M\
normal_core_241_ESP8266_1M\
normal_core_241_ESP8266_4M1M\
normal_core_242_ESP8266_1M\
normal_core_252_ESP8266_16M\
normal_core_252_ESP8266_1M\
normal_core_252_ESP8266_4M1M\
normal_core_252_WROOM02_2M256\
normal_core_260_sdk222_alpha_ESP8266_16M\
normal_core_260_sdk222_alpha_ESP8266_4M1M\
test_ESP8266_4M_VCC\
test_core_242_ESP8266_4M1M\
test_core_252_ESP8266_16M\
test_core_252_ESP8266_4M1M\
test_core_260_sdk222_alpha_ESP8266_16M\
test_core_260_sdk222_alpha_ESP8266_4M1M\
test_core_260_sdk3_alpha_ESP8266_16M\
test_core_260_sdk3_alpha_ESP8266_4M1M;\
do
echo
echo "### Deploying environment $ENV for version $VERSION"
BIN=.pioenvs/${ENV}/ESP_Easy_${VERSION}_${ENV}.bin
cp .pioenvs/${ENV}/firmware.bin $BIN
python2 crc2.py $BIN
mv $BIN "dist/ESP_Easy_${VERSION}_${ENV}.bin"
MAX_FILESIZE=1044464
if [[ ${ENV} == *"1M"* ]]; then
# max 871 kiB
MAX_FILESIZE=892912
fi
if [[ ${ENV} == *"1M_OTA"* ]]; then
# max 602 kiB
MAX_FILESIZE=616448
fi
if [[ ${ENV} == *"esp32"* ]]; then
MAX_FILESIZE=1310720
fi
if [[ ${ENV} == *"1M8_partition"* ]]; then
MAX_FILESIZE=1900544
fi
FIRMWARE_BIN=`echo "${BINARY_PATH}/${ENV}/firmware.bin"`
if [ -f $FIRMWARE_BIN ]; then
FILESIZE=$(stat -c%s `echo "${FIRMWARE_BIN}"` )
if (( FILESIZE < MAX_FILESIZE )); then
echo
echo "### Deploying environment $ENV for version $VERSION"
BIN=${BINARY_PATH}/${ENV}/ESP_Easy_${VERSION}_${ENV}.bin
cp ${FIRMWARE_BIN} $BIN
python2 crc2.py $BIN
mv $BIN "${TMP_DIST}/bin/ESP_Easy_${VERSION}_${ENV}.bin"
else
echo "Build too large for $ENV $FILESIZE > $MAX_FILESIZE "
fi
fi
ELFFILE=`echo "${BINARY_PATH}/${ENV}/firmware.elf"`
if [ -f $ELFFILE ]; then
SYMBOLS_STATS=`echo "${TMP_DIST}/memstats/symbols_${ENV}.txt"`
STRINGS_STATS=`echo "${TMP_DIST}/memstats/strings_${ENV}.txt"`
readelf -a ${ELFFILE} |grep 3ff |sort -n -k 3 > ${SYMBOLS_STATS}
objdump -s -j .rodata ${ELFFILE} > ${STRINGS_STATS}
fi
done
#create a source structure that is the same as the original ESPEasy project (and works with the howto on the wiki)
rm -rf dist/Source 2>/dev/null
mkdir dist/Source
cp -r lib dist/Source/
cp -r src dist/Source/
cp platformio.ini dist/Source/
#rm -rf dist/Source 2>/dev/null
cd dist
mkdir -p ${TMP_DIST}/source
cp -r lib ${TMP_DIST}/source/
cp -r src ${TMP_DIST}/source/
cp platformio.ini ${TMP_DIST}/source/
cd ${TMP_DIST}
echo
echo "### Creating zip archive"
zip ../ESPEasy_$VERSION.zip -r .
zip -qq ${CURPATH}/ESPEasy_$VERSION.zip -r .
rm -Rf ${TMP_DIST}/* 2>/dev/null
rmdir ${TMP_DIST}
BIN
View File
Binary file not shown.
-63
View File
@@ -1,63 +0,0 @@
plugin |cache IRAM |init RAM |r.o. RAM |uninit RAM |Flash ROM
src/_C001.ino |0 |0 |272 |0 |3520
src/_C002.ino |0 |4 |528 |32 |6064
src/_C003.ino |0 |0 |64 |0 |1072
src/_C004.ino |0 |0 |56 |8 |1280
src/_C005.ino |0 |4 |56 |8 |1424
src/_C006.ino |0 |0 |64 |0 |1296
src/_C007.ino |0 |4 |32 |0 |1664
src/_C008.ino |0 |0 |80 |0 |2272
src/_C009.ino |0 |4 |352 |16 |4896
src/_C010.ino |0 |0 |48 |0 |1136
src/_C011.ino |0 |0 |152 |8 |5248
src/_N001_Email.ino |0 |0 |72 |8 |1808
src/_N002_Buzzer.ino |288 |12 |8 |264 |1184
src/_P001_Switch.ino |1028 |8 |104 |280 |7248
src/_P002_ADC.ino |0 |0 |16 |0 |336
src/_P003_Pulse.ino |167 |0 |144 |192 |2544
src/_P004_Dallas.ino |0 |0 |64 |16 |2496
src/_P005_DHT.ino |0 |0 |56 |8 |1520
src/_P006_BMP085.ino |0 |4 |48 |8 |2112
src/_P007_PCF8591.ino |0 |0 |8 |8 |400
src/_P008_RFID.ino |101 |0 |56 |8 |624
src/_P009_MCP.ino |0 |0 |104 |24 |3232
src/_P010_BH1750.ino |0 |0 |56 |8 |2688
src/_P011_PME.ino |0 |4 |96 |0 |3040
src/_P012_LCD.ino |0 |4 |120 |8 |3520
src/_P013_HCSR04.ino |90 |0 |64 |16 |1552
src/_P014_SI7021.ino |0 |4 |48 |0 |1824
src/_P015_TSL2561.ino |0 |0 |56 |8 |3488
src/_P016_IR.ino |288 |0 |72 |480 |3600
src/_P017_PN532.ino |0 |0 |88 |72 |2016
src/_P018_Dust.ino |0 |0 |56 |8 |512
src/_P019_PCF8574.ino |0 |0 |104 |24 |2848
src/_P020_Ser2Net.ino |0 |0 |88 |40 |3456
src/_P021_Level.ino |0 |4 |136 |24 |1872
src/_P022_PCA9685.ino |0 |4 |32 |0 |1216
src/_P023_OLED.ino |0 |4 |80 |0 |4448
src/_P024_MLX90614.ino |0 |4 |56 |8 |992
src/_P025_ADS1115.ino |0 |0 |72 |8 |1184
src/_P026_Sysinfo.ino |0 |0 |72 |8 |864
src/_P027_INA219.ino |0 |0 |56 |24 |1840
src/_P028_BME280.ino |128 |0 |48 |80 |3488
src/_P029_Output.ino |0 |4 |8 |8 |256
src/_P030_BMP280.ino |128 |0 |48 |48 |3024
src/_P031_SHT1X.ino |0 |0 |100 |0 |2176
src/_P032_MS5611.ino |0 |4 |88 |56 |2592
src/_P033_Dummy.ino |0 |4 |48 |0 |1168
src/_P034_DHT12.ino |0 |0 |16 |0 |656
src/_P035_IRTX.ino |0 |4 |64 |-8 |3840
src/_P036_FrameOLED.ino |0 |4 |96 |0 |33600
src/_P037_MQTTImport.ino |0 |0 |24 |40 |3536
src/_P038_NeoPixel.ino |128 |0 |56 |8 |1712
src/_P039_Thermocouple.ino |0 |0 |104 |8 |1536
src/_P040_ID12.ino |0 |4 |72 |8 |640
src/_P041_NeoClock.ino |128 |4 |128 |0 |3344
src/_P042_Candle.ino |128 |8 |160 |32 |8048
src/_P043_ClkOutput.ino |0 |0 |80 |0 |1456
src/_P044_P1WifiGateway.ino |0 |0 |80 |64 |4032
src/_P045_MPU6050.ino |0 |4 |216 |72 |4496
src/_P046_VentusW266.ino |325 |4 |184 |88 |3920
src/_P047_i2c-soil-moisture-so|0 |4 |216 |8 |2144
src/_P048_Motorshield_v2.ino |0 |32 |208 |0 |5952
src/_P049_MHZ19.ino |380 |80 |184 |88 |3792
+86
View File
@@ -0,0 +1,86 @@
_____ ____ ____
| ____/ ___|| _ \ ___ __ _ ___ _ _
| _| \___ \| |_) / _ \/ _` / __| | | |
| |___ ___) | __/ __/ (_| \__ \ |_| |
|_____|____/|_| \___|\__,_|___/\__, |
|___/
This is the distribution folder for ESPeasy.
In here you will find a flash tool to program the ESP module.
Also a number of binary images is included.
The filename is quite descriptive:
ESP_Easy_mega-<date>_<buildType>_<chip>_<memorySize>.bin
Build type can be: (differ in included plugins)
- normal => Only Stable plugins and controllers
- test => Stable + Testing
- dev => Stable + Testing + Development
There is also a number of special builds:
- normal_IR => "Normal" + IR receiver/transmitter plugins and library
- hard_xxxxx => Special builds for some off-the-shelf hardware.
- minimal_ESP82xx_1M_OTA => Minimum number of plugins and a limited set of controllers included to be able to perform a 2-step OTA on 1 MB flash nodes.
- normal_core_241 => "Normal" using core 2.4.1, since 2.4.2 has issues with PWM
- xxx_core_260_sdk2_alpha -> core 2.6.0 alpha version (under development) using SDK 2.2.1
- xxx_core_260_sdk222_alpha -> core 2.6.0 alpha version (under development) using SDK 2.2.2
- xxx_core_260_sdk3_alpha -> core 2.6.0 alpha version (under development) using SDK 3.0.0-dev (under development too)
Chip can be:
- ESP8266 => Most likely option
- ESP8285 => Used in some Sonoff modules
- ESP32 => Experimental support at this moment
MemorySize can be:
- 1M => 1 MB flash modules (e.g. almost all Sonoff modules)
- 2M => 2 MB flash modules (e.g. Shelly1/WROOM02)
- 4M => 4 MB flash modules (e.g. NodeMCU/ESP32)
- 16M => 16 MB flash modules (e.g. Wemos D1 mini pro)
Please note that the performance of 14MB SPIFFS (16M flash modules) is really slow.
All file access takes a lot longer and since the settings are also read from flash, the entire node will perform slower.
See [Arduino issue - SPIFFS file access slow on 16/14M flash config](https://github.com/esp8266/Arduino/issues/5932)
If these speed issues will be fixed, it is very likely the SPIFFS must then be re-partitioned, thus loosing all data in the SPIFFS.
Special memory partitioning:
- 2M256 => 2 MB flash modules (e.g. Shelly1/WROOM02) with 256k SPIFFS (only core 2.5.0 or newer)
- 1M8_partition => For ESP32 with 4MB flash, sketch size is set to 1.8 MByte (default: 1.4 MByte)
ESP32 now has 3 builds:
- esp32dev Using the default partition layout (1.4 MB for the sketch)
- esp32test_1M8_partition Larger sketch partition (1.8MB) smaller SPIFFS (316 kB)
- esp-wrover-kit_test_1M8_partition A build for ESP32 including build flags for the official WRover test kit.
Please note that changing between those versions will destroy the settings!
The SPIFFS partition will be lost and that contains all settings.
To help recover from a bad flash, there are also blank images included.
- blank_1MB.bin
- blank_2MB.bin
- blank_4MB.bin
- blank_16MB.bin
When the wrong image is flashed, or the module behaves unstable, or is in a reboot loop,
flash these images first and then the right image for the module.
ESP.Easy.Flasher.exe...
... is the new flashing tool for ESP Easy. You need to run it in elevated mode (as admin)
for it to fetch the COM ports correctly. If you want you may save YOUR settings using the
"Save as default settings" button in the lower left corner. If the window is too big or
too small you can experiment with the "Pixels Per Inch" variable in the
..\Settings\Default.ini file. Setting it to =96 is working for most users but the
application will try to find the most optimal value by default. Sometimes it fails to
do that. More information about the tool is found here:
https://github.com/Grovkillen/ESP_Easy_Flasher
You can also have custom serial commands entered in a txt file. One command per line.
Further reading:
For more information, see: https://github.com/letscontrolit/ESPEasy
Or our forum: https://www.letscontrolit.com/forum/
+2414 -1
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+19
View File
@@ -0,0 +1,19 @@
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+34
View File
@@ -0,0 +1,34 @@
{"ESP_Easy_info":[
{
"MessageTitle":"Please support us",
"MessageBody":"We are in need for support. Currently we need to do a whole lot of consulting to keep us floating. If we could get funding for at least 50% of our time we could make a lot more than with our current 10-15%. Ideal would be 100% funding but we're realistic :) <br><br>We will add extra goodies for those who support us through monthly payments using Patreon.<br><br><br>Thanks for your support (from TD-er and Grovkillen)!",
"MessagePicture":"",
"MessageWriter":"Grovkillen",
"MessageColorBG":"",
"MessageColorFont":"",
"MessageDate":"2019-01-07",
"MessageType":"general",
"MessageLink1text":"Patreon",
"MessageLink1":"",
"MessageLink2text":"Ko-Fi",
"MessageLink2":"",
"MessageLink3text":"Paypal",
"MessageLink3":""
},{
"MessageTitle":"First announcement test",
"MessageBody":"We're planning on using the ESP Easy Flasher to push announcements to the users. Hopefully this will work out good and make more people aware of how things are evolving. This will be used as a channel for pretty much anything regarding the prject. Thanks for your support!",
"MessagePicture":"",
"MessageWriter":"Grovkillen",
"MessageColorBG":"",
"MessageColorFont":"",
"MessageDate":"2019-01-06",
"MessageType":"mega",
"MessageLink1text":"",
"MessageLink1":"",
"MessageLink2text":"",
"MessageLink2":"",
"MessageLink3text":"",
"MessageLink3":""
}
]
}
+35
View File
@@ -0,0 +1,35 @@
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd
+3
View File
@@ -0,0 +1,3 @@
recommonmark==0.4.0
Sphinx==1.8.4
sphinx-bootstrap-theme==0.6.5
+22
View File
@@ -0,0 +1,22 @@
These scripts are used to render screenshots of the GUI.
We use phantomJS (available on Win/Mac/Linux http://phantomjs.org/quick-start.html)
and you control the script by passing arguments to the JavaScript files:
########## rasterize.js ##########
argument1: url (ampersand & need to be closed with "&")
argument2: output file name (you can use .png or .pdf as output format)
argument3: horisontalXvertical size (OPTIONAL)
argument4: zoom ("entire page" or "window" or <value> OPTIONAL)
....Example CLI....
phantomjs rasterize.js http://95.143.204.227/devices?index=1"&"page=1 P001_Setup_Switch_1.png
or
phantomjs rasterize.js http://95.143.204.227/devices?index=1"&"page=1 P001_Setup_Switch_1.png 1200px 2
WE USE THE SECOND EXAMPLE by default (you might need to change zoomFactor if the page is too big).
If the rendering is not working you can use this CLI (arg --debug=true):
phantomjs --debug=true rasterize.js http://95.143.204.227/devices?index=1"&"page=1 P001_Setup_Switch_1.png 1200px 2
+52
View File
@@ -0,0 +1,52 @@
//removed use strict GROVKILLEN
var page = require('webpage').create(),
system = require('system'),
address, output, size;
if (system.args.length < 3 || system.args.length > 5) {
console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]');
console.log(' image (png/jpg output) examples: "1920px" entire page, window width 1920px');
console.log(' "800px*600px" window, clipped to 800x600');
phantom.exit(1);
} else {
address = system.args[1];
output = system.args[2];
page.viewportSize = { width: 600, height: 600 };
if (system.args.length > 3 && system.args[2].substr(-4) === ".pdf") {
size = system.args[3].split('*');
page.paperSize = size.length === 2 ? { width: size[0], height: size[1], margin: '0px' }
: { format: system.args[3], orientation: 'portrait', margin: '1cm' };
} else if (system.args.length > 3 && system.args[3].substr(-2) === "px") {
size = system.args[3].split('*');
if (size.length === 2) {
pageWidth = parseInt(size[0], 10);
pageHeight = parseInt(size[1], 10);
page.viewportSize = { width: pageWidth, height: pageHeight };
page.clipRect = { top: 0, left: 0, width: pageWidth, height: pageHeight };
} else {
console.log("size:", system.args[3]);
pageWidth = parseInt(system.args[3], 10);
pageHeight = parseInt(pageWidth * 3/4, 10); // it's as good an assumption as any
console.log ("pageHeight:",pageHeight);
page.viewportSize = { width: pageWidth, height: pageHeight };
}
}
if (system.args.length > 4) {
page.zoomFactor = system.args[4];
}
page.open(address, function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit(1);
} else {
window.setTimeout(function () {
//This is injected because of bug in phantomjs (rendering black background: http://phantomjs.org/tips-and-tricks.html) GROVKILLEN
page.evaluate(function() {
document.body.bgColor = 'white';
});
page.render(output);
phantom.exit();
}, 200);
}
});
}
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C001_page:
|C001_typename|
==================================================
|C001_shortinfo|
Controller details
------------------
Type: |C001_type|
Name: |C001_name|
Status: |C001_status|
GitHub: |C001_github|_
Maintainer: |C001_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C002_page:
|C002_typename|
==================================================
|C002_shortinfo|
Controller details
------------------
Type: |C002_type|
Name: |C002_name|
Status: |C002_status|
GitHub: |C002_github|_
Maintainer: |C002_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C003_page:
|C003_typename|
==================================================
|C003_shortinfo|
Controller details
------------------
Type: |C003_type|
Name: |C003_name|
Status: |C003_status|
GitHub: |C003_github|_
Maintainer: |C003_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C004_page:
|C004_typename|
==================================================
|C004_shortinfo|
Controller details
------------------
Type: |C004_type|
Name: |C004_name|
Status: |C004_status|
GitHub: |C004_github|_
Maintainer: |C004_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C005_page:
|C005_typename|
==================================================
|C005_shortinfo|
Controller details
------------------
Type: |C005_type|
Name: |C005_name|
Status: |C005_status|
GitHub: |C005_github|_
Maintainer: |C005_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C006_page:
|C006_typename|
==================================================
|C006_shortinfo|
Controller details
------------------
Type: |C006_type|
Name: |C006_name|
Status: |C006_status|
GitHub: |C006_github|_
Maintainer: |C006_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C007_page:
|C007_typename|
==================================================
|C007_shortinfo|
Controller details
------------------
Type: |C007_type|
Name: |C007_name|
Status: |C007_status|
GitHub: |C007_github|_
Maintainer: |C007_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C008_page:
|C008_typename|
==================================================
|C008_shortinfo|
Controller details
------------------
Type: |C008_type|
Name: |C008_name|
Status: |C008_status|
GitHub: |C008_github|_
Maintainer: |C008_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C009_page:
|C009_typename|
==================================================
|C009_shortinfo|
Controller details
------------------
Type: |C009_type|
Name: |C009_name|
Status: |C009_status|
GitHub: |C009_github|_
Maintainer: |C009_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C010_page:
|C010_typename|
==================================================
|C010_shortinfo|
Controller details
------------------
Type: |C010_type|
Name: |C010_name|
Status: |C010_status|
GitHub: |C010_github|_
Maintainer: |C010_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C011_page:
|C011_typename|
==================================================
|C011_shortinfo|
Controller details
------------------
Type: |C011_type|
Name: |C011_name|
Status: |C011_status|
GitHub: |C011_github|_
Maintainer: |C011_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+39
View File
@@ -0,0 +1,39 @@
.. include:: _controller_substitutions.repl
.. _C012_page:
|C012_typename|
==================================================
|C012_shortinfo|
Controller details
------------------
Type: |C012_type|
Name: |C012_name|
Status: |C012_status|
GitHub: |C012_github|_
Maintainer: |C012_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
+315
View File
@@ -0,0 +1,315 @@
.. include:: _controller_substitutions.repl
.. _C013_page:
|C013_typename|
==================================================
|C013_shortinfo|
Controller details
------------------
Type: |C013_type|
Name: |C013_name|
Status: |C013_status|
GitHub: |C013_github|_
Maintainer: |C013_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|improved|
Implementation of secure communication and check for valid data.
.. versionadded:: 1.0
...
|added|
Initial release version.
Description
-----------
ESPEasy is able to communicate between nodes itself.
It is an IANA registered service: `espeasy-p2p <https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=8266#ESPeasy>`_
* Service Name: espeasy-p2p
* Port Number: 8266
* Transport Protocol: UDP
* Description: ESPeasy peer-2-peer communication
* Registration date: 2018-11-28
This protocol is targeted specific for use by ESPeasy to let ESPeasy nodes
communicate with each other to create a big swarm of nodes working together
without the need for a hosted service like MQTT, which needs a central broker.
It is currently used for:
* Discovery of nodes
* Sharing sensor data among nodes
Later updates may add:
* Distribution of settings
* Sending commands
Sharing Plugins among Nodes
---------------------------
It is possible to share the data collected by a plugin on one node so it can be used on another node.
This data can be used as if it is actually being run on the second node.
For example, a Dallas DS18b20 sensor on Node-1 is shared using the ESPeasy p2p controller.
This plugin can then automatically be setup on Node-2 and using the data collected by Node-1.
This is a rather non-intuitive process to setup.
Prerequisites
^^^^^^^^^^^^^
* Same UDP port must be setup on both nodes. (preferrably UDP port 8266) This can be done in Tools -> Advanced -> UDP port
* Nodes must be rebooted after UDP port has changed.
* Each node must have an unique unit number. This must not be 0 and not 255, but anything inbetween is fine.
How to share a plugin
^^^^^^^^^^^^^^^^^^^^^
* Check to see if all nodes can see eachother. This will be visible on the main page showing a list of all nodes.
* Enable p2p networking controller on receiving node
* Make sure the receiving node has the spot free which is being used on the 'sending' node (For example slot 12)
* Enable p2p networking controller on sending node
* Set the plugin you want to share to use the p2p controller
Any node that is setup to receive data like this will see a plugin being added if the spot in the device list was still free.
Builds made after 2019/08/08 will show in the device overview page from which unit the shared plugin does get its data.
This also means the plugin must be removed and re-created if the sending node is changed. (e.g. another node or change of unit number)
In later builds there will be added an option to update this node number.
Some tips on trouble shooting
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Make sure to reboot the node after changing the UDP port.
* Make sure all nodes have an unique unit number and share the same UDP port.
* If you have ArduinoOTA enabled, use another port for ESPeasy p2p UDP (port suggested in most OTA examples use port 8266)
* Ping the nodes from some other host to keep their WiFi awake.
* Disable "Eco mode" in the advanced settings.
* Sharing a plugin to be auto installed on another node is only sent right after the plugin is set to use the p2p controller. So if you don't see it appear on the other node, save it again on the source node.
* Make sure the same plugin is available in the build on both nodes. (e.g. both supporting Dallas DS18b20, if that's the one you want to share)
* When using the "Guest" feature of an access point, some will not allow direct communication between clients on the same AP. This will also prevent this p2p protocol to share data.
* If updating from builds before 2019/08/08, you may need to remove and add again a plugin receiving data from a remote node.
Sending & Known Nodes
---------------------
ESPEasy keeps track of all nodes advertising themselves via Sysinfo messages.
This knowledge is kept in a ``NodeStruct`` for at least 10 minutes.
If a node is not sending a Sysinfo message in this period, it will be removed from the list.
Data Format Versions
--------------------
During the IANA port assignment assessment, a number of issues were pointed out by their experts.
* Versioning
* Security
* Data validation
* Traffic limiting and congestion handling
There are now 2 versions available:
* Version "0" - No security, no data validation.
* Version "1" - Introduced in ESPeasy build <???>
Data Format Version 0
---------------------
Sending and receiving is causing issues when the swarm of nodes increases.
* All nodes with this service enabled will advertise their presence every 30 seconds via broadcast
* Nodes can not subscribe to receiving sensor data updates
* Non broadcast messages are sent to each individual known node, regardless if the receiving node will use the data
* Sensor Data messages are sent to each individual known node
* Sensor Info updates are sent to each individual known node when a plugin coupled to this plugin is saved.
Of each known node the following data is kept:
.. code-block:: C++
struct NodeStruct
{
String nodeName;
byte ip[4];
uint16_t build;
byte age;
byte nodeType;
};
The key to index this ``NodeStruct`` is the nodes unit number.
ASCII Data
~~~~~~~~~~
Command Message
***************
First byte is not 0xFF.
The entire message processed as a command like this:
.. code-block:: C++
packetBuffer[len] = 0;
String request = &packetBuffer[0];
struct EventStruct TempEvent;
parseCommandString(&TempEvent, request);
TempEvent.Source = VALUE_SOURCE_SYSTEM;
if (!PluginCall(PLUGIN_WRITE, &TempEvent, request)) {
ExecuteCommand(VALUE_SOURCE_SYSTEM, &packetBuffer[0]);
}
As can be seen, no checks for size, and it is just expected to be a valid ESPeasy command.
Also no check to see if the command is supported by the receiving end and no feedback to the sender.
Binary Data
~~~~~~~~~~~
Binary data is marked with the first byte 0xFF.
On the receiving end, it is packed in an event in the ``Data`` field and processed like this:
.. code-block:: C++
struct EventStruct TempEvent;
TempEvent.Data = reinterpret_cast<byte*>(&packetBuffer[0]);
TempEvent.Par1 = remoteIP[3];
TempEvent.Par2 = len;
PluginCall(PLUGIN_UDP_IN, &TempEvent, dummyString);
CPluginCall(CPLUGIN_UDP_IN, &TempEvent);
N.B. only the controller C013 implements code for handling UDP data.
Message types supported, determined by the 2nd byte:
* 1: Sysinfo message
* 2: Sensor info pull request (not implemented)
* 3: Sensor info
* 4: Sensor data pull request (not implemented)
* 5: Sensor data
Sysinfo Message
***************
There are 2 types of Sysinfo messages, a standard and an extended message.
The extended message starts with the same information as the standard one.
Standard Sysinfo message (13 bytes):
* 2 bytes marker (255 , 1)
* 6 byte MAC address
* 4 byte IP address
* 1 byte unit number
Extended Sysinfo message (13 + 28 = 41 bytes):
* 2 bytes ESPeasy data version number (LSB, MSB)
* 25 bytes node name
* 1 byte node type
The node type is defined as:
* 1 = "ESP Easy"
* 17 = "ESP Easy Mega"
* 33 = "ESP Easy 32"
* 65 = "Arduino Easy"
* 81 = "Nano Easy"
Sensor Info message
*******************
Sensor Info messages are just a description of a shared sensor.
It contains some information to setup a new sensor on the receiving end.
These messages are just a serialized byte stream of ``struct C013_SensorInfoStruct`` .
.. code-block:: C++
struct C013_SensorInfoStruct
{
byte header = 255;
byte ID = 3;
byte sourcelUnit;
byte destUnit;
byte sourceTaskIndex;
byte destTaskIndex;
byte deviceNumber;
char taskName[26];
char ValueNames[VARS_PER_TASK][26];
};
Sensor Data message
*******************
These messages are just a serialized byte stream of ``struct C013_SensorDataStruct`` .
.. code-block:: C++
struct C013_SensorDataStruct
{
byte header = 255;
byte ID = 5;
byte sourcelUnit;
byte destUnit;
byte sourceTaskIndex;
byte destTaskIndex;
float Values[VARS_PER_TASK];
};
Data Format Version 1
---------------------
This version remains compatible with version 0 for backwards compatibility.
It is using the "next" unused marker.
All messages will have a standard packet data format:
* 2 bytes Marker (255 , 6)
* 2 bytes Version => also determines data offset (header length)
* 2 bytes Message type
* 2 bytes Size of data block in "N" blocks of 16 bytes
* 2 bytes Key/group selector
* 2 bytes Sequence number
* (16 x N) bytes Data block AES encrypted data (including 2 bytes checksum)
* 2 bytes Packet checksum
This allows to:
* Distinguish data format versions
* Filter on message type before allocating large buffers
* Use multiple (pre-shared) encryption keys to have several levels of security or just several groups.
* Validate correct transmission of packet (last 2 checksum bytes) before decrypting data.
* Allow for larger messages to be sent in sequences. (e.g. firmware upgrades?)
* Validate sender and content of data block, since it contains a checksum too, which is part of the encrypted data block.
Since AES has a block size of 16 bytes (128 bit), the size of the data block is defined as a block of 16 bytes.
This allows up-to 1 MB of messages. (2^16 * 2^4 = 2^20)
An UDP datagram sent over IPv4 cannot exceed 65,507 bytes (65,535 - 8 byte UDP header - 20 byte IP header).
In IPv6 jumbograms it is possible to have UDP packets of size greater than 65,535 bytes.
+151
View File
@@ -0,0 +1,151 @@
.. include:: _controller_substitutions.repl
.. _C014_page:
|C014_typename|
==================================================
|C014_shortinfo|
Controller details
------------------
Type: |C014_type|
Name: |C014_name|
Status: |C014_status|
GitHub: |C014_github|_
Maintainer: |C014_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added| 2019/04/25
Initial alpha version of this plug-in.
Description
-----------
This controller connects to a MQTT Server providing auto-discover information and a communication protocol according to the Homie convention 3.0.1 and the future development version 4.0.0.
For more information head over to `Homie convention <https://homieiot.github.io/>`_
Idea is to provide an easy way to include ESPEasy in modern home automation systems without any or with as less effort as possible. Imagine your device pops up in openHAB 2.4 or higher as a new device and you only have to pic the values you are interested in. You can immediately see measurements or switch GPIOs without a single line of code.
When a MQTT connection is established after (re-)boot the controller sends auto-discovery information for system services like commands, basic GPIO functions and for all configured devices and there values. When all messages where sent successfully a homie compatible home automation server/hub or other compatible controllers should be able to detect the unit and establish two way communication.
The :ref:`P086_page` plug-in can be used to set values and trigger actions / rules.
MQTT topic scheme
-----------------
A homie topic scheme always starts with the root topic homie followed by the **unit name** (homie uses the term **device**), **device name** (**node** in homie) and a **value name**.
``homie/%unitname%/%devicename%/%valname%``
updates or commands can be sent by appending ``/set`` to the topics for values which can receive data.
``homie/%unitname%/%devicename%/%valname%/set``
Prequesites
-----------
A MQTT server capable of storing messages sent with ``retain=true`` when ``QoS=0``. Due to limitation (intentional not implemented due to low memory footprint and performance considerations) of the MQTT library (pubsubclient) used in ESPEasy it is only possible to send messages with ``QoS=0`` which basically means `fire and forget`. The current MQTT specification says that the server SHOULD store these messages when they arrive via ``QoS=0``. Some servers like the MQTT server currently build into openHAB 2.4 (moquette) is configured to ignore the retain flag and drop the message after delivery to the currently subscribed clients when ``QoS=0``. Mosquito on the other hand store messages when retain flag is set even when they are sent with ``QOS=0``.
Check with a MQTT client like MQTTspy or MQTTfx if the auto-discover messages are stored (retained).
A home automation server/controller capable talking Homie like openHAB since 2.4. (Be aware there are issues in the Homie implementation 2.4 including 2.5M1 milestone release not working as expected after restart). Recent snapshot builds should work.
Setup
-------------
- add the Homie **Homie MQTT (Version 4.0.0 dev)** or **Homie MQTT (Version 3.0.1 dev)** controller to your controller lists depending on your build.
- insert your broker address
- and user credentials if necessary
- the publish scheme is fixed to meet the homie requirements to ``homie/%sysname%/%tskname%/%valname%``
- the subscription scheme can be modified. Current defaults to ``homie/%sysname%/+/+/set`` to reduce incoming traffic to a minimum. Homie only expects messages via the ``homie/%sysname%/%tskname%/%valname%/set`` topic.
- last will topic (LWT) should set to ``homie/%sysname%/$state``
- LWT Connect Message to ``ready``
- LWT Disconnect Message to ``lost``
- save and reboot, best with connected serial monitor or syslog server with debug set to 4 (debug) or greater (alternatively use a MQTT client and subscribe to ``homie/%sysname%/#`` - replace %sysname% by the unit-name shown on the top of the webpage).
.. image:: C0014_Setup_0.png
- ``homie/%sysname%/$nodes`` enumerating all devices will be sent as final message of the auto-discover header.
- The final event log should look like this:
.. code-block:: html
5584 : EVENT: MQTT#Connected
5754 : C014 : autodiscover information of 4 Devices and 6 Nodes sent with no errors! (26 messages)
Troubleshoot
------------
The auto-discover information is sent through a big number of messages (usual more than 20). If your controller software not recognize your device or shows errors during the auto-discover process try the following steps:
- For testing purposes start with a basic setup with none or only one device configured and enabled.
- More devices can be added or (re-)enabled later.
- Disable already configured devices (devices without the enabled box ticked will be ignored)
- Check with a MQTT client if all messages are sent. The last message sent is ``$nodes`` attribute listing minimum the ``SYSTEM`` node if no other devices are enabled.
- check your WIFI connection. Perhaps bring your device nearer to your access point. (only necessary during the setup process because the messages should be stored by the broker)
- check via syslog or serial console if the messages are sent successful (you normaly can't see the log output in the web log)
- use the `mqqt-forget <https://www.npmjs.com/package/mqtt-forget>`_ tool to delete unused retained messages from your broker via wildcards
Features
--------
The controller currently supports these features
- send auto-discover nodes for all sending and enabled plug-ins to ``homie/%unitName%/%deviceName%/%valueName%``
- receive commands through the ``homie/%unitName%/SYSTEM/cmd/set`` topic.
- switch GPIOs through ``homie/%unitName%/SYSTEM/gpio#/set`` topic. The GPIO port must be set to **default low** or **default high** in the hardware tab to be included during auto-discover.
- send updates of GPIO ports to ``homie/%unitName%/SYSTEM/gpio#`` regardless from where the change is triggered (to be fully tested).
- in conjunction with :ref:`P086_page` actuators can be used according to the Homie convetion using rules.
- receive values for dummy devices via ``homie/%unitName%/%dummyDeviceName%/%valueName%/set``. From there the values can be processed further by using rules.
- handle ``$state`` attribute (for complete list see attribute table below)
- ``init`` during boot process
- ``ready`` during normal operation and as a heartbeat every 30sec (to be tested)
- ``alert`` currently only if auto-discover fails. But if sending the auto-discover messages fails it is more than likely that sending the alert message will fail to. (ToDo: inform about other error states like low ram or stack available, repeating reboots or failed sensors)
- ``sleeping`` sent before deep sleep
- ``lost`` configured as LWT
- ``disconnected`` sent to the old topic if the unit name changes to inform that the old topic is not valid any more. Auto-discover messages are sent automagically to the new topics afterwards.
- acknowledge received message by the ``homie/%unitName%/%deviceName%/%valueName%/set`` topic to the corresponding value ``homie/%unitName%/%deviceName%/%valueName%`` even if the value was changed by a different source like HTTP or rule to keep the state in your home automation system allays up to date. (Needs further testing)
Future / planned features
-------------------------
- a special Homie Plugin is in devolopment to pass ``\set`` messages to rules for further handling. Here ``$datatype`` and ``$format`` attributes for ``$setable`` values can be specified there. This will enable ESPEasy to handle direct inputs to plug-ins like dimmers (%,0:100), colors (RGB & HSV, 255,255,255), enum devices like remote controls (Play, Pause, Vol+, Vol-, ...). :yellow:`Testing` see :ref:`P086_page`
- Further in field testing with different MQTT brokers and home automation systems.
- Handling units via the ``$unit`` attribute. As ESPEasy is currenty "unitless" this needs a global concept within ESPEasy
- Handling ``$datatype`` attribute. Currenly all values (except cmd and gpio) are defined as ``float``. :yellow:`Testing` see :ref:`P086_page`
- Prepare some "working examples".
Under the hood
--------------
Auto-dicover information is sent by several $attributes
currently the following attributes will be sent during boot
Unit (Device) attributes
^^^^^^^^^^^^^^^^^^^^^^^^
.. include:: C014_attributes.repl
Device (Node) attributes
^^^^^^^^^^^^^^^^^^^^^^^^
.. include:: C014_node_attributes.repl
Value attributes
^^^^^^^^^^^^^^^^
.. include:: C014_property_attributes.repl
@@ -0,0 +1,16 @@
.. csv-table::
:header: "Attribute", "Description", "Example", "3.0.1","Spec.","4.0.0","Spec."
:widths: 10, 35, 15, 10, 5, 10, 5
"``$name``", "Friendly name of the device", "EPSEasy#1", "YES", ":green:`required`", "YES", ":green:`required`"
"``$homie``", "The implemented Homie convention version", "4.0.0", "YES",":green:`required`", "YES", ":green:`required`"
"``$state``", "See chapter features", "ready", "YES",":green:`required`", "YES", ":green:`required`"
"``$localip``", "IP of the device on the local network", "192.168.2.10", "YES", ":green:`required`", "NO", ":red:`void`"
"``$mac``", "Mac address of the device network interface.", "A1:B2:C3:D4:E5:F6", "YES", ":green:`required`", "NO", ":red:`void`"
"``$fw/name``", "Name of the firmware running on the device.", "ESPEasy mega", "YES", ":green:`required`", "NO", ":red:`void`"
"``$fw/version``", "Version of the firmware running on the device.", "20103 - Mega", "YES", ":green:`required`", "NO", ":red:`void`"
"``$nodes``", "Nodes which the device exposes separated by commas. Sent at the end for performance reasons.", "SYSTEM,SysInfo", "YES",":green:`required`", "YES", ":green:`required`"
"``$implementation``", "An identifier for the Homie implementation.", "ESP8266", "YES", ":green:`required`", "NO", ":red:`void`"
"``$stats/interval``", "Interval in seconds at which the device refreshes.", "60", "YES", ":green:`required`", "NO", ":red:`void`"
"``$stats/uptime``", "Time elapsed in seconds since the boot of the device.", "12345", "YES", ":green:`required`", "NO", ":red:`void`"
"``$stats/signal``", "Signal strength in %.", "75", "YES", ":blue:`optional`", "NO", ":red:`void`"
@@ -0,0 +1,7 @@
.. csv-table::
:header: "Attribute", "Description", "Example", "3.0.1","Spec.","4.0.0","Spec."
:widths: 10, 35, 15, 10, 5, 10, 5
"``$name``","Friendly name of the Node","SYSTEM", "YES",":green:`required`", "YES",":green:`required`"
"``$type``","Type of the node","System commands", "YES",":green:`required`", "YES",":green:`required`"
"``$properties``","Exposed properties. Separated by , for multiple ones.","value1,value2", "YES",":green:`required`", "YES",":green:`required`"
@@ -0,0 +1,10 @@
.. csv-table::
:header: "Attribute", "Description", "Example", "3.0.1","Spec.","4.0.0","Spec."
:widths: 10, 40, 10, 5, 15, 5, 15
"``$name``","Friendly name of the property.","Command", "YES",":green:`required`", "YES",":green:`required`"
"``$datatype``","Describes the format of data. integer/float/boolean/string/enum/color","float", "YES",":green:`required`", "YES",":green:`required`"
"``$settable``","Specifies whether the property is settable (true) or read-only (default false). True for cmd, GPIO and dummy device values.","true", "YES",":yellow:`required true` for settable values", "YES",":yellow:`required true` for settable values"
"``$retained``","Specifies whether the property is retained (true) or non-retained (false).","false", "NO",":green:`required`", "NO",":blue:`optional`"
"``$unit``","A string containing the unit of this property.","°C", "NO",":blue:`optional`", "NO",":blue:`optional`"
"``$format``","Describes what are valid values for this property.","-30:40", "NO",":blue:`optional`", "NO",":blue:`optional`"
+70
View File
@@ -0,0 +1,70 @@
.. include:: _controller_substitutions.repl
.. _C016_page:
|C016_typename|
==================================================
|C016_shortinfo|
Controller details
------------------
Type: |C016_type|
Name: |C016_name|
Status: |C016_status|
GitHub: |C016_github|_
Maintainer: |C016_maintainer|
Change log
----------
.. versionchanged:: 2.0
...
|added| 2019/04/05
Initial pre-alpha version of this plugin.
Description
-----------
This controller is a cache layer to collect data while not connected to a network.
The data will first be stored in RTC memory, which will survive a crash/reboot and even an OTA update.
If this RTC buffer is full, it will be flushed to whatever is set here as storage.
Data Format
-----------
Each time a plugin sends data to this controller, a sample set is stored.
A typical sample set contains:
- UNIX timestamp
- task index delivering the data
- 4 float values
Storage
-------
The controller can save the samples from RTC memory to several places on the flash:
- Files on SPIFFS
- Part reserved for OTA update (TODO)
- Unused flash after the partitioned space (TODO)
Data Delivery
-------------
The controller can deliver the data to:
- Upload bin files to some server (HTTP post?) (TODO)
- Provide a sample to any connected controller (TODO)
- Do nothing and let some extern host pull the data from the node. (TODO)
- JavaScript to process the data inside the browser. (TODO)
- Feed it to some plugin (e.g. a display to show a chart) (TODO)
+33
View File
@@ -0,0 +1,33 @@
.. include:: _controller_substitutions.repl
.. _C017_page:
|C017_typename|
==================================================
|C017_shortinfo|
Controller details
------------------
Type: |C017_type|
Name: |C017_name|
Status: |C017_status|
GitHub: |C017_github|_
Maintainer: |C017_maintainer|
Change log
----------
.. versionadded:: 2.0
...
|added|
Initial release version.
Description
-----------
+157
View File
@@ -0,0 +1,157 @@
.. include:: _controller_substitutions.repl
.. _C018_page:
|C018_typename|
==================================================
|C018_shortinfo|
Controller details
------------------
Type: |C018_type|
Name: |C018_name|
Status: |C018_status|
GitHub: |C018_github|_
Maintainer: |C018_maintainer|
Change log
----------
.. versionadded:: 2.0
...
|added|
2019/08/13 First occurrence in the source.
Description
-----------
`The Things Network (TTN) <https://www.thethingsnetwork.org/>`_ is a global open LoRaWAN network.
LoRaWAN allows low power communication over distances of several km.
A typical use case is a sensor "in the field" which only has to send a few sample values every few minutes.
Such a sensor node does broadcast its message and hopefully one or more gateways may hear the message and route it over the connected network to a server.
The data packets for this kind of cummunication have to be very short (max. 50 bytes) and a sender is only allowed to send for a limited amount of time.
On most frequencies used for the LoRa networks there is a limit of 1% of the time allowed to send.
Such a time limit does also apply for a gateway. This implies that most traffic will be "uplink" data from a node to a gateway.
The analogy here is that the gateway is often mounted as high as possible while the node is at ground level ("in the field")
There is "downlink" traffic possible, for example to notify some change of settings to a node, or simply to help the node to join the network.
In order to communicate with the gateways in the TTN network, you need a LoRa/LoRaWAN radio module.
The radio module does communicate via the LoRa protocol. On top of that you also need a layer for authentication, encryption and routing of data packets.
This layer is called LoRaWAN.
There are several modules available:
- RFM95 & SX127x. These are LoRa modules which needs to have the LoRaWAN stack implemented in software
- Microchip RN2384/RN2903. These are the modules supported in this controller. They have the full LoRaWAN stack present in the module.
Nodes, Gateways, Application
----------------------------
A typical flow of data on The Things Network (TTN) is to have multiple nodes collecting data for a specific use case.
Such a use case is called an "Application" on The Things Network.
For example, a farmer likes to keep track of the feeding machines for his cattle.
So let us call this application "farmer-john-cattle".
For this application, a number of nodes is needed to keep track of the feeding machines in the field.
These nodes are called "Devices" in TTH terms.
For example a device is needed to measure the amount of water in the water tank and one for the food supply.
Such a device must be defined on the TTN console page.
There are two means of authenticating a device to the network (this is called "Join" in TTN terms):
- OTAA - Over-The-Air Authentication
- ABP - activation by personalization
With OTAA, a device broadcasts a join request and one of the gateways in the neighborhood that received this request,
will return a reply with the appropriate application- and network- session keys to handle further communication.
This means the device can only continue if there is a gateway in range at the moment of joining.
It may happen that a gateway does receive the join request, but the device is unable to receive the reply.
When that's happening, the device will not be able to send data to the network since it cannot complete the join.
Another disadvantage of OTAA authenticating is the extra time needed to wait for the reply.
Especially on battery powered devices the extra energy needed may shorten the battery life significantly.
With OTAA, the device is given 3 keys to perform the join:
- Device EUI - An unique 64 bit key on the network.
- Application EUI - An unique 64 bit key generated for the application.
- App Key - A 128 bit key needed to exchange keys with the application.
The result of such an OTAA join is again a set of 3 keys:
- Device Address - An almost unique 32 bit address of your device.
- Network Session Key - 128 bit key to access the network.
- Application Session Key - 128 bit key to encrypt the data for your application.
The other method of authenticating a device is via ABP.
ABP is nothing other than storing the last 3 keys directly on the device itself and thus skipping the OTAA join request.
This means you don't need to receive data on the device and can start sending immediately, and even more important, let your device sleep immediately after sending.
A disadvantage is the deployment of the device. Every device does need to have an unique set of ABP keys generated and stored on the device.
Updating session keys may also be a bit hard to do, since it does need to ask for an update and must also be able to receive that update.
Hybrid OTAA/ABP
---------------
TODO TD-er.
Configure LoRaWAN node for TTN
------------------------------
A LoRaWAN device must join the network in order to be able to route the packets to the right user account.
Prerequisites:
- An user account on the TTN network.
- A TTN gateway in range to send data to (and receive data from)
- Microchip RN2384 or RN2903 LoRaWAN module connected to a node running ESPeasy. (UART connection)
On the TTN network:
- Create an application
- Add a device to the application, either using OTAA or ABP.
In order to create a new device using OTAA, one must either copy the hardware Device EUI key from the device to the TTN console page,
or generate one and enter it into the controller setup page in ESPeasy.
The Application EUI and App Key must be copied from the TTN console page to the ESPeasy controller configuration page.
Using these steps, a device address is generated.
Such an address looks like this: "26 01 20 47"
Also the Network Session Key and Application Session Key can be retrieved from this page and can even be used as if the device is using ABP to join the network.
But keep in mind, these 3 keys will be changed as soon as an OTAA join is performed.
Device configuration with solely an ABP setup are more persistent.
Decoding Data
-------------
Controller Settings
-------------------
+101
View File
@@ -0,0 +1,101 @@
.. include:: _controller_substitutions.repl
Controller
**********
A controller is a component to enable a plugin to send data elsewhere.
- Up-to 3 controllers can be active in ESPEasy.
- Per plugin up-to 3 active controllers can be selected.
- For some controllers an additional parameter can be given.
For example, Domoticz needs an 'IDX' value to identify the configured entry in
Domoticz for which new data is sent.
Controller Plugins
==================
.. csv-table::
:header: "Plugin name", "Plugin status", "Plugin number"
:widths: 10, 8, 5
":ref:`C001_page`","|C001_status|","C001"
":ref:`C002_page`","|C002_status|","C002"
":ref:`C003_page`","|C003_status|","C003"
":ref:`C004_page`","|C004_status|","C004"
":ref:`C005_page`","|C005_status|","C005"
":ref:`C006_page`","|C006_status|","C006"
":ref:`C007_page`","|C007_status|","C007"
":ref:`C008_page`","|C008_status|","C008"
":ref:`C009_page`","|C009_status|","C009"
":ref:`C010_page`","|C010_status|","C010"
":ref:`C011_page`","|C011_status|","C011"
":ref:`C012_page`","|C012_status|","C012"
":ref:`C013_page`","|C013_status|","C013"
":ref:`C014_page`","|C014_status|","C014"
":ref:`C016_page`","|C016_status|","C016"
":ref:`C017_page`","|C017_status|","C017"
":ref:`C018_page`","|C018_status|","C018"
Controller Parameters
=====================
Generic fields
--------------
- **Protocol** - The type of controller (e.g. ThingSpeak/OpenHAB MQTT/etc.)
- **Locate Controller** - Selection between hostname/IP
- **Controller Hostname/IP** - The address to reach the selected service
- **Controller Port** - TCP/UDP Port number (0...65536)
- **Enabled** - Whether or not the controller is active.
Send queue parameters
---------------------
Controllers have a queue to keep unsent messages.
This queue is used to handle message bursts and also store messages which are recorded
before WiFi connection is made or during lost connection.
- **Minimum Send Interval** - Minimum time between two messages in msec.
- **Max Queue Depth** - Maximum length of the buffer queue to keep unsent messages.
- **Max Retries** - Maximum number of retries to send a message.
- **Full Queue Action** - How to handle when queue is full, ignore new or delete oldest message.
- **Check Reply** - When set to false, a sent message is considered always successful.
- **Client Timeout** - Timeout in msec for an network connection used by the controller.
- **Sample Set Initiator** - Some controllers (e.g. C018 LoRa/TTN) can mark samples to belong to a set of samples. A new sample from set task index will increment this counter.
Especially useful for controllers which cannot send samples in a burst. This makes the receiving time stamp useless to detect what samples were taken around the same time.
The sample set counter value can help matching received samples to a single set.
Sample ThingSpeak configuration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some controllers, like ThingSpeak, need a specific configuration.
ThingSpeak only allows a message every 15 seconds for the free accounts.
- **Minimum Send Interval** - 15000 msec
- **Max Queue Depth** - 1 (only report the last value)
- **Max Retries** - 2
- **Full Queue Action** - Delete Oldest
- **Check Reply** - Check Acknowledgment (VERY IMPORTANT)
- **Client Timeout** - 500 msec (server is online, so timeout must be a bit longer)
Controller user credentials
---------------------------
- **Controller User** - User name (optional)
- **Controller Password** - Password (optional)
MQTT related settings
---------------------
- **Controller Subscribe** - Subscribe to the given topic.
- **Controller Publish** - Publish to the given topic.
- **Controller lwl topic** - Topic to which LWT (Last Will Testament) messages should be sent.
- **LWT Connect Message** - Connection established message.
- **LWT Disconnect Message** - Connection lost message (sent to broker during connect and published by broker when connection is lost)
@@ -0,0 +1,189 @@
.. |C001_name| replace:: :cyan:`Domoticz HTTP`
.. |C001_type| replace:: :cyan:`Controller`
.. |C001_typename| replace:: :cyan:`Controller - Domoticz HTTP`
.. |C001_status| replace:: :green:`NORMAL`
.. |C001_github| replace:: C001.ino
.. _C001_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C001.ino
.. |C001_usedby| replace:: `.`
.. |C001_shortinfo| replace:: `.`
.. |C001_maintainer| replace:: `.`
.. |C001_compileinfo| replace:: `.`
.. |C002_name| replace:: :cyan:`Domoticz MQTT`
.. |C002_type| replace:: :cyan:`Controller`
.. |C002_typename| replace:: :cyan:`Controller - Domoticz MQTT`
.. |C002_status| replace:: :green:`NORMAL`
.. |C002_github| replace:: C002.ino
.. _C002_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C002.ino
.. |C002_usedby| replace:: `.`
.. |C002_shortinfo| replace:: `.`
.. |C002_maintainer| replace:: `.`
.. |C002_compileinfo| replace:: `.`
.. |C003_name| replace:: :cyan:`Nodo Telnet`
.. |C003_type| replace:: :cyan:`Controller`
.. |C003_typename| replace:: :cyan:`Controller - Nodo Telnet`
.. |C003_status| replace:: :green:`NORMAL`
.. |C003_github| replace:: C003.ino
.. _C003_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C003.ino
.. |C003_usedby| replace:: `.`
.. |C003_shortinfo| replace:: `.`
.. |C003_maintainer| replace:: `.`
.. |C003_compileinfo| replace:: `.`
.. |C004_name| replace:: :cyan:`ThingSpeak`
.. |C004_type| replace:: :cyan:`Controller`
.. |C004_typename| replace:: :cyan:`Controller - ThingSpeak`
.. |C004_status| replace:: :green:`NORMAL`
.. |C004_github| replace:: C004.ino
.. _C004_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C004.ino
.. |C004_usedby| replace:: `.`
.. |C004_shortinfo| replace:: `.`
.. |C004_maintainer| replace:: `.`
.. |C004_compileinfo| replace:: `.`
.. |C005_name| replace:: :cyan:`Home Assistant (openHAB) MQTT`
.. |C005_type| replace:: :cyan:`Controller`
.. |C005_typename| replace:: :cyan:`Controller - Home Assistant (openHAB) MQTT`
.. |C005_status| replace:: :green:`NORMAL`
.. |C005_github| replace:: C005.ino
.. _C005_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C005.ino
.. |C005_usedby| replace:: `.`
.. |C005_shortinfo| replace:: `.`
.. |C005_maintainer| replace:: `.`
.. |C005_compileinfo| replace:: `.`
.. |C006_name| replace:: :cyan:`PiDome MQTT`
.. |C006_type| replace:: :cyan:`Controller`
.. |C006_typename| replace:: :cyan:`Controller - PiDome MQTT`
.. |C006_status| replace:: :green:`NORMAL`
.. |C006_github| replace:: C006.ino
.. _C006_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C006.ino
.. |C006_usedby| replace:: `.`
.. |C006_shortinfo| replace:: `.`
.. |C006_maintainer| replace:: `.`
.. |C006_compileinfo| replace:: `.`
.. |C007_name| replace:: :cyan:`Emoncms`
.. |C007_type| replace:: :cyan:`Controller`
.. |C007_typename| replace:: :cyan:`Controller - Emoncms`
.. |C007_status| replace:: :green:`NORMAL`
.. |C007_github| replace:: C007.ino
.. _C007_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C007.ino
.. |C007_usedby| replace:: `.`
.. |C007_shortinfo| replace:: `.`
.. |C007_maintainer| replace:: `.`
.. |C007_compileinfo| replace:: `.`
.. |C008_name| replace:: :cyan:`Generic HTTP`
.. |C008_type| replace:: :cyan:`Controller`
.. |C008_typename| replace:: :cyan:`Controller - Generic HTTP`
.. |C008_status| replace:: :green:`NORMAL`
.. |C008_github| replace:: C008.ino
.. _C008_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C008.ino
.. |C008_usedby| replace:: `.`
.. |C008_shortinfo| replace:: `.`
.. |C008_maintainer| replace:: `.`
.. |C008_compileinfo| replace:: `.`
.. |C009_name| replace:: :cyan:`FHEM HTTP`
.. |C009_type| replace:: :cyan:`Controller`
.. |C009_typename| replace:: :cyan:`Controller - FHEM HTTP`
.. |C009_status| replace:: :green:`NORMAL`
.. |C009_github| replace:: C009.ino
.. _C009_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C009.ino
.. |C009_usedby| replace:: `.`
.. |C009_shortinfo| replace:: `.`
.. |C009_maintainer| replace:: `.`
.. |C009_compileinfo| replace:: `.`
.. |C010_name| replace:: :cyan:`Generic UDP`
.. |C010_type| replace:: :cyan:`Controller`
.. |C010_typename| replace:: :cyan:`Controller - Generic UDP`
.. |C010_status| replace:: :green:`NORMAL`
.. |C010_github| replace:: C010.ino
.. _C010_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C010.ino
.. |C010_usedby| replace:: `.`
.. |C010_shortinfo| replace:: `.`
.. |C010_maintainer| replace:: `.`
.. |C010_compileinfo| replace:: `.`
.. |C011_name| replace:: :cyan:`Generic HTTP`
.. |C011_type| replace:: :cyan:`Controller`
.. |C011_typename| replace:: :cyan:`Controller - Generic HTTP`
.. |C011_status| replace:: :yellow:`TESTING`
.. |C011_github| replace:: C011.ino
.. _C011_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C011.ino
.. |C011_usedby| replace:: `.`
.. |C011_shortinfo| replace:: `.`
.. |C011_maintainer| replace:: `.`
.. |C011_compileinfo| replace:: `.`
.. |C012_name| replace:: :cyan:`Blynk`
.. |C012_type| replace:: :cyan:`Controller`
.. |C012_typename| replace:: :cyan:`Controller - Blynk`
.. |C012_status| replace:: :yellow:`TESTING`
.. |C012_github| replace:: C012.ino
.. _C012_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C012.ino
.. |C012_usedby| replace:: `.`
.. |C012_shortinfo| replace:: `.`
.. |C012_maintainer| replace:: `.`
.. |C012_compileinfo| replace:: `.`
.. |C013_name| replace:: :cyan:`ESPEasy P2P Networking`
.. |C013_type| replace:: :cyan:`Controller`
.. |C013_typename| replace:: :cyan:`Controller - ESPEasy P2P Networking`
.. |C013_status| replace:: :green:`NORMAL`
.. |C013_github| replace:: C013.ino
.. _C013_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C013.ino
.. |C013_usedby| replace:: `.`
.. |C013_shortinfo| replace:: `.`
.. |C013_maintainer| replace:: `TD-er`
.. |C013_compileinfo| replace:: `.`
.. |C014_name| replace:: :cyan:`Homie MQTT (Version 3.0.1 & 4.0.0dev)`
.. |C014_type| replace:: :cyan:`Controller`
.. |C014_typename| replace:: :cyan:`Controller - Homie MQTT convention`
.. |C014_status| replace:: :yellow:`TESTING`
.. |C014_github| replace:: C014.ino
.. _C014_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C014.ino
.. |C014_usedby| replace:: `.`
.. |C014_shortinfo| replace:: `Controller for communication following the Homie convention`
.. |C014_maintainer| replace:: `.`
.. |C014_compileinfo| replace:: `Can be compiled for Homie 3.0.1 or 4.0.0dev`
.. |C016_name| replace:: :cyan:`Cache`
.. |C016_type| replace:: :cyan:`Controller`
.. |C016_typename| replace:: :cyan:`Controller - Cache`
.. |C016_status| replace:: :red:`DEVELOPMENT`
.. |C016_github| replace:: C016.ino
.. _C016_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C016.ino
.. |C016_usedby| replace:: `.`
.. |C016_shortinfo| replace:: `Cache layer to collect data while offline`
.. |C016_maintainer| replace:: `TD-er`
.. |C016_compileinfo| replace:: `Not in nightly builds. Only pre-built for special builds.`
.. |C017_name| replace:: :cyan:`Zabbix`
.. |C017_type| replace:: :cyan:`Controller`
.. |C017_typename| replace:: :cyan:`Controller - Zabbix`
.. |C017_status| replace:: :yellow:`TESTING`
.. |C017_github| replace:: C017.ino
.. _C017_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C017.ino
.. |C017_usedby| replace:: `.`
.. |C017_shortinfo| replace:: `.`
.. |C017_maintainer| replace:: `.`
.. |C017_compileinfo| replace:: `.`
.. |C018_name| replace:: :cyan:`LoRa TTN - RN2483/RN2903`
.. |C018_type| replace:: :cyan:`Controller`
.. |C018_typename| replace:: :cyan:`Controller - LoRa TTN - RN2483/RN2903`
.. |C018_status| replace:: :yellow:`TESTING`
.. |C018_github| replace:: C018.ino
.. _C018_github: https://github.com/letscontrolit/ESPEasy/blob/mega/src/_C018.ino
.. |C018_usedby| replace:: `.`
.. |C018_shortinfo| replace:: `Controller for the LoRaWAN/TTN network supporting RN2384 (434/868 MHz) and RN2903 (915 MHz)`
.. |C018_maintainer| replace:: `TD-er`
.. |C018_compileinfo| replace:: `.`
+138
View File
@@ -0,0 +1,138 @@
About Us
********
The ESP Easy project is being handled by the core team of TD-er and Grovkillen.
TD-er being the head of backend and Grovkillen being head of the frontend.
We both dig down into each others areas of responsible on a daily basis though.
Other than us we have around 100 volunteers that helping us maintain
and improve the source code.
History
=======
ESP Easy has gone through a lot of changes over the last years and here's some
of the major milestones.
Early days (Nodo Uno)
---------------------
It's somewhat unknown how it all started but Paul Tonkes (part of the Nodo team)
built a IR (infrared) to Kaku controller because he was not happy with the
commercial version. That unit came to the world named as Nodo (Uno).
04/2010 (Nodo Due)
------------------
Taken from the old Nodo website at the time that the Nodo update was introduced
(named Nodo Due). During this time, a nice production class Arduino Shield was
also built.
10/2011 (Joining the Nodo community)
------------------------------------
The founder of the ESP Easy project, Mvb, read about the Nodo project and
ordered his first Nodo Arduino board from the Nodo shop. He was using it to
control Kaku lights around his house.
03/2012 (Nodo Mega)
--------------------
Beta Nodo Mega was released, based on Arduino Mega 2560 board with Ethernet
Shield. Using a hosted web application.
05/2013 (Nodo NES Shield)
-------------------------
The hardware guys from the Nodo team released a shield for Arduino Mega 2560
that contains everything needed to run Nodo Mega with the web application.
01/2014 (Exploring new wireless capabilities)
---------------------------------------------
Nodo got its first 2.4GHz communication plugin, using the well known NRF24L01.
This had solved limitations of the 433MHz OOK modules and at the same time it
reduced the load on that frequency so Kaku became more reliable.
Mvb decided to run a setup with two Nodo Mega units in the house. First unit
runs the NES board for 433MHz communication, second board was dedicated for
NRF24L01 communications. Both Mega's could communicate through I2C or Ethernet.
02/2015 (Entering the Wi-Fi solution)
-------------------------------------
Nodo got its first ESP Wi-Fi plugin, using it as a serial to Wi-Fi bridge.
At that time we were using the stock firmware that came with the module.
04/2015 (ESP Connexio)
----------------------
The ESP Connexio project was initiated as the first effort to port the original
Nodo code to the ESP platform using early version of the ESP8266 Arduino Core.
The team had to workaround a lot of issues but got it working reasonably.
05/2015 (ESP Easy initiative)
-----------------------------
ESP Easy was initiated, mainly because the Nodo Connexio concept was a bit
over complicated. It had the same event list as the original Nodo project.
Quite powerful but also complicated to end users. So the idea was to have
something plug and play to hook up sensors to Domoticz. That decision of
targeting Domoticz is still present in current source code since many plugins
from the early days have the values setup in such a way that Domoticz can
import them with little effort.
09/2015 (ESP Easy R020)
-----------------------
As of R017 the Nodo Plugin mechanism was also implemented within ESP Easy.
Some other inconvenient bugs were fixed, help buttons added and it was decided
that R020 could be the first production edition.
ESP Easy was launched on Sourceforge as the very first production edition.
No programming required.
02/2016 (ESP Easy R078)
-----------------------
To make things even more easy, edition R078 was provided as binary images
with a simple installer. No need for a complicated Arduino IDE setup.
And it also introduced OTA, so subsequent updates could be done without
connecting the module to a serial port.
08/2016 (ESP Easy R120)
-----------------------
Lots of fixes and additional features:
* Rules engine
* Custom dummy device
* GlobalSync
* More commands
* More controllers
* More devices
Estimated user count was at this time around 7 000.
11/2016 (ESP Easy Mega)
-----------------------
ESP Easy Mega was initiated (only for ESP Modules with at least 1MB flash
memory). We had to many limitations in ESP Easy, due to the code size that
exceeded the 512kB modules flash size. Decided to drop support for these
classic modules and went forward with this version.
02/2017 (Change of roles)
-------------------------
Psy0rz took over lead development of ESP Easy Mega (2.0.0), he moved the
source code onto the GitHub page and started to modularize the code. He also
made ESP Easy support multiple controllers and fallback Wi-Fi. During this time
nightly releases was introduced and user counts had grown to around 20 000.
08/2018 (New core team)
-----------------------
With both Mvb and Psy0rz having little time to spend on the project two of the
most eager contributors Grovkillen (mainly wiki documentation and help tools
at that time) and TD-er (had already implemented the event based Wi-Fi and
scheduler for better timing) stepped in. The aim for the core team is to
make the ESP Easy OS as great as can be by dedicating full time commitment to
the project.
User count was at this point approximately around 32 000 and 24 hour download
count around 280.
.. 11/2018 (First stable 2+ version)
----------------------------------
The first stable release of the new 2.0.0 version was finally released. Much
of the features added had been in the nightly releases for more than a year
but in the process of modularizing the source code a lot of bugs were fixed,
much better timing added, but also some new bugs came into the light. The
team wanted to have the official stable release to be just that, stable.
Estimated user count was at this point around 40 000 and 24 hour download count
around 540.
+2
View File
@@ -0,0 +1,2 @@
ESP Easy Function Blocks
************************
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

+45
View File
@@ -0,0 +1,45 @@
Documentation
*************
For documentation we use Sphinx and this will be read by ReadTheDocs.
We use the `Sphinx Bootstrap Theme <https://github.com/ryan-roemer/sphinx-bootstrap-theme>`_
This documentation is included in the GitHub repository.
It allows us to create documentation per version of ESPEasy.
See also the `ESPEasy wiki <https://www.letscontrolit.com/wiki/index.php/ESPEasy>`_
for more documentation which has not been moved here.
Needed Python packages::
pip install sphinx recommonmark sphinx_bootstrap_theme
PlatformIO with Atom
====================
With the ESPEasy project open in Atom, open the PIO terminal in Atom.
Install dependencies::
cd docs
pip install ... (see needed Python packages above)
Build on Windows::
cd docs
.\make.bat html
Build on Linux/Mac::
cd docs
./make html
LaTeX (PDF) build on Linux
==========================
To build a PDF document of this documentation, you need to have LaTeX installed and some texlive packages.
Via apt-get installed packages::
sudo apt-get install xzdec texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
+112
View File
@@ -0,0 +1,112 @@
PlatformIO
**********
ESP easy can be built using the Arduino IDE or PlatformIO (PIO).
Arduino IDE is not being used during development, so it may take some more effort to get it setup for building ESPeasy.
We advice to use PlatformIO as build environment.
PlatformIO is just the build, test and upload environment for many micro controllers like the ESP8266 and ESP32 we use.
On top of that you need to use an editor, or so called IDE in which PlatformIO will be used.
The two main choices are:
* Atom
* Microsoft Visual Studio Code. (MS VS-Code)
Both are free to use and are available for Windows, MacOS and Linux.
Apart from these two, there are more available, like Eclipse and probably more.
PlatformIO with Atom
====================
PlatformIO with VS-Code
=======================
install
-------
For development of ESPeasy, a number of extensions has to be installed in VS-Code:
* PlatformIO IDE (by PlatformIO)
* C/C++ IntelliSense (by Microsoft)
* Arduino for Visual Studio Code (by Microsoft)
* Uncrustify (by Laurent Tréguier)
Uncrustify
----------
The extension Uncrustify is mainly to format the code using a standard code format definition.
This code format standard is defined in the file uncrustify.cfg in the main directory of this repository.
For new code contributions, it is highly appreciated if the code is formatted using this tool.
To do so:
* Right click mouse in editor
* "Format Document"
The first time (after installing uncrustify) it must be confirmed to use Uncrustify as formatter and using the default suggested config file.
Load a project using PlatformIO
-------------------------------
If you have PIO installed and the source tree cloned to your hard drive, then you can open the main dir of the repository.
The main directory of the repository is the level with platformio.ini in it.
Then in a few moments after opening the directory, on the left there will appear an alien logo, the logo of PlatformIO.
If you click that one, you will get a tree with lots and lots of project tasks and environments.
It is important to note that PlatformIO does everything based on environments, which are defined in the platformio.ini file.
In the PlatformIO menu (on the left) everything is grouped per environment.
An environment entry has several tasks, like:
* Build
* Upload
* Monitor
* Upload and Monitor
* ... many more.
Some of these options only are available when you have registered with PlatformIO and some are only for paid subscriptions.
At least the basic ones used for almost any user are available with the free account.
The environment definitions all have at least the used micro controller in the name and the amount of flash memory used.
For example:
* ..._ESP8266_4M -> ESP8266 has external flash, which can vary in size from 512 kB to 16 MB.
* ..._ESP8285_1M -> ESP8285 has the flash internal, so is always 1 MB.
* ..._ESP32_1M8_partition -> ESP32 with 4 MB flash and a 1.8 MB partition for the sketch.
Make a custom build using PlatformIO
------------------------------------
The easiest is to go for the environment "env:custom_ESP8266_4M" and unfold that one.
Then select "Build" to see if it will start building.
If that's working, you can open the file "pre_extra_script.py" and add or remove the plugins and controllers you need.
That Python file is used in the "env:custom_ESP8266_4M" to define what should be embedded and what not.
For example to have only the controller "C014", you can remove "CONTROLLER_SET_ALL", and just add "USES_C014",
The same for the plugins you need.
The file is built in the ".pio/build/...." directory right under the main repository directory (the one with the platformio.ini in it)
All builds will be made in a directory with the same name as the environment used.
Upload to ESP
=============
Linux
-----
For Linux, you may need to install 99-platformio-udev.rules to make PlatformIO upload tools work in vscode.
+54
View File
@@ -0,0 +1,54 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_page:
|P000_typename|
==================================================
|P000_shortinfo|
Plugin details
--------------
Type: |P000_type|
Name: |P000_name|
Status: |P000_status|
GitHub: |P000_github|_
Maintainer: |P000_maintainer|
Used libraries: |P000_usedlibraries|
Supported hardware
------------------
|P000_usedby_GPIO|, |P000_usedby_RTTTL|
Commands available
------------------
.. include:: P001_commands_GPIO.repl
.. include:: P001_commands_RTTTL.repl
.. Events
.. ~~~~~~
.. .. include:: P000_events.repl
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
+106
View File
@@ -0,0 +1,106 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Buzzer_page:
Buzzer (RTTTL)
==============
|P000_typename|
|P000_status|
.. image:: P000_Buzzer_RTTTL_1.jpg
Introduction
------------
RTTTL (Ring Tone [Text] Transfer Language) was developed by Nokia to play more "easy on the ear" melodies as ringtones for mobile phones. The tunes over all characteristics are created by using three different commands:
**d** - duration
**o** - octave
**b** - tempo (beat)
After that the actual tune is then created using standard notes (a, b, c, d, e, f, and g), before the note the duration is set, after the note the octave is set:
.. code-block:: html
<duration><note><octave>
To compose a jingle you separate the notes with a comma.
Specifications:
* Output sound
Wiring
------
.. code-block:: html
ESP Buzzer
GPIO <--> I/O
Power
3.3V <--> VCC
GND <--> GND
Setup
-----
No device is needed, generally you use rules to activate different notifications, or you send commands to activate them. Below you find more information on how to do this.
Rules examples
--------------
From ESP Easy v2.0.0 its possible to play melodies via `RTTTL <https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification>`_ (don't forget to remove the spaces and replace # with -, this might be fixed in future releases):
.. code-block:: html
http://<ESP IP address>/control?cmd=rtttl,14:d=4,o=5,b=112:8a,8a,a,8a,8a,a,8a,8c6,8f.,16g,2a,8a-,8a-,8a-.,16a-,8a-,8a,8a.,16a,8a,8g,8g,8a,g,c6
This plays a melody on pin 14.
You can also use these from rules. We use it to let our alarm system give feedback to the user via a piezo speaker.
To make a boot-sound on startup, create a rule like this:
.. code-block:: html
On System#Boot do
rtttl,14:d=10,o=6,b=180,c,e,g
endon
`A place to find more tunes <http://www.picaxe.com/RTTTL-Ringtones-for-Tune-Command/>`_, all saved as txt files.
Besides RTTTL it's also possible to play a single tone on a pin, via a buzzer, speaker or piezo element:
.. code-block:: html
http://<ESP IP address>/control?cmd=tone,14,1300,200
Plays a 1300 Hz tone for 200 ms on GPIO-14.
Indicators (recommended settings)
---------------------------------
No device is needed.
Commands
--------
.. include:: P001_commands_RTTTL.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/cMvVWYS4>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

+125
View File
@@ -0,0 +1,125 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Level_converter_page:
Level converter
===============
.. image:: P000_Level_converter_1.jpg
Introduction
------------
Level-converters, aka level-shifters, aka voltage dividers, are used to adapt between a 3.3V device like the ESP8266 and devices using 5V or more internally.
The ESP8266 runs with 3.3V - many devices need 5V or more, for example a LCD display or a Wiegand card reader. It is said that the ESP8266 can
take 5V at its inputs. Basically this is correct and confirmand by Espressif, the manufacturer. Anyways this as always has some limitations.
**First**, overcurrent. If you use a GPIO as input and the output of the connected device has 5V it should work. But if the internal resistance
of the device is low the current might exceed the limits of the ESP8266. With some specific settings of the ESP8266 the GPIO can not take 5V,
who checks every plugin or never made a setting mistake? So for making sure no GPIO is blown accidentally or by a bug some measurements should be taken.
**Second**, some devices need higher voltage if GPIO used as output. For example the PCF8574 or the MCP23017, port multiplexer. This chips use
3.3V or 5V as you choose. For some purpose higher voltage is useful. If using 5V there is a point you have to take care for:
The High and Low levels depend on the voltage!
With the PCF8574 the minimum "High" level Vih = 0.7 × Vdd, with 5V as Vdd it is 3.5V. With the MCP23017 the Vih = 0.8 × Vdd, with 5V as Vdd it is 4V.
(Vdd is the supplied voltage) So with 3.3V max from the ESP we are too low. It might work, it might fail. Worse, it might work with one chip
and fail with another one due to tolerances. In this case a level-converter is needed.
Specifications:
* Level shifter, aka logic converter. Used to turn logics of higher voltage (5V) down to ESP friendly voltage (3.3V).
.. note::
**Troubleshooting**:
If your level converter does not work, please check cabling first. As said cabling mistakes and slack joints with the usual cheap breadboard cables are the most likely reason.
If you use breakout board type level converters have a second one at hand. We've seen some "dead on arrival", other died by electrostatic discharge.
And again, breadboards are somewhat unreliable. Use a digital multi-meter to check contacts and wires.
Wiring
------
.. warning::
Be careful with wiring. A wrong connection from 5V to the 3.3V rail can cause damages of the ESP and/or the power supply.
A direct connection by mistake from 5V to a GPIO may fry your ESP! Handle level-shifters with some care.
The used FET transistors are somewhat sensible against electrostatic discharge. Use a anti-static mat.
.. code-block:: html
ESP Level converter Connected hardware
GPIO (X) <--> 3A, LV1, A1 etc. <--> 5A, HV1, B2 etc.
GPIO (Y) <--> 3B, LV2, A2 etc. <--> 5B, HV2, B2 etc.
Power
3.3V <--> 3V3, LV, VA, 3V etc.
5.0V <--> VIN, HV, VB, +5V etc.
GND <--> GND
Different ways of level converting
----------------------------------
Other than using a level converter it is possible to do it "manually" through resistors.
Just Input - simple unidirectional
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As an example we will use a HC-SR04 ultrasonic distance metering module. The HC-SR04 needs 5V, it will not work with 3.3V.
It works like bat ears, sending ultrasonic pulses and waiting for the echo. It has an input "Trigger" for sending ultrasonic pulses and an output "Echo" for the received signals.
The "trigger" input is no problem as it can take 3.3V for "High". Just connect it to the desired GPIO. But the "Echo" pin sends back 5V signals!
As this signaling is working just in one direction ("unidirectional") from the HC-SR04 to the ESP8266, a simple voltage divider does the job. Look at the schematic:
.. image:: P000_Level_converter_2.jpg
Note the two resistors R1 and R2, configured as a voltage divider. The divider gives 2.2/(1.2+2.2) = 0.65 so with 5V you get 5V × 0.65 = 3.25V at the GPIO pin.
Just Input - precise unidirectional
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The simple circuit with two resistors has one disadvantage. It is calculated for 5V. For other voltages you have to calculate another pair of resistor values. And worse,
spikes, short spikes of high voltage from unstable power supply or other reasons) pass through the divider. A better and more precise way is using a Zener diode.
A Zener diode simplified is a semiconductor that gets conductive at a specific voltage.
.. image:: P000_Level_converter_3.jpg
Here a Zener diode is used as voltage limiter. The resistor must not be omitted, it is necessary to limit the current. If a 5V signal comes the diode gets conductive - it would
short circuit the device output without the resistor. This circuit is dimensioned for input voltages from 5V to 9V (resistor should have 0.25W!). It can be used nicely for Wiegand
card readers for example. You may use even higher voltages, for example if you want to check a 24V pump. You need an adapted resistor value for that.
Input and Output - Bidirectional Level Converter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For devices that use one wire for input and output ("bidirectional") or devices that need higher voltage on an input an active level converter is necessary.
This applies mainly to I²C devices as SCL (the clock signal) comes with 3.3V from the ESP and the SDA (data signal) goes in both directions. There are
specialized chips for this purpose. Most of them have 8 channels - bit of an overkill for an ESP. There is a much simpler way you can buy as a cheap
breakout board or solder together yourself.
.. image:: P000_Level_converter_4.jpg
A little FET and two resistors do the job. This is the circuit most level shifters you can buy at the market use.
How does it work? Lets have a simplified look in a nutshell. A FET gets conductive if the voltage at the gate (pin 1) is higher then the voltage at
the source (pin 2). So if the ESP gives 3.3V (High), gate and source have same voltage - the FET isolates both sides (pin 2 & 3) from each other.
If the ESP goes to 0.3V (Low), the gate still has 3.3V - now the FET gets conductive pulling the 5V-side down. If the 5V-side goes to zero (low)
because your device sends data, the diode inside the FET gets conductive and pulls the 3.3V side down to nearly zero (Low).
Use of a dedicated level converter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quite an easy job. The pins on a level shifter are usually divided in a LV (Low Voltage) and a HV (High Voltage) side. Sometimes it is just called 3V and 5V.
Connect the 3V pin to 3.3V from ESP and the 5V pin to 5V from your device, for example a LCD display. Don't forget ground, some breakouts have some additional
capacitors which need it. Then connect the GPIOs from the ESP to the LV side, the equivalent pins from your 5V device to the HV side. That's all.
.. image:: P000_Level_converter_5.jpg
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/c5dMH05S>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 802 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

@@ -0,0 +1,104 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Piezo_element_page:
Piezo element
=============
|P000_typename|
|P000_status|
.. image:: P000_Piezo_element_RTTTL_1.jpg
Introduction
------------
RTTTL (Ring Tone [Text] Transfer Language) was developed by Nokia to play more "easy on the ear" melodies as ringtones for mobile phones. The tunes over all characteristics are created by using three different commands:
**d** - duration
**o** - octave
**b** - tempo (beat)
After that the actual tune is then created using standard notes (a, b, c, d, e, f, and g), before the note the duration is set, after the note the octave is set:
.. code-block:: html
<duration><note><octave>
To compose a jingle you separate the notes with a comma.
Specifications:
* Output sound
Wiring
------
.. code-block:: html
ESP Piezo
GPIO <--> Positive (red)
GND <--> Negative (black)
Setup
-----
No device is needed, generally you use rules to activate different notifications, or you send commands to activate them. Below you find more information on how to do this.
Rules examples
--------------
From ESP Easy v2.0.0 its possible to play melodies via `RTTTL <https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification>`_ (don't forget to remove the spaces and replace # with -, this might be fixed in future releases):
.. code-block:: html
http://<ESP IP address>/control?cmd=rtttl,14:d=4,o=5,b=112:8a,8a,a,8a,8a,a,8a,8c6,8f.,16g,2a,8a-,8a-,8a-.,16a-,8a-,8a,8a.,16a,8a,8g,8g,8a,g,c6
This plays a melody on pin 14.
You can also use these from rules. We use it to let our alarm system give feedback to the user via a piezo speaker.
To make a boot-sound on startup, create a rule like this:
.. code-block:: html
On System#Boot do
rtttl,14:d=10,o=6,b=180,c,e,g
endon
`A place to find more tunes <http://www.picaxe.com/RTTTL-Ringtones-for-Tune-Command/>`_, all saved as txt files.
Besides RTTTL it's also possible to play a single tone on a pin, via a buzzer, speaker or piezo element:
.. code-block:: html
http://<ESP IP address>/control?cmd=tone,14,1300,200
Plays a 1300 Hz tone for 200 ms on GPIO-14.
Indicators (recommended settings)
---------------------------------
No device is needed.
Commands
--------
.. include:: P001_commands_RTTTL.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/CG00mPI>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 433 KiB

+340
View File
@@ -0,0 +1,340 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Relay_page:
Relay
=====
|P000_typename|
|P000_status|
.. image:: P000_Relay_1.jpg
Introduction
------------
The ESP8266 can't switch high currents or voltages and no AC at all. But it can switch a relay that can switch high load, isolating high
voltage from the ESP circuit. There are several relay types in the wild.
The ESP can control a relay using one of it's GPIO pins. All relay boards that work with Arduino should also work with the ESP module.
Note this is only a possible application of the ESPs ability to send a logic 1/0 (TTL at 3.3V) on a GPIO. These relay are usually available
as 1,2,4,8,16 Relay modules and work electromagnetically. They can switch both AC/DC(or imitate a button press of a remote for example)
as they are "power operated mechanical switches". Each relay has the screw terminal. The middle one is usually "always connected" terminal.
The NC contact will be connected to the middle terminal when the relay is not powered. The NO is connected when the relay is powered
and activated. Note that there are "active high" and "active low" versions of these relays.
There are mainly two relay types in the wild: The good old mechanical relay with the nice "click-clack" sound and the electronic relays, so called
"Solid State Relays" (SSR) which are completely silent.
Specifications:
* Opto coupler (mechanical)
* Solid state (SSR)
Relays are the most used actuators in home automation. Most people use breakout boards with a relay on it. Sadly there is no "standard" relay board.
It seems every small manufacturing garage in china has it's own layout and schematic. Some use 5V, some use 12V, some do with opto couplers, some without...
the perfect chaos. Several problems result from this chaos. Relays keeping switched on no mater what your ESP says. Relays not switching at all.
And last but not least - sometimes they work. Let's get some order into that chaos.
.. note::
You have just got your brand new relay board and it does not work. What to do?
At first you should check the switching level. Is it switching on with "high" or with "low"?
* Connect the board to power only (5V or 12V usually).
* Plug a jumper cable to one of the inputs.
* With the other end of the cable touch GND and +Vcc (5V or 12V).
On one of these touches the relay should switch. If it switches when connecting to GND the board uses "low" as active (relay on) signal.
In this case diodes or a transistor / FET as described above might help.
Connect the board to the ESP carefully. Check voltages, the power supply should be able to deliver enough current for the relays!
Check the connection cables. Jumper cables are well known for slack joints.
Mechanical relay
----------------
The mechanical relay is a simple construction.
It consist of a coil, one or more contacts and a spring. The spring keeps the contact in the "open" position. If the coil gets current, the magnetic
field pulls the contact into the second position, the contact closes. As soon as the current is switched off the spring pulls the contact back.
Mechanical relays may just have one contact switching to closed if the coil works (Normally open or NO). The contact might be a changeover contact which
has a "common" connector and a NO (open without coil current, "normally open") and a NC (closed without coil current, "normally closed") connection.
There might even be several contacts in one relay.
There are several special types of mechanical relay
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Latching relay:
.. image:: P000_Relay_2.jpg
One current pulse switches on and keeps on when current goes off, a second pulse switches off.
Polarized relay:
.. image:: P000_Relay_3.jpg
These relays have a defined + and - pin for the coil that must be followed.
.. warning:: These micro relays can not switch mains voltage! Use them for low voltage door openers or similar.
Pros and cons of mechanical relays
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:green:`+` Several contacts in one relay available.
:green:`+` NO/NC available.
:green:`+` Limited resistance to overload and overvoltage.
:red:`-` Noisy, might disturb in a living room or bedroom.
:red:`-` Mechanical, moving parts that might wear out over time.
:red:`-` Contact bumping when switching.
:red:`-` High current for the coil, needs a transistor or FET for driving and generates peaks on power supply.
:red:`-` The coil induces high voltage when switching off.
Solid state relay
-----------------
The solid state relay, SSR for short, is a complex electronic circuit. It uses an opto coupler for input, this isolating the driving circuit from the load voltage.
Isolation voltage is usually 2000V, 4000V or more. The switching element usually is a triac for AC switching types. For DC there are types with a MOSFET as switching element.
There are several special types of SSR relay
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. image:: P000_Relay_4.jpg
As with the mechanical relays there are specialized types of SSR's.
**AC Type** : Can only (!!) switch AC. AC with zero crossing circuit. This type switches on and off if the AC voltage is at the zero point. **Expensive** and necessary only for special applications.
**DC Type** : Can only (!!) switch DC! And a lot more that are reserved for special cases.
Pros and cons of SSR relays
^^^^^^^^^^^^^^^^^^^^^^^^^^^
:green:`+` Completely noiseless
:green:`+` Low driving current and voltage available. Some types can be driven directly from the ESP.
:green:`+` No mechanical parts, no wearing out.
:green:`+` No contact bumping.
:green:`+` No voltage peaks on the low voltage side.
:green:`+` Available for very high current for an affordable price.
:red:`-` Very sensitive to overvoltage and overcurrent.
:red:`-` No NC available usually.
:red:`-` Usually with only one or sometimes three "normally open" circuits.
:red:`-` Needs cooling! Smaller relays up to 5A must be mounted with at least 1cm distance to other parts.
:red:`-` Bigger relays usually need a heat sink. Watch out: Heat sink may carry mains voltage with some types!
:red:`-` Leak current! These relays leak some current even if switched off.
Leak currents
~~~~~~~~~~~~~
Leak Current from SSR's might lead into problems under certain circumstances.
The both types shown above ("Hoymk D3805KH" and "Mager GJ-6-L", 5A AC) were tested here.
The Mager GJ-5-L showed a low leaking current and is useable for most purposes.
The D3805HK showed a really high leaking current, enough for a 10W LED to glow and a small solenoid valve to keep open!
This is not recommended for normal use.
Meanwhile a third sample arrived: The SSR-D32A380/5 sold by Pollin.
Similar to the D3805HK it shows a leaking current, as the test LED is slightly glowing in the dark when off.
It seems to be a lower leaking then with the D3805HK, this is subject to some further investigation.
The advantage of the Pollin SSR: It contains a small LED on the top indicating if the relay is on.
This SSR is a bit bigger then the other two types tested, it just fits the case. So holes for the LEDs
can be drilled on the top side of the case.
.. danger::
Always remember that a switched-off SSR is not completely switched off!
Even a small leaking current is enough to give a shock. Nice surprise if you're on the ladder changing bulbs....
Choosing your relay
~~~~~~~~~~~~~~~~~~~
Which relay should be used?
Well, this depends on what you want to switch. If you control a heavy motor or pump, I'd always prefer a mechanical relay.
The resistance against short overcurrent is a good point here.
For experimenting we prefer mechanical relays too - we just love the "click" sound, i.e. we don't have to connect a load to see if it works.
If noise counts or if you place the relay in a dusty or humid environment a SSR is the better choice. It's completely encapsulated so dust
and humidity can't damage it. As it has no mechanical parts it is completely noise-free. So it's the perfect choice to switch lighting in a living room or sleeping room.
Of course you have to chose a relay that fits your parameters.
Which voltage you want to switch? AC or DC? Which current?
If you want to use a SSR for high current you have to calculate the space for a heat sink and you have to use a vented case. All these parameters
have to be figured into your project. It is also possible to use a small SSR to drive a really heavy external relay for a heavy machine for example.
Wiring
------
.. code-block:: html
ESP Relay (board)
GPIO (X) <--> IN1
GPIO (Y) <--> IN2
Power
5.0V <--> VCC
GND <--> GND
Setup
-----
No device is needed, generally you use rules to activate relays, or you send commands to activate them. Below you
find more information on how to do this.
.. note::
If you want to monitor and have the GPIO state published you do this by adding as a |P001_typename| ,
it will not be a switch per say but you will get the state published automatically.
Rules examples
--------------
.. code-block:: html
On Switch#State Do
if [Switch#State]=1
GPIO,12,1
else
GPIO,12,0
endif
EndOn
This rule will turn the relay ON when the button is pressed, and OFF when released.
Indicators (recommended settings)
---------------------------------
No device is needed.
Commands
--------
.. include:: P001_commands_GPIO.repl
How to connect your relay
-------------------------
You can connect the relay in multiple ways, we explain them all below.
Basic ESP circuit: mechanical relays
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The basic circuit is simple.
As the relay usually consumes more current as the ESP can handle it needs a transistor or FET to drive the relay.
To suppress the voltage peak when switching off the coil a free-wheeling diode is needed. This can be a standard silicium diode, a 1N4148 for example.
.. image:: P000_Relay_5.jpg
Well, there is another way to switch the relay. In the above example we used a NPN transistor or a N-channel FET. A PNP transistor or P-Channel FET can be used too.
Some board manufacturers do this and now we run into problems promptly. The relays usually need some higher voltage then the ESP, 5V or 12 V in most cases.
The PNP transistor in the example is connected to +5V. It will switch the relay to "on" if the voltage at the input is at least 0.7V below the Vcc of 5V.
The ESP delivers a maximum of 3.3V if the GPIO is "high", around 0.5V if it is "low". Both voltages are far below the 5V-0.7V = 4.3V threshhold of the relay board.
The relay is permanently on, no matter what your ESP says. We can get this to work in a simple way with a 5V relay board. A standard diode has a loss of around 0.7V.
We can use this to get a higher output level from the ESP. We simply use two diodes in the connection between relay board and ESP. This raises the voltage from the
ESP up to 3.3v + 1.4V = 4.7V. This is above the threshhold of 4.3V. If the board uses a FET it might be necessary to use three diodes. That usually will work.
On top: This circuit switches the relay off if the GPIO is "high", this leading to irritations sometimes.
The picture shows the basic circuit with a PNP transistor, and the " 2 Diodes " solution:
.. image:: P000_Relay_6.jpg
More complex: using an opto coupler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Many widespread relay boards use opto couplers. Honestly we don't know the reason besides it looks good in advertising.
In theory the opto coupler isolates the relay coil from the ESP circuit. Well, that's nice theory. In real world we use the same power supply for relays and ESP.
This bridges the opto coupler as the circuits are connected via power supply making the opto coupler completely useless. Anyways the relay isolates the load from
the ESP anyways. It might be useful only if relay switching interferes with the ESP. In this case you might try a separate power supply for relay coils.
This isolates the ESP completely from the coil circuits. Note that a jumper has to be set for that on some boards.
Again there are two possible ways to use this circuit. The opto coupler input has one pin to the ESP and one to ground - this works without any problem but it is not widespread.
.. image:: P000_Relay_7.jpg
Most boards we've seen connect the opto coupler to 5V or 12V and the other input pin to the ESP.
.. image:: P000_Relay_8.jpg
This runs into same issues as with the PNP transistor above. The high voltage of 3.3V from ESP is far below 5V, this keeping the relay permanently active.
The solution is same as with the transistor board above. Use some diodes between ESP and relay board usually does the job with relay boards using 5V.
Depending on the circuit you will have to experiment how many diodes are necessary.
Boards with 12V
~~~~~~~~~~~~~~~
If your relay board uses 12V and needs "Low" to switch the relay on it gets somewhat more complex. Basically it is possible to use a lot of diodes but
it's not very handy. You may try a Zener diode of around 8.5.. 8.7 V. Honestly we don't recommend it. In this case it is better to use an additional
transistor or FET to get it to work. This has one advantage: It inverts the switching signal so a "low" output says the relay is off.
.. image:: P000_Relay_9.jpg
Special designed boards
~~~~~~~~~~~~~~~~~~~~~~~
There are some boards in the wild which can be configured if "low" or "high" should switch the relay on.
With this boards you will have to experiment a bit with your ESP and the board, there should be a combination that works.
.. image:: P000_Relay_10.jpg
Note the jumpers down left - that's the configuration for switching on high or low level.
Basic ESP circuit: SSR
~~~~~~~~~~~~~~~~~~~~~~
This is more simple. If you got a SSR that has an input of "3...12V" or "3...30V" it usually can be driven directly from the ESP.
The only thing you should keep in mind: Do not omit the varistor (RVx in the schematics). It protects the SSR from voltage peaks that
may kill it within some milliseconds. Instead of the varistor a TVS diode can be used, for example a P6K400CA.
Be careful, you have to use a bidirectional type!
.. image:: P000_Relay_11.jpg
It is possible to direct drive a SSR from the ESP but we won't recommend this. We prefer the same circuit as with the mechanical relay.
It makes the relay circuit more universal and reduces load on the ESP.
.. image:: P000_Relay_12.jpg
Instead of the 2N2222/BC547 you may use a small FET, a BSS138 or 2N7000 / 7002. Omit the 22K resistor if useing a FET.
R2 is needed if your relay can't take the Vcc directly. If you use a "3...30V" input SSR it's not necessary.
Any opto coupler is completely needless if you use a SSR. The SSR has an opto coupler built in to isolate the load from the ESP.
At this time there are not that much relay boards with SSR in the market, this will change over time as they get more popular.
From what is on the market be careful what you buy. Most boards we've seen nowadays on AliExpress and Ebay have a DC relay installed - they can switch DC only! They can't switch mains voltage.
Some words about DIY relay boards
---------------------------------
All in all it's no problem to build your own relay board fitting your needs exactly. But watch out if you want to switch
mains voltage. There is a reason why in some countries the policies specify a minimum distance between the parts with high
voltage and the low voltage circuits. Do not use experimental PCB's with copper pads or stripes!
Good breakout boards are milled out, there is a gap in the PCB for isolating mains from low voltage.
Prefer these boards over others without milling.
.. danger::
Be very careful - mains voltage can burn your home or kill you. In case of doubt ask an expert!
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/cM59HXVq>`_ `Link 2 ($) <http://s.click.aliexpress.com/e/cerop6s0>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

+88
View File
@@ -0,0 +1,88 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Servo_motor_page:
Servo motor
===========
|P000_typename|
|P000_status|
.. image:: P000_Servo_motor_1.jpg
Introduction
------------
Usual servos can turn about 180° (90° in both directions from zero point).
There are some rare servos with 270° turn. If you use a 180° type you may turn it 90° to the left or to the right.
.. danger::
Trying to turn a servo more then what it can handle will run the servo against a stopper inside the gear.
As ESP Easy tries to go further the servo starts humming and gets hot, it will die over time.
The third type "continuous turn servo" is not supported at this time.
Specifications:
* Controlling servo motors using PWM
Wiring
------
.. code-block:: html
ESP Servo
GPIO (X) <--> S (signal)
Power
5.0V <--> VCC
GND <--> GND
Setup
-----
No device is needed, generally you use rules to activate servos, or you send commands to activate them. Below you
find more information on how to do this.
Rules examples
--------------
.. code-block:: html
On Switch#State Do
if [Switch#State]=1
Servo,12,1,-45
Servo,14,2,45
else
Servo,12,1,0
Servo,14,2,0
endif
EndOn
This rule will tilt the servos 45° when the button is pressed, and it'll go back to 0 once released.
Indicators (recommended settings)
---------------------------------
No device is needed.
Commands
--------
.. include:: P001_commands_GPIO.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/c5RaXUgu>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 864 KiB

+104
View File
@@ -0,0 +1,104 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P000_Speaker_page:
Speaker
=======
|P000_typename|
|P000_status|
.. image:: P000_Speaker_RTTTL_1.jpg
Introduction
------------
RTTTL (Ring Tone [Text] Transfer Language) was developed by Nokia to play more "easy on the ear" melodies as ringtones for mobile phones. The tunes over all characteristics are created by using three different commands:
**d** - duration
**o** - octave
**b** - tempo (beat)
After that the actual tune is then created using standard notes (a, b, c, d, e, f, and g), before the note the duration is set, after the note the octave is set:
.. code-block:: html
<duration><note><octave>
To compose a jingle you separate the notes with a comma.
Specifications:
* Output sound
Wiring
------
.. code-block:: html
ESP Speaker
GPIO <--> Positive (red)
GND <--> Negative (black)
Setup
-----
No device is needed, generally you use rules to activate different notifications, or you send commands to activate them. Below you find more information on how to do this.
Rules examples
--------------
From ESP Easy v2.0.0 its possible to play melodies via `RTTTL <https://en.wikipedia.org/wiki/Ring_Tone_Transfer_Language#Technical_specification>`_ (don't forget to remove the spaces and replace # with -, this might be fixed in future releases):
.. code-block:: html
http://<ESP IP address>/control?cmd=rtttl,14:d=4,o=5,b=112:8a,8a,a,8a,8a,a,8a,8c6,8f.,16g,2a,8a-,8a-,8a-.,16a-,8a-,8a,8a.,16a,8a,8g,8g,8a,g,c6
This plays a melody on pin 14.
You can also use these from rules. We use it to let our alarm system give feedback to the user via a piezo speaker.
To make a boot-sound on startup, create a rule like this:
.. code-block:: html
On System#Boot do
rtttl,14:d=10,o=6,b=180,c,e,g
endon
`A place to find more tunes <http://www.picaxe.com/RTTTL-Ringtones-for-Tune-Command/>`_, all saved as txt files.
Besides RTTTL it's also possible to play a single tone on a pin, via a buzzer, speaker or piezo element:
.. code-block:: html
http://<ESP IP address>/control?cmd=tone,14,1300,200
Plays a 1300 Hz tone for 200 ms on GPIO-14.
Indicators (recommended settings)
---------------------------------
No device is needed.
Commands
--------
.. include:: P001_commands_RTTTL.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/cPcaaQXI>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

+264
View File
@@ -0,0 +1,264 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. csv-table::
:header: "Command", "Class", "Purpose / Syntax"
:widths: 8, 5, 30
"Debug","
:red:`Internal`","
Change Serial port debug level
``Debug,<1-4>``"
"
IP","
:red:`Internal`","
Change IP address
``IP,<IP address>``"
"
Let","
:red:`Internal`","
Set the value of n (1..16).
``Let,<n>,<value>``"
"
LogEntry","
:red:`Internal`","
Add string to log
``LogEntry,<string>``"
"
Name","
:red:`Internal`","
Set the name of the unit
``Name,<new name>``"
"
Password","
:red:`Internal`","
Set the password of the unit
``Password,<new password>``"
"
Reboot","
:red:`Internal`","
Reboot the ESP
``Reboot``"
"
Reset","
:red:`Internal`","
Reset config to factory default. Caution, all settings will be lost!
``Reset``"
"
Reset Flash Write Counter","
:red:`Internal`","
Reset flash write to zero.
``ResetFlashWriteCounter``"
"
Rules","
:red:`Internal`","
Rules enabled (1) or rules disabled (0)
``Rules,<1/0>``"
"
Save","
:red:`Internal`","
Save config to persistent flash memory
``Save``"
"
Settings","
:red:`Internal`","
Show settings on serial terminal
``Settings``"
"
TaskClear","
:red:`Internal`","
Delete the given task/device
``TaskClear,<task/device nr>``"
"
TaskClearAll","
:red:`Internal`","
Delete ALL task/device
``TaskClearAll``"
"
TaskRun","
:red:`Internal`","
Run/excecute the given task/device, use to manually force an update/read of the task.
``TaskRun,<task/device nr>``"
"
Unit","
:red:`Internal`","
Set the unit number
``Unit,<unit number>``"
"
WifiAPKey","
:red:`Internal`","
Change AP WPA key
``WifiAPKey,<WPA key>``"
"
WifiAPMode","
:red:`Internal`","
Force the unit into AP mode.
``WifiAPMode``"
"
WifiConnect","
:red:`Internal`","
Connect to configured wireless network
``WifiConnect``"
"
WifiDisconnect","
:red:`Internal`","
Disconnect from wireless network
``WifiDisconnect``"
"
WifiKey","
:red:`Internal`","
Change WPA key for primary WiFi
``WifiKey,<Wifi WPA key>``"
"
WifiKey2","
:red:`Internal`","
Change WPA key for secondary WiFi
``WifiKey2,<Wifi WPA key>``"
"
WifiScan","
:red:`Internal`","
Scan Wireless networks
``WifiScan``"
"
WifiSSID","
:red:`Internal`","
Change SSID to connect as primary WiFi
``WifiSSID,<SSID>``"
"
WifiSSID2","
:red:`Internal`","
Change SSID to connect as secondry WiFi
``WifiSSID2,<SSID>``"
"
Delay","
:green:`Rules`","
Delay rule processing
``Delay,<delay in milliSeconds>``"
"
Publish","
:green:`Rules`","
Send command using MQTT broker service
``Publish,<topic>,<value>``"
"
SendTo","
:green:`Rules`","
Send command to other ESP (using UDP)
``SendTo,<unit nr>,<command>``"
"
SendToHTTP","
:green:`Rules`","
Send command to other network device using HTTP
``SendToHTTP,<IP address>,<Portnumber>,<command>``
``SendToHTTP,<domain>,<Portnumber>,</url>``"
"
SendToUDP","
:green:`Rules`","
Send command to other network device using UDP (non-ESP Easy units)
``SendToUDP,<IP address>,<Portnumber>,<command>``"
"
TaskValueSet","
:green:`Rules`","
Set values on a **Dummy Task** (device)
``TaskValueSet,<task/device nr>,<value nr>,<value/formula>``"
"
TimerSet","
:green:`Rules`","
Start a timed event
``TimerSet,<timernr>,<timeInSeconds>``
``TimerSet,<timernr>,0`` disables the timer"
"
Event","
:blue:`Special`","
Create an event, it's possible to send a float value along as well.
See event syntax below..."
Event command
~~~~~~~~~~~~~
The event command is a special command used to trigger an event. This event can then be acted upon from the rules.
You can send 0..4 event values along with the event.
.. csv-table::
:header: "Event / Info"
:widths: 1
"
``Event,SingleEvent``
The event (triggered by any of the launch ways) will make the unit publish a message.
**Rules example**
.. code-block:: html
on SingleEvent do
Publish,%sysname%/Info,A single event has been triggered!
endon
"
"
``Event,SingleValue=123``
The event value ``123`` is intercepted and published.
**Rules example**
.. code-block:: html
on SingleValue do
Publish,%sysname%/Info,An event has been sent (%eventvalue%)!
endon
"
"
``Event,Multi=1,2,3,99``
The event value ``99`` (4) is intercepted and the rule ``TaskValueSet...`` is
triggered, value of task 12 value 1 is then ``1 + 2`` = ``3`` or ``1 - 2`` = ``-1``.
**Rules example**
.. code-block:: html
on Multi do
if %eventvalue4%=99
TaskValueSet,12,1,[%eventvalue1%+%eventvalue2%]
else
TaskValueSet,12,1,[%eventvalue3%-%eventvalue2%]
endif
endon
"
+245
View File
@@ -0,0 +1,245 @@
.. csv-table::
:header: "Event", "Example"
:widths: 30, 20
"
``<taskname>#<valuename>``
As described already, each task can produced one or more events, one for each measured value. You should not name your devices and value names so that the combination equals to any of the below listed system events!
","
.. code-block:: html
on DHT11Outside#Temperature>20 do
GPIO,2,1
endon
"
"
``System#Wake``
Triggered after power on.
","
.. code-block:: html
on System#Wake do
GPIO,15,1
endon
"
"
``System#Boot``
Triggered at boot time.
","
.. code-block:: html
on System#Boot do
GPIO,2,1
timerSet,1,30
endon
"
"
``System#Sleep``
Triggered just before the ESP goes to deep sleep.
","
.. code-block:: html
on System#Sleep do
GPIO,2,0
endon
"
"
``MQTT#Connected``
Triggered when the ESP has connected to broker.
","
.. code-block:: html
on MQTT#Connected do
Publish,%sysname%/status,First message!
endon
"
"
``MQTT#Disconnected``
Triggered when the ESP has disconnected from the broker.
","
.. code-block:: html
on MQTT#Disconnected do
Reboot
endon
"
"
``MQTTimport#Connected``
Triggered when the ESP has connected to broker (the MQTT Import plugin uses a separate connection than the generic one).
","
.. code-block:: html
on MQTTimport#Connected do
Publish,%sysname%/status,MQTT Import is now operational
endon
"
"
``MQTTimport#Disconnected``
Triggered when the ESP has disconnected from the broker (the MQTT Import plugin uses a separate connection than the generic one).
","
.. code-block:: html
on MQTTimport#Disconnected do
Reboot
endon
"
"
``WiFi#Connected``
Triggered when the ESP has connected to Wi-Fi.
","
.. code-block:: html
on WiFi#Connected do
SendToHTTP,url.com,80,/report.php?hash=123abc456&t=[temp2#out]
endon
"
"
``WiFi#ChangedAccesspoint``
Triggered when the ESP has changed to access point, will also trigger first time the unit connects to the Wi-Fi.
","
.. code-block:: html
on WiFi#ChangedAccesspoint do
Publish,%sysname%/status,AP changed
endon
"
"
``WiFi#APmodeEnabled``
Triggered when the ESP has set the AP mode (access point) active.
This may happen when no valid WiFi settings are found or the ESP cannot connect to the set AP, but it can also be enabled via some command.
N.B. Sending a publish command may not be very useful on this event, since this will mainly happen when there is no WiFi connection.
","
.. code-block:: html
on WiFi#APmodeEnabled do
... // Some command
endon
"
"
``WiFi#APmodeDisabled``
Triggered when the ESP has disabled the AP mode (access point).
This can happen some time (default 60 seconds) after a WiFi connection has been made. Or disabled using some command.
","
.. code-block:: html
on WiFi#APmodeDisabled do
Publish,%sysname%/status,AP disabled
endon
"
"
``Login#Failed``
Triggered when (someone) has tried to login to a ESP unit with admin password enabled, but have failed to enter correct password.
","
.. code-block:: html
on Login#Failed do
Publish,%sysname%/warning,Intruder alert!
endon
"
"
``Time#Initialized``
Triggered the first time (after boot) NTP is updating the unit.
","
.. code-block:: html
on Time#Initialized do
Publish,%sysname%/Time,%systime%
endon
"
"
``Time#Set``
Triggered when the time is set by an update from NTP.
","
.. code-block:: html
on Time#Set do
Publish,%sysname%/Time,%systime%
Publish,%sysname%/NTP,Updated time at: %systime%
endon
"
"
``Rules#Timer=``
As described already, triggered when a rules timer ends (setting a timer to 0 will disable the timer).
","
.. code-block:: html
on Rules#Timer=1 do
GPIO,2,1
endon
"
"
``Clock#Time=``
Triggered every minute with day and time like: Mon,12:30 or Tue,14:45. You can define triggers on specific days or all days using 'All' for days indicator. You can also use wildcards in the time setting like All,**:00 to run every hour.
","
.. code-block:: html
on Clock#Time=All,12:00 do //will run once a day at noon
GPIO,2,1
endon
on Clock#Time=All,**:30 do //will run half past every hour
GPIO,2,1
endon
on Clock#Time=All,%sunrise% do //will run at sunrise (%sunset% is also available)
GPIO,2,1
endon
"
"
``GPIO#N``
If the command 'Monitor' is used to monitor a given pin you will receive an event for that GPIO as soon as it's state changes. As seen in the example you can always use the square brackets together with the task/value name of ``Plugin#GPIO#Pinstate#N`` to get the state, but to trigger events you need to add the monitor command (preferably at boot).
","
.. code-block:: html
on System#Boot do
Monitor GPIO,15
endon
on GPIO#15=0 do
if [Plugin#GPIO#Pinstate#13]=0
// do something
endif
endon
on GPIO#15=1 do
if [Plugin#GPIO#Pinstate#13]=1
// do something
endif
endon
"
+55
View File
@@ -0,0 +1,55 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_page:
|P001_typename|
==================================================
|P001_shortinfo|
Plugin details
--------------
Type: |P001_type|
Name: |P001_name|
Status: |P001_status|
GitHub: |P001_github|_
Maintainer: |P001_maintainer|
Supported hardware
------------------
|P001_usedby|
Commands available
------------------
.. include:: P001_commands_GPIO.repl
.. include:: P001_commands_RTTTL.repl
.. Events
.. ~~~~~~
.. .. include:: PXXX_events.repl
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
|improved|
2019/02/26 Changed default name of value from "Switch" to "State".
.. versionadded:: 1.0
...
|added|
Initial release version.
+147
View File
@@ -0,0 +1,147 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_Door_switch_page:
Door switch
===========
|P001_typename|
|P001_status|
.. image:: P001_Door_switch_1.jpg
Introduction
------------
Any door switch module can be used as an digital input. Most none contact door switches use a technology called
reed switch. By using a magnet (the part with no wires) the reed inside the other part (with wires) will connect
the two parts of the reed and making a signal go low or high depending on how you have connected the switch.
You may use it by simply connect it to either a GPIO that is normally high (pull-up) or normally low (pull-down).
Specifications:
* Give a high or low signal to a GPIO
* Power needed: 3.3V (typically)
* Output voltage: same as input (typically)
Wiring
------
.. code-block:: html
ESP Door switch
GPIO (X) <--> Signal
Power
3.3V <--> Signal
or
GND <--> Signal
Setup
-----
.. image:: P001_Setup_Door_switch_1.png
Task settings
~~~~~~~~~~~~~
* **Device**: Name of plugin
* **Name**: Name of the task (example name **Door**)
* **Enable**: Should the task be enabled or not
Sensor
^^^^^^
* **Internal pull-up**: Check if you want to use the internal pull-up of the ESP (not all GPIO pins have this internal pull-up.)
* **Inverse logic**: Sometimes you may want the physical high value to be published as a low value. For example if the button is
triggering a high (1) value when you push it you maybe use it to turn of a LED so the :code:`Switch#State` would then logically be
preferred to be set as 0 and thus used as a variable for controlling that LED. See rules example below.
* **GPIO**: Which GPIO should be used, recommended to not use a latching switch that may set the ESP into flash mode if left
to high/low.
* **Switch type**: Set the switch type to either "Switch" or "Dimmer". Door (reed) switch is a "Switch".
* Switch: The default way of handling a switch is by a on/off button. It's either on (:code:`1`) or off (:code:`0`).
* Dimmer: Not used by door (reed) switches, if you still want to use it you can have a look at the
:ref:`P001_Switch_page` page.
* **Switch button type**: Set the type of switch, "Normal switch", "Push button active low", or "Push button active high".
* Normal switch: This is the general setting to use for a PIR switch.
* Push button active low: Not used by door (reed) switches (in general), if you still want to use it you can have a look at the
:ref:`P001_Switch_page` page.
* **Send boot state**: If checked the unit will publish the switch state when booting. If not checked you may find yourself
with a latching switch caught in limbo. This means that the unit is registering a low/high value but the physical state of
the switch might be the opposite. If you use a mechanical switch that may be physically set to a state you should check this
option.
Advanced event management
^^^^^^^^^^^^^^^^^^^^^^^^^
* **De-bounce (ms)**: How long should the pulse (the time you press the button) be, if set to high you need to have it published
for a longer time before the unit will register it as an state change. You could experiment with this setting to find a good
behavior of the button if you feel that it's not responding according to your preferences.
* **Double click event**: Not used by door (reed) switches (in general), if you still want to use it you can have a look at the
:ref:`P001_Switch_page` page.
* **Double click max interval (ms)**: Same as above..
* **Long press event**: Same as above..
* **Long press min interval (ms)**: Same as above..
* **Use safe button (slower)**: Same as above..
Data acquisition
^^^^^^^^^^^^^^^^
* **Send to controller** 1..3: Check which controller (if any) you want to publish to. All or no controller can be used.
* **Interval**: How often should the task publish its value (optional for switch plugins).
Indicators/values (recommended settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"State", "State", "0", "N/A", "Usually you just want the state being published when door is actually being opened/closed. If you want a continuous publishing of the state you may use the interval setting to do so."
Rules examples
--------------
.. code-block:: html
on Door#State=1 do
timerSet,1,1
endon
on rules#timer=1 do
if [Door#State]=0
//Action if door is closed
else
//Action if door is opened
endif
endon
.. Commands available
.. ~~~~~~~~~~~~~~~~~~
.. .. include:: P001_commands.repl
Where to buy
------------
.. csv-table::
:header: "Type", "Link"
:widths: 5, 40
"Door switch","`AliExpress 1 ($) <http://s.click.aliexpress.com/e/ccCdXCVi>`_ `Banggood 1 ($) <https://www.banggood.com/search/reed-door.html?p=V3270422659778201806&custlinkid=76099>`_ `eBay 1 ($) <http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&pub=5575404073&toolid=10001&campid=5338336929&customid=&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_odkw%3Ddoor%2Bswitch%26_osacat%3D0%26_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3Dreed%2Bdoor%26_sacat%3D0>`_"
"Reed switch","`AliExpress 2 ($) <http://s.click.aliexpress.com/e/0gMmOoY>`_ `Banggood 2 ($) <https://www.banggood.com/search/reed-switch.html?p=V3270422659778201806&custlinkid=76096>`_ `eBay 2 ($) <http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&pub=5575404073&toolid=10001&campid=5338336929&customid=&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_odkw%3Dreed%2Bdoor%26_osacat%3D0%26_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3Dreed%2Bswitch%26_sacat%3D0>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 522 KiB

+154
View File
@@ -0,0 +1,154 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_PIR_sensor_page:
PIR sensor
==========
|P001_typename|
|P001_status|
.. image:: P001_PIR_sensor_1.jpg
Introduction
------------
A big difference from the regular tactile buttons and a PIR is that a PIR will output a high or low Signal
without someone actually pushing a physical button. The PIR uses a pyro detector which will detect change
in radiated heat. A person or an animal is always radiating some level of heat and when someone enters
the vision of the PIR the amount of heat will change and the PIR will trigger a signal.
Specifications:
* Motion (change in heat)
* Power needed: 5V (typically)
* Output voltage: 3.3V (typically)
.. note::
Some PIR sensor boards have a jumper which will allow you to have the unit send a single pulse when
the motion is detected or send a single repeatedly as long as motion is detected. Good boards also
have a sensitivity adjustment and time delay setting which lets you tweak the way the unit is behaving,
that could be really helpful if the default settings are triggering too much or not enough.
Wiring
------
.. code-block:: html
ESP PIR
GPIO (X) <--> I/O or OUT
Power
5V <--> VCC
GND <--> GND
Setup
-----
.. image:: P001_Setup_PIR_sensor_1.png
Task settings
~~~~~~~~~~~~~
* **Device**: Name of plugin
* **Name**: Name of the task (example name **Motion**)
* **Enable**: Should the task be enabled or not
Sensor
^^^^^^
* **Internal pull-up**: Check if you want to use the internal pull-up of the ESP (not all GPIO pins have this internal pull-up.)
* **Inverse logic**: Sometimes you may want the physical high value to be published as a low value. For example if the button is
triggering a high (1) value when you push it you maybe use it to turn of a LED so the :code:`Switch#State` would then logically be
preferred to be set as 0 and thus used as a variable for controlling that LED. See rules example below.
* **GPIO**: Which GPIO should be used, recommended to not use a latching switch that may set the ESP into flash mode if left
to high/low.
* **Switch type**: Set the switch type to either "Switch" or "Dimmer". PIR is a "Switch".
* Switch: The default way of handling a switch is by a on/off button. It's either on (:code:`1`) or off (:code:`0`).
* Dimmer: Not used by PIR switches, if you still want to use it you can have a look at the
:ref:`P001_Switch_page` page.
* **Switch button type**: Set the type of switch, "Normal switch", "Push button active low", or "Push button active high".
* Normal switch: This is the general setting to use for a door (reed) switch.
* Push button active low: Not used by PIR switches (in general), if you still want to use it you can have a look at the
:ref:`P001_Switch_page` page.
* **Send boot state**: If checked the unit will publish the switch state when booting. If not checked you may find yourself
with a latching switch caught in limbo. This means that the unit is registering a low/high value but the physical state of
the switch might be the opposite. If you use a mechanical switch that may be physically set to a state you should check this
option.
Advanced event management
^^^^^^^^^^^^^^^^^^^^^^^^^
* **De-bounce (ms)**: How long should the pulse (the time you press the button) be, if set to high you need to have it published
for a longer time before the unit will register it as an state change. You could experiment with this setting to find a good
behavior of the button if you feel that it's not responding according to your preferences.
* **Double click event**: Not used by PIR switches (in general), if you still want to use it you can have a look at the
:ref:`P001_Switch_page` page.
* **Double click max interval (ms)**: Same as above..
* **Long press event**: Same as above..
* **Long press min interval (ms)**: Same as above..
* **Use safe button (slower)**: Same as above..
Data acquisition
^^^^^^^^^^^^^^^^
* **Send to controller** 1..3: Check which controller (if any) you want to publish to. All or no controller can be used.
* **Interval**: How often should the task publish its value (optional for switch plugins).
Indicators/values (recommended settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"State", "Detection", "0", "N/A", "Usually you just want the state being published when door is actually being opened/closed. If you want a continuous publishing of the state you may use the interval setting to do so."
Rules examples
--------------
.. code-block:: html
on Motion#Detection=1 do
timerSet,1,1
endon
on rules#timer=1 do
if [Motion#Detection]=0
//Action if NO motion is detected
else
//Action if motion is detected
endif
endon
.. Commands available
.. ~~~~~~~~~~~~~~~~~~
.. .. include:: P001_commands.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/j0xC1UU>`_"
"Banggood","`Link 2 ($) <https://www.banggood.com/RobotDyn-5V-PIR-Motion-Sensor-Adjustable-Time-Delay-Sensitive-Module-For-Arduino-p-1244536.html?p=V3270422659778201806>`_"
"eBay","`Link 3 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fitm%2FNew-HC-SR501-Infrared-PIR-Motion-Sensor-Module-for-Arduino-Raspberry-pi%2F132113984394%3Fepid%3D14013121702%26hash%3Ditem1ec29b6b8a%3Ag%3AkusAAOSwT5xZTInL>`_"
|affiliate|
More pictures
-------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

+166
View File
@@ -0,0 +1,166 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P001_Switch_page:
Switch
======
|P001_typename|
|P001_status|
.. image:: P001_Switch_1.jpg
Introduction
------------
Any switch module can be used as an digital input. In everyday language the switch is often referred to as a "button".
You may use it by simply connect it to either a GPIO that is normally high (pull-up) or normally low (pull-down). Other
types of switches are door switches (reed switch), sound activated switches and pulse activated switches.
Specifications:
* Give a high or low signal to a GPIO
* Power needed: 3.3V (typically)
* Output voltage: same as input (typically)
Wiring
------
.. code-block:: html
ESP Switch/button
GPIO (X) <--> Signal
Power
3.3V <--> Signal
or
GND <--> Signal
Setup
-----
.. image:: P001_Setup_Switch_1.png
Task settings
~~~~~~~~~~~~~
* **Device**: Name of plugin
* **Name**: Name of the task (recommended name **SwitchN**, where N is a number)
* **Enable**: Should the task be enabled or not
Sensor
^^^^^^
* **Internal pull-up**: Check if you want to use the internal pull-up of the ESP (not all GPIO pins have this internal pull-up.)
* **Inverse logic**: Sometimes you may want the physical high value to be published as a low value. For example if the button is
triggering a high (1) value when you push it you maybe use it to turn of a LED so the :code:`Switch#State` would then logically be
preferred to be set as 0 and thus used as a variable for controlling that LED. See rules example below.
* **GPIO**: Which GPIO should be used, recommended to not use a latching switch that may set the ESP into flash mode if left
to high/low.
* **Switch type**: Set the switch type to either "Switch" or "Dimmer". Dimmer is used if you have a knob that can be turned and
thus give multiple switch trigger signals.
* Switch: The default way of handling a switch is by a on/off button. It's either on (:code:`1`) or off (:code:`0`).
* Dimmer: If you use the dimmer option you will be able to control the device using a dimmer (knob that can be turned).
The value allowed for dimmers are :code:`0..255` and a new setting is added to the web form (Dim value).
* **Switch button type**: Set the type of switch, "Normal switch", "Push button active low", or "Push button active high".
* Normal switch: If you use a normal switch you should use this (you can always start with this setting).
* Push button active low: If you use a momentary switch you may want the state to be activated when you have it published
and not wait for it to be released. Depending on your setup you can then experiment with the active low / active high
to make it behave as you want.
* Push button active high: See bullet point above.
* **Send boot state**: If checked the unit will publish the switch state when booting. If not checked you may find yourself
with a latching switch caught in limbo. This means that the unit is registering a low/high value but the physical state of
the switch might be the opposite. If you use a mechanical switch that may be physically set to a state you should check this
option.
Advanced event management
^^^^^^^^^^^^^^^^^^^^^^^^^
* **De-bounce (ms)**: How long should the pulse (the time you press the button) be, if set to high you need to have it published
for a longer time before the unit will register it as an state change. You could experiment with this setting to find a good
behavior of the button if you feel that it's not responding according to your preferences.
* **Double click event**: If enabled the unit will detect double clicks which are within the set interval (see below). The double
click event is identified as :code:`Switch#State=3`. There's three options for the double click:
* Active only on low: the double clicks will be counted by how many low signals that is triggered within the set time.
* Active only on high: the double clicks will be counted by how many high signals that is triggered within the set time.
* Active on high & low: the double clicks will be counted by how many high and low signals that is triggered within the set time.
This means that a double click could be registered as a press and release of a button. So not actually double click.
* **Double click max interval (ms)**: This is the interval that you need to perform the double click within.
* **Long press event**: If enabled the unit will detect a long press of a button. There's three different behaviors of the long press:
* Active only on low: this means that the unit will only be triggering the long press event if the signal is low. Two different event
values are used, :code:`10` if the state goes from 0 to 1 (:code:`Switch#State=10`), and :code:`11` if the state goes
from 1 to 0 (:code:`Switch#State=11`).
* Active only on high: same as above but only triggered on high signal.
* Active on high & low: the long press will be triggered both on high and low signals.
* **Long press min interval (ms)**: This is the interval that you need to press the button before the long press event is triggered.
* **Use safe button (slower)**:
Data acquisition
^^^^^^^^^^^^^^^^
* **Send to controller** 1..3: Check which controller (if any) you want to publish to. All or no controller can be used.
* **Interval**: How often should the task publish its value (optional for switch plugins).
Indicators/values (recommended settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"State", "State", "0", "N/A", "Usually you just want the state being published when an actual push has been happening. If you want a continuous publishing of the state you may use the interval setting to do so."
Rules examples
--------------
.. code-block:: html
on Switch#State do
if [Switch#State]=3
//double click triggered!
GPIO,12,0
else
GPIO,2,[Switch#State]
GPIO,12,1
endif
endon
.. Commands available
.. ~~~~~~~~~~~~~~~~~~
.. .. include:: P001_commands.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"Toggle switch","`AliExpress 1 ($) <http://s.click.aliexpress.com/e/fY7OgXO>`_ `Banggood 1 ($) <https://www.banggood.com/5pcs-12V-Round-Rocker-Toggle-ONOFF-Switch-3-Pins-p-1046835.html?p=V3270422659778201806>`_ `Banggood 2 ($) <https://www.banggood.com/Red-3-Pin-ON-ON-SPDT-Mini-Toggle-Switch-AC-6A125V-3A250V-p-967014.html?p=V3270422659778201806>`_ `eBay 1 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3Dtoggle%2Bswitch%26_sacat%3D0%26LH_TitleDesc%3D0%26_osacat%3D0%26_odkw%3DMomentary%2Bswitch>`_"
"Float switch","`AliExpress 2 ($) <http://s.click.aliexpress.com/e/clw6aFEY>`_ `Banggood 3 ($) <https://www.banggood.com/10W-Black-Side-Mount-Water-Level-Sensor-Controller-Liquid-Float-Switch-p-961256.html?p=V3270422659778201806>`_ `Banggood 4 ($) <https://www.banggood.com/Side-mounted-Liquid-Water-Level-Sensor-Right-Angle-Float-Switch-p-945298.html?p=V3270422659778201806>`_ `eBay 2 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3DFloat%2Bswitch%26_sacat%3D0%26LH_TitleDesc%3D0%26_osacat%3D0%26_odkw%3DMembrane%2Bswitch>`_"
"Membrane switch","`AliExpress 3 ($) <http://s.click.aliexpress.com/e/ZkI1ov6>`_ `Banggood 5 ($) <https://www.banggood.com/4-x-3-Matrix-12-Key-Array-Membrane-Switch-Keypad-Keyboard-For-Arduino-p-87370.html?p=V3270422659778201806>`_ `Banggood 6 ($) <https://www.banggood.com/5Pcs-DC-4-Key-Matrix-Membrane-Switch-Control-Keypad-Keyboard-With-LED-p-965091.html?p=V3270422659778201806>`_ `eBay 3 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3DMembrane%2Bswitch%26_sacat%3D0%26LH_TitleDesc%3D0%26_osacat%3D0%26_odkw%3DCapacitive%2Btouch%2Bswitch>`_"
"Capacitive (touch) switch","`AliExpress 4 ($) <http://s.click.aliexpress.com/e/cMIem1Nq>`_ `Banggood 7 ($) <https://www.banggood.com/TTP223B-Digital-Touch-Sensor-Capacitive-Touch-Switch-Module-For-Arduino-p-1158322.html?p=V3270422659778201806>`_ `Banggood 8 ($) <https://www.banggood.com/Jog-Type-Touch-Sensor-Module-Capacitive-Touch-Switch-Module-p-916212.html?p=V3270422659778201806>`_ `Banggood 9 ($) <https://www.banggood.com/2_7V-6V-HTTM-Series-Capacitive-Touch-Switch-Button-Module-p-1245166.html?p=V3270422659778201806>`_ `eBay 4 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3DCapacitive%2Btouch%2Bswitch%26_sacat%3D0>`_"
"Limit switch","`AliExpress 5 ($) <http://s.click.aliexpress.com/e/bWOekFqo>`_ `Banggood 10 ($) <https://www.banggood.com/10Pcs-Micro-Limit-Switch-Roller-Lever-5A-125V-Open-Close-Switch-p-945733.html?p=V3270422659778201806>`_ `Banggood 11 ($) <https://www.banggood.com/10-Types-250VAC-Limit-Switch-IP65-Adjustable-Actuator-Roller-Arm-Rod-Spring-Coil-Endstop-Switch-p-1297617.html?p=V3270422659778201806>`_ `eBay 5 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3DLimit%2Bswitch%26_sacat%3D0%26LH_TitleDesc%3D0%26_osacat%3D0%26_odkw%3DMagnetic%2Breed%2Bswitch>`_"
"Momentary switch","`AliExpress 6 ($) <http://s.click.aliexpress.com/e/bPEYQDfw>`_ `Banggood 12 ($) <https://www.banggood.com/420pcs-14-Types-Momentary-Tact-Tactile-Push-Button-Switch-SMD-Assortment-Kit-Set-p-1154674.html?p=V3270422659778201806>`_ `Banggood 13 ($) <https://www.banggood.com/100-Pcs-Micro-Switch-Tact-Cap-Slim-Cap-Tactile-Push-Button-Switch-Momentary-Tact-p-1277707.html?p=V3270422659778201806>`_ `Banggood 14 ($) <https://www.banggood.com/36V-2A-12mm-Momentary-Push-Button-Switch-LED-Switch-Waterproof-Switch-p-994547.html?p=V3270422659778201806>`_ `eBay 6 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3DMomentary%2Bswitch%26_sacat%3D0%26LH_TitleDesc%3D0%26_osacat%3D0%26_odkw%3DLimit%2Bswitch>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 942 KiB

+134
View File
@@ -0,0 +1,134 @@
.. These P001 commands should be moved to core (P000)...
:ref:`P000_page` |P000_status|
Supported hardware: |P000_usedby_GPIO|
.. csv-table::
:header: "Command (GPIO/Value)", "Extra information"
:widths: 20, 30
"
``GPIO,<GPIO>,<state>``
GPIO: 0 ... 16
State:
**2** (HIGH-Z, input)
**1** (HIGH, output)
**0** (LOW, output)
","
**Basic on/off.**.
We can control a pin with simple http URL commands. To change the pin to high or low steady output. Setting GPIO to **2** means
that it will be able to detect low level relays (with high impedance, Z).
"
"
``GPIOtoggle,<GPIO>``
GPIO: 0 ... 16
","
**Toggle on/off.**.
Toggle the current (output) state of the given GPIO pin.
This will only be executed on pins set to be in output mode.
"
"
``LongPulse,<GPIO>,<state>,<duration>``
GPIO: 0 ... 16
State: 1/0
Duration: 1 ... 999 S
","
**To send a *long* pulse to a certain pin.**.
A long pulse is basically the same as the plain pulse. Duration is defined in seconds, which makes it more suitable for longer duration.
This command is not blocking, but will send 2 events to start and stop the pulse. This may have some variation depending on the system load of the module.
Variation is typically up-to 10 msec, but may be up-to a second, depending on active plugins and controllers performing blocking operations.
"
"
``LongPulse_mS,<GPIO>,<state>,<duration>``
GPIO: 0 ... 16
State: 1/0
Duration: 10 ... 15000 msec
","
**To send a *long* pulse to a certain pin.**
A ``LongPulse_mS`` is the same as the regular ``LongPulse``. The only difference is the time base in milliseconds rather than in seconds.
"
"
``Pulse,<GPIO>,<state>,<duration>``
GPIO: 0 ... 16
State: 1/0
Duration: 0 ... 1000 msec
","
**To send a *short* pulse to a certain pin.**
Example to send an active high (1) pulse on GPIO 14 for 500 mSeconds. Pulse duration is in milliseconds. State is 1 or 0.
N.B. this is a blocking call, meaning no other actions will be performed during the pulse.
"
"
``PWM,<GPIO>,<duty>``
``PWM,<GPIO>,<duty>,<duration>``
``PWM,<GPIO>,<duty>,<duration>,<frequency>``
GPIO: 0 ... **15**
Duty: 0 ... 1023
Duration: 100 ... 15000 msec (optional)
Frequency: 100 ... 40000 Hz (optional)
","
**To set a certain PWM level.**
If you have set a certain GPIO to a PWM level and want to use it as a regular HIGH/LOW pin you need to reset by setting the PWM level to 0.
Duration (in msec) parameter will create a fading.
Value of 0 will not set a duration.
Frequency (in Hz) will be set to 1000 Hz when not given.
Frequencies above 30 kHz are not stable and will likely crash the ESP.
"
"
``Servo,<servo>,<GPIO>,<position>``
GPIO: 0 ... **15**
Servo: 1/2
Position: -180 ... 180 (see warning below)
","
**To control a servo motor.**
We currently support a maximum of two servo motors so you can build a pan & tilt device if you like.
.. warning::
Most servos are not able to turn full 360°! Normally the servos are able to go from **-90°** to **90°**, some rare servos do allow for -135° to 135°.
A position value of 9000 will stop the PWM signal.
This can be useful to save energy on servos which do not need power to remain at the same position.
"
"
``Monitor,<GPIO>``
GPIO: 0 ... 16
","
**To monitor a GPIO state.**
By the use of the command you will receive events when the GPIO state of that pin is changed from 1 to 0 and from 0 to 1.
"
"
``GPIOtoggle,<GPIO>``
GPIO: 0 ... 16
","
**To toggle a GPIO state.**
With this command you can change the given state of a pin from either 1 to 0 or from 0 to 1.
"
@@ -0,0 +1,46 @@
.. These P001 commands should be moved to core (P000)...
:ref:`P000_page` |P000_status|
Supported hardware: |P000_usedby_RTTTL| (Ringtones etc.)
.. csv-table::
:header: "Command (GPIO/Value)", "Extra information"
:widths: 20, 30
"
``tone,<gpio>,<tone>,<duration>``
GPIO: 12 ... 16
Tone: 20 ... 13000 Hz
Duration: 100 ... 15000 msec
","
You should try to use GPIO 12...16 since these generally aren't used.
The recommended tone range is 20 Hz ... 13 kHz.
Up-to 40 kHz should be possible to generate, but will be inaudible for humans.
Frequencies above 30 kHz are not stable and will likely crash the ESP.
Duration is set in ms.
N.B. tones with a duration less than 50 msec will be blocking.
Longer duration will use the scheduler, which may cause some fluctuations in the duration.
"
"
``rtttl,<gpio>,<value>``
GPIO: 12 ... 16
Value: d=<duration>,o=<octave>,b=<tempo>,<notes...>
","
You should try to use GPIO 12...16 since these generally aren't used by ESP internal functions.
N.B. Playing a tune is blocking for as long as the tune is playing.
Value can be defined like <name_of_melody:duration,octave,beat,notes....>
For example:
``rtttl,14,test:d=8,o=5,b=180,c6,b,c6,p,g,g-``
`More RTTTL Ringtone Downloads <http://www.picaxe.com/RTTTL-Ringtones-for-Tune-Command/>`_
"
+52
View File
@@ -0,0 +1,52 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_page:
|P002_typename|
==================================================
|P002_shortinfo|
Plugin details
--------------
Type: |P002_type|
Name: |P002_name|
Status: |P002_status|
GitHub: |P002_github|_
Maintainer: |P002_maintainer|
Used libraries: |P002_usedlibraries|
Supported hardware
------------------
|P002_usedby|
.. Commands available
.. ^^^^^^^^^^^^^^^^^^
.. .. include:: P002_commands.repl
.. Events
.. ~~~~~~
.. .. include:: P002_events.repl
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
@@ -0,0 +1,71 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_ESP82XX_internal_page:
ESP82XX internal
================
|P002_typename|
|P002_status|
Introduction
------------
Specifications:
* Analog signal (0-1V)
Wiring
------
.. code-block:: html
ESP S8
GPIO (X) <--> TX
GPIO (X) <--> RX
Power
5.0V <--> VCC
GND <--> GND
Setup
-----
Rules examples
--------------
.. code-block:: html
//Code below...
Indicators (recommended settings)
---------------------------------
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"XXXXXX", "N/A", "", "", ""
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/cg1fhDDI>`_"
|affiliate|
More pictures
-------------
+70
View File
@@ -0,0 +1,70 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_PCF8591_page:
PCF8591
=======
|P002_typename|
|P002_status|
Introduction
------------
Specifications:
* Analog signal (0-5V)
Wiring
------
.. code-block:: html
ESP S8
GPIO (X) <--> TX
GPIO (X) <--> RX
Power
5.0V <--> VCC
GND <--> GND
Setup
-----
Rules examples
--------------
.. code-block:: html
//Code below...
Indicators (recommended settings)
---------------------------------
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"XXXXXX", "N/A", "", "", ""
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/cg1fhDDI>`_"
|affiliate|
More pictures
-------------
@@ -0,0 +1,71 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P002_Photosensitive_resistor_page:
Photosensitive resistor
=======================
|P002_typename|
|P002_status|
Introduction
------------
Specifications:
* Light intensity
* Analog 1-100% or Binary above/below trigger value
Wiring
------
.. code-block:: html
ESP S8
GPIO (X) <--> TX
GPIO (X) <--> RX
Power
5.0V <--> VCC
GND <--> GND
Setup
-----
Rules examples
--------------
.. code-block:: html
//Code below...
Indicators (recommended settings)
---------------------------------
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"XXXXXX", "N/A", "", "", ""
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/cg1fhDDI>`_"
|affiliate|
More pictures
-------------
+54
View File
@@ -0,0 +1,54 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P003_page:
|P003_typename|
==================================================
|P003_shortinfo|
Plugin details
--------------
Type: |P003_type|
Name: |P003_name|
Status: |P003_status|
GitHub: |P003_github|_
Maintainer: |P003_maintainer|
Used libraries: |P003_usedlibraries|
Supported hardware
------------------
|P003_usedby|
.. Commands available
.. ^^^^^^^^^^^^^^^^^^
.. .. include:: P003_commands.repl
.. Events
.. ~~~~~~
.. .. include:: P003_events.repl
Change log
----------
.. versionchanged:: 2.0
...
|added|
Major overhaul for 2.0 release.
.. versionadded:: 1.0
...
|added|
Initial release version.
+158
View File
@@ -0,0 +1,158 @@
.. include:: ../Plugin/_plugin_substitutions_p00x.repl
.. _P003_LJ12A3_page:
LJ12A3
======
|P003_typename|
|P003_status|
.. image:: P003_LJ12A3_1.jpg
Introduction
------------
The ESP8266 module can be used as a general purpose digital pulse counter device for various digital sensors.
Think about optical sensors with a digital output. To be used for things like gas, water, electricity, door open/close counters, etc.
In this example we will connect an inductive proximity switch (LJ12A3-4-Z/BX).
A LJ12A3-4-Z/BX module can be used in order to detect metal.
For example in your water consumption meter (as seen in picture).
Specifications:
* Inductive proximity sensor
* Detection distance: 4mm
* Working voltage range: 10V-30V
* Dimension: M12x10x55mm
Wiring
------
.. code-block:: html
ESP LJ12A3
GPIO (14) <--> Signal (black)
Power
12V <--> VCC (brown)
GND <--> GND (blue)
.. note:: You need to use a voltage divider to get the signal level down from 12V to 5V.
The LJ12A3-4-Z/BX-**5V** way
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Just buy the 5V version of the proximity sensor and you are good to go.
The resistor way
^^^^^^^^^^^^^^^^
.. image:: P003_LJ12A3_2.png
The 7805 way
^^^^^^^^^^^^
7805 IC specifications:
* Input voltage range 7-35V
* Current rating Ic = 1A
* Output voltage range: Vmax=5.2V, Vmin=4.8V
* Where to buy: `AliExpress ($) <http://s.click.aliexpress.com/e/bmR1wUxq>`_
.. image:: P003_LJ12A3_3.png
.. note:: 7805 is not very efficient and has drop-out voltage problems. A lot of energy is wasted in the form of heat.
Higher the input voltage, less efficient your 7805 will be.
Setup
-----
.. image:: P003_Setup_LJ12A3_1.png
.. danger:: Only task number 1..4 is currently supported for the pulse plugin!
Task settings
~~~~~~~~~~~~~
* **Device**: Name of plugin
* **Name**: Name of the task (example name **WaterMeter**)
* **Enable**: Should the task be enabled or not
Sensor
^^^^^^
* **GPIO <-- Pulse**: Pulse input is generally set to **GPIO 14 (D5)**.
* **Debounce time**: Debounce time is generally set to **100**.
* **Counter type**: In this example the type is set to **Delta/Total/Time**.
* **Mode type**: Pulse input is generally set to **Falling**
``LOW`` = count when signal go from not low to low (0.8+V to 0.8-V)
``CHANGE`` = count on signal being changed, low to high (0.8-V to 2.4+V) or high to low (2.4+V to 0.8-V)
``RISING`` = count if signal is rising, from low to not low (0.8-V to 0.8+V)
``FALLING`` = count if signal is falling, from high to not high (2.4+V to 2.4-V)
.. warning:: GPIO 16 (D0) is not compatible with pulse counters.
Data acquisition
^^^^^^^^^^^^^^^^
* **Send to controller** 1..3: Check which controller (if any) you want to publish to. All or no controller can be used.
* **Interval**: How often should the task publish its value (5..15 seconds is normal).
Indicators (recommended settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. csv-table::
:header: "Indicator", "Value Name", "Interval", "Decimals", "Extra information"
:widths: 8, 5, 5, 5, 40
"Count", "mL", "5", "2", "Using the formula ``%value%*20*0.1`` to convert the pulse count into liters per minute.
You might have to tweak the value to fit your application, our flow meter gives 0.1L per pulse and since
our interval was set to 5 seconds we have to multiply the value with ``20`` (the reading is done once every
20th of a minute) and also multiply it with ``0.1`` because that is the value in liters (per pulse).
"
"Total", "Total", "N/A", "1", "Total value is the counted pulses since last reboot.
.. note:: Only updated if counter type is set to ``Delta/Total/Time``, ``Total``, or ``Delta/Total``
"
"Time", "Time", "N/A", "0", "Time since last pulse was intercepted, in mSec.
.. note:: Only updated if counter type is set to ``Delta/Total/Time``
"
Rules examples
--------------
.. code-block:: html
On WaterMeter#mL Do
If [WaterMeter#mL]=0
Publish,%sysname%/WaterConsumption/status,No water running
Else
Publish,%sysname%/WaterConsumption/status,Water is being tapped
EndIf
EndOn
.. Commands available
.. ~~~~~~~~~~~~~~~~~~
.. .. include:: P003_commands.repl
Where to buy
------------
.. csv-table::
:header: "Store", "Link"
:widths: 5, 40
"AliExpress","`Link 1 ($) <http://s.click.aliexpress.com/e/1YcZUUo>`_ `Link 2 ($) <http://s.click.aliexpress.com/e/cWBJkHes>`_"
"Banggood","`Link 3 ($) <https://www.banggood.com/LJ12A3-4-ZBY-PNP-DC6-36V-Inductive-Proximity-Sensor-Detection-Switch-p-982679.html?p=V3270422659778201806>`_"
"eBay","`Link 4 ($) <https://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_id=114&ipn=icep&toolid=20004&campid=5338336929&mpre=https%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_from%3DR40%26_trksid%3Dm570.l1313%26_nkw%3DLJ12A3%26_sacat%3D0%26LH_TitleDesc%3D0%26_osacat%3D0%26_odkw%3DAnalog%2BPressure%2Bsensor>`_"
|affiliate|
.. More pictures
.. -------------
Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Some files were not shown because too many files have changed in this diff Show More