Commit Graph

486 Commits

Author SHA1 Message Date
julianwb
8f7d77b2a1 Config for Teckin SP23 & Maxcio W-UK007S (#2157) 2020-02-18 22:23:52 +03:00
Max Prokhorov
3747d2ef46 Merge pull request #2154 from mcspr/mqtt/bump
mqtt: bump arduino-mqtt version, tweak keepalive
2020-02-18 12:15:44 +03:00
Max Prokhorov
79e45324ca Bump RFM69 version (#2148)
* Check patched RFM69 with relative includes

* merged upstream, point to the commit
2020-02-18 12:14:52 +03:00
Max Prokhorov
fd50e95e9e Thingspeak: tweak SecureClient connection (#2144)
- continue #2140 , use the correct implementation for http requests not confuse code readers with our parsing
- fix data sender data duplication, run build test
- add note that this is actually really RAM heavy, some connection failures are not easily distinguishable from any code errors and are simply OOM.

also
- fix arduinoota prototype error when building without it (... ino2cpp, again)
- add comment about 160mhz into the platformio.ini
2020-02-18 12:14:07 +03:00
Maxim Prokhorov
098de0cb0b mqtt: pin arduino mqtt version 2020-02-18 09:46:39 +03:00
Max Prokhorov
7862b52060 Fix "Fix AsyncTCP dependency" (#2149)
* Revert "Fix AsyncTCP dependency (#2147)"

This reverts commit d5093b4d18.

* Ignore AsyncTCP
2020-02-14 14:40:51 +03:00
Max Prokhorov
d5093b4d18 Fix AsyncTCP dependency (#2147)
PIO 4.2.1a default soft does not work
2020-02-14 13:27:18 +03:00
Max Prokhorov
a4d4231ae0 PIO: remove -ota envs, handle OTA condition in extra script (#2099)
* PIO: remove -ota envs, handle OTA condition in extra script
* Tweak ESPURNA_BOARD variable
* Support git and latest in ota script
* Handle ESPURNA_FLAGS too
* Try to handle env and projenv in pylint
* Add deprecation comment about -ota envs
* regen arduino.h
2020-01-20 17:41:10 +03:00
Anders Blockmar
55a73b1c6e Added hardware config for Avatto NAS-WR01W (#2113)
Not a match to same model from Neo Coolcam
2020-01-20 15:42:16 +03:00
orrpan
57a441a811 Deltaco smart home (#2103)
* add support for DELTACO SH-P01

* renaming deltaco_sh_le14w to deltaco_sh_lexxw

* add support Deltaco SH-P03USB and SH-LEXXRGB
2020-01-13 14:31:17 +03:00
Wil Wilsman
c25d6509bf Add MagicHome ZJ_LB_RGBWW_L support (#2100) 2020-01-13 14:29:25 +03:00
Marcus Winkler
4d978a46ac Add support for Teckin SB53 smart bulb (#2090) 2020-01-13 14:06:13 +03:00
Aurélien Requiem
a170716e90 Add support for Kogan Smarter Home Plug With Energy Meter (#2086)
* Add support for Kogan Smarter Home Plug With Energy Meter

Type: Power Plug
Board: Kogan Smarter Home Plug with Energy Meter
Build flag: KOGAN_SMARTER_HOME_PLUG_W_POW
Description: Power Plug with integrated Energy Meter
Baseboard: Tuya TYWE3S
Baseboard Data sheet: https://docs.tuya.com/docDetail?code=K8uhkbb1ihp8u

* Include Kogan Smarter Home plug with energy meter (KOGAN_SMARTER_HOME_PLUG_W_POW) into arduino.h

* Update platformio.ini to support Kogan Smarter Home plug with energy meter (KOGAN_SMARTER_HOME_PLUG_W_POW)

* Add Kogan Smarter Home plug with energy meter product image

* fix platformio.ini that was missing a '-ota' for the environment

* comment out device definition

* Make device name consistent with #define and platformio.ini
2020-01-13 14:05:32 +03:00
Max Prokhorov
76ba6d52d7 Recover -ota block for #2042 2019-12-18 17:55:23 +03:00
Max Prokhorov
56ab28cd68 Update PIO platforms comment 2019-12-18 17:54:20 +03:00
Niek van der Maas
de2179cf25 Update Arduino core to 2.3.2 (#2069) 2019-12-18 17:46:47 +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
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
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
Johannes Hörmann
4cb8cd31b3 Add support for BW-SHP5 (#2029) 2019-11-29 23:03:13 +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
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
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
9a5698b342 Add TUYA_SUPPORT (#1997)
- add experimental `relayDummy` to configure dummy relays at runtime
- add tuya-generic-dimmer #1729
- cleanup broker interface to allow Tuya module to properly receive events, modify broker methods to allow different function signatures
- add basic tests for Tuya frame and data protocol
2019-11-21 01:14:17 +03:00
Max Prokhorov
849f8cf920 Rules RPN (#1984)
* RPN rules (WIP)

* RPN rules web interface, MQTT inputs

* Stickyness, rpn.ops,...

* Perform light updates only when value changes

* Improve wsSend performance

* Revert PR test

* Check TERMINAL_SUPPORT for _rpnInitCommands and remove unused variable

* Fix merge

* formatting

* disable by default (?)

* changelog

* comment

* remove debug function wrappers in favour of var activation

* fixup! comment
2019-11-10 07:01:50 +03:00
ealfaroc
cec6c6a385 Adding support for miobulb001 (#1973)
* Adding support for miobulb001

* Add miobulb001 images

* defined MUVIT_IO_MIOBULB001

* Update platformio.ini

revert default env
use dashes

* typo

* typo
2019-11-09 02:17:59 +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
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
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
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
Xose Pérez
50eda3371b Itead Sonoff Mini support 2019-09-30 07:59:17 +02:00
Max Prokhorov
9d166f8a30 mqtt: update MQTT_MAX_PACKET_SIZE to fit JSON payload (#1888) 2019-09-03 06:19:01 +03:00
Max Prokhorov
1fe28225a4 Disable serial debug for env:nodemcu-pzem004t 2019-09-03 06:16:20 +03:00
Max Prokhorov
c123156b87 WiFi SoftAP fixes (#1881)
* Stop updating SoftAP SSID and password when changing hostname and password via WebUI / settings `reload`:
https://gitter.im/tinkerman-cat/espurna?at=5d65418f49ac051923be1f06
* Show real ssid and psk values from the current sdk configuration instead of using getSetting
* `WIFI.STA` command
2019-08-30 10:57:29 +03:00
Antonio López Marín
93c1dd6bf9 Support Shelly 2.5 (#1827)
* Add Shelly 2.5

* Add ADE7953 sensor support

* Fix compilation

* Use only one instance

* WIP: Not working, I got StoreProhibited exception

* Fix exception

* Fix merge issues

* Apply request review changes

* declare struct before using it

* uninterruptible delay

* try optimized reg_size

* fix types

* Remove gpio 0 input in analog sensor

* Add energy to ADE7953, it is not finished yet

* Add new method to save energy with index

* Finish energy for ADE7953
2019-08-27 00:25:19 +03:00
Niek van der Maas
b48f8c1440 MQTT rewrite with SSL fixes (#1751, #1829)
* MQTT rewrite with SSL fixes

- Added Arduino MQTT library support (actively maintained)
- Added support for BearSSL (core >= 2.5)
- BearSSL validation: insecure, fingerprinting and CA validation
- AxTLS validation: insecure and fingerprinting
- Support MFLN in order to reduce heap usage

* Better header incl, fix building w/ no NTP_SUPPORT

* Clean up code, use DEBUG_MSG_P

* Fix compile error
2019-08-26 23:59:07 +03:00
Max Prokhorov
ef153b4eff Core 2.6.0+ fixes (#1852)
* Core 2.6.0+ fixes

* fix env -> config, run travis04 job

* don't duplicate free heap in frag data, use single stats struct

* fix dtostrf warnings, bump buffer sizes

* ...and even less words for fragmentation stat
2019-08-15 18:04:55 +03:00
Max Prokhorov
21423431ce Fixed size json payload & other WS bugfixes (#1843)
- update every dynamicjsonbuffer with fixed size constructor argument
- change to ws callback registration to use a class builder (just cosmetic)
- test multiple ws data callbacks for each module
- remove some of the static strings in favour of ws data callback
- improve sensor ws callback data size, remove duplicated strings
- use static buffer in wsDebugSend
- postpone wsSend until loop, implement wsPost to allow other modules to queue message callbacks. remove Ticker based ws callbacks for data
- update WebUI files
2019-08-12 23:24:52 +03:00
Max Prokhorov
437424aaac .ld scripts refactoring (#1559)
* initial ldscripts refactoring

* add missing menu options

* board for 2.3.0 and 2.4.2

* test with core 2.5.0

* typo

* ...same typo in other boards.local.txt

* generate boards.local.txt from common template

* Depend on file presence instead of platform version

* sdk selection

* Override only relevant entries

* generate ldscripts

* formatting

* unused

* fix section scope

* fix linker script comment and build getting stuck

* py2 compat

platformio from pip still does not support py3

* add TODO for py3

* chmod +x, remove leading newline

* comment with real spiffs size

* fixup! chmod +x, remove leading newline

* regenerate all ldscripts

* Preventive fix of spiffs_end calculation

* update arg parsing

* generate only 2.3.0 and latest

* readme for boards.local.txt

* Update ldscript readme

* unique flash sizes

* fix sub

* line break

* correct way to get framework path

* Alias for _FS_... symbols

* unused 2m1m1s

* bump?

* show travis logs

* ensure latest toolchain for travis

* check platform packages when building
2019-08-05 19:44:21 +03:00
Laine Walker-Avina
7e536be79c Add iselector-sm-pw702 (#1837) 2019-08-05 19:01:05 +03:00
Sandeep Sirpatil
6d74f4e958 Add etekcity-esw01-usa (#1836)
*  * Added support for Etekcity ESW01-USA device

* Update hardware.h

* Update hardware.h
2019-08-05 18:57:08 +03:00
Michael Murton
dfb0cfb717 add s31-lite hardware profile
Signed-off-by: Michael Murton <6764025+CrazyIvan359@users.noreply.github.com>
2019-07-20 09:26:59 -04:00
Antonio López Marín
2e8ff3ab3d Add Shelly 1PM (#1822)
* Add Shelly 1PM

* Improve Shelly 1PM temperature tabs

* Add shelly 1pm button
2019-07-18 02:03:51 +03:00