Commit Graph

2582 Commits

Author SHA1 Message Date
Maxim Prokhorov
01b76adff0 crash,lights: ensure that settings contain positive value 2019-10-22 15:17:22 +03:00
Maxim Prokhorov
b36e5ee396 test: allow to run a single configuration test, improve commandline handling 2019-10-22 15:17:22 +03:00
Max Prokhorov
c18490cc4a PIO: pass APP_REVISION via extra scripts (#1946)
* utils/version: use git description token as version, add memoization

* pio: move extra scripts to a separate directory

* pio: add -DAPP_REVISION=... as local build flag
2019-10-16 14:41:43 +03:00
Max Prokhorov
6cb503b623 Merge pull request #1945 from mcspr/light/cfg-colortemp-range
Lights: configure mired warm / cold at runtime
2019-10-16 14:28:21 +03:00
Max Prokhorov
ff5b0d5165 ha: add platform="mqtt" back to the yaml output (#1949) 2019-10-16 14:27:25 +03:00
Max Prokhorov
7ad8045304 Fix infinite loop when printing crash dump (#1947)
* terminal: avoid softlock when comparing signed with unsigned

* move offset increment to condition

* adjust settings and crash handler available space

* key

* offset embedis writer and reader too

* rollback settings change
2019-10-16 14:25:36 +03:00
Niek van der Maas
7db0df0a67 NTP: Fix warning about unused variable if DEBUG support is disabled (#1944) 2019-10-16 14:23:51 +03:00
Max Prokhorov
d0a137ce94 Test: move travis boards outside of hardware header (#1943)
* travis: move build flags tests outside of hardware header

* mqtt: fix typo

* travis: use files instead of bundling test cases into script

* fixup! travis: use files instead of bundling test cases into script

* fix variable expansion, remove custom h at the end

* add ade7953 to sensors list

* custom.h path as variable

* shellcheck

* fix printf syntax, silent again

* fix bash 4.3 treating empty array as unset variable
2019-10-16 14:23:19 +03:00
Max Prokhorov
8dda0072f2 WiFi: allow button action to also disable softAP (#1942) 2019-10-16 14:22:43 +03:00
Max Prokhorov
6a3ef86c8f light: change naming order for cct vars 2019-10-15 19:24:54 +03:00
Max Prokhorov
5a2314e17a light: update XIAOMI_SMART_DESK_LAMP mired values 2019-10-15 19:14:59 +03:00
Max Prokhorov
6d9d4ae149 light: provide mired warm / cold limits to webui 2019-10-15 19:14:22 +03:00
Maxim Prokhorov
bcd2bf807f light: configure colortemp limits from settings 2019-10-15 19:12:07 +03:00
Xose Pérez
0a11a74f94 Support for TFlag NX-SM100 and NX-SM200 power monitoring switches 2019-10-11 17:46:53 +02:00
Xose Pérez
8b7eea6c72 ESPurna base image for Tuya Convert 2019-10-11 17:44:47 +02:00
Xose Pérez
06ebab31b5 Support for Teckin SP21 2019-10-10 13:25:55 +02:00
Max Prokhorov
1949bc8e3b Telnet: (optional) buffered output for AsyncTcp server (#1929)
* telnet: buffered output for async server

* telnet: make async buffer an option

* just use the queue containers directly

* try with simpler list

* exhaust buffers as much as possible in a single try

* don't forget to destroy the client object

* naming

* kill the connection earlier

* fix merge issues
2019-10-09 23:32:13 +03:00
Niek van der Maas
f3b35567d4 Added support for reverse telnet (#1920)
* Added support for reverse telnet

* Fix issues with first command being ignored

* Fix incorrect client creation

* Integrate PR 1927
2019-10-09 23:05:26 +03:00
Max Prokhorov
cf4540ae90 lights: module declarations in the header 2019-10-09 22:57:28 +03:00
Max Prokhorov
038cb912d5 encoder: load once, use iterators 2019-10-09 22:57:28 +03:00
Max Prokhorov
f007b484e3 lights: directly use String as buffer for group payload 2019-10-09 22:57:28 +03:00
Max Prokhorov
97821f3b21 lights(xxx): help 2.3.0 string deduplication
...2.6.0+ does this all by itself
2019-10-09 22:57:28 +03:00
Max Prokhorov
3ae164490a light: move hardcoded comms masks to the header 2019-10-09 22:57:28 +03:00
Max Prokhorov
9ec3723a11 light: update toRGB and toHSV to use local buffer 2019-10-09 22:57:28 +03:00
Max Prokhorov
559c75d3c7 lights: switch to signed arithmetic, introduce adjustment and update step functions 2019-10-09 22:57:28 +03:00
Max Prokhorov
ee6ee89302 mqtt: fix building with pubsubclient / arduinomqtt without secureclient enabled (#1939)
hide _mqtt_client_secure under preprocessor check
2019-10-09 22:50:19 +03:00
Thomas Oeding
bd385f9fbc ESP8266 FS-UAP1 Control board (#1925)
Control board for Hoermann UAP1 Garage interface
http://frank-schuetz.de/index.php/fhem/13-hoermann-torantrieb-mit-espeasy-in-fhem-einbinden
2019-10-01 01:53:49 +03:00
Niek van der Maas
a0fc672816 Properly handle telnet negotiation (#1927)
* Get rid of _telnetFirst (assumption that first line is always telnet renegotiation)

Discussed in: #1920 (comment)
2019-10-01 01:52:28 +03:00
Max Prokhorov
d4698c0a37 light: fix inconsistent transitions (#1901, #1923)
* light: fix inconsistent transitions

- capture step variable for the current transition
- use one-shot timer, restart from the timer callback

* schedule inside provider func, not transition
2019-10-01 01:50:40 +03:00
Xose Pérez
fe247c7465 Fix button2 GPIO in Sonoff MINI 2019-09-30 10:31:42 +02:00
Xose Pérez
50eda3371b Itead Sonoff Mini support 2019-09-30 07:59:17 +02:00
Max Prokhorov
deb465763f Fix WiFi scan results in Web (#1913)
* web: re-add wifi scan action, send as json array

* ws: forcibly inline send functions
2019-09-20 15:37:54 +03:00
Max Prokhorov
c0c534926b Light: store pwm consts as progmem data (#1906) 2019-09-20 15:33:39 +03:00
Max Prokhorov
ae070b5973 Lights: channel value change detection (#1914) 2019-09-20 15:33:07 +03:00
Max Prokhorov
1f44bf5790 WiFi: Configure TX power (#1915) 2019-09-20 15:24:45 +03:00
Max Prokhorov
0ede907400 cfg: ignore MDNS_CLIENT_SUPPORT with lwip2 2019-09-20 15:13:59 +03:00
Max Prokhorov
9232ebae66 ws: move cmdVisible to terminal module 2019-09-20 15:13:59 +03:00
Max Prokhorov
fc2e29552e test: netstat and dns probing in terminal 2019-09-20 15:13:59 +03:00
Niek van der Maas
29ce81e4bf Fix SSL check callback function definition (#1916)
* Fix SSL check callback function definition

* Print secure client check as string
2019-09-20 14:45:07 +03:00
Max Prokhorov
cf3bd49bde light: fix value2pwm range conversion (#1902, #1905) 2019-09-10 19:09:24 +03:00
Niek van der Maas
ad2188cc0b Fix HTTPS support with OTA_CLIENT_HTTPUPDATE (#1894) 2019-09-10 12:57:01 +03:00
Max Prokhorov
0f23cddf9b Merge remote-tracking branch 'origin/dev' into web/update 2019-09-10 12:48:18 +03:00
Max Prokhorov
7959863526 lights: toRGB default arg 2019-09-10 12:45:16 +03:00
Max Prokhorov
054a9a5ea7 lights: fix kelvin/mired const naming 2019-09-10 12:45:16 +03:00
Max Prokhorov
f0a86ded9e lights/hsv: properly divide rgb values 2019-09-10 12:45:16 +03:00
Max Prokhorov
a2688ec376 lights: don't show v for hsv picker, use brightness instead 2019-09-10 12:39:28 +03:00
Max Prokhorov
f8deb535b5 lights: selector typo 2019-09-10 12:36:09 +03:00
Max Prokhorov
8dbd25c548 lights: initColor args 2019-09-10 12:35:12 +03:00
Max Prokhorov
e233fd5b08 web: move hsv picker conversions into functions 2019-09-07 12:48:35 +03:00
Max Prokhorov
5622fb8183 wifi: try garp before checking AP, if it is destroyed 2019-09-07 12:46:25 +03:00