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
Max Prokhorov
37763f1ad4
Test: check core feature build ( #2080 )
* Test: check core feature build
* order
* add missing
5 years ago
Xose Pérez
a2599de4d1
Removed unneeded reference to Ticker library in RFBridge module
5 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
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
193cebdbab
RF/RFBRIDGE Update ( #1693 )
- remove optional RFRAW_SUPPORT
- enable module when RF_SUPPORT=1, optionally enable RCSwitch
- reorder ifdef checks to treat RFB_DIRECT and old RF_SUPPORT the same
- rename RF_PIN to RFB_RX_PIN
- depend on RF_SUPPORT instead of ITEAD_SONOFF_RFBRIDGE
- runtime TX & RX PIN setting
5 years ago
Niek van der Maas
b3abd0d6b3
Send RF MQTT message with retain off
5 years ago
Xose Pérez
a7aa8363e4
Fix RFBridge not showing codes in web UI as per @mcspr suggested change ( #1571 )
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Max Prokhorov
cde1aba561
partial sending of rfbridge codes
5 years ago
Max Prokhorov
17e5156ebf
fixup rfbridge ws-data
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
Xose Pérez
d47ae2e4a4
Helper terminal methods terminalOK and terminalError
6 years ago
Xose Pérez
b9e13446fc
Revert "Wrap embeddis commands and move feedback to caller"
This reverts commit 7ad0e3a02b
.
6 years ago
Xose Pérez
7ad0e3a02b
Wrap embeddis commands and move feedback to caller
6 years ago
Xose Pérez
27e7b9ae89
Move terminal methods to own module
6 years ago
Niek van der Maas
951155a1ee
Fix compile error when both RF_SUPPORT and API_SUPPORT are enabled
6 years ago
Niek van der Maas
97ee520907
Fix compile error when both RF_SUPPORT are API_SUPPORT are enabled
6 years ago
Niek van der Maas
14f3427a9d
Fix compile error when RF_SUPPORT is enabled ( #1475 )
6 years ago
Xose Pérez
64c8cf313d
Added API entry points for RFBridge module ( #1407 )
6 years ago
Niek van der Maas
d299773913
Merge RF and RFBridge code ( #1435 )
* Merge RF and RFBridge code
* Keep rfbridge.ino filename
* Corrected #if checks
* Make RF_DEBOUNCE and RF_LEARN_TIMEOUT configurable
* Fix compile warnings with platform_latest
6 years ago
Max Prokhorov
677f426a7f
Comment for clarity
6 years ago
Max Prokhorov
e47bdad2ac
Increase buffer size to fit B0 code
6 years ago
Xose Pérez
4d5c0d7617
Split ws messages for relays and rf codes ( #262 )
6 years ago
Xose Pérez
91a62693ed
Added learn and forget terminal commands to RFBridge and RF modules ( #1253 )
6 years ago
Max Prokhorov
f7d2864db6
Proper buffer size to fit two digit rfbOFF key
6 years ago
Xose Pérez
484827d431
Rework debug messages for RFBRIDGE ( #1031 )
6 years ago
wildwiz
ab175de48a
sonoff rf bridge, broader range of RC codes supported on TX and prevent watchdog from kicking in
6 years ago
Xose Pérez
44f182c064
Changed RFB_DIRECT setting
6 years ago
wildwiz
e809dc895a
RFB_DIRECT sonoff bridge hardware bypass of the RF microcontroller
6 years ago
Xose Pérez
8189f90686
Do not init Serial based on SERIAL_BAUDRATE ( #787 )
6 years ago
Xose Pérez
2dc4f28dd9
Prevent resending messages from rfin in RF Bridge ( #561 )
6 years ago
Xose Pérez
5c662432ee
Changed naming convention: topic key is now magnitude
6 years ago
Phil Elson
bbb3239d86
Used the constant for RF_MESSAGE_SIZE.
7 years ago
Xose Pérez
b51ffc29a6
Improve queue in RFBridge messages
7 years ago
Xose Pérez
b082d14c59
Loop hooks
7 years ago
Xose Pérez
a18554a3f8
Using a queue for RFBridge messages
7 years ago
Xose Pérez
ff56e38254
Added hostname and mac placeholders for MQTT base topic
7 years ago
Xose Pérez
a5df00b569
Option to disable network scanning ( #392 , #399 ). Scan networks from web UI
7 years ago
Xose Pérez
af805ab045
Update copyright notices
7 years ago
Xose Pérez
82177f5669
Fix bug in RF Bridge when RF code contains the stop byte. Check overflow ( #357 )
7 years ago
Rene Hexel
243aa8d1f5
Add raw support through web interface
7 years ago
Rene Hexel
4a6526dcc0
Subscribe to rfraw topic if RF_RAW_SUPPORT and show full message
7 years ago
Rene Hexel
3a3a06dc4d
No raw queueing to avoid data section overflow
7 years ago
Rene Hexel
f7992ed73c
Add RF_RAW_SUPPORT to rfbridge binaries
7 years ago
Xose Pérez
6219dca857
Improve RFBridge message queue to support multiple messages at the same time
7 years ago
Xose Pérez
8d8384f279
Force RFBridge to send messages even if switch is already in requested state
7 years ago
Xose Pérez
91ffe4d1af
Match MQTT rfout codes to switches
7 years ago
Xose Pérez
20334d1c97
Allow to define just ON or OFF codes in rfbridge ( #304 )
7 years ago
Xose Pérez
1758efc995
Fix rfbridge OFF button toggling relay ( #303 )
7 years ago