Diogo Gomes
450c57969a
Add diagnostic platform to utility_meter ( #114967 )
...
* Add diagnostic to identify next_reset
* Add test
* add next_reset attr
* Trigger CI
* set as _unrecorded_attributes
2024-05-14 15:20:59 +02:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Jan-Philipp Benecke
f18448950c
Add icon translations to Utility meter helper ( #109656 )
2024-02-04 23:21:57 +01:00
dougiteixeira
7713cf377d
Add utility meter option for the sensor to always be available ( #103481 )
...
* Adds option for the sensor to always be available
* Remove logger debug
* Add migration config entry version
* Update homeassistant/components/utility_meter/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/utility_meter/sensor.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Remove migration config entry version
* Change CONF_SENSOR_ALWAYS_AVAILABLE optional in CONFIG_SCHEMA
* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests
* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests
* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests
* Add option in yaml
* Update homeassistant/components/utility_meter/strings.json
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/utility_meter/strings.json
Co-authored-by: Robert Resch <robert@resch.dev>
* Changes tests
* Add test_always_available
* Use freezegun
* Update homeassistant/components/utility_meter/strings.json
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-25 20:46:33 +01:00
Wesley Vos
478a1d5e9a
Add periodically resetting meter option to utility meter ( #88446 )
...
* Use last valid state if meter is not periodically resetting
* Fix unload of entry, used during options flow submit
* Adjustments based on code review
* Move DecimalException handling to validation method
* Add test for invalid new state in calculate_adjustment method
2023-03-28 17:09:20 +02:00
Diogo Gomes
ef6b6e7850
Remove deprecated utility_meter entity ( #76480 )
...
* remove deprecated utility_meter domain
* remove select_tariff
2022-08-17 16:25:34 +02:00
Diogo Gomes
ba814af701
Adopt SelectEntity in Utility Meter ( #55690 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-21 08:21:26 +01:00
Eddy G
4d5705c0fe
Add 'delta_values' option to utility_meter ( #54964 )
2021-10-28 19:00:31 -05:00
Diogo Gomes
ec9fc0052d
Define unit_of_measurement
of all utility_meter
sensors on HA start ( #56112 )
...
* define unit_of_measurement on hass start
* delay utility_meter state
* check state
* store siblings
* don't check unit_of_measurement
2021-09-28 00:42:27 +02:00
Diogo Gomes
fb28665cfa
Add "cron patterns" to define utility_meter cycles ( #46795 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-25 14:52:39 -05:00
Thomas Delaet
293f8eaaf3
Add quarter-hour period feature for utility_meter component ( #41999 )
...
* add support for quarter-hourly intervals to utility meter (15 minutes)
* add tests
* add test for every quarter
* Update homeassistant/components/utility_meter/sensor.py
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-11-14 11:53:59 +01:00
Hareesh M U
c8d5500441
Add bimonthly period feature for utility_meter component ( #39931 )
2020-09-15 17:52:19 +02:00
Diogo Gomes
16336bf902
Add entity_service calibrate_meter to utility_meter ( #32658 )
...
* add calibrate service
2020-03-11 09:42:22 +01:00
Andrew McRae
de0db1601b
Add quarterly cycle for utility_meter component ( #29534 )
...
* Add quarterly tariff period to utility_meter
Many tariff cycles in Australia are 3 monthly (quarterly).
Add quarterly tariff cycle handling to the utility_meter component.
* Add quarterly tariff period to utility_meter
Many tariff cycles in Australia are 3 monthly (quarterly).
Add quarterly tariff cycle handling to the utility_meter component.
* Change date for test for utility_meter
* Add quarterly tariff period to utility_meter
Many tariff cycles in Australia are 3 monthly (quarterly).
Add quarterly tariff cycle handling to the utility_meter component.
2019-12-08 09:49:18 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Justin Bassett
02745be44d
Allows the utility_meter to net meter rather than only allow increases. ( #21204 )
...
* Allow the utility_meter to net meter rather than only allow increases.
* Fix PR issues around CI.
* Fix line length fallout.
* Change rollover to net_consumption. Add unit tests.
* Fix test style issues.
* Fix style in tests.
2019-02-23 14:02:39 +00:00
Diogo Gomes
1d5ffe9ad5
Utility meter ( #19718 )
...
* initial commit
* test service calls
* lint
* float -> Decimal
* extra tests
* lint
* lint
* lint
* lint
* fix self reset
* clean
* add services
* improve service example description
* add optional paused initialization
* fix
* travis fix
* fix YEARLY
* add tests for previous bug
* address comments and suggestions from @ottowinter
* lint
* remove debug
* add discoverability capabilities
* no need for _hass
* Update homeassistant/components/sensor/utility_meter.py
Co-Authored-By: dgomes <diogogomes@gmail.com>
* Update homeassistant/components/sensor/utility_meter.py
Co-Authored-By: dgomes <diogogomes@gmail.com>
* correct comment
* improve error handling
* address @MartinHjelmare comments
* address @MartinHjelmare comments
* one patch is enought
* follow @ballob suggestion in https://github.com/home-assistant/architecture/issues/131
* fix tests
* review fixes
* major refactor
* lint
* lint
* address comments by @MartinHjelmare
* rename variable
2019-01-26 16:33:11 +01:00