Fredrik Gustafsson
29571a1acd
implement pairing for bluetooth proxy ( #4475 )
...
* default to just-works encryption
This patch will turn on encryption when making active connections in order to comply with just-works BLE encryption.
* Revert "default to just-works encryption"
This reverts commit 05bc9e9f1cca9c41cbc7434379cbd5eb6dbb1034.
* implement pair method
* adhere to clang formatter
* fix oopsie
* bump bluetooth_proxy_version
* add auth callback
* generate new protos
* fix another oopsie
* add pairing status to connection
* clear paired on connect()
* lint
* add unpair ("forget") ble method
* compile protos
* fix oopsie
* add missing unpairing method
* add unpairing
* fix get_paired return type
* remove unused memcpy
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
* change to is_paired
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
* Update bluetooth_proxy.cpp
* actually add missing method
* send auth cb on set_encryption failure
* cleanup from havin the worst test setup
* lint
* match auth events to bd_addr
* add second addr check to auth cb
* add addr check to third auth cb
---------
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-03-06 18:04:35 +00:00
Jesse Hills
0e1d018ce3
Allow specifying target and current visual steps for climate ( #4440 )
...
* Allow specifying target and current visual steps for climate
* Fixes
* format
* format
2023-02-20 22:22:43 +00:00
Michael Muré
dfafc41ce6
climate: add support for quiet fan mode ( #3609 )
2023-02-09 11:28:16 +13:00
Jesse Hills
c301ae3645
Add friendly_name to device ( #4296 )
2023-01-17 10:28:09 +13:00
Jesse Hills
eb664b99ba
preprocess out proto_enum_to_string if not needed ( #4119 )
2022-11-30 08:30:00 +13:00
J. Nick Koston
8414bb9a7a
Active BLE connection v3 ( #4113 )
...
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com >
Co-authored-by: Maurice Makaay <account+github@makaay.nl >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-11-30 07:53:32 +13:00
Jesse Hills
120327866f
Send device address type alongside ble advertisements ( #4115 )
2022-11-29 17:24:21 +13:00
Franck Nijhof
d874626662
Add number device class support ( #4042 )
2022-11-18 08:01:28 +13:00
Jesse Hills
d93f35701f
Send manufacturer name via API ( #3938 )
2022-10-25 17:24:38 +13:00
Jesse Hills
b34d24735a
Send GATT error events to HA ( #3884 )
2022-10-12 22:22:07 +13:00
Jesse Hills
ed443c6153
Bluetooth Proxy active connections ( #3817 )
2022-10-04 10:45:06 +13:00
Jesse Hills
b854e17995
Initial bluetooth_proxy support ( #3736 )
2022-08-25 07:13:44 +12:00
Peter Galantha
aeb81e547b
Add state_class total ( #3608 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-08-11 14:00:09 +12:00
Jesse Hills
6221f6d47d
Implement Media Player and I2S Media player ( #3487 )
2022-06-02 17:00:17 +12:00
Franck Nijhof
e7864a28a1
Add device class support to Switch ( #3012 )
...
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2022-02-04 09:04:48 +13:00
Keilin Bickar
21803607e7
Add new Lock core component ( #2958 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-02-04 07:24:31 +13:00
Otto Winter
62f9736b1d
API: Expect a name for connections ( #2533 )
2022-01-20 12:03:32 +01:00
Oxan van Leeuwen
607601b3a4
Enable a bunch of clang-tidy checks ( #2149 )
2021-12-02 09:03:51 +13:00
Jesse Hills
d9513e5ff2
Number mode ( #2838 )
2021-12-01 08:11:38 +13:00
puuu
b5a0e8b2c0
Implement unit_of_measurement for number component ( #2804 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-11-30 16:20:59 +01:00
Jesse Hills
b32b918936
Button device class ( #2835 )
2021-11-30 16:18:21 +01:00
Jesse Hills
b5639a6472
Add support for button entities ( #2824 )
2021-11-30 08:00:51 +13:00
Jesse Hills
3c0414c420
Add Entity categories for Home Assistant ( #2636 )
2021-11-08 07:24:52 +13:00
Jesse Hills
d8b3af3815
Expose webserver_port to the native API ( #2640 )
2021-11-01 09:33:04 +13:00
Paul Monigatti
be3cb9ef00
Add EntityBase properties to ESP32 Camera ( #2600 )
2021-10-22 12:10:29 +02:00
Paul Monigatti
471b82f727
EntityBase Refactor ( #2418 )
...
* Renamed Nameable to EntityBase (cpp)
* Renamed NAMEABLE_SCHEMA to ENTITY_BASE_SCHEMA (Python)
* Renamed cg.Nameable to cg.EntityBase (Python)
* Remove redundant use of CONF_NAME from esp32_touch
* Remove redundant use of CONF_NAME from mcp3008
* Updated test
* Moved EntityBase from Component.h and Component.cpp
* Added icon property to EntityBase
* Added CONF_ICON to ENTITY_BASE_SCHEMA and added setup_entity function to cpp_helpers
* Added MQTT component getters for icon and disabled_by_default
* Lint
* Removed icon field from MQTT components
* Code generation now uses setup_entity to setENTITY_BASE_SCHEMA fields
* Removed unused import
* Added cstdint include
* Optimisation: don't set icon if it is empty
* Remove icon from NumberTraits and SelectTraits
* Removed unused import
* Integration and Total Daily Energy sensors now inherit icons from their parents during code generation
* Minor comment correction
* Removed redundant icon-handling code from sensor, switch, and text_sensor
* Update esphome/components/tsl2591/tsl2591.h
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
* Added icon property to binary sensor, climate, cover, and fan component tests
* Added icons for Binary Sensor, Climate, Cover, Fan, and Light to API
* Consolidated EntityBase fields in MQTT components
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl >
2021-10-10 10:37:05 +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
Jesse Hills
cc52f37933
Revert "Dont dump legacy fields ( #2241 )" ( #2259 )
...
This reverts commit 97eba1eecc .
2021-09-09 09:29:08 +12:00
Jesse Hills
97eba1eecc
Dont dump legacy fields ( #2241 )
2021-09-06 08:36:55 +12:00
Jesse Hills
ff6bed54c6
Remove last_reset_type and convert all those sensors to TOTAL_INCREASING ( #2233 )
2021-09-06 08:30:47 +12:00
Jesse Hills
f0b14055b6
Add new total_increasing state-class for Home Assistant 2021.9+ ( #2166 )
2021-08-18 11:04:13 +12:00
Otto Winter
9b48ff5775
Fix native API log level enum values ( #2151 )
2021-08-16 11:57:50 +12:00
Jesse Hills
93796491af
Allow entities to be disabled by default in HA ( #2113 )
...
Co-authored-by: Otto Winter <otto@otto-winter.com >
2021-08-10 13:45:31 +12:00
Oxan van Leeuwen
926bcc71ae
Only compile protobuf dumping when very verbose logging is enabled ( #2139 )
2021-08-09 22:32:06 +02: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
Oxan van Leeuwen
5983ccc55c
Color mode implementation ( #2012 )
2021-07-29 19:11:56 +02:00
Jesse Hills
3b3297d269
Adding last_reset_type to sensors that should support it. ( #2039 )
2021-07-21 09:20:20 +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
Oxan van Leeuwen
f9797825ad
Change color model to fix white channel issues ( #1895 )
2021-07-08 21:37:47 +12:00
Otto Winter
d0859a7d33
Add climate preset NONE again ( #1951 )
2021-06-23 20:25:19 +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
Jesse Hills
5cf18235e3
Allow setting creator project name and version into code ( #1872 )
2021-06-09 13:04:00 +12: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
Franck Nijhof
11fb54c74e
Add support for Sensor state class ( #1835 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-06-03 13:49:56 +12:00
Franck Nijhof
5645be4e0f
Add attribute support to Home Assistant sensors ( #1770 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-17 11:16:22 +12: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
marecabo
f95be6a0df
Device class attribute for sensor component ( #1525 )
...
* Add constants for sensor device_class
* Add device_class attribute to sensor component
* Add device_class attribute to sensor class
* Add device_class to mhz19 temperature sensor
* Add device_class to sensor in api component
* Add test for device_class of sensor
* Rename DEVICE_CLASS_NONE to DEVICE_CLASS_EMPTY for consistency
* Make optional attributes of sensor component truly optional
2021-02-15 12:49:02 -03:00
Rob Deutsch
7e53fc9d6a
Fixed CLIMATE_SWING_HORIZONTAL typo ( #1340 )
2020-10-31 20:27:40 -03:00
Jim Persson
0bb81e5b2d
Add support for controlling fan direction ( #1051 )
...
* Fix fan oscillation trait not being used
* Add fan direction support to SpeedFan
* Add fan direction to API
* Add fan direction support to BinaryFan
* Fix CI errors
* Fix python format
* Change some ordering to trigger CI
* Add test for the configuration
2020-06-14 16:54:31 -03:00
Daniel Kucera
fe89dcdc08
added idle action for climate ( #859 )
...
* added idle
* more clear state description
* Also add drying/fan
Putting it in this PR because it will be put in the same aioesphomeapi release anyway.
* Update bang_bang for idle action
Co-authored-by: root <root@mail.danman.eu >
Co-authored-by: Otto Winter <otto@otto-winter.com >
2019-11-26 17:56:04 +01:00