Commit Graph

113 Commits

Author SHA1 Message Date
J. Nick Koston a937d9d85a
Add address_type to BluetoothLEAdvertisementResponse and BluetoothDeviceRequest (#320) 2022-11-29 17:00:27 +13:00
J. Nick Koston e3094db6ad
Active BLE connection v3 (#317) 2022-11-29 15:06:13 +13:00
Franck Nijhof d9791d1874
Add device class support to number (#309) 2022-11-18 08:00:02 +13:00
Jesse Hills c7edc2e601
Raise GATT errors on read and write etc (#272)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-10-31 11:38:24 +13:00
Jesse Hills 978c523e09
Get manufacturer name string from device (#290) 2022-10-25 17:00:07 +13:00
Jesse Hills 527420464d
Change has_bluetooth_proxy to a version (#264) 2022-09-29 21:51:03 -04:00
Jesse Hills c5779b3e17
Change BLE advertisement data to bytes (#262) 2022-09-30 09:12:49 +13:00
Jesse Hills 45d727cc03
A few fixes for BLE GATT (#261) 2022-09-30 07:25:18 +13:00
Jesse Hills 6a82766553
Add Bluetooth GATT calls (#259) 2022-09-28 12:50:37 -04:00
Jesse Hills 4426a94638
Add `has_bluetooth_proxy` flag to device info (#247) 2022-08-22 15:50:43 +12:00
Jesse Hills 1273d689f1
Implement Bluetooth LE advertisement receiving (#246) 2022-08-22 15:27:46 +12:00
Peter Galantha 7dc2a0d072
state class TOTAL added (#229) 2022-07-07 11:41:22 +12:00
Jesse Hills c502231194
Assume volume (and therefore mute) is always supported (#215) 2022-05-18 21:50:06 +12:00
Jesse Hills fcd529bb32
Add media player entities (#214) 2022-05-18 13:28:40 +12:00
Keilin Bickar d0d1e526f5
Add lock entity (#158) 2022-01-11 14:29:19 +13:00
dependabot[bot] 014d81350a
Bump mypy from 0.910 to 0.930 (#156)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Otto winter <otto@otto-winter.com>
2022-01-08 13:57:56 +01:00
Franck Nijhof 34180576ca
Add device class support to Switch (#157) 2021-12-28 23:04:59 +13:00
Jesse Hills 759e2ef133
Add mode to number entities (#148) 2021-11-30 22:23:18 +13:00
Jesse Hills da0ecd8437
Add unit_of_measurement to number components (#147) 2021-11-30 20:34:30 +13:00
Jesse Hills 3494f804c1
Button device class (#146) 2021-11-30 16:53:22 +13:00
Jesse Hills dcad9cdcb7
Add support for Button entities (#143) 2021-11-29 13:59:23 +13:00
Jesse Hills 09d760a3dd
Expose webserver port via native API (#131) 2021-10-29 07:03:39 +13:00
Jesse Hills 6bda4e4797
Add EntityCategory (#130) 2021-10-27 11:45:09 +13:00
Otto Winter 5c37ce907a
Apply float fix for all float attributes (#124) 2021-10-21 16:52:29 +02:00
Paul Monigatti c46d1c3822
Add 'icon' field to Binary Sensor, Climate, Cover, Fan, and Light (#106)
* Added light icon to API

* Added icon property to Binary Sensor, Climate, Cover, and Fan entities
2021-10-10 10:41:37 +02:00
Jesse Hills 2350ac78b7
Add support for siren entities (#97) 2021-09-09 13:11:51 +12:00
Otto Winter 6f131f4bf6
Switch light colormode to be bitfields instead of enums (#95) 2021-08-25 13:45:28 +02:00
Otto Winter 738346c9cb
Fix number rounding for protobuf messages (#93)
* Fix number rounding for protobuf messages

* Switch to converter_field
2021-08-24 11:39:18 +12:00
Jesse Hills fff495d607
Add new total/total_increasing state-classes for Home Assistant 2021.9+ (#90) 2021-08-23 17:02:10 +02:00
Otto Winter 595720ed62
Fix log level enum values (#89) 2021-08-16 15:50:35 +12:00
Oxan van Leeuwen 4a091b00a0
Fix old lights with color temperature but no white support (#86)
ESPHome never supported this, and no built-in lights used this, but apparently it was used by third-party components. Without this fix, those lights would show up as on-off lights in HA. Make them RGBCT lights, which doesn't fit perfectly as they don't expect a white value, but they already got that anyway and it's better than being totally broken.
2021-08-10 10:56:50 +02:00
Jesse Hills 655b99e2cb
Add disabled_default to entity infos (#85) 2021-08-03 23:30:51 +12:00
Oxan van Leeuwen 32d2df8e24
Color mode implementation (#74)
Co-authored-by: Otto Winter <otto@otto-winter.com>
2021-07-29 19:16:25 +02:00
Jesse Hills 551a1acd0d
Add select entities (#75) 2021-07-27 06:51:12 +12:00
Jesse Hills 2ec375af36
Add last_reset_type to sensor entity info (#70) 2021-07-21 08:44:55 +12:00
Otto Winter 3a7a47f649
Add pytest unit testing (#64) 2021-07-12 20:09:17 +02:00
Jesse Hills 1a2c2b69fa
Rename image field to data to match the proto field (#62) 2021-07-09 00:00:53 +12:00
Otto Winter 0ac14489c8
Implement PEP561 typing support (#55) 2021-06-30 17:05:44 +02:00
Otto Winter 29b1902577
Dataclasses better legacy UserService compat (#49) 2021-06-29 16:07:12 +02:00
Otto Winter acfc46e12a
Add project name+version (#48) 2021-06-29 15:45:05 +02:00
Otto Winter 872c643058
Switch from attrs to dataclasses (#36) 2021-06-29 15:36:14 +02:00
Jesse Hills e0f09de715
Add number entities (#47) 2021-06-29 22:42:38 +12:00
Otto Winter b1b36754ec
Climate preset, custom fan mode and custom preset (#42)
Co-authored-by: Otto Winter <otto@otto-winter.com>
Co-authored-by: Lumpusz <marton.keri@gmail.com>
2021-06-23 23:40:41 +02:00
Otto Winter 52cf01e11a
Add flake8, black, isort and mypy linting (#39) 2021-06-18 17:57:02 +02:00
Otto Winter a72957e2f0
Safe enum conversion (#37) 2021-06-18 16:57:07 +02:00
Otto Winter ee2c5d9152
Fix bad default values in model (#40) 2021-06-18 16:16:20 +02:00
Franck Nijhof a6a25d88b7
Add support for Sensor state class (#33) 2021-05-26 09:39:01 +12:00
Jim Ekman 8cdfa9c4ea
Add support for fan speed level (#27)
* Add support for percentage based fan speeds

* Use speed levels
2021-03-13 21:21:09 -03:00
marecabo 10b0d82a23
Add device_class attribute to sensor (#25) 2021-02-15 11:55:10 -03:00
Jim Ekman fa48a08445
Add support for fan direction (#8) 2020-12-14 00:16:37 -03:00
Paulus Schoutsen 7a186109d7
Remove cmp=True from APIVersion 2020-01-29 22:03:58 -08:00
Otto Winter dbf4797537
Add more climate actions
See also https://github.com/esphome/esphome/pull/859
2019-11-23 20:36:12 +01:00
Guillermo Ruffino 511cb62dd9 Add climate feature fan (#4)
* f1

* renamed to fan_mode

* fixes, add back compat with ha

* revert client_version - add swing
2019-11-16 16:34:14 +01:00
Otto Winter 91b2e0ceb4
Add missing_state property 2019-11-12 14:55:35 +01:00
Otto Winter a30e6c2f8c
Bump version to 2.4.2
Forgot to commit a file 😐
2019-10-24 19:38:12 +02:00
Otto Winter 10724ea3e5
Add defaults to all fields in model.py
See also https://github.com/home-assistant/home-assistant/issues/28157
2019-10-24 13:59:06 +02:00
Otto Winter 9c514ebe54
Add sensor force_update option (#3) 2019-10-21 15:09:07 +02:00
Otto Winter 3aa6da676a
Update to use new enum 2019-10-17 21:25:54 +02:00
Marcel van der Veldt 8cb72b7e69 add climate action attribute to climate state
for backwards compatability
2019-09-26 19:50:59 +02:00
Otto Winter 2b7a4b27b3
Rename ServiceCall to HomeassistantServiceCall 2019-06-18 11:10:32 +02:00
Otto Winter 7ade99a614
New api.proto format, user-defined service arrays
See https://github.com/esphome/esphome/pull/633
2019-06-17 23:40:23 +02:00
Otto Winter 2f499c71d1
Fix Home Assistant Cannot Deserialize Models 2019-04-19 16:22:50 +02:00
Otto Winter e74118923e
Big Refactor 2019-04-07 19:03:26 +02:00