You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+18-11
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Introduction https://espeasy.readthedocs.io/en/latest/ (and, mostly outdated, wi
13
13
This is the development branch of ESPEasy. All new features go into this branch, and it has become the current stable branch. If you want to do a bugfix, do it on this branch.
14
14
15
15
16
-
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
16
+
Check here to learn how to use this branch and help us improving ESPEasy: [Starter guide for (local) development on ESPEasy](https://espeasy.readthedocs.io/en/latest/Participate/PlatformIO.html#starter-guide-for-local-development-on-espeasy)
17
17
18
18
## Web based flasher (experimental)
19
19
@@ -58,6 +58,7 @@ hard | hardware specific builds | Minimal
58
58
minimal | minimal plugins for specific use-cases | Switch and Controller |
59
59
spec_* | specialized technical builds | Not intended for regular use |
60
60
IRext | Infra-red hardware specific | Sending and receiving IR cmd |
61
+
safeboot | (Experimental) `safeboot` build to enable<br>most/all plugins on 4MB Flash boards | None |
N.B. Starting with release 2023/12/25, All ESP32 LittleFS builds use IDF 5.1, to support newer ESP32 chips like ESP32-C2 and ESP32-C6. Other SPIFFS based ESP32 builds will be migrated to LittleFS as SPIFFS is no longer available in IDF 5 and later. A migration plan will be made available in 2024.
LittleFS | Use LittleFS instead of SPIFFS filesystem (SPIFFS is unstable \> 2 MB, and no longer supported in IDF \> 5) |
119
+
VCC | Analog input configured to measure VCC voltage (ESP8266 only) |
120
+
OTA | Arduino OTA (Over The Air) update feature enabled |
121
+
Domoticz | Only Domoticz controllers (HTTP) and plugins included |
122
+
Domoticz_MQTT | Only Domoticz controllers (MQTT) and plugins included |
123
+
FHEM_HA | Only FHEM/OpenHAB/Home Assistant (MQTT) controllers and plugins included |
124
+
ETH | Ethernet interface enabled (ESP32-classic only) |
125
+
OPI_PSRAM | Specific configuration to enable PSRAM detection, ESP32-S3 only |
126
+
CDC | Support USBCDC/HWCDC-serial console on ESP32-C3, ESP32-S2, ESP32-S3 and ESP32-C6 |
127
+
noOTA/NO_OTA | Does not support OTA (Over The Air-updating of the firmware) Use [the flash page](https://td-er.nl/ESPEasy/) or ESPTool via USB Serial |
Copy file name to clipboardexpand all lines: docs/source/Hardware/Hardware.rst
+3
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@ ESPEasy has a separate setting for Slow I2C devices, and per I2C device this slo
55
55
56
56
.. image:: Device_I2COptionsShort.png
57
57
58
+
Added: 2023-11-23
59
+
60
+
A device flag has been added for specific devices to have **Force Slow I2C speed** set by default. After adding the device this option will be checked, but can still be unchecked to use (try) Fast I2C speed (400 kHz).
PostToHTTP,192.168.1.20,8080,/receiver.php,'','%lcltime% !!! Total RunningTime = [int#2] Seconds'
2457
+
Let,1,0 // Reset start time
2458
+
Let,2,0 // Reset total counter
2459
+
Endon
2460
+
2461
+
2462
+
Register power used for a heater
2463
+
--------------------------------
2464
+
2465
+
As a variation on the running time, we can also measure the time and calculate the total power used, as long as the used device-power is known. Parts from the above example have been re-used.
2466
+
2467
+
This example uses a ``Generic - Dummy Device``, so the values can also be viewed on the Devices page. This has name: Power, output data type: Dual (or Triple or Quad, must be able to store decimals!), value names: Seconds (0 decimmals) and PowerUsed (4 decimals).
2468
+
2469
+
The time is counted while GPIO-14 (D5 on a Wemos or NodeMCU ESP8266) has a low state, and power is calculated once the power goes off. The not-On state will need a pull-up resistor to pull the level to 3V3!
2470
+
2471
+
After loading this code, either reboot the ESP, or run the command ``event,system#boot`` to set up the GPIO monitoring and wattage of the device.
2472
+
2473
+
.. code-block:: none
2474
+
2475
+
// Used variables: 1,3,4,5
2476
+
2477
+
On GPIO#14 Do // GPIO-14 = D5 on Wemos/NodeMCU ESP8266 boards
2478
+
If %eventvalue1%=0 // On state
2479
+
Let,1,%syssec_d% // Store current nr of seconds of today in var#1
2480
+
Else // Off state
2481
+
Event,CalcPower // Don't queue
2482
+
Event,TransmitPower // Send out to receiver
2483
+
Endif
2484
+
Let,5,!%eventvalue1% // 0 = On, to invert on/off state change to: Let,5,%eventvalue1%
2485
+
LogEntry,"Power [int#5#O#C], measured: [Power#Seconds] sec. [Power#PowerUsed#d.4] kWh"
2486
+
Endon
2487
+
2488
+
On CalcPower Do
2489
+
TaskValueSet,Power,Seconds,[Power#Seconds]+%syssec_d%-[int#1] // Add run time to Power#Seconds
2490
+
Let,4,[Power#Seconds]*[var#3] // Wattseconds
2491
+
If [var#4]>0
2492
+
TaskValueSet,Power,PowerUsed,[var#4]/3600000 // Wattseconds to kWh
2493
+
Endif
2494
+
TaskRun,Power
2495
+
Endon
2496
+
2497
+
On TransmitPower Do
2498
+
// Send value of [Power#Seconds] and [Power#PowerUsed] to wherever you need it, adjust as needed
0 commit comments