add %sysec_d% and fix typo

This commit is contained in:
chromoxdor
2023-12-09 11:40:44 +01:00
parent 99bc52a73a
commit 2a382cfa08
4 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -4308,7 +4308,7 @@ TD-er (106):
[WiFi] Process Station event Auth Changed
[Controller] Debug log on remove duplicate queued message
[GPIO] Fix warning of unused variable
[Build] Remove HWL8012 from "energy" build
[Build] Remove HLW8012 from "energy" build
[Energy build] Add P093 Mitsubishi Heat Pump
[Cleanup] Remove ICACHE_RAM_ATTR on wifi event function
[Build] LittleFS can only be built on 'beta' builds
@@ -4316,7 +4316,7 @@ TD-er (106):
[Cleanup] Reduce IRAM usage in Dallas bit read/write code
[Build] Fix normal_beta_ESP8266_16M_LittleFS build
[Cleanup] Remove unneeded ICACHE_RAM_ATTR on DHCP timeout callback
[Build] Remove P076 HWL8012 from "testing" builds due to build size
[Build] Remove P076 HLW8012 from "testing" builds due to build size
[Build] Disable test_ESP8266_4M1M_VCC_MDNS_SD as it does not fit in IRAM
[Build] Set normal_IRext_no_rx_ESP8266_4M2M to LIMIT_BUILD_SIZE
[GPS] Fix running out of memory when no GPS data is received.
+2 -2
View File
@@ -23,12 +23,12 @@ So these have the same hole on the side used on the TH10/16 to connect sensors.
This hole may seem like an invitation to connect some external sensor to these devices, but don't be tempted to do so.
HWL8012 & CSE7766
HLW8012 & CSE7766
=================
Some ESP8266 and ESP32 powered devices have an energy monitoring sensor on board.
Well known examples are the Sonoff POW, POW r2, POW R3xx(D) and Shelly PLUG S, but there are many others.
Almost all use either the HWL8012 or CSE7766 chip.
Almost all use either the HLW8012 or CSE7766 chip.
These chips are not isolated from mains power, which means all electronics connected
to them does also have a direct connection to mains power lines.
+4
View File
@@ -139,6 +139,10 @@ More uses of these system variables can be seen in the rules section and formula
- 5 (05)
- Current second (ss). ``%syssec%`` omits leading zeros.
- Yes
* - ``%syssec_d%``
- 43200
- Current second of the day.
- Yes
* - ``%sysday%`` (``%sysday_0%``)
- 7 (07)
- Current day of month (DD). ``%sysday%`` omits leading zeros.
+5 -5
View File
@@ -696,7 +696,7 @@ To create/register a plugin, you have to :
#define CONTROLLER_SET_STABLE
#define PLUGIN_SET_ONLY_SWITCH
#define NOTIFIER_SET_STABLE
#define USES_P076 // HWL8012 in POW r1
#define USES_P076 // HLW8012 in POW r1
// Needs CSE7766 Energy sensor, via Serial RXD 4800 baud 8E1 (GPIO1), TXD (GPIO3)
#define USES_P077 // CSE7766 in POW R2
#define USES_P081 // Cron
@@ -770,7 +770,7 @@ To create/register a plugin, you have to :
#define PLUGIN_SET_ONLY_SWITCH
#define CONTROLLER_SET_STABLE
#define NOTIFIER_SET_STABLE
#define USES_P076 // HWL8012 in POW r1
#define USES_P076 // HLW8012 in POW r1
#define USES_P077 // CSE7766 in POW R2
#define USES_P081 // Cron
#endif
@@ -1481,7 +1481,7 @@ To create/register a plugin, you have to :
#define USES_P066 // VEML6040
#define USES_P075 // Nextion
//#define USES_P076 // HWL8012 in POW r1
//#define USES_P076 // HLW8012 in POW r1
// Needs CSE7766 Energy sensor, via Serial RXD 4800 baud 8E1 (GPIO1), TXD (GPIO3)
//#define USES_P077 // CSE7766 in POW R2
//#define USES_P078 // Eastron Modbus Energy meters
@@ -1634,7 +1634,7 @@ To create/register a plugin, you have to :
#define USES_P027 // INA219
#endif
#ifndef USES_P076
#define USES_P076 // HWL8012 in POW r1
#define USES_P076 // HLW8012 in POW r1
#endif
#ifndef USES_P077
// Needs CSE7766 Energy sensor, via Serial RXD 4800 baud 8E1 (GPIO1), TXD (GPIO3)
@@ -2556,7 +2556,7 @@ To create/register a plugin, you have to :
#define FEATURE_BLYNK 0
#if !defined(PLUGIN_SET_COLLECTION) && !defined(PLUGIN_SET_SONOFF_POW)
#ifdef USES_P076
#undef USES_P076 // HWL8012 in POW r1
#undef USES_P076 // HLW8012 in POW r1
#endif
#ifdef USES_P093
#undef USES_P093 // Mitsubishi Heat Pump