Max Prokhorov
d4311211ad
Lock relay status on boot ( #1705 )
* relays: locked status
* remove debug
* Disable relay toggle when locked
* fixup! Disable relay toggle when locked
* Send lock with status, fix "disable" condition
* typo
* Update WebUI
5 years ago
Max Prokhorov
21423431ce
Fixed size json payload & other WS bugfixes ( #1843 )
- update every dynamicjsonbuffer with fixed size constructor argument
- change to ws callback registration to use a class builder (just cosmetic)
- test multiple ws data callbacks for each module
- remove some of the static strings in favour of ws data callback
- improve sensor ws callback data size, remove duplicated strings
- use static buffer in wsDebugSend
- postpone wsSend until loop, implement wsPost to allow other modules to queue message callbacks. remove Ticker based ws callbacks for data
- update WebUI files
5 years ago
Max Prokhorov
5e091ec5a9
Relay: drop legacy settings migration ( #1797 )
5 years ago
Max Prokhorov
820d8c4be8
Initial implementation of RTCMEM storage ( #1420 )
- store system crash counter and reset reason in rtcmem instead of eeprom
- store relay state mask in rtc in addition to the eeprom
- store relay state in eeprom only when boot mode requires it
- simplify relay state mask calculation / reading using std::bitset
- light state save and restore
- energy total save and restore
5 years ago
Niek van der Maas
83dc391208
Use mqttForward() instead
5 years ago
Niek van der Maas
88135a67b3
Added in relayToggle() as well
5 years ago
Niek van der Maas
a072ada7ae
Add option to disable relay reporting to MQTT
5 years ago
Max Prokhorov
1507c9e5d5
relay: mqttGroupSync is no longer bool
5 years ago
Andrey F. Kupreychik
bf705b282f
SYNC_FIRST mode
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Max Prokhorov
d47859f2ae
replace mqttGroupInv with mqttGroupSync
5 years ago
Max Prokhorov
a53b66d55a
Relay MQTT group sync mode setting
5 years ago
Claudio Barca
1f29205677
#1519 Esp-01 + 2ch 5v relay LC tech Exclusive relay on
5 years ago
Max Prokhorov
868d153fa4
Compact WS data
* send all ws config at once on start
* reduce ws json overhead by creating message buffer manually
* use k:[values] instead of k1:value1, k2:value2 etc. for lists
5 years ago
Niek van der Maas
619ff87626
Fix pulse for dummy relays
5 years ago
Xose Pérez
d47ae2e4a4
Helper terminal methods terminalOK and terminalError
5 years ago
Xose Pérez
b9e13446fc
Revert "Wrap embeddis commands and move feedback to caller"
This reverts commit 7ad0e3a02b
.
5 years ago
Xose Pérez
356be730e2
Added message type to broker
5 years ago
Xose Pérez
7ad0e3a02b
Wrap embeddis commands and move feedback to caller
5 years ago
Xose Pérez
27e7b9ae89
Move terminal methods to own module
5 years ago
Xose Pérez
cb8d9c344d
Manage relay changes in third party modules via broker
5 years ago
Andrey F. Kupreychik
4202d3769c
First try for LightFox dual
5 years ago
Xose Pérez
4d5c0d7617
Split ws messages for relays and rf codes ( #262 )
6 years ago
Xose Pérez
13a08a4413
Load physical relays first and dummy relays afterwards
6 years ago
Xose Pérez
433f089c00
Show proper switches names in web UI
6 years ago
Xose Pérez
9771da4faf
Support for mixed combination of dummy and real relays ( #1305 )
6 years ago
Max Prokhorov
9aa586a8b3
Fix wrong GPIO value for dummy relay
6 years ago
Max Prokhorov
7c85225764
Trigger commit in eeprom module
6 years ago
Xose Pérez
63f6a14bc0
Apply relay boot mask only on first 8 relays
6 years ago
Xose Pérez
6fee2f1f9f
Avoid EEPROM commits on callbacks ( #1214 )
6 years ago
Xose Pérez
2b9a7341c3
Replace HEARTBEAT_ENABLED by HEARTBEAT_MDE allowing disable, single heartbeat on MQTT connect or repeat (default) ( #1196 )
6 years ago
Xose Pérez
b666cfc512
Remove static array to prevent out of bound in relay.ino ( #1217 )
6 years ago
Xose Pérez
7d09f59952
Handle configure callbacks outside the ws module
6 years ago
Xose Pérez
4f61d3aa7e
Option to remove API_SUPPORT at build time
6 years ago
Xose Pérez
373fc53545
Reduce memory footprint of API calls ( #1133 )
6 years ago
Xose Pérez
0c65bfe36b
Option to cofigure ON/OFF payload at build time ( #1085 )
6 years ago
Maxim Prokhorov
8a0b3bca42
Fix compiler warnings
Add button definitions to the travis02 and travis03
IR_BUTTON should be uint32_t to properly work with new macro
eepromRotate return value is not used
6 years ago
Xose Pérez
2bccfb09e4
Init relay GPIO when in inverse mode to be OFF ( #1078 )
6 years ago
Xose Pérez
6b38815f3b
Fix variable length for millis in relay.ino module
6 years ago
Xose Pérez
d7fc603afb
Support for single pin latched relays ( #1039 )
6 years ago
Xose Pérez
b44258ac41
Preliminary support for Itead Sonoff IFAN02
6 years ago
Xose Pérez
210cd8df71
Option to disable LED support
6 years ago
Xose Pérez
74e27eebea
Change pulse units (for MQTT and HTTP API) to seconds for coherence ( #831 )
6 years ago
Xose Pérez
504236382f
Added pulse API, pulses in ms, topic set to /pulse/+ ( #896 , #902 )
6 years ago
Xose Pérez
33780edc5b
Better memory layout info, multi-sector memory layouts
6 years ago
Maxim Prokhorov
f4de7c061b
MQTT dynamic pulse timer for relays
6 years ago
Maxim Prokhorov
8b60eb8486
Revert "Removed Ticker-based pulses. This allows to change pulse time on the go ( #816 )"
This reverts commit aaab65f877
.
6 years ago
Xose Pérez
aaab65f877
Removed Ticker-based pulses. This allows to change pulse time on the go ( #816 )
6 years ago
Xose Pérez
4548cc724c
Using EEPROM_Rotate library
6 years ago
Xose Pérez
39d219d1f4
Added pulse debug message
6 years ago