Christopher Fenner
404b3fcd03
Add support for room sensors in ViCare integration ( #125243 )
...
* Add room sensors
* set humidity device class
* add labels
* Create RoomSensor2.json
* Create RoomSensor1.json
* Update conftest.py
* Create test_sensor.py
* enable E3_RoomSensor
* use setup_integration
* fix ruff findings
* add test case
* fix entity id
* Apply suggestions from code review
* update
* fix findings
* reuse labels
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Apply suggestions from code review
* fix test snapshot
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-30 14:32:04 +02:00
Christopher Fenner
f764705629
Add support for ventilation device to ViCare ( #114175 )
...
* add ventilation program & mode
* add ventilation device
* Update climate.py
* Update climate.py
* Update climate.py
* Update climate.py
* Update climate.py
* Update const.py
* Create fan.py
* Update fan.py
* Update types.py
* add test case
* add translation key
* use translation key
* update snapshot
* fix ruff findings
* fix ruff findings
* add log messages to setter
* adjust test case
* reset climate entity
* do not display speed if not in permanent mode
* update snapshot
* update test cases
* add comment
* mark fan as always on
* prevent turning off device
* allow to set permanent mode
* make speed_count static
* add debug outputs
* add preset state translations
* allow permanent mode
* update snapshot
* add test case
* load programs only on init
* comment on ventilation modes
* adjust test cases
* add exception message
* ignore test coverage on fan.py
* Update test_fan.py
* simplify
* Apply suggestions from code review
* remove tests
* remove extra state attributes
* fix leftover
* add missing labels
* adjust label
* change state keys
* use _attr_preset_modes
* fix ruff findings
* fix attribute access
* fix from_ha_mode
* fix ruff findings
* fix mypy findings
* simplify
* format
* fix typo
* fix ruff finding
* Apply suggestions from code review
* change fan mode handling
* add test cases
* remove turn_off
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Apply suggestions from code review
* Update fan.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-07-31 16:23:27 +02:00
Christopher Fenner
dab66990c0
Ignore E3_TCU41_x04 gateway device in ViCare ( #122179 )
...
skip gateway device
2024-07-19 11:40:17 -04:00
Marc Mueller
2c06d4fcb9
Add empty line after module docstring (2) [components] ( #112736 )
2024-03-08 19:15:59 +01:00
Christopher Fenner
e0a8a9d551
Ignore unsupported devices (room sensors, floor heating) in ViCare integration ( #112106 )
...
* ignore unsupported devices
* Update __init__.py
* move unsupported device to const
* fix ruff
2024-03-04 07:56:45 +01:00
Christopher Fenner
1e564f777e
Add sensors for energy storage system to ViCare integration ( #106600 )
...
* add sensors for vitocharge
* add further sensors
* add unig getters
* remove icons
* Update strings.json
* handle percent uom
* handle unknown uom device class mapping
* add device class to sensor
* add sensor options
* Apply suggestions from code review
* fix
* align sensor naming
* add feed-in and consumption sensors for pcc
* Update strings.json
* battery symbol
* fix format
* remove obsolete device classes
* add icons
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* refactor
* modify lambda
* use helper
* Apply suggestions from code review
* Apply suggestions from code review
* Update strings.json
* Update sensor.py
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-02-26 09:59:58 +01:00
Christopher Fenner
47cbe8f00c
Add support for multiple devices linked to a Viessmann account ( #96044 )
...
* care about all devices
* use first device for diagnostics
* update constants
* handle multiple devices
* handle multiple devices
* handle multiple devices
* handle multiple devices
* handle multiple devices
* code style
* code style
* code style
* code style
* code style
* remove unused import
* remove unused import
* use has_entity_name and add serial to device name
* use has_entity_name and add serial to device name
* use has_entity_name and add serial to device name
* use has_entity_name and add serial to device name
* use has_entity_name and add serial to device name
* remove unused constant
* Update const.py
* Update binary_sensor.py
* change format
* change format
* fix line duplication
* fix line duplication
* change format
* fix typo
* use serial in device name if multiple devices are found
* add common base class
* use base class
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update sensor.py
* Update binary_sensor.py
* correct import
* use base class
* fix cdestyle findings
* fix pylint findings
* fix mypy findings
* fix codestyle finidings
* move has_entity_name to base class
* Revert "fix mypy findings"
This reverts commit 2d78801a69
.
* fix type issue
* move multiple device handling
* fix import
* remove special handling for device name
* extract api getter
* Update __init__.py
* Update __init__.py
* Update entity.py
* Update button.py
* Update binary_sensor.py
* Update climate.py
* Update sensor.py
* Update water_heater.py
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update __init__.py
* fix mypy & black
* move get_device to utils
* rename const
* Apply suggestions from code review
Co-authored-by: Robert Resch <robert@resch.dev>
* store device in config entry
* extract types
* fix diagnostics
* handle new platform
* handle api rate limit
* add types
* add types
* rename
* add types
* ignore gateways for now
* Update .coveragerc
* adjust types
* fix merge issues
* rename
* Update types.py
* fix type
* add test method
* simplify
* ignore unused devices
* Apply suggestions from code review
Co-authored-by: Robert Resch <robert@resch.dev>
* fix findings
* handle unsupported devices
* Apply suggestions from code review
Co-authored-by: Robert Resch <robert@resch.dev>
* Update types.py
* fix format
* adjust variable naming
* Update conftest.py
* Update conftest.py
* remove kw_only
* Apply suggestions from code review
* Update __init__.py
* Update binary_sensor.py
* Update button.py
* Update climate.py
* Update const.py
* Update diagnostics.py
* Update number.py
* Update sensor.py
* Update types.py
* Update water_heater.py
* fix comment
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-02-15 13:58:00 +01:00
Christopher Fenner
556e72abf8
Add number entities to adjust heating curve in ViCare integration ( #103901 )
...
* add number entity
* use static constraints
* use async execute job
* add number platform
* Update .coveragerc
* remove unused code parts
* add types
* add missing return type
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Apply suggestions from code review
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
* fix docstrings
* fix variable names
* add unit of measurement
* remove obsolete unique id handling
* remove hass from constructor
* inline _entities_from_descriptions function
* fix return type
* rename variable
* Apply suggestions from code review
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
* Apply suggestions from code review
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
2023-11-23 07:29:28 +01:00
Christopher Fenner
eee294d384
Get diagnostics of all devices in ViCare account ( #102218 )
...
* get diagnostics of all devices
* correct test data
* correct test data
* correct test data
2023-10-18 18:07:42 +02:00
epenet
c947152c48
Use unit enums in vicare ( #83648 )
2022-12-10 11:06:46 +01:00
Hans Oischinger
b8237e5ec9
vicare: Add support for hybrid devices ( #64776 )
2022-01-24 11:24:42 +01:00
Hans Oischinger
8d6880ab85
Support systems w/o circuits ( #64779 )
2022-01-24 11:18:54 +01:00
Hans Oischinger
c23b2135a3
Add vicare one-time charge ( #64376 )
...
* vicare: Add OneTime Charge
* Integrate review comments
* Simplify button entity
2022-01-23 18:27:19 +01:00
Hans Oischinger
2969a7ab4f
Address late review of vicare config flow ( #63343 )
...
* Review comments from #56691
* Adapt to review suggestions
* Update homeassistant/components/vicare/strings.json
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-05 22:49:42 +01:00
Robert Hillis
b03ead1c9b
Use enums in vicare ( #61994 )
2021-12-16 09:27:53 +01:00
Marc Mueller
b79b35abb5
Use platform enum (7) [T-Z] ( #60948 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-04 14:10:01 +01:00
Hans Oischinger
38b976e6d6
Add vicare config flow ( #56691 )
...
* Configuration via UI
Config flow / YAML deprecation
- Support discovery via MAC address
- Support import of YAML config
- Switch to ConfigEntry, get rid of platform setup
* Fix review comments
* More tests for vicare yaml import
2021-11-22 15:06:42 +01:00
Hans Oischinger
066610923e
Support ViCare energy units ( #58433 )
2021-10-27 21:15:54 +02:00
Hans Oischinger
66ae116023
Update PyVicare to 2.13.0 ( #57700 )
...
* Update PyVicare to 2.x
With PyViCare 2.8.1 a breaking change was introduced which required changes on sensor and binary_sensor platforms:
- Circuit, Burner and Compressor have been separated out from the "main" device
- Multiple circuits and burners allow "duplicate sensors". We add the circuit or burner number as suffix now
At the same time the sensors are now created only when available:
During entity creation we can check if the value is provided for the user's device.
Sensors are not created by heating type anymore but instead the new API structure is reflected, providing device, burner or circuit sensors.
For details of breaking changes from PyViCare 1.x to 2.x please see https://github.com/somm15/PyViCare#breaking-changes-in-version-2x
* Integrate review comments
* variables cleanup
* Update unique ids
The unique ids shall not depend on the name but on the entity
description key (which should not change) and the id of the circuit,
burner or device.
2021-10-25 13:43:43 +02:00