3866 Commits

Author SHA1 Message Date
Max Prokhorov
8e7854b04e WebUI fix change detection of input elements (#1986)
- use setOriginalsFromValues function right after elements had changed and
**only** with those elements
- add checkbox handling to setOriginalsFromValues to match hasChanged
- apply hasChanged after value is set to refresh originals after saving
- change parts that already set 'original' attribute manually

This was sort-of broken, because original attr never worked as intended. 
Also fix possible OOM for large WebUI images, since sending full config each time means that we need more memory to buffer and parse it.
2019-12-18 17:45:51 +03:00
Max Prokhorov
e5b72a0d43 Device: add LOHAS_E26_A19, rename LOHAS_9W to LOHAS_E27_9W (#2068) 2019-12-16 14:41:35 +03:00
Max Prokhorov
96a13f39c3 Influxdb: don't queue any data while connecting 2019-12-16 14:40:43 +03:00
sehraf
c0c325ee3b Add support for the LSC LED LIGHT STRIP from ACTION using a tuya chip. (#2065)
This LED strip is sold by ACTION in Germany and comes with a Tuya (TYWE3L) chip. It can be "freed" by using tuya-convert. It has (yet another) IR remote control that uses another set of codes. Which is added, too. The color codes are copies from SET 1 and 2.
I kind of think that they don't match my remote control but since i'm using my smart home system for controlling, i don't care enough to figure out the correct color codes.

The circuit board supports also a CW channel on PIN 5 (which is not used on by version), nevertheless I've added a comment in case anybody has a similar device with CW
2019-12-16 14:35:41 +03:00
Max Prokhorov
c6758e4844 Revert "ir: use proper methods" (#2066)
This reverts commit 7efaaa8a80.
2019-12-16 14:09:52 +03:00
Max Prokhorov
0ae6e3b48e Influxdb: fix sensor send frequency, use async client, send data in batches (#2061)
* broker: drop REAL_TIME flag, use separate Broker entities

* influxdb: use async client, send data in batches
2019-12-16 14:09:09 +03:00
Max Prokhorov
8e8c990ff0 Device: MAGICHOME_ZJ_WFMN_C_11 (#2051) 2019-12-16 14:08:24 +03:00
Vencislav Atanasov
b1d34885b1 Add support for eHomeDIY devices. (#2046)
We have created a few dozens of devices, released as open-source hardware and
published the schematics to GitHub. We're planning to organize some small
(10-15 people) workshops on how to assemble, flash and configure these board.

https://github.com/eHomeDIY
2019-12-16 14:07:01 +03:00
mpcusack
9c5dc67320 Add support for LinkSprite R4 (#2042)
* Add LinkSprite R4 def

* Platformio.ini def for linksprite r4

* LINKSPRITE_LINKNODE_R4
2019-12-16 14:04:25 +03:00
orrpan
e64ec2a9e3 Device: add GENERIC_E14, e14 rgb+w 4,5w (#2039) 2019-12-16 13:58:17 +03:00
foxman69
5cf687ffc1 WebUI: Fixed small aesthetic problem (#2038)
* Fixed small esthetic problem

* Changed to legend
2019-12-09 09:22:51 +03:00
Max Prokhorov
2ef21d840d WebUI: fix some issues
- fix colorpicker variable name
- var msg and var pre for debug messages
- add gpio16 to gpio list, remove unused template code
- fix lightfox endif matching rfbridge instead of lightfox
- formatting
2019-12-09 09:10:40 +03:00
Max Prokhorov
15accf8090 web: check sch_last existence (#2050) 2019-12-09 07:40:36 +03:00
Max Prokhorov
b059ce9445 domoticz: proper datastructure for mask (#2049) 2019-12-09 07:28:03 +03:00
Max Prokhorov
2c4cfd6d3d Version 1.14.1-dev (#2047) 2019-12-09 06:13:40 +03:00
Xose Pérez
7bf7aa6906 Force get_device_size to return an int in OTA manager 2019-12-08 21:09:19 +01:00
Xose Pérez
c271ba666e Using python3 by default in OTA manager 2019-12-06 15:23:24 +01:00
Xose Pérez
a2599de4d1 Removed unneeded reference to Ticker library in RFBridge module 2019-12-05 08:03:02 +01:00
Xose Pérez
bc70dec09f Beautify build script size output 2019-12-05 08:02:41 +01:00
Max Prokhorov
978cf2af95 Version 1.14.0 2019-11-30 02:11:54 +03:00
Johannes Hörmann
4cb8cd31b3 Add support for BW-SHP5 (#2029) 2019-11-29 23:03:13 +03:00
Maxim Prokhorov
c43efc7dee nofuss: custom reset reason 2019-11-29 01:20:39 +03:00
Maxim Prokhorov
5e0ec8613b system: same name as light for rtcmem struct member 2019-11-29 01:20:39 +03:00
Maxim Prokhorov
03e6443ac6 system: move prototypes to a separate header 2019-11-29 01:20:39 +03:00
Maxim Prokhorov
655805a404 ota: hide progress cb under DEBUG_SUPPORT check 2019-11-29 01:20:39 +03:00
Maxim Prokhorov
808d2b533d ota: arduinoota reboots after end callback 2019-11-29 01:20:39 +03:00
Max Prokhorov
5ac420dfcd Scripts: memanalyzer can use size instead of objdump (#2021)
* utils: use size instead of objdump, include .text1 in .text calculation

* cleanup class attrs, import
2019-11-28 19:48:53 +03:00
Max Prokhorov
52fff439f1 Update nodemcu-lolin envs (#2025)
- add nodemcu-lolin-secure-client
- add nodemcu-lolin-latest based on $platform_latest
- remove nodemcu-lolin-252 based on $arduino_core_2_5_2
2019-11-28 19:48:12 +03:00
Max Prokhorov
f743ca4c6c Reword comments regarding 2.4.0 (#2024) 2019-11-28 19:47:31 +03:00
Niek van der Maas
60063f9d3f Upgrade to core 2.6.2, fixes WiFi issues (#2023) 2019-11-28 19:46:14 +03:00
Max Prokhorov
55a0abf1e1 Secure client / server cleanup (#2016)
* web: revert changed from secure_client patch

* ota/httpupdate: use SecureClient

* ota/httpupdate: use scheduled function on mqtt event

* config: finish up 590282e changes + add warnings

* typo fix

* use bind instead of c++14 magic, use debug text from secureclient

* bump

* actually use the locking
2019-11-28 04:28:34 +03:00
Max Prokhorov
0f71869d08 Clean up headers (#2019)
- fix hardware.h weird encoding (todo: is there a git-attribute for
this to be peristent?)
- sort and add missing support and hw entries to the arduino.h
- force thermostat to depend on sensors to avoid confusing linker error
2019-11-28 03:16:28 +03:00
Niek van der Maas
ea9d29f523 Update Arduino core in PIO (#2018) 2019-11-27 22:48:39 +03:00
reaper7
899f646f90 Add support for Hykker Smart Plug with power meter (#2010)
* add support for Hykker Smart Plug with power meter
Type: Power Plugs
Board: Hykker Power Plug
Build flag: HYKKER_POWER_PLUG
Description: Power plug w/ power metering

* Update arduino.h

hykker power plug

* Update platformio.ini

hykker power plug

* Type: Power Plugs
Board: Hykker Smart Home Power Plug
Build flag: HYKKER_SMART_HOME_POWER_PLUG
Description: Power plug w/ power metering

* voltage ratio calibration for correct results
2019-11-27 01:09:58 +03:00
Max Prokhorov
0b5d200de1 Scripts: memanalyser fixes (#2014)
* scripts: memanalyzer fixes

- cleanup duplication
- cleanup external dependencies
- properly use subprocess when calling pio, add debug mode
- cleanup argparse usage, use store_true actions instead of counters
- use python3 syntax and python3 shebang by default
- fix some issues with module dependencies

* move to scripts

* use simple return

* quick fix for rfm

* codacy unused import

* formatting

* show defaults

* while at it, rewrite to make pylint happy

* fix unused

* add windows support + note
2019-11-27 01:07:50 +03:00
Max Prokhorov
960b32cd93 Merge pull request #2013 from mcspr/web/sch-init-order
Since relayState is no longer in the same obj as relayConfig, init relays when matching relayConfig.
Also a small update to the scheduler (...which needs more cleanup...), fix getSetting("schType", i, 0) when sending ws data
2019-11-27 01:07:17 +03:00
Max Prokhorov
5c49db89af relay: compare sum of physical + dummy relays instead of just dummy (#2012)
* relay: compare sum of physical + dummy relays instead of just dummy

* typo
2019-11-27 01:06:35 +03:00
Maxim Prokhorov
fc5aa2fbf4 sch: send type_switch as default 2019-11-25 23:36:02 +03:00
Maxim Prokhorov
812c3ea8a0 web: init relay selectors inside relayConfig 2019-11-25 23:35:28 +03:00
Max Prokhorov
a6c5c7e7c7 utils: u32 value prefix should depend on "base" argument (#2005) 2019-11-23 02:56:32 +03:00
Maxim Prokhorov
57c9359622 utils: interval value is in seconds 2019-11-23 00:49:27 +03:00
Maxim Prokhorov
19e474abca utils: fix base-10 condition 2019-11-23 00:48:20 +03:00
Maxim Prokhorov
83f49e30ea relay: write boot mask later, add relay_t defaults 2019-11-23 00:26:48 +03:00
Maxim Prokhorov
5e74adb23e relay: proxy header defaults through methods 2019-11-23 00:24:54 +03:00
Maxim Prokhorov
e7fc5f337b relay: rework mask handling to use generic u32<->string conversion 2019-11-23 00:24:54 +03:00
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
2019-11-22 18:05:04 +03:00
Maxim Prokhorov
f4b0e9fe5b relay: fix dummy relays overwriting real ones 2019-11-22 15:23:30 +03:00
Max Prokhorov
1f41d79afb Fix heartbeat check for thermostat, add Bssid for InfluxDB (#2002) 2019-11-22 15:22:05 +03:00
Max Prokhorov
ca56e0e4c1 Add THERMOSTAT_SUPPORT=1 to the sensor tests 2019-11-21 02:47:28 +03:00
Max Prokhorov
383d5a8a5d DHTSensor: fix Si7021 compatibility (#2000)
* sensor: add DHT_CHIP_SI7021 references

* sensor: update DHT_TYPE definitions, use enum

* changelog
2019-11-21 01:29:58 +03:00