Commit Graph

32 Commits (6e4551f73f31d7b58989e142d5d2de733a6d5386)

Author SHA1 Message Date
Hans Oischinger 94c825cf4f
vicare: Add additional temperature sensors ()
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 () 2022-06-28 17:54:07 +02:00
iAutom8 14030991cf
Add ViCare additional temperature sensors () 2022-06-03 22:57:01 +01:00
Hans Oischinger 20d9f2d3b7
Vicare Gas & Power consumption summary sensors () 2022-05-09 12:11:09 +02:00
Hans Oischinger 94a0f1c7b3
Add service configuration URL for vicare () 2022-02-20 11:47:05 +01:00
tschnilo b322c6dafc
Add vicare sensors ()
* 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 () 2022-02-05 18:17:09 +01:00
Hans Oischinger 99fd16d675
Clean up vicare code ()
* 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 () 2022-01-24 11:18:54 +01:00
Hans Oischinger 157f145ea9
vicare: Fix dynamic unit of measurement () 2022-01-24 11:14:59 +01:00
Bernhard Hecker 4715163150
Add vicare solar collector and pump information ()
* 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 () 2022-01-11 10:25:00 +01:00
Hans Oischinger 2969a7ab4f
Address late review of vicare config flow ()
* Review comments from 

* 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] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:20:39 +01:00
Robert Hillis b03ead1c9b
Use enums in vicare () 2021-12-16 09:27:53 +01:00
Marc Mueller de78c4f0f8
Import Callable from collections.abc () 2021-11-25 22:23:48 +01:00
Hans Oischinger 38b976e6d6
Add vicare config flow ()
* 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 () 2021-11-03 08:45:22 +01:00
Hans Oischinger 3f50e444ca
Improve ViCare energy units () 2021-10-28 22:58:28 +02:00
Hans Oischinger 066610923e
Support ViCare energy units () 2021-10-27 21:15:54 +02:00
Hans Oischinger 66ae116023
Update PyVicare to 2.13.0 ()
* 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
Marc Mueller 2b51896d7a
Use EntityDescription - vicare ()
* Use EntityDescription - vicare binary_sensor

* Use EntityDescription - vicare sensor

* Fix typing

* Remove default values

* Fix pylint
2021-09-14 22:06:06 +02:00
Erik Montnemery ae507aeed1
Move temperature conversions to sensor base class (8/8) ()
* Move temperature conversions to entity base class (8/8)

* Fix wallbox sensor

* Fix tests
2021-08-11 21:17:16 +02:00
Hans Oischinger 84dc6af760
Update to PyVicare 1.0 () 2021-07-22 21:56:38 +02:00
Nicolas Braem 71a410c742
Correct vicare power production device class () 2021-04-11 10:52:28 +02:00
Nicolas Braem 42156bafe0
Change vicare unit of power production current to POWER_WATT () 2021-04-10 23:02:08 +02:00
Nicolas Braem 96857b7466
Add vicare fuelcell () 2021-03-31 11:29:24 +02:00
Erik Montnemery 783b453bbe
Migrate integrations t-v to extend SensorEntity () 2021-03-22 19:47:44 +01:00
Martin c7db2c35b7
Add vicare heat pump sensors () 2021-01-29 08:55:51 +01:00
Hans Oischinger 2925474a5d
Bump pyVicare to 0.2.5 ()
Also removes the power sensor that is no more supported

Full diff between 0.2.0 and 0.2.5:
b602c1670e...b443a4df75
2021-01-21 08:12:31 +01:00
springstan d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Martin 0bbb56dd05
Add sensor platform for vicare integration (heatpump) ()
* Add sensor platform for vicare (heatpump)

* Formatting and fixes

* Formatting and fixes 2

* Fixes and formatting 3

* Fixes and formatting 4

* Add binary_sensor and more sensors

This moves some more climate attributes to sensors and adds
binary_sensors

* Move ActiveError back to climate component

The data returned by ActiveError is more complex.
It takes further investigation on how to interpret it a s a binary sensor.
Therefore it is moved back as an attribute of the climate component

* Update PyViCare library

* PR changes

* PR changes 2

Co-authored-by: Hans Oischinger <hans.oischinger@gmail.com>
2020-06-13 21:53:42 +02:00