Otto Winter
fa351cd37c
Cleanup AS3935
2019-10-12 17:03:01 +02:00
Thomas Eckerstorfer
68e7e5a51c
AS3935 Lightning sensor ( #666 )
...
* added tx20 wind speed sensor
* added test
* fixed lint errors
* fixed more lint errors
* updated tx20
* updated tx20 sensor
* updated to new structure and removed static variables
* removed content from __init__.py
* fixing lint errors
* resolved issues from review
* added as3935 sensor
* updated as3935 with more settings
* update
* support for i2c + spi updated
* added tests and various fixes
* added tx20 wind speed sensor
* fixed lint errors
* fixed more lint errors
* updated tx20
* updated tx20 sensor
* updated to new structure and removed static variables
* removed content from __init__.py
* fixing lint errors
* resolved issues from review
* added as3935 sensor
* updated as3935 with more settings
* update
* support for i2c + spi updated
* added tests and various fixes
* updated tests
* fixed style issues
* Remove debug line
* Update log levels
* Reformat
* Auto-convert to int
Co-authored-by: Thomas <thomas.eckerstorfer@mic-cust.com>
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-10-12 15:03:35 +02:00
Abílio Costa
4d31ad3bdc
Allow 64 bit codes and add nexa remote support. ( #662 )
...
* add nexa remote support.
This is inspired by: https://github.com/sui77/rc-switch/pull/124
As described there: "The remotes sold in ClasOhlson in scandinavia have
a slightly longer sync sequence(added a skip pulse field in the
protocol) and a 64 bit code word. Part of the code gets lost but that
seems to be OK until support for 64 bit codes is added."
* add default value to ctor
* allow 64bit codes
* lint
* make vars 64 bits
2019-10-12 14:42:27 +02:00
Guillermo Ruffino
f4f1164b94
fixes samsung ir ( #738 )
...
fixes https://github.com/esphome/issues/issues/691
2019-09-28 10:26:48 -03:00
C W
bd0be41064
Fix https://github.com/esphome/issues/issues/658 ( #724 )
...
* Fix https://github.com/esphome/issues/issues/658
* Update to gross code style.
2019-09-10 23:37:33 -03:00
Guillermo Ruffino
4118a289a6
Add coolix receiver ( #645 )
...
* add coolix receiver
a
* lint - added comments
* Lint
* target temp neve be nan
2019-09-08 22:14:39 -03:00
Otto Winter
fd1dc24ac6
Also accept invalid spelling from Updater
...
Fixes https://github.com/esphome/issues/issues/564 partly.
At least the error message will now be a better one.
2019-09-01 11:42:37 +02:00
Otto Winter
be1e4c0a1d
Fix nextion display_picture argument order
...
Fixes https://github.com/esphome/issues/issues/613
2019-08-31 21:14:33 +02:00
Otto Winter
c2028f7378
DHT publish NAN on invalid reading
...
Fixes https://github.com/esphome/issues/issues/590
2019-08-31 21:14:10 +02:00
Otto Winter
4b0f203049
Use unique enum names for native API
...
Fixes https://github.com/esphome/issues/issues/617
2019-08-31 21:13:41 +02:00
Otto Winter
23ff8178a0
Merge branch 'dev' of https://github.com/esphome/esphome into dev
2019-08-31 20:23:35 +02:00
Otto Winter
93cfee8026
Fix strobe effect
...
Fixes https://github.com/esphome/issues/issues/620
2019-08-31 20:23:06 +02:00
Guillermo Ruffino
b6920025b2
Fixes sim800l ( #678 )
...
* Fix receive message quickly
* fix case
* lint
2019-08-31 19:45:34 +02:00
Nad
4c03cebef3
Add support for Sensirion SCD30 CO2 sensors ( #712 )
...
* Add support for Sensirion SCD30 CO2 sensors
* Fixed few lint issues
* Lint fixes
* Fixed line ending for lint
* Cleanup
* Refactored float conversion
* Refactor unnecessary return
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-08-31 19:24:37 +02:00
Guillermo Ruffino
244c4be8cc
fix integration sensor ( #711 )
...
* fix integration sensor
* revert rtc_.save conditional
2019-08-31 18:45:06 +02:00
Guillermo Ruffino
9b28c732c6
fix wifi info ( #709 )
...
* fix wifi info
* lint time based cover
2019-08-29 21:34:29 -03:00
Robert Kiss
f9b3e61c0f
Add delayed_on_off binary_sensor filter ( #700 )
...
* add delayed_on_off binary_sensor filter
* fix formatting
* remove unwanted file modification
* add newline to fix linter error
2019-08-29 16:09:37 +02:00
Guillermo Ruffino
83a92f03fc
add time based cover, has built in endstop ( #665 )
...
* add has built in endstop
* rewrite as proposed
* Update esphome/components/time_based/time_based_cover.h
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* lint
* Re trigger stop_operation if stop called
* allow se triggering open/close command if safe
* using COVER_OPEN/CLOSE constants
2019-08-29 16:07:41 +02:00
Otto Winter
2c995cf145
Fix GPS time source. ( #704 )
...
* Change ESP32 default power_save_mode to light
* Update
2019-08-27 22:11:50 +02:00
junnikokuki
65d08beaa4
add xiaomi BLE Thermometer lywsd02 model support ( #664 )
...
* add xiaomi BLE Thermometer lywsd02 model support
* remove battery level
* Update sensor.py
to pass the lint test
https://github.com/esphome/esphome/pull/664
* fix trailing space
Co-authored-by: Guoxue <gx@m15.cn>
Co-authored-by: mr G1K <mr@g1k.ru>
2019-08-27 21:06:39 +02:00
Otto Winter
9770bc371b
Remove duplicate TAG value
2019-08-27 20:27:56 +02:00
Otto Winter
22f9f75914
Remove ESP32 uart pin entries
...
See also 655327a8b1
2019-08-27 20:13:50 +02:00
Otto Winter
54c9dd4173
Fix WiFi Info dump_config change
...
Fixes https://github.com/esphome/esphome/pull/698#discussion_r318212018
2019-08-27 20:07:48 +02:00
Jasper van der Neut - Stulen
0fc267dfc7
Implement median filter ( #697 )
...
Add median filter to sensors component
2019-08-27 10:39:04 -07:00
Nikolay Vasilchuk
c5db457700
MH-Z19 calibration support ( #683 )
...
* Allow configuration to enable or disable automatic baseline calibration on boot
* Add actions to enable or disable automatic baseline calibration
* Add action to calibrate zero point
2019-08-27 10:33:25 -07:00
Pauline Middelink
15a7d2ef75
The display component should not be handling update_interval, ( #693 )
...
as that is already done when registering the component.
2019-08-27 10:30:13 -07:00
Pauline Middelink
071272a27f
Fix mqtt_text_sensor to honor unique_id when set. ( #698 )
...
* Fix mqtt_text_sensor to honor unique_id when set.
* Remove setting of unique_id in json tree, as the mqtt_component already does this, and in fact overrides what we do here.
* Add unqiue_id() and dump_config() to the wifi_info sensors.
2019-08-27 10:28:50 -07:00
Jack Wozny
655327a8b1
Corrected ESP32 hardware UART pins ( #701 )
...
The UART pins for Serial1 and Serial2 on the ESP32 were reversed.
2019-08-27 10:19:55 -07:00
Brandon Davidson
a0b3d861fe
Remove double publish_state in ultrasonic sensor ( #696 )
...
Fixes https://github.com/esphome/issues/issues/589
2019-08-19 12:13:48 -07:00
Guillermo Ruffino
5c9755ecc1
fix missing schedule call ( #690 )
2019-08-11 12:30:47 +02:00
Otto Winter
11e88019c2
Fix travis
2019-07-28 15:40:31 +02:00
Felix Eckhofer
a783637a7a
Restore sending "None" effect type ( #667 )
...
This is a regression from 369d175694
.
2019-07-21 13:11:34 +02:00
Otto Winter
7210ad7ed9
Change ESP32 default power_save_mode to light ( #661 )
2019-07-03 20:42:55 +02:00
Otto Winter
1876c21e3e
WiFi networks priority ( #658 )
...
* WiFi networks priority
Fixes https://github.com/esphome/feature-requests/issues/136
* Print priority
2019-07-03 20:42:46 +02:00
Otto Winter
6516a6ff7e
Fix LG nbits
2019-07-03 17:16:46 +02:00
Otto Winter
85195436c1
Work around pytz tzname bug
...
Fixes https://github.com/esphome/issues/issues/445
2019-07-03 17:13:40 +02:00
Thomas Eckerstorfer
c6512013bb
added tx20 wind speed sensor ( #275 )
...
* added tx20 wind speed sensor
* added test
* fixed lint errors
* fixed more lint errors
* updated tx20
* updated tx20 sensor
* updated to new structure and removed static variables
* removed content from __init__.py
* fixing lint errors
* resolved issues from review
Co-authored-by: Thomas <thomas.eckerstorfer@mic-cust.com>
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-07-03 16:42:32 +02:00
Nikolay Vasilchuk
762f1b1fc9
ZyAura CO2 / Temperature / Humidity Sensor ( #656 )
...
* ZyAura sensors support
* Validation
* Small refactoring
* Some checks
* Small fix
* Use floats, not double
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* uint32_t now
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* A constant for bits in a byte just over-complicates the source code
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Review fixes
* Review fixes
* Review fixes
* Review fixes
* Review fixes
* Review fixes
* Review fixes
* Review fixes
* Travis fixes
* Travis fixes
* Travis fixes
2019-07-03 16:33:18 +02:00
Otto Winter
13522c8f19
WIP: ESP8266 work on connection issues ( #648 )
...
* Erase all flash for USB uploads on ESP8266s
Previously, only erased "write regions".
Downside: Config for other FWs like tasmota could be affected
Upside: Potentially fixes some ESP8266 connection issues
Related: https://github.com/esphome/issues/issues/455#issuecomment-503524479
* Clear WiFi settings for ESP8266
Clears wifi settings from retained storage on ESP8266 (if set).
Unsure if this is the actual issue, but it won't cause problems either.
* Update wifi_component_esp8266.cpp
* Revert erase chip for testing
* Improve wait_time calculation
2019-07-02 13:03:11 +02:00
Otto Winter
d2938e82db
Add calibrate_polynomial sensor filter ( #642 )
...
* Add calibrate_polynomial sensor filter
* Fix
* Lint
* Format
2019-07-02 13:02:55 +02:00
Otto Winter
f95d4ca106
CT Clamp ADS1115 Improvements ( #647 )
...
Fixes https://github.com/esphome/issues/issues/457
2019-07-02 13:02:46 +02:00
Otto Winter
341c99b4fa
Better DHT error reporting
2019-07-01 11:10:03 +02:00
Otto Winter
83095e8989
Fix climate MQTT HA interop
...
Fixes https://github.com/esphome/issues/issues/494
2019-07-01 11:09:44 +02:00
Otto Winter
840f599631
Dallas improve warnings
2019-06-30 09:14:16 +02:00
Otto Winter
8dee5c5fe8
Adjust default reboot timeouts
2019-06-30 09:12:48 +02:00
Otto Winter
b2e6d222cd
Remove unnecessary update_interval from schemas
2019-06-28 11:30:15 +02:00
Otto Winter
2712c44004
Update dependencies ( #653 )
...
* Update pio dependencies
* Platformio 4
* Fixes
* Update platformio_api.py
* Lint
2019-06-28 11:29:37 +02:00
Otto Winter
82625a3080
Fix remote_transmitter wait time unit ( #654 )
...
Fixes https://github.com/esphome/issues/issues/485
2019-06-26 21:48:00 +02:00
mtl010957
49f9ad66db
Adding ignore bits to narrow compare of received codes ( #650 )
...
* Adding bitmask to narrow compare of received codes
Updated test to add mask configuration
* Lint
* Handle bitmask as ignore characters per review comment
* Fixed test to cover ignore bits
* Lint
* Eliminate separate set_mask method per review comment
2019-06-26 21:47:34 +02:00
mtl010957
0dfab4d93c
Fixed rc_switch dump off by one bit ( #652 )
...
* Fixed rc_switch dump off by one bit
* Proper fix per review comments
2019-06-26 21:42:49 +02:00
rnauber
5cd7f23065
Provide the lights current color to the addressable_lambda_effect. ( #646 )
...
* Provide the lights current color to the addressable_lambda_effect.
* Fix formatting
* More formatting
* Change the call signature of the lambda
* lint
Co-authored-by: olg <x>
2019-06-19 11:33:14 +02:00
mtl010957
27453afa4e
Template tilt cover ( #577 )
...
* Enabling tilt control in the template cover
Added test
Add tilt option to publish action
* Added CONF_TILT to alidation schema per comment
* Removed default for CONF_TILT
2019-06-18 19:42:36 +02:00
Otto Winter
369d175694
Create Protobuf Plugin for automatically generating native API stubs ( #633 )
...
* Create Protobuf Plugin for automatically generating native API stubs
* Format
* Delete api.proto
* Cleanup, use no_delay conditionally
* Updates
* Update
* Lint
* Lint
* Fixes
* Camera
* CustomAPIDevice
* Fix negative VarInt, Add User-defined services arrays
* Home Assistant Event
* Fixes
* Update custom_api_device.h
2019-06-18 19:31:22 +02:00
Guillermo Ruffino
fc465d6d93
SMS Sender / Receiver ( #522 )
...
* add sim800l
* Increse SoftwareSerial Buffer Size
* use auto id on action
* lint
* lint
* add to test3.yaml
* lint
Co-authored-by: Guillermo Ruffino <guillermo.ruffino@pampatech.net>
2019-06-17 20:13:52 +02:00
Otto Winter
904a0b26ea
Make logger string memory usage more efficient ( #641 )
...
* Make logger string storing more efficient
* Lint
2019-06-16 19:14:24 +02:00
rnauber
c13f132399
Add set_threshold and get_value methods to ESP32TouchBinarySensor. ( #631 )
...
* Add set_threshold and get_value methods to ESP32TouchBinarySensor and add a test.
* esp32_touch_binary_adaptive: fix formatting
* Remove superfluous static from testcase
* Revert "Remove superfluous static from testcase"
This reverts commit 5a6a111aa8
.
* Move into header file
* Update esp32_touch.h
Co-authored-by: olg <x>
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-06-16 19:14:13 +02:00
Andrew Thompson
db968bc6b0
Atmel M90E32AS Energy Metering IC. Found in CircuitSetup 2chan and 6chan energy meterss ( #629 )
...
* Atmel M90E32AS Energy Metering IC. Found in CircuitSetup 2can and 6chan energy meters
* fix style bugs
* Update esphome/components/atm90e32/atm90e32.cpp
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Properly put atm90e32_reg in namespace
* Use phase grouped config like ina3221
* Log why the component is marked failed, did not read back our register value
* 32bit register reads are 2s compliment
* Fix atm90e32 option name in test
* clang-format changes from travis-ci
* use new protected method names
* Whitespace changes to please Travis
* Update esphome/components/atm90e32/atm90e32.cpp
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Fix up type change for val_h/val_l
* Remove conditions around values with defaults
* Rename constants to match their value
* Remove 2's complement check
Co-authored-by: Andrew Thompson <andrew@whosonlocation.com>
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-06-16 12:00:15 +02:00
Guillermo Ruffino
7abe8875bd
Fix home assistant binary sensor initial state ( #632 )
...
* Fix home assistant binary sensor initial state
* Fix send state log message
* fix new_state local name
* lint
* Trigger
Co-authored-by: Guillermo Ruffino <guillermo.ruffino@pampatech.net>
2019-06-15 18:02:17 +02:00
Mario Di Raimondo
dc9f304d94
Add Yashima climate component ( #634 )
2019-06-15 18:00:55 +02:00
Otto Winter
a09bd80636
Re-add CustomMQTTDevice class ( #640 )
...
* Re-add CustomMQTTDevice class
Fixes https://github.com/esphome/issues/issues/427
* Fix
2019-06-14 12:53:38 +02:00
Otto Winter
237ecb3adf
Fix remote_receiver raw binary sensor ( #639 )
...
* Fix remote_receiver raw binary sensor
Fixes https://github.com/esphome/issues/issues/439
* Lint
2019-06-14 12:53:27 +02:00
Otto Winter
97f2becc9e
Fix globals.set ( #635 )
...
* Fix globals.set
* Update __init__.py
2019-06-14 12:40:14 +02:00
Otto Winter
f4160c363b
Fix russia timezone detection ( #637 )
...
Fixes https://github.com/esphome/issues/issues/378#issuecomment-500219634
2019-06-14 12:35:14 +02:00
Otto Winter
4fee9cc039
Fix ESP32 RCSwitch Dump Stack Smash Protection ( #636 )
...
Fixes https://github.com/esphome/issues/issues/366
2019-06-14 12:34:45 +02:00
Otto Winter
36f47ade70
Add Captive Portal ( #624 )
...
* WIP: Captive Portal
* Updates
* Updates
* Lint
* Fixes
2019-06-09 17:03:51 +02:00
Otto Winter
8db6f3129c
Fix scheduler
2019-06-09 13:19:57 +02:00
Otto Winter
75630a36f8
Add HW SPI support ( #623 )
...
* Add HW SPI support
* Update spi.cpp
* Lint
* ESP32 Compile Fix
2019-06-08 17:45:55 +02:00
Otto Winter
d2be58ba31
Work around ESP32 core WiFi Bug ( #627 )
...
* Work around ESP32 WiFi Bug
* Lint
2019-06-08 16:47:27 +02:00
Otto Winter
bbeb0461c4
Work around ESP32 BLE issue ( #626 )
2019-06-08 16:47:04 +02:00
Otto Winter
14fd08e225
Fix status binary sensor for MQTT ( #628 )
...
Fixes https://github.com/esphome/issues/issues/417
2019-06-08 16:44:25 +02:00
Otto Winter
4fe0c95ccb
Allow id() syntax for custom code ( #621 )
...
* Allow id() syntax for custom code
* Lint
2019-06-07 14:26:17 +02:00
Otto Winter
726b0e73d9
Add more efficient SPI implementation ( #622 )
...
* Add more efficient SPI implementation
* Lint
* Add 200KHZ
* Updates
* Fix write_byte
* Update from datasheet
* Shift clock
* Fix calculation
2019-06-07 14:25:57 +02:00
Brandon Davidson
88ccd60a08
Allow setting the initial mode of HLW8012 sensors ( #611 )
...
* Allow setting the initial mode of hlw8012 sensors
* Changes as per code review
2019-06-06 22:44:52 +02:00
Otto Winter
e6c16e9981
Fix sun default elevation ( #620 )
2019-06-06 15:12:40 +02:00
Otto Winter
1bd408937a
Fix integration sensor, add test ( #619 )
...
* Fix integration sensor, add test
* Fix
* Fix
2019-06-06 15:06:02 +02:00
Otto Winter
76fe2e4871
Fix remote_receiver always shows sony ( #617 )
...
Fixes https://github.com/esphome/issues/issues/383#issuecomment-498370572
2019-06-06 13:15:37 +02:00
Otto Winter
16ae46e958
Template Cover don't auto-set current_operation ( #612 )
...
Fixes https://github.com/esphome/issues/issues/408
2019-06-06 13:13:56 +02:00
Otto Winter
73eea154d5
DHT22 ignore invalid values ( #614 )
...
Fixes https://github.com/esphome/issues/issues/397
2019-06-06 13:13:28 +02:00
Major Péter
970838ed09
Scan length for AddressableScanEffect ( #608 )
...
* Added scan_length to AddressableScanEffect (allow more than one LED)
* Added check for scan length being longer than addressable light
* Added config option 'scan_length' to AddressableScanEffect (default: 1)
* Renamed scan_length to scan_width, removed erroneous length check
* Fixed indentation issue in addressable_light_effect.h
Co-Authored-By: Otto Winter <otto@otto-winter.com>
2019-06-04 12:11:59 +02:00
Attila Darazs
30a542e763
Add backlight handling for lcd_pcf8574 ( #573 )
...
* Add backlight handling for lcd_pcf8574
Switch the backlight on or off by calling id(mydisplay).backlight()
or id(mydisplay).no_backlight() in lamda functions (assuming mydisplay
is the custom id for the LCD).
* Use abstract method
Co-authored-by: Attila Darazs <attila@darazs.com>
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-06-03 19:36:00 +02:00
Otto Winter
ebe64e24f1
Move ESPHome version define ( #607 )
...
* Move ESPHome version define
* Lint
2019-06-03 16:07:15 +02:00
Otto Winter
c53483a3b2
ESP8266 connect fixes ( #605 )
...
* ESP8266 Connection Fixes
* Update client.py
* Update mqtt_client.cpp
* Update mqtt_client.cpp
* Fix ping
* Async dump config
* Update base image to 1.7.0
* Update helpers.py
* Updates
* Update Dockerfile.lint
2019-06-03 15:21:36 +02:00
Otto Winter
fe24745815
Fix ADS1115 calculation ( #606 )
...
Fixes https://github.com/esphome/issues/issues/393
2019-06-03 14:31:01 +02:00
Otto Winter
734cc989de
Fix hx711 ( #602 )
...
* Fix HX711
* Use signed value
* Update hx711.cpp
2019-06-03 09:41:13 +02:00
Otto Winter
2642750466
Fix color wipe effect ( #599 )
2019-06-03 09:05:20 +02:00
Otto Winter
ec9cc72320
Allow old remote_transmitter repeat schema ( #601 )
...
Fixes https://github.com/esphome/issues/issues/389
2019-06-02 15:27:32 +02:00
Otto Winter
291d4be772
Fix medium fan speed ( #595 )
2019-06-01 22:00:09 +02:00
Otto Winter
52584ec2be
Fix flicker light effect turning itself off ( #594 )
...
Fixes https://github.com/esphome/issues/issues/382
2019-06-01 21:59:59 +02:00
Otto Winter
3bc08e5222
Fix remote_receiver binary_sensor ( #592 )
...
Fixes https://github.com/esphome/issues/issues/369
2019-06-01 13:22:28 +02:00
Otto Winter
672f8d1719
Fix timezone detection ( #586 )
...
* Fix timezone detection
* Update __init__.py
2019-06-01 12:03:43 +02:00
Otto Winter
420c8b49e2
Fix scripts circular dependency ( #591 )
...
Fixes https://github.com/esphome/issues/issues/370
2019-06-01 12:00:10 +02:00
Otto Winter
f921997ee6
Fix addressable effects ( #590 )
2019-06-01 12:00:00 +02:00
Otto Winter
2617e5092b
SM16716 support ( #541 )
2019-05-31 15:05:37 +02:00
Otto Winter
d41ddf380c
Fix i2c setup priority ( #585 )
...
Fixes https://github.com/esphome/issues/issues/314
2019-05-31 13:40:12 +02:00
Otto Winter
a72c3ea9d7
Fix light partition ( #584 )
...
* Fix light partition
Fixes https://github.com/esphome/issues/issues/365
* Lint
2019-05-31 13:38:56 +02:00
Otto Winter
8be733efee
Fix MQTT on_message trigger ( #583 )
...
Fixes https://github.com/esphome/issues/issues/363
Fixes https://github.com/esphome/issues/issues/364
2019-05-31 11:17:46 +02:00
Otto Winter
3012fee013
Fix Rotary Encoder ( #580 )
...
Fixes https://github.com/esphome/issues/issues/360
2019-05-31 10:37:40 +02:00
Otto Winter
01db114724
Fix MQTT client_id changed ( #579 )
...
Fixes https://github.com/esphome/issues/issues/323
2019-05-31 10:37:10 +02:00
Otto Winter
e05688d639
Fix remote_receiver binary_sensor schema ( #578 )
...
Fixes https://github.com/esphome/issues/issues/353#issuecomment-497491863
2019-05-31 10:36:23 +02:00
Otto Winter
925b030718
Fix waveshare 7.5in model ( #576 )
...
* Fix waveshare 7.5in model
Fixes https://github.com/esphome/issues/issues/357
* Fix platformio travis errors
2019-05-30 22:27:51 +02:00