Commit Graph
35 Commits
Author SHA1 Message Date
Erik Montnemery cc564026fa Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
epenet 79d3d4ceae Use UnitOfTemperature in integrations (t-z) (#84309) 2022-12-20 18:50:39 +01:00
Jevgeni KiskiandMartin Hjelmare d62bdbb9ff Add vallox fan speed control (#82548)
* fan.set_percentage + tests

* let's see what is not yet covered

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* tests fix

* vallox_websocket_api 3.0.0

* more coverage

* test coverage

* Update tests/components/vallox/test_fan.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* raise exceptions on user input

* Supported features are different per preset mode.

* Test fixes

* Static supported features is back.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-06 11:00:59 +01:00
epenet c9130e2892 Use REVOLUTIONS_PER_MINUTE constant in vallox (#79992) 2022-10-11 14:02:27 +02:00
Arto Jantunen 8fd18cda30 Fix Vallox extract and supply fan speed measurement units (#77692) 2022-09-18 21:35:19 +02:00
Jevgeni KiskiandFranck Nijhof a4d4170279 Add new vallox temperature and fan sensors (#75783)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-07-27 10:58:43 +02:00
Sebastian Lövdahl cf612c4bec Migrate Vallox to new entity naming style (#75025) 2022-07-12 16:32:37 +02:00
3a00c95113 Add device_info and entity_category to Vallox (#67353)
* Add device_info and entity_category to Vallox

* Fix DeviceInfo

* Address review comments 1

* vallox suggested changes

Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-05-09 17:00:31 -05:00
Marc Mueller add741d789 Update coordinator typing (6) [t-v] (#68466) 2022-03-21 14:20:35 +01:00
Sebastian Lövdahl 744a2013cd Improve Vallox filter remaining time sensor (#66763) 2022-02-21 13:17:54 -10:00
Sebastian Lövdahl b5fd2e0d58 Convert Vallox integration to config flow (#62780) 2021-12-28 10:06:29 -10:00
Maximilian 7a1b05d166 Add missing timezone information (#62106) 2021-12-16 21:39:49 +01:00
Robert Hillis 868e5db47a Use enums in vallox (#61992) 2021-12-16 09:12:57 +01:00
Paulus Schoutsen 3519ad4309 Fix vallox timestamp sensor (#61216)
* Fix vallox timestamp sensor

* Change old state type
2021-12-07 22:35:13 -08:00
Arto Jantunen 5cc594682f Add unique id's to Vallox entities (#58459)
* Add unique id's to Vallox entities

* Cache uuid properties

Requested in code review.

Caching None isn't a problem as the underlying implementation of get_uuid
in the vallox_websocket_api library can never return None.

* Simplify get_uuid type check

Based on review comments.

* Set _attr_unique_id in init

* Import the library get_uuid under a different name

There are a few options here:

1. Rename the get_uuid method with a synonym
2. Import get_uuid under a different name
3. Convert get_uuid into a property
4. Rename get_uuid in the Vallox library

None of these options is that appealing. I'll start with option two,
anyways.
2021-11-15 10:28:19 -06:00
Andre Richter b3f6be0cec Minor cleanups for Vallox (#58384) 2021-10-25 10:15:18 +02:00
Andre Richter 2fe758edd4 Add Cell State sensor to Vallox (#58358) 2021-10-24 13:30:09 -10:00
Andre Richter 6c01ed8d97 Use DataUpdateCoordinator in Vallox (#56966) 2021-10-24 11:21:35 -10:00
Marc Mueller d5116810d4 Use assignment expressions 08 (#57788) 2021-10-17 20:02:42 +02:00
Andre Richter d13c3e3917 Migrate Vallox to new fan entity model (#56663)
* Migrate Vallox to new fan entity model

* Review comments 1

* Minor corrections

* Review comments 2
2021-09-29 17:14:41 +02:00
Andre Richter a5c6a65161 Activate mypy for Vallox (#55874) 2021-09-23 10:59:28 -07:00
Andre Richter d50b700dc7 Refactor exception handling in Vallox (#55461) 2021-09-06 12:03:45 +02:00
Andre Richter cbc68e45cd Refactor vallox constants (#55456) 2021-08-30 17:01:45 +02:00
Andre RichterandJoakim Sørensen a08f42e516 Use EntityDescription - Vallox (#54891)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-08-24 10:14:34 +02:00
Andre Richter afade22feb Add state classes to Vallox sensors (#54297) 2021-08-17 10:05:28 +02:00
Erik Montnemery ae507aeed1 Move temperature conversions to sensor base class (8/8) (#54483)
* Move temperature conversions to entity base class (8/8)

* Fix wallbox sensor

* Fix tests
2021-08-11 21:17:16 +02:00
Arto Jantunen bf0b19b05e Add CO2 and efficiency sensors to Vallox (#48923)
* Add Vallox efficiency sensor

* Add Vallox CO2 sensor

* Use the CO2 device class for the Vallox CO2 sensor
2021-07-19 10:56:26 +02:00
Erik Montnemery 783b453bbe Migrate integrations t-v to extend SensorEntity (#48216) 2021-03-22 19:47:44 +01:00
springstan d2b1918e9c Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Paulus SchoutsenandMartin Hjelmare 4ebbabcdd1 Unsub dispatcher when removing entity from hass (#33510)
* Unsub dispatcher when removing entity from hass

* Update homeassistant/components/plaato/sensor.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/volvooncall/__init__.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-02 09:25:33 -07:00
springstan f1a0ca7cd3 Add and use percentage constant (#32094)
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Franck Nijhof ef0e9431b6 Use literal string interpolation in integrations T-W (f-strings) (#26394) 2019-09-03 21:12:51 +02:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Andre Richter 738d00fb05 Increase vallox robustness on startup (#25382)
* Vallox: Increase robustness on startup

Experiments showed that timing of websocket requests to the Vallox firmware is
critical when fetching new metrics. Tests on different Raspberry Pis and x86
machines showed that those machines with little processing power tend to fail
the timing requirments during the busy startup phase of Home Assistant,
resulting in the Vallox integration failing to set itself up.

This patch catches Websocket's InvalidMessage, which is a symptom of failing the
timing requirements. Experiments again showed that on the Raspberry's, this
exception is catched once at startup, but the integration is running fine
afterwards.

* Update __init__.py

* Bump to new 2.1.0 version of api.

* Bump to api 2.2.0
2019-07-23 23:32:48 +02:00
Andre Richter 236820d093 Add integration for Vallox Ventilation Units (#24660)
* Add integration for Vallox Ventilation Units.

* Address review comments #1

* Address review comments #2

* Replace IOError with OSError.

* Bump to fixed version of vallox_websocket_api.
2019-06-25 11:38:24 +02:00