Commit Graph

2836 Commits

Author SHA1 Message Date
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
Max Walter
25d37f1c5c Markdown Typo Fix (#1926) 2019-10-01 01:52:48 +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
1cb141d710 Merge pull request #1901 from mcspr/web/update
- use jquery slim, update to the latest 3.4.1
- update wheelcolorpicker to 3.0.8
- remove jquery ajax, call fetch for ws and xhr for upgrade
- tryng to be clever with colorpicker value conversions
- remove v from hsv colorpicker
- fix ir module using lightColor with 4 bytes, just use lightBrightness instead
- revert getFreeHeap overhead
- schedule lights provider on loop instead of running in sys
- fix crash with garp when AP is destroyed
2019-09-10 12:55:54 +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
Max Prokhorov
5d5f0f8b8c light: schedule provider update on loop 2019-09-07 12:41:39 +03:00
Max Prokhorov
019e8ae10d util: do not construct struct for simple getFreeHeap 2019-09-07 12:40:53 +03:00
Max Prokhorov
7efaaa8a80 ir: use proper methods 2019-09-07 12:39:48 +03:00
Max Prokhorov
0bf07f166e web: update to jquery 3.4.1 and wheelcolorpicker 3.0.8 2019-09-07 12:37:31 +03:00
Max Prokhorov
68270310c7 web: parse host query via browser api, logging 2019-09-06 14:37:39 +03:00
Thomas
24788474ad ha: add color_temp_state_topic (#1891) 2019-09-04 02:22:26 +03:00
Max Prokhorov
26fcdd76c5 WiFi settings clean-up (#1893)
* use indexed getsetting
* store defaults in progmem
2019-09-04 02:21:14 +03:00
Max Prokhorov
4bc530452c relay: fix typos in payload configuration (#1892) 2019-09-04 02:20:43 +03:00
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`
2019-09-03 09:13:21 +03:00
Max Prokhorov
13c1a19328 Home Assistant updates (#1885)
- remove "platform" key, see #1440. this implicitly sets schema to "basic". pending some other clean-up regarding json and mqtt queueing, other schema can be added down the line 
- updated ws module queue elem to capture callbacks list, allows to pass more than one callback (for example, when they are generated on the fly as lambdas, see ha wsPost usage)
- modified method to send ha config to use global ws queue, fix #1762 problem with empty topics and ensure json allocation is consistent.
- use existing defines to set mqtt payload options. amend #1085, #1188, #1883 to use the set payload value. drop HOMEASSISTANT_PAYLOAD... defines. 
- update MQTT_STATUS_ONLINE/OFFLINE and RELAY_MQTT_ON/OFF with runtime configuration
- filter payload strings so that the resulting yaml value is not interpreted as bool (python True, False)
- helper method for settings to streamline string values manipulation
2019-09-03 06:34:11 +03:00