Christopher Fenner
1ffc514528
Add battery discharge sensor to ViCare integration ( #113502 )
...
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2024-03-16 12:38:54 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Joost Lekkerkerker
dc2d83f131
Add icon translations to ViCare ( #112346 )
...
* Add icon translations to ViCare
* Add icon translations to ViCare
2024-03-06 12:35:30 +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
1372cf5a18
Categorize burner and compressor sensors as diagnostic entities in ViCare integration ( #110653 )
...
Categorize Burner and Compressor start and runtime counters as diagnostic entities in ViCare integration
2024-02-15 17:29:17 +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
bb8d742423
Ignore gateway devices in ViCare integration ( #106477 )
...
* filter unsupported devices
* Update __init__.py
* use debug
* remove dead code
2024-02-03 12:53:22 +01:00
Christopher Fenner
03daeda9db
Disable less interesting sensors by default in ViCare integration ( #109014 )
2024-02-02 11:28:51 +01:00
Christopher Fenner
2f312f56f6
Add fuelcell gas consumption sensors to ViCare integration ( #105461 )
...
* add fuel cell gas consumption sensors
* add total gas consumption sensors
* add uom
* Update strings.json
* reorder
* Revert "reorder"
This reverts commit 0bcaa3b4e6
.
* Revert "add uom"
This reverts commit b3c0dc4756
.
* Update sensor.py
2024-01-31 13:23:51 +01:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions ( #105984 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Christopher Fenner
c4e3ae84f4
Optimize async executor use in ViCare integration ( #104645 )
...
* use one async executor
* use list comprehension
* simplify
* simplify
* simplify
* simplify
* simplify
* simplify
* simplify
* simplify
* add type
* Apply suggestions from code review
* fix ruff findings
2023-11-29 09:28:56 +01:00
Christopher Fenner
1ef97ab6f8
Set min, max, and step for ViCare number entities ( #104593 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2023-11-28 10:53:59 +01:00
Christopher Fenner
ad17acc6ca
Fix async issue in ViCare integration ( #104541 )
...
* use async executor for get_circuits
* use async executor for get_burners and get_compressors
2023-11-26 15:28:58 +01:00
Christopher Fenner
48f8cec84b
Add reuse functions to access circuits, burners and compressors in ViCare integration ( #104371 )
2023-11-25 15:47:45 +01:00
Christopher Fenner
17cef8940f
Add translation keys to ViCare integration ( #104425 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-11-25 13:11:29 +01:00
Christopher Fenner
5805601a83
Set unique_id by base entity in ViCare integration ( #104277 )
...
* set unique_id in ViCareEntity
* remove individual unique_id functions
* remove description
* remove individual _attr_unique_id
* fix return types
2023-11-21 09:53:02 +01:00
fb22
96bcc6c35a
Add Vicare volumetric flow and compressor phase sensors ( #103875 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Robert Resch <robert@resch.dev>
2023-11-14 09:18:37 +01:00
Christopher Fenner
ea61160fd8
Reuse function to check feature support on ViCare devices ( #102211 )
...
* check feature support in utils function
* rename parameters
* restore severity
* reorder parameters
* Update .coveragerc
2023-10-19 10:55:30 +02:00
Christopher Fenner
ae7bb60677
Fix types in ViCare integration ( #101926 )
...
* fix type
* fix return type
* fix type
* fix type
* Apply suggestions from code review
* Update climate.py
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update __init__.py
* Update climate.py
* Update __init__.py
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update binary_sensor.py
* Update button.py
* Update sensor.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-13 23:13:39 +02:00
Christopher Fenner
6d2fbeb556
Migrate ViCare to has_entity_name ( #101895 )
...
* set has_entity_name
* remove sensor prefix
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-12 21:06:09 +02:00
Christopher Fenner
6e1c23906c
Add base entity class in vicare integration ( #101870 )
...
* add entity base class
* depend on base class
* add device info to base class
* remove individual DeviceInfo
* move class
* fix imports
* add file comment
* use super()
* fix formatting
* add vicare/entity.py
2023-10-12 14:54:16 +02:00
Joost Lekkerkerker
eeaca8ae3c
Use shorthand attributes in Vicare ( #99915 )
2023-09-09 23:18:41 +02:00
andresb5555
384cee481a
Add vicare sensor gas_summary_consumption_heating_lastsevendays ( #95280 )
...
* Add missing sensor entity gas_summary_consumption_heating_lastsevendays
* Changed location of the sensor
gas_summary_consumption_heating_lastsevendays code as per suggestion by
joostlek
2023-08-19 21:38:03 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
epenet
bb3e0633a4
Add init return type to integrations ( #87523 )
...
Add type hints to integrations
2023-02-06 11:37:25 +01:00
epenet
8e7e210693
Fix invalid constant in vicare ( #86079 )
2023-01-17 12:29:32 +01:00
Hans Oischinger
1e9de194d3
Add vicare buffer top/main temperature sensors ( #79466 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
fixes undefined
2023-01-17 11:34:38 +01:00
Hans Oischinger
5fa9da25f2
Rename "Power production this week" vicare sensor ( #83771 )
...
vicare: Rename "Power production this week" sensor
'Power' should be 'Energy' like for the other timespanns.
This one was forgotten last time this area was cleaned up.
2022-12-11 18:53:05 +01:00
epenet
c947152c48
Use unit enums in vicare ( #83648 )
2022-12-10 11:06:46 +01:00
Hans Oischinger
94c825cf4f
vicare: Add additional temperature sensors ( #79426 )
...
Add additional temperature sensors
New datapoints in PyVicare API
2022-10-01 20:58:57 +02:00
epenet
b9c135870a
Fix model in vicare device_info ( #74135 )
2022-06-28 17:54:07 +02:00
iAutom8
14030991cf
Add ViCare additional temperature sensors ( #72792 )
2022-06-03 22:57:01 +01:00
Hans Oischinger
20d9f2d3b7
Vicare Gas & Power consumption summary sensors ( #66458 )
2022-05-09 12:11:09 +02:00
Hans Oischinger
94a0f1c7b3
Add service configuration URL for vicare ( #66927 )
2022-02-20 11:47:05 +01:00
tschnilo
b322c6dafc
Add vicare sensors ( #63339 )
...
* Add sensors
for:
- solar collector
- power consumption
* Update sensor.py
* Update sensor.py
* Update sensor.py
* Update sensor.py
2022-02-16 12:11:37 +01:00
Hans Oischinger
f171ec4676
Add missing vicare state class ( #65795 )
2022-02-05 18:17:09 +01:00
Hans Oischinger
99fd16d675
Clean up vicare code ( #65774 )
...
* Clean up vicare code
Remove constants that were only used once
Remove _build_entity and use constructor directly
* Fix copy/paste issue
2022-02-05 14:26:44 +01:00
Hans Oischinger
8d6880ab85
Support systems w/o circuits ( #64779 )
2022-01-24 11:18:54 +01:00
Hans Oischinger
157f145ea9
vicare: Fix dynamic unit of measurement ( #64782 )
2022-01-24 11:14:59 +01:00
Bernhard Hecker
4715163150
Add vicare solar collector and pump information ( #64178 )
...
* Added solar collector and pump information
* moved sensors to GLOBAL_SENSORS
2022-01-20 08:21:48 -05:00
Erik Montnemery
f4e9187d01
Remove last_reset from vicare sensor ( #63879 )
2022-01-11 10:25:00 +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
epenet
6f93ffb7ee
Add sensor setup type hints [t-v] ( #63309 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:20:39 +01:00
Robert Hillis
b03ead1c9b
Use enums in vicare ( #61994 )
2021-12-16 09:27:53 +01:00
Marc Mueller
de78c4f0f8
Import Callable from collections.abc ( #60354 )
2021-11-25 22:23:48 +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
a4fc808e49
Fix broken ViCare burner & compressor sensors ( #58962 )
2021-11-03 08:45:22 +01:00
Hans Oischinger
3f50e444ca
Improve ViCare energy units ( #58630 )
2021-10-28 22:58:28 +02: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