Commit Graph

3721 Commits

Author SHA1 Message Date
Maxim Prokhorov
909949b5cc light: hide extra toggle in webui
amend b5a03dac72
2023-01-12 03:16:07 +03:00
Maxim Prokhorov
faeedee57f hw: missing light-state relays
amend b5a03dac72
2023-01-12 02:49:42 +03:00
Maxim Prokhorov
3513d0468e btn: no newlines in description 2023-01-12 02:35:54 +03:00
Maxim Prokhorov
dca13574d9 lightfox: button provider experiments
another pin provider, similar to analogpin
instead of generating events, use last serial reading (with a timeout)
2023-01-12 02:32:01 +03:00
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
2023-01-12 01:24:07 +03:00
Maxim Prokhorov
d798052dae ha: fix uninitialized sensor info
and double-check that we really have magnitudes available
fix #2572
2023-01-12 01:09:56 +03:00
Maxim Prokhorov
94fff47d4a relay: missing provider strings 2023-01-11 06:44:37 +03:00
Maxim Prokhorov
fb21386de5 test: warning fixes 2023-01-11 06:08:53 +03:00
Maxim Prokhorov
f387b864da relay: scheduling from system timer does not work
also queue fallback check instead of resolving it in the timer
resolve #2571
2023-01-11 05:47:17 +03:00
Maxim Prokhorov
f55b8f39f3 relay: fix dependencies when disabled 2023-01-11 05:47:17 +03:00
Maxim Prokhorov
ef086ac0fc tuya: (best effort) relay provider 2023-01-11 05:47:17 +03:00
Maxim Prokhorov
9b28d640f7 lightfox: relay provider experiments 2023-01-11 05:47:17 +03:00
Maxim Prokhorov
7362068717 fan: experiment with relay provider
early init plus simple state switch w/ api
2023-01-11 05:47:17 +03:00
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
2023-01-11 05:46:38 +03:00
Maxim Prokhorov
efaf15add3 sch: also fix flash strings 2023-01-10 00:47:35 +03:00
Maxim Prokhorov
7514dee5b0 relay: publish names to mqtt 2023-01-10 00:47:35 +03:00
m-kozlowski
657de76671 dcz: fix flash strings (#2569) 2023-01-02 23:15:16 +03:00
davebuk
68310b6d46 light: value adjustment only works with integers (#2566) 2022-12-19 20:55:56 +03:00
Maxim Prokhorov
312c3ef2ba test: bump esp8266 version used for unit tests 2022-12-12 15:13:25 +03:00
Maxim Prokhorov
24c3ff8954 test: arduinojson header 2022-12-12 14:29:22 +03:00
Maxim Prokhorov
767cd72e36 lights: allow to recover from a fully black rgb 2022-12-12 14:28:25 +03:00
Maxim Prokhorov
997c4d0147 utils: test for overflow before addition
fix test case for 0b1... >32chars
2022-12-12 14:25:27 +03:00
Maxim Prokhorov
e53e25c8bb test: utils 2022-12-12 14:25:01 +03:00
Maxim Prokhorov
69471b0a6f relay: terminal pulse toggle instead of normal status
allow to schedule pulse timer for the current status by disabling 'toggle' (bool)
2022-12-08 15:12:37 +03:00
Maxim Prokhorov
bc2ce11555 relay: zero duration as pulse reset 2022-12-08 15:10:32 +03:00
Maxim Prokhorov
b9dcf3e048 gpio: always propogate source location 2022-12-08 13:08:22 +03:00
Maxim Prokhorov
53633cfc48 terminal: typo
amend 542188dd
2022-12-07 00:03:00 +03:00
Maxim Prokhorov
af6c8cc12e relay: toggle action typo
resolve #2564
2022-12-06 22:25:00 +03:00
Maxim Prokhorov
542188dd03 telnet: buffer when eol is missing
resolve #2563
2022-12-06 22:24:45 +03:00
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
2022-12-05 14:53:39 +03:00
Maxim Prokhorov
52266684d8 sns: factor allowed values are 0...100 2022-12-05 14:53:39 +03:00
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)
2022-12-04 05:56:18 +03:00
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
2022-12-04 05:53:21 +03:00
Maxim Prokhorov
ae0ae0b0d4 hw: formatting 2022-12-01 01:14:04 +03:00
Maxim Prokhorov
3f0366d910 hw: uart can be disabled with a specific flag
resolve #2558
resolve #2559
2022-12-01 01:11:22 +03:00
Maxim Prokhorov
00927fa412 relay: unused interface 2022-12-01 00:31:38 +03:00
Maxim Prokhorov
e70503a412 relay: destructor can be defaulted 2022-12-01 00:30:29 +03:00
Maxim Prokhorov
d1fabbd166 rtcmem: increment is u32 2022-12-01 00:30:29 +03:00
Maxim Prokhorov
59c2e97e0a webui: rebuild blobs 2022-12-01 00:30:29 +03:00
Maxim Prokhorov
0d8be5af99 ha: topic is always the same 2022-12-01 00:30:29 +03:00
Maxim Prokhorov
9126a9832b light: cct for rgb, rgbww and ww cases
- revert to ignoring rgb in color+white+cct case by resetting all its
  inputs to minimum and only controlling white channels
- ignore ww and cw in rgb+cct case; use approximated color, thus allowing
  us to set a different 'cold temperature' limit
- fix webui layout rules based on root element class(es) and consistent
  order for our control elements that does not depend on the order in which
  `processData` handles configuration kvs
- internal refactoring to flatten input processing funcs selection
  (to possibly replace our boolean flags with a simple list)
2022-12-01 00:30:26 +03:00
Maxim Prokhorov
4021c4d14d light: hide colorpicker when color is disabled 2022-11-27 03:43:41 +03:00
Maxim Prokhorov
d664b9d45d pwm: 1000hz -> 500hz to retain backwards compat
...and since it still causes hwdt crashes
2022-11-25 11:27:35 +03:00
Maxim Prokhorov
824e121499 relay: try to preserve state on reboot
ref. #2547, tell gpio side that we don't need any init

may do weird stuff after runtime pin changes, since we won't know our
new pins due to the order of setup() functions
2022-11-25 11:26:47 +03:00
Maxim Prokhorov
d78d783521 relay: unwanted pin write on init 2022-11-25 11:26:40 +03:00
Maxim Prokhorov
5a74dc146e doc: simple offsets with generic syntax
same as original fix for the Core
fix footer into a single line and add UTC alias notice
2022-11-25 09:46:38 +03:00
Maxim Prokhorov
144f2a7297 hw: warm white channel is first 2022-11-25 05:14:26 +03:00
Maxim Prokhorov
b1bdfd927c webui: update blobs 2022-11-25 05:09:12 +03:00
Maxim Prokhorov
83e7b61ce9 light: mired range in terminal 2022-11-25 05:07:46 +03:00
Maxim Prokhorov
33453117a4 light: fix temperature scale and white channel mode
make use of our apply() objects for value replacement in-place
also revert the white channel mode change that ignores rgb output factor
2022-11-25 05:06:10 +03:00