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
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
9a5698b342
Add TUYA_SUPPORT ( #1997 )
- add experimental `relayDummy` to configure dummy relays at runtime
- add tuya-generic-dimmer #1729
- cleanup broker interface to allow Tuya module to properly receive events, modify broker methods to allow different function signatures
- add basic tests for Tuya frame and data protocol
5 years ago
Xose Pérez
8b7eea6c72
ESPurna base image for Tuya Convert
5 years ago
Max Prokhorov
beff73ef8b
relay/mqtt: handle custom relay status payloads ( #1889 )
- customize relay TOGGLE payload
- match payload string when receiving mqtt status message
- reference enum values instead of raw integers, spell out intended status
- remove dead code
amend #1885 , capitalize `relayPayload...` suffix instead of using uppercase
add `relayPayloadToggle`
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
aac2e1e47e
LED: store default settings exactly once ( #1719 , #1724 )
5 years ago
Xose Pérez
0987e01950
Allow to configure all LEDs from UI ( #1429 )
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Xose Pérez
356be730e2
Added message type to broker
5 years ago
Xose Pérez
cb8d9c344d
Manage relay changes in third party modules via broker
5 years ago
Xose Pérez
7d09f59952
Handle configure callbacks outside the ws module
6 years ago
Max Prokhorov
69bfafdb2f
Minor comment error in led.ino
6 years ago
Xose Pérez
210cd8df71
Option to disable LED support
6 years ago
Xose Pérez
81eb809d4f
Support for Smart Config via JustWifi
6 years ago
Xose Pérez
e6570fe1bb
Triple click to enter WPS mode, fast LED blinking
6 years ago
Xose Pérez
fa20c47f29
Check which keys should be saved and which ones shouldn't ( #730 )
6 years ago
Xose Pérez
d7af09e769
Added new relay & wifi led mode ( #604 )
6 years ago
Xose Pérez
4029ee73da
Trying to fix some issues reported by codacy
6 years ago
Xose Pérez
5c662432ee
Changed naming convention: topic key is now magnitude
6 years ago
Xose Pérez
f60f5d82a2
Added LED_MODE_STATUS
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
ff56e38254
Added hostname and mac placeholders for MQTT base topic
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
f06c841639
New LED modes: always ON and always OFF ( #348 )
6 years ago
Xose Pérez
1a68f89bbf
Fix mqtt group sync with different switches sharing same group
6 years ago
Xose Pérez
96202f7967
LED modes
6 years ago
Xose Pérez
d1abe1fc65
Option to disable MQTT at build time
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
227c4b03f1
Further renaming
7 years ago
Xose Pérez
9750bf26bb
Moved strings to PROGMEM, 160 bytes saved in memory
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
91770f77db
Fix wifi_led index in showStatus
7 years ago
Xose Pérez
57a25a9f49
Small fixes for windows machines
7 years ago
Xose Pérez
833757a3a9
Issue #75 . User defined links between relays and LEDs
7 years ago
Xose Pérez
a1a774198c
Added MQTT message to reset the board
7 years ago
Xose Pérez
9e9ca87e62
Change LED pattern to make it less intrussive
7 years ago
Xose Pérez
52a63b1849
Changes in file comment headers
7 years ago
Xose Pérez
ff81326846
Version and year bump
7 years ago
Xose Pérez
9ce457fa86
Fixed error in relay identification from MQTT messages (issue #31 )
7 years ago
Xose Pérez
6d6878d59f
Changes in MQTT calls. Using default client_id from AsyncMqttClient
7 years ago
Xose Pérez
bacc2c2b92
Arduino IDE compatibility ( #18 ) - Renamed src folder and main file as 'espurna'
7 years ago
Xose Pérez
abf07476b6
Fix error in led module
7 years ago
Xose Pérez
76e465cac2
Check relay and led id on 'public' methods
7 years ago
Xose Pérez
8cf10eee90
Added support for MQTT_USE_SETTER in leds module
7 years ago