1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-01 16:38:19 +01:00

74 Commits

Author SHA1 Message Date
Oxan van Leeuwen
f31e0532c4
Untangle core headers (part 1) () 2021-09-13 09:33:29 +02:00
Otto Winter
e5051eefbc
API encryption () 2021-09-09 09:22:47 +12:00
Oxan van Leeuwen
20f7eb7327
Add version argument to ESPDEPRECATED macro () 2021-08-04 10:43:01 +12:00
Oxan van Leeuwen
5983ccc55c
Color mode implementation () 2021-07-29 19:11:56 +02:00
Stefan Agner
5cb0c11feb
Introduce clamp as a template function () 2021-07-14 17:08:18 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check () 2021-06-11 08:19:44 +12:00
Otto Winter
360effcb72
Activate some clang-tidy checks () 2021-06-10 13:04:40 +02:00
Jesse Hills
0426be9280
Fixes for BLE/improv () 2021-06-09 08:45:51 +12:00
Stefan Agner
13fe9e83fa
Use Clang 11 () 2021-06-08 22:16:17 +02:00
Jesse Hills
a70a205ace
Improv - BLE WiFi provisioning ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-06-08 11:56:21 +12:00
SenexCrenshaw
2028362fd5
Buffer allocation and TRUEFALSE templates () 2021-03-27 11:01:37 +13:00
Jim Ekman
7708b81ef5
Support fan speed levels ()
* Add fan speed percentage support to the API

* Add float fan speed percentage

* Add percentage support to automation and configuration

* Update Tuya fan

* Fix pylint warning

* Update API to use speed levels instead of percentage

* Use speed levels

* Fix type warnings

* MQTT component now converts between speed levels and enums

* Webserver now supports speed_level

* Update prometheus

* Remove low/medium/high settings from speed fan

* Remove unused enum

* Configurable speed levels for speed fan

* Remove unused import

* Rename speed_level->speed and speed_levels->speed_count

* Rename supported_speed_levels -> supported_speed_count in API and FanTraits

Field id stays the same in the protocol, so the change is not breaking for aioesphome.
2021-03-17 10:40:02 -03:00
Dan Jackson
5df398ec31
Add encode_uint32 method () 2021-01-10 17:53:12 +13:00
Otto Winter
412351fd1e
Use inclusive terminology () 2020-07-14 18:45:42 +02:00
Otto Winter
7a6df38515
Add ESP8266 core v2.6.2 ()
* Add ESP8266 core v2.6.2

* Upstream ESP8266 Wifi fixes

* Replace disable_interrupt with InterruptLock C++ class

* Update code to use InterruptLock

* Lint

* Update dht.cpp

* Improve InterruptLock docs, mark as ICACHE_RAM_ATTR

* Fixes
2019-12-04 19:30:10 +01:00
Otto Winter
33c08812cc
Update ESP32 BLE ADV parse to match BLE spec ()
* Update ESP32 BLE ADV parse to match BLE spec

* Update xiaomi

* Update ruuvi

* Format

* Update esp32_ble_tracker.cpp

* Fix log

* Format

* Update xiaomi_ble.cpp
2019-12-04 17:12:26 +01:00
Samuel Sieb
96ff9a162c Add new component for Tuya dimmers ()
* Add new component for Tuya dimmers

* Update code

* Class naming

* Log output

* Fixes

* Lint

* Format

* Fix test

* log setting datapoint values

* remove in_setup_ and fix datapoint handling


Co-authored-by: Samuel Sieb <samuel@sieb.net>
Co-authored-by: Otto Winter <otto@otto-winter.com>
2019-10-19 21:47:24 +02:00
Otto Winter
369d175694
Create Protobuf Plugin for automatically generating native API stubs ()
* 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
Otto Winter
4fe0c95ccb
Allow id() syntax for custom code ()
* Allow id() syntax for custom code

* Lint
2019-06-07 14:26:17 +02:00
Otto Winter
0281914507
CCS811 support ()
* CCS811

* Move define, add test

* Remove sun artifact

* Lint

* Lint
2019-05-13 13:06:14 +02:00
Otto Winter
f1a0e5a313
Sun support ()
* Sun

* Add sun support

* Lint

* Updates

* Fix elevation

* Lint

* Update mqtt_climate.cpp
2019-05-11 12:31:00 +02:00
Otto Winter
521c080989
Updates 2019-05-08 09:58:03 +02:00
Otto Winter
766f6c045d
Updates 2019-04-24 23:49:02 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ()
## Description:

Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97

Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍

Progress:
- Core support (file copy etc): 80%
- Base Abstractions (light, switch): ~50%
- Integrations: ~10%
- Working? Yes, (but only with ported components).

Other refactors:
- Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`)
- Rework coroutine syntax
- Move from `component/platform.py` to `domain/component.py` structure as with HA
- Move all defaults out of C++ and into config validation.
- Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration.
- Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit.

Future work:
- Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block
- Enable loading from `custom_components` folder.

**Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97

**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here>

## Checklist:
  - [ ] The code change is tested and works locally.
  - [ ] Tests have been added to verify that the new code works (under `tests/` folder).

If user exposed functionality or configuration variables are added/changed:
  - [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs).
2019-04-17 12:06:00 +02:00