Maxim Prokhorov
9789bba923
wifi: shorter keys for forced sleep
1 year ago
Maxim Prokhorov
bb4e74d03f
wifi: experiment with forced light sleep
see #2578
make TurnOff action select sleep mode from available settings
wifi.off and wifi.on commands in addition to existing AP & STA
overriding buttons is... problematic?
e.g. selecting LO trigger and existing hw pushbutton GPIO,
we are most likely to trigger long-click event
1 year ago
HamedTa
0db47f5ec9
ina219: fix shift value ( #2577 )
According to the datasheet, ADC gain bits are [11...12]
1 year ago
Maxim Prokhorov
f21ddba6f0
relay: mqtt handlers are constexpr
1 year ago
Maxim Prokhorov
78c9e6a218
relay: lock and unlock in api
1 year ago
Maxim Prokhorov
d3c113b73d
relay: preserve locks when syncing
instead of unlocking everything, remember current locks
also, allow to manually change locks in terminal
1 year ago
Maxim Prokhorov
9211dcd785
system: lock reent object in ctor
1 year ago
Maxim Prokhorov
30f3123cae
relay: sync should not unlock already locked relay
instead of flagging sync-in-progress, remember existing locks and
restore after it is done with processing
1 year ago
Maxim Prokhorov
11c897898d
relay: properly handle zero interlock time
schedule when >0, execute immediately otherwise
1 year ago
Maxim Prokhorov
e2c8dd7be1
pio: fix dependencies generator
`-mD` is not an option...
`-M -MF $file` can be used together with `-E` to generate a small
makefile-like generator (does not include any compiler flags!) for the
target file so we know which files it would use during compilation
1 year ago
Max Prokhorov
d141a3e5b3
pio: conditional for preprocess target
1 year ago
Maxim Prokhorov
579a5b239b
pio: helper to build single-source .E
1 year ago
Maxim Prokhorov
fbd4a9c1be
hw: disable uart for maxcio_wde004
1 year ago
Maxim Prokhorov
909949b5cc
light: hide extra toggle in webui
amend b5a03dac72
1 year ago
Maxim Prokhorov
faeedee57f
hw: missing light-state relays
amend b5a03dac72
1 year ago
Maxim Prokhorov
3513d0468e
btn: no newlines in description
1 year ago
Maxim Prokhorov
dca13574d9
lightfox: button provider experiments
another pin provider, similar to analogpin
instead of generating events, use last serial reading (with a timeout)
1 year ago
Maxim Prokhorov
f373e13719
btn: dummy provider and clean-up
events and actions are exportable, internals are not
some internal classes that do not need init through ctor
1 year ago
Maxim Prokhorov
d798052dae
ha: fix uninitialized sensor info
and double-check that we really have magnitudes available
fix #2572
1 year ago
Maxim Prokhorov
94fff47d4a
relay: missing provider strings
1 year ago
Maxim Prokhorov
fb21386de5
test: warning fixes
1 year ago
Maxim Prokhorov
f387b864da
relay: scheduling from system timer does not work
also queue fallback check instead of resolving it in the timer
resolve #2571
1 year ago
Maxim Prokhorov
f55b8f39f3
relay: fix dependencies when disabled
1 year ago
Maxim Prokhorov
ef086ac0fc
tuya: (best effort) relay provider
1 year ago
Maxim Prokhorov
9b28d640f7
lightfox: relay provider experiments
1 year ago
Maxim Prokhorov
7362068717
fan: experiment with relay provider
early init plus simple state switch w/ api
1 year ago
Maxim Prokhorov
b5a03dac72
light: experiment with relay state provider
* dynamic relays should not overlap with configuration
* prefer explicit relay configuration vs. dynamic addition
resolve #2568
1 year ago
Maxim Prokhorov
efaf15add3
sch: also fix flash strings
1 year ago
Maxim Prokhorov
7514dee5b0
relay: publish names to mqtt
1 year ago
m-kozlowski
657de76671
dcz: fix flash strings ( #2569 )
1 year ago
davebuk
68310b6d46
light: value adjustment only works with integers ( #2566 )
1 year ago
Maxim Prokhorov
312c3ef2ba
test: bump esp8266 version used for unit tests
1 year ago
Maxim Prokhorov
24c3ff8954
test: arduinojson header
1 year ago
Maxim Prokhorov
767cd72e36
lights: allow to recover from a fully black rgb
1 year ago
Maxim Prokhorov
997c4d0147
utils: test for overflow before addition
fix test case for 0b1... >32chars
1 year ago
Maxim Prokhorov
e53e25c8bb
test: utils
1 year ago
Maxim Prokhorov
69471b0a6f
relay: terminal pulse toggle instead of normal status
allow to schedule pulse timer for the current status by disabling 'toggle' (bool)
1 year ago
Maxim Prokhorov
bc2ce11555
relay: zero duration as pulse reset
1 year ago
Maxim Prokhorov
b9dcf3e048
gpio: always propogate source location
1 year ago
Maxim Prokhorov
53633cfc48
terminal: typo
amend 542188dd
1 year ago
Maxim Prokhorov
af6c8cc12e
relay: toggle action typo
resolve #2564
1 year ago
Maxim Prokhorov
542188dd03
telnet: buffer when eol is missing
resolve #2563
1 year ago
Maxim Prokhorov
988a972484
bh1750: configurable accuracy and sensitivity (mtreg)
amend b8921b9a89
* customize our multipliers. accuracy is a generic multiplier, mostly
depends on the environment temperature (see datasheet). sensitivity is
a ratio between the currently set mtreg value and the default
e.g. for mtreg 31, sensitivity is .45; for mtreg 69, sensitivity is 1.
* non-blocking pre(); since we have tick(), just wait until the reading
is available instead of stopping everything else in the sensor loop
* more specific error state when we are not ready to return a value
1 year ago
Maxim Prokhorov
52266684d8
sns: factor allowed values are 0...100
1 year ago
Maxim Prokhorov
b8921b9a89
bh1750: more decimals for mode2
return half of raw value in both modes involving it
resolve #2550 (just for the sensor, no global setting yet)
1 year ago
Maxim Prokhorov
bea8508ee2
v9261f: lazy parsing
ref. #2483 , #2546 and #2554
instead of waiting for our time window, attempt to read & parse everything
discard unknown data more frequently, and attempt to store more data as well
1 year ago
Maxim Prokhorov
ae0ae0b0d4
hw: formatting
1 year ago
Maxim Prokhorov
3f0366d910
hw: uart can be disabled with a specific flag
resolve #2558
resolve #2559
1 year ago
Maxim Prokhorov
00927fa412
relay: unused interface
1 year ago
Maxim Prokhorov
e70503a412
relay: destructor can be defaulted
1 year ago