wifwucite
fd836e982e
Mqtt topics to support numeric fan speed ( #1859 )
...
* numeric speed added
* when dumping config for MQTT components log a note when skipped due to is_internal
* added new topics to paython code validation/generation
* reformatted with black
* formatting corrected
* use dump_config_ mechanism to skip internal components
* use dump_config_ mechanism to skip internal components
* style issues resolved
* do_dump_config removed
* formatting fixed
* formatting fixed
* Drop parent dump_config() calls
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-09-22 13:42:58 +02:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-20 11:47:51 +02:00
Oxan van Leeuwen
1e8e471dec
Introduce call_dump_config() indirection ( #2325 )
2021-09-20 11:16:31 +02:00
dependabot[bot]
dbb195691b
Bump pylint from 2.10.2 to 2.11.1 ( #2334 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-19 19:22:28 +02:00
Oxan van Leeuwen
c6dc8a11e2
Add namespace to all PlatformIO library references ( #2296 )
...
* Remove unnecessary duplication in platformio.ini
* Add namespace to all platformio library references
* Add cmake-build-* to gitignore
They're generated by the CLion add-on for each PlatformIO environment.
Listing them all separately seems nonsensical.
2021-09-15 19:01:31 +02:00
Oxan van Leeuwen
e6b0a0ca2b
Clean-up sensor integration ( #2275 )
2021-09-13 18:58:49 +02:00
Oxan van Leeuwen
40c474cd83
Run clang-tidy against ESP32 ( #2147 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-13 18:11:27 +02:00
Otto Winter
a4867a00ea
Activate owning-memory clang-tidy check ( #1891 )
...
* Activate owning-memory clang-tidy check
* Lint
* Lint
* Fix issue with new NfcTag constructor
* Update pointers for number and select
* Add back the NOLINT to display buffer
* Fix merge
* DSMR fixes
* Nextion fixes
* Fix pipsolar
* Fix lwip socket
* Format
* Change socket fix
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-13 11:31:02 +02:00
Oxan van Leeuwen
d594a6fcbc
Store strings only used for logging in flash ( #2274 )
...
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-09-13 09:48:52 +02:00
Oxan van Leeuwen
e18dfdd656
Suppress excessive warnings about deprecated Fan interfaces ( #2270 )
2021-09-13 09:39:18 +02:00
Oxan van Leeuwen
0cd24c629a
Compatibility with clang-tidy v14 ( #2272 )
2021-09-13 09:35:55 +02:00
Oxan van Leeuwen
f364788c03
Expose WHITE/CWWW/RGBCT color modes over MQTT ( #2231 )
2021-09-04 14:32:33 +12:00
Kamil Trzciński
b01bc76dc5
mqtt_sensor: properly send state_class via MQTT ( #2228 )
2021-09-03 16:37:18 +12:00
mtl010957
ed68a0e773
Internally all temperature units are Celsius so just send it directly ( #1840 )
2021-08-24 13:38:59 +12:00
puuu
ce29a3b07a
mqtt_light: remove legacy API config that is not compatible with HA 2021.8 ( #2183 )
2021-08-24 13:18:40 +12:00
Oxan van Leeuwen
1c1ad32610
Add deprecated attribute to some deprecated types/methods ( #2185 )
2021-08-24 06:48:12 +12:00
Oxan van Leeuwen
5ec9bb0fb5
Clean-up constant definitions ( #2148 )
2021-08-23 19:21:30 +12:00
puuu
303b699005
let sensors announce its state_class via mqtt ( #2155 )
2021-08-16 07:59:29 +12:00
Jesse Hills
76991cdcc4
Add select entities and implement template select ( #2067 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com>
2021-08-02 20:00:51 +12:00
Otto Winter
f751c3828e
Fix MQTT light include ( #2104 )
...
Fixes https://github.com/esphome/issues/issues/2285
2021-08-01 12:33:10 +02:00
Paul Monigatti
a8b90283d8
Fix min/max keys in MQTT Number to match Home Assistant ( #2102 )
2021-07-31 23:20:10 +12:00
Oxan van Leeuwen
5983ccc55c
Color mode implementation ( #2012 )
2021-07-29 19:11:56 +02:00
Kodey Converse
de382b704c
Add device class support to MQTT cover ( #2092 )
2021-07-29 16:08:48 +02:00
Otto Winter
b0a3891498
Fix MQTT climate custom fan modes without regular ones ( #2071 )
2021-07-27 07:46:13 +12:00
Jesse Hills
71d9d64a02
Number and Template Number updates ( #2036 )
...
Co-authored-by: Otto winter <otto@otto-winter.com>
2021-07-20 08:22:49 +12:00
Jesse Hills
dd37a4e04c
Add Number entities (from Home Assistant) ( #1971 )
...
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-07-13 07:20:12 +12:00
Michael Gorven
294ba1fca7
Support custom fan modes in mqtt_climate ( #1989 )
...
Co-authored-by: Michael Gorven <michael@gorven.za.net>
2021-07-09 23:25:27 +02:00
definitio
36861595f1
Add device_class support for MQTT integration ( #1832 )
2021-07-01 15:36:01 +02:00
Otto Winter
871c0ee2a5
Rework climate traits ( #1941 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-06-21 21:17:01 +02:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Otto Winter
360effcb72
Activate some clang-tidy checks ( #1884 )
2021-06-10 13:04:40 +02:00
Stefan Agner
13fe9e83fa
Use Clang 11 ( #1846 )
2021-06-08 22:16:17 +02:00
Lumpusz
ebadaa9660
Add preset, custom_preset and custom_fan_mode support to climate ( #1471 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-06-04 22:04:54 +12:00
Otto Winter
aebad04c0b
Convert core components to async-def coroutine syntax ( #1658 )
...
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-05-23 22:10:30 +02:00
Gareth Cooper
e6f8e73705
Receive long MQTT payload ( #1590 )
2021-04-08 14:26:34 +02:00
Anthony Uk
76a6c39f25
mqtt_client: Added MQTTClientComponent::unsubscribe() ( #1672 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com>
2021-04-08 14:21:42 +02:00
Jim Ekman
7708b81ef5
Support fan speed levels ( #1541 )
...
* 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
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00
Otto Winter
412351fd1e
Use inclusive terminology ( #1137 )
2020-07-14 18:45:42 +02:00
Guillermo Ruffino
1bec1faf6d
lint
2020-05-24 23:27:28 -03:00
Andrew Zaborowski
a62b6548d2
Make some Action methods protected
...
Apparently play()/stop() etc. are not meant to be called directly by
users of the class and if they're called directly that would not give
the expected result for the classes that have an empty play().
Make all methods except play_complex, stop_comples and is_running
protected. While there also make RemoteTransmitterActionBase::encode
protected.
2020-05-01 12:44:30 +02:00
puuu
1d136ab0df
MQTT climate features ( #913 )
...
* mqtt_climate: add action support
* mqtt_climate: add fan and swing mode support
* mqtt_climate: reduce length of discovery payload by using abbreviations
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mqtt/abbreviations.py
2020-02-09 13:20:56 +01:00
Otto Winter
056c72d50d
Drop Python 2 Support ( #793 )
...
* Remove Python 2 support
* Remove u-strings
* Remove docker symlinks
* Remove from travis
* Update requirements
* Upgrade flake8/pylint
* Fixes
* Manual
* Run pyupgrade
* Lint
* Remove base_int
* Fix
* Update platformio_api.py
* Update component.cpp
2019-12-07 18:28:55 +01:00
Guillermo Ruffino
1814e4a46b
Add climate dry fan ( #845 )
...
* add climate dry fan
* clang-format
* updates, add swing mode, add back compat with old ha
* revert client-config add swing
* sort const.py
* fix missing retur
2019-11-16 16:34:11 +01:00
Otto Winter
d97bc95798
Update platformio libraries ( #837 )
...
* Update platformio libraries
* Lint
2019-11-05 22:28:19 +01:00
Otto Winter
d63cd8b4cd
Add additional custom lint checks ( #790 )
2019-10-23 14:43:27 +02:00
Otto Winter
ae8700447e
Add sensor force_update option ( #783 )
...
* Add sensor force_update option
* Add test
2019-10-21 15:46:39 +02:00
Otto Winter
1e22b1e959
Update AsyncMQTTClient/ESPAsyncWebServer ( #779 )
2019-10-20 19:24:34 +02:00
Otto Winter
c3aa834d80
Fork some base libraries ( #758 )
...
* Fork some base libraries
* Update ESPAsyncWebServer
2019-10-18 14:46:09 +02: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
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
8dee5c5fe8
Adjust default reboot timeouts
2019-06-30 09:12:48 +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
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
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
36f47ade70
Add Captive Portal ( #624 )
...
* WIP: Captive Portal
* Updates
* Updates
* Lint
* Fixes
2019-06-09 17:03:51 +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
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
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
01db114724
Fix MQTT client_id changed ( #579 )
...
Fixes https://github.com/esphome/issues/issues/323
2019-05-31 10:37:10 +02:00
Brandon Davidson
72218171b3
Don't fall back to the global availability topic if it is empty ( #553 )
...
Fixes esphome/issues#320
2019-05-27 17:21:01 +02:00
Otto Winter
bd45f6bd8e
Register components properly
2019-05-24 16:20:28 +02:00
puuu
b7afb8c887
Make Climate component work over mqtt ( #535 )
...
* Fix climate component over MQTT
* Use climate_mode_to_string() in send_discovery()
* remove superfluous mqtt binding
2019-05-13 11:51:22 +02:00
mtl010957
c569d022ec
Fix MQTT Not Working in dev branch ( #527 )
...
* Fix MQTT not working
* Fix minor typo causing compile error
2019-05-07 21:19:30 +02:00
Otto Winter
766f6c045d
Updates
2019-04-24 23:49:02 +02:00
Otto Winter
8e75980ebd
Cleanup dashboard JS ( #491 )
...
* Cleanup dashboard JS
* Add vscode
* Save start_mark/end_mark
* Updates
* Updates
* Remove need for cv.nameable
It's a bit hacky but removes so much bloat from integrations
* Add enum helper
* Document APIs, and Improvements
* Fixes
* Fixes
* Update PULL_REQUEST_TEMPLATE.md
* Updates
* Updates
* Updates
2019-04-22 21:56:30 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ( #504 )
...
## 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