Commit Graph

190 Commits (27e3ff9c694abbcad74f1da1779539b04aa2da71)

Author SHA1 Message Date
epenet 10dc38e0ec
Adjust CoverEntity property type hints in components (#73943)
* Adjust CoverEntity property type hints in components

* Revert changes to rflink

* Revert changes to wilight
2022-06-25 11:59:56 +02:00
epenet a92ab7a669
Adjust CoverEntity function type hints in components (#73912)
Adjust CoverEntity functions in components
2022-06-24 06:40:26 +02:00
epenet f8f1bfde21
Add lock typing in components (#73539)
* Add lock typing in components

* Revert freedompro amends
2022-06-15 15:23:36 +02:00
Franck Nijhof 8f4caf4141
Clean up accessing event helpers via hass (#72011) 2022-05-17 19:36:29 +02:00
epenet b2b99417c9
Use climate enums in homematic (#70665) 2022-04-25 16:17:41 +02:00
epenet e5eaa4b105
Use ColorMode enum in homematic (#70504) 2022-04-23 09:15:10 -10:00
epenet a661e06e25
Use EntityFeature in homematic (#69405)
* Use EntityFeature in homematic

* Use EntityFeature in homematicip_cloud
2022-04-06 12:33:35 +02:00
Erik Montnemery 7b18d511cc
Migrate homematic light to color_mode (#69267) 2022-04-05 15:54:27 +02:00
Sven Naumann 94fde3bf23
Prioritize channels for homematic event subscriptions (#56619)
* Prioritize SENSORNODE for event callbacks

* Ran black

* Use lazy % formatting for logging

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-30 16:28:23 +02:00
epenet bfd84ba89c
Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
Marc Mueller 4f20a8023b
Use assignment expressions [A-I] (#66880) 2022-02-19 17:21:26 +01:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
Daniel Perna 150bb65cad
Fix tilt-position for HmIPW-DRBL4 (#64208) 2022-01-21 21:43:40 +01:00
Daniel Perna f4f1ea4068
Update pyhomematic to 0.1.77 (#63848)
* Update pyhomematic to 0.1.77

* Add HmIP-STE2

* Add HmIPW-SPI
2022-01-11 16:45:33 +01:00
epenet fee95e129a
Add setup type hints [h] (#63438)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 12:13:11 +01:00
epenet f39531dcfc
Add switch setup type hints [g-m] (#63303)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:23:11 +01:00
epenet 30a64bd0f2
Add sensor setup type hints [g-h] (#63316)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:13:59 +01:00
epenet eed7ce55b3
Add lock setup type hints (#63296)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 15:45:15 +01:00
epenet 7f9b7c7b0e
Add light setup type hints [a-i] (#63291)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 15:02:21 +01:00
epenet 06ebbb7cae
Add climate setup type hints [a-l] (#63278)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 13:26:32 +01:00
epenet 1650332188
Add init type hints [h-j] (#63187)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:31:48 +01:00
epenet f724aea0bb
Ensure service calls are typed [a-j] (#63013)
* Ensure service calls are typed [a-j]

* Adjust apns

* Adjust arlo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 18:50:51 +01:00
epenet b7c0b21c6c
Use new enums in homematic (#61765)
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-14 10:53:47 +01:00
Daniel Perna 9197512ed1
Fix Sensors for HmIP-DLD (#59804) 2021-11-21 12:09:55 +01:00
chriss158 5151c4d99b
Add long-term statistics support for homematic sensors (#57396)
* Add long-term statistics support for homematic

* Refactor cast list to SensorEntityDescription dict

Additional:
- Gas power, gas energy counter, air pressure and voltage uses long-term-statistics
- Gas power, gas energy counter uses device class gas
- Voltage uses device class voltage
- air pressure uses device class pressure

* Refactor expensive loop to separate dictionarys

* Use entity description property + fix humidity sensor

* Log missing sensor descriptions

* Use state class measurement for illumination sensors

* Move sensor entity desc missing warning to setup_platform

* Set type for hmdevice and homematic to fix mypy error

* Use EntityDescription instead of SensorEntityDescription

* Update entity.py

* fix type

* Update climate.py

* fix v2

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-11-08 11:40:01 +01:00
emufan 388cdf4e94
Add classes for new Homematic devicetypes/devices (HmIP-SMI, HmIP-DRSI1) (#57521)
* Update const.py

Add new classes according to pyhomatic 0.1.75

* Update binary_sensor.py
2021-11-01 19:13:30 +01:00
Marc Mueller be201e3ebe
Use assignment expressions 27 (#58188) 2021-10-22 11:29:21 +02:00
Daniel Perna acb24788d0
Update pyhomematic to 0.1.76 (#58136) 2021-10-21 08:21:48 +02:00
Daniel Perna 0d91167cdd
Update pyhomematic to 0.1.75 (#56995) 2021-10-03 19:37:38 +02:00
Bram Kragten 86d24bec75
Update icons for MDI 6 (#56170) 2021-09-13 19:29:38 +02:00
Daniel Perna 675441142d
Update pyhomematic to 0.1.74 (#54613) 2021-08-15 12:50:40 +02:00
Erik Montnemery 6de6a5dc14
Move temperature conversions to sensor base class (3/8) (#54469)
* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
2021-08-12 14:23:56 +02:00
Marc Mueller 074d762664
Rename and reorganize electric unit constants (#53243) 2021-07-20 20:06:23 +02:00
Marc Mueller c578541a82
Add new electrical unit constants (mV + mA) (#53158) 2021-07-20 15:57:11 +02:00
Jan 333f199bd4
Additional units for HM-ES-TX-WM with ES-IEC (#50713)
The Homematic HM-ES-TX-WM with ES-IEC adapter needs additional unit cast for `IEC_POWER` and `IEC_ENERGY_COUNTER`.
2021-06-15 12:13:03 +02:00
Daniel Perna dc9b031544
Update pyhomematic to 0.1.73 (#51551) 2021-06-07 10:04:03 +02:00
Franck Nijhof fcdd8b11a6
Collection of changing entity properties to class attributes - 2 (#51345) 2021-06-01 12:43:55 -07:00
Franck Nijhof 258b388f41
Collection of changing entity properties to class attributes (#51248)
* Collection of changing entity properties to class attributes

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-05-31 10:50:11 +02:00
tkdrob 028a07d86f
Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
tkdrob 4ce3038b29
Add targets and selectors for services (G-H) (#50524)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-12 20:49:04 +02:00
dfigus d517d7232f
Fix HmIP-HAP attributes unit (#49476) 2021-04-20 22:06:00 +02:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Daniel Sack c732749640
Update __init__.py (#48659)
This change solves that HMIP-RCV-1 is not found when used in a service call to invoke a virtual key (case-sensitivity problem).
- https://community.home-assistant.io/t/homematic-hmip-rcv-50-not-working-with-virtual-key-any-more/249000
- https://github.com/danielperna84/pyhomematic/issues/368
2021-04-07 15:51:35 +02:00
Erik Montnemery 339a56e434
Migrate integrations f-h to extend SensorEntity (#48212) 2021-03-22 19:45:17 +01:00
Erik Montnemery 346a724ac3
Mark base components' state_attribute @final, rename others to extra_state_attributes (#48161)
* Mark base state_attributes @final, rename others to extra_state_attributes

* Fix calendar, update tests
2021-03-21 10:38:24 +01:00
Michael Cicogna b1626f0091
Fix Homematic transition function on light devices with multiple channels (#45725)
* Update light.py

Fix Transition function on devices with multiple channels

* Update light.py

fix Flake8 Warning W293 blank line contains whitespace
2021-03-19 12:36:03 +01:00
Daniel Perna d32c364d7f
Update pyhomematic to 0.1.72 (#47906) 2021-03-14 18:52:47 +01:00
Erik Montnemery 14a59d290a
Update integrations j-o to override extra_state_attributes() (#47758) 2021-03-11 20:11:25 +01:00
Florian Heilmann 47938a1355
hm climate: Return PRESET_NONE instead of None (#47003)
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
2021-02-25 09:49:52 +01:00
tkdrob da67cde369
Use core constants for homematic (#46248) 2021-02-09 12:02:53 +01:00