Maxim Prokhorov
712bd8a5e1
Buttons: small optimization for vector
4 years ago
Maxim Prokhorov
2ff50169b9
Static configuration for LED and Buttons
- use similar to relay & wifi, configuration through helper methods that
use indexed defines
- clock cycles for led delay polling
- button mode defaults
4 years ago
Max Prokhorov
298ce8cac2
Refactor get/set/del/hasSetting ( #2048 )
* experimental: refactor get/set/del/hasSetting
* sensors
* lights
* cleaup
* r
* tuya
* fixup! sensors
* fixup! tuya
* header defaults types
* fix lights
* setup already checks for max
* helper for flashstring
* fix overload
* oops
* refactor includes
* warnings
* test with migrate
* add ids in a separate file
* cleanup
rev: crash
rev: domoticz
rev: encoder
rev: loopdelay
rev: hass
rev: i2c
rev2: hass
rev: mqtt
rev: rfm69
rev: relay
rev: rpn
rev: settings setup
rev: hb settings
rev: telnet preprocessor fix
rev: settings wrap
rev: tspk bool style
rev: wifi types
rev: util hb
rev: settings
fixup! rev: settings
* rev: cleanup wifi injections based on new getters
* hasSetting now can return true for empty key
* show hardcoded network in web
* oops
* fix ws referencing wrong index
* ensure empty strings are written
* c/p
* use experimental schema style for payload, mark network as not deletable
* allow to customize converter
* shorter syntax, try using with wifi
* use proper #if syntax to handle definitions that are missing
* fixup ota sc checks getter, cast schEnabled to bool
* add utils header to sensors
4 years ago
Maxim Prokhorov
03e6443ac6
system: move prototypes to a separate header
4 years ago
Maxim Prokhorov
9f4329dc1a
relay: replace eeprom 8bit with 32bit bitmask stored in settings
- mask is defined as (relay# status << number)
- transparently handle base-2 and base-10 numbers
- if the relay mode requires us to save the mask, it will be saved as base-2
5 years ago
Max Prokhorov
8dda0072f2
WiFi: allow button action to also disable softAP ( #1942 )
5 years ago
Xose Pérez
8b7eea6c72
ESPurna base image for Tuya Convert
5 years ago
Max Prokhorov
cf4540ae90
lights: module declarations in the header
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
Xose Pérez
175fcbf6cf
Support for WPS in core build. Using UNUSED macro to prevent warnings
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Xose Pérez
628968cafa
Add dim up and down actions to button handler ( #1250 )
5 years ago
Andrey F. Kupreychik
4202d3769c
First try for LightFox dual
5 years ago
ValCob
30285b3a72
we should send only buttons events that have actions assigned to them or set BUTTON_MQTT_SEND_ALL_EVENTS to 1 to send everything
6 years ago
Xose Pérez
152bf22fdd
Option to disable button support
6 years ago
Xose Pérez
81eb809d4f
Support for Smart Config via JustWifi
6 years ago
Xose Pérez
aeb03282c6
Disable WPS by default, saves ~50Kb
6 years ago
Xose Pérez
e6570fe1bb
Triple click to enter WPS mode, fast LED blinking
6 years ago
Xose Pérez
104caa93fa
Fix warnings
6 years ago
Xose Pérez
fa20c47f29
Check which keys should be saved and which ones shouldn't ( #730 )
6 years ago
Lazar Obradovic
3c2b2017c0
Buttons should not retain in MQTT
6 years ago
Xose Pérez
4029ee73da
Trying to fix some issues reported by codacy
6 years ago
Xose Pérez
b082d14c59
Loop hooks
6 years ago
Xose Pérez
2dc2b7d176
Checking code with cppcheck
6 years ago
Xose Pérez
ce9e2a6482
Refactor settings module, added settingsCommandRegister
6 years ago
Xose Pérez
3e811c8138
Changed button event debug message
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
01770e48e1
Fix casting issue in buttonStore ( #327 )
6 years ago
Xose Pérez
1a68f89bbf
Fix mqtt group sync with different switches sharing same group
6 years ago
Xose Pérez
b3336871bf
Boot mode and pulse mode per relay
6 years ago
Xose Pérez
d1abe1fc65
Option to disable MQTT at build time
7 years ago
Xose Pérez
e83c5495de
Unify reset calls
7 years ago
Xose Pérez
68c90c1cc0
Fix bug using snprintf
7 years ago
Xose Pérez
f7cf9a691f
Replaced sprintf with safer snprintf
7 years ago
Xose Pérez
9750bf26bb
Moved strings to PROGMEM, 160 bytes saved in memory
7 years ago
Xose Pérez
eb79642f2e
Major refactor of device flags
7 years ago
Xose Pérez
c6b26efbb7
Merge
7 years ago
Xose Pérez
66131bbafd
ON and OFF actions for button events
7 years ago
Xose Pérez
f5b3f9f62e
Fix typo
7 years ago
Xose Pérez
e6e9f9d6d4
Change the double click delay from the web interface
7 years ago
Xose Pérez
0535fcee5e
Issue #170 . Using updated DebounceEvent library to allow disabling double click option and get faster click responses
7 years ago
Xose Pérez
e349c6991b
Added custom reset messages
7 years ago
Xose Pérez
134647724a
Bind button actions to buttons 0 and 1 in DUAL ( #127 )
7 years ago
Xose Pérez
4dd0f358b4
Backend for RELAY_MODE_FOLLOW
7 years ago
Xose Pérez
8c54488fa1
Moving debug strings to PROGMEM. ~1.5KBytes of heap memory freed
7 years ago
Xose Pérez
6b1803d389
Refactor MQTT topics and reports setting names
7 years ago
Xose Pérez
e0abce8f0b
Helper methods for MQTT sending, subscribing and forwarding
7 years ago
Xose Pérez
79a8dc6c06
Fix unknown reference in Arduino IDE
7 years ago
Xose Pérez
c2beb4a44e
Added factory reset on long-long click (>10 seconds)
7 years ago
Xose Pérez
b203757b5c
Using ESP.restart() instead of ESP.reset()
7 years ago