Commit graph

72008 commits

Author SHA1 Message Date
Josh Pettersen
961a1c4d00
Change the suggested energy units to kWh (#109184)
* Change the suggested energy units to kWh since the practical value is pretty large.

* Fix unit tests
2024-01-30 23:40:05 -05:00
Raman Gupta
b8c9da4705
Add icon and state translations for zwave_js sensors (#109186) 2024-01-30 23:38:27 -05:00
David F. Mulcahey
ac8f555a70
Add additional entities for the Aqara E1 curtain motor to ZHA (#108243)
* aqara curtain motor opened by hand binary sensor

add icon and translation key for identify button

remove previous inversion entity

add window covering type sensor and aqara curtain motor sensors

add aqara curtain motor hook lock switch

add aqara curtain motor attributes zcl_init_attrs

add aqara curtain motor zcl_init_attrs

translations

* update translation string

* review comments

* use enum sensor after rebase

* remove button change
2024-01-30 22:40:33 -05:00
David F. Mulcahey
3115af1041
Add update platform to ZHA (bumps zigpy to 0.61.0) (#107612)
* stub out zha update entity

* update matcher

* updates based on assumptions / conversation

* hook into current installed version

* post rebase cleanup

* incorporate zigpy changes

* fix async_setup_entry

* fix sw_version

* make ota work with config diagnostic match

* fix version format

* sync up with latest Zigpy changes

* fix name attribute

* disable ota providers for tests

* update device list

* review comment

* add current_file_version to Ota ZCL_INIT_ATTRS

* updates to update and start tests

* get installed version from restore data

* better version handling

* remove done todo notes

* reorganize test

* move image notify to cluster handler

* add test for manual update check

* firmware update success test

* coverage

* use zigpy defs

* clean up after rebase

* bump Zigpy

* cleanup from review comments

* fix busted F string

* fix empty error

* move inside check

* guard zigbee network from bulk check for updates
2024-01-30 22:34:48 -05:00
Josh Pettersen
2f9f0bae46
Add generic typing for powerwall sensors (#109008) 2024-01-30 16:28:27 -10:00
Jan Bouwhuis
320bf53f75
Add OnOff trait for climate entities in google_assistant (#109160) 2024-01-30 21:27:36 -05:00
Caius-Bonus
a7a41e54f6
Add ZHA ZCL thermostat entities (#106563) 2024-01-31 03:26:19 +01:00
Franck Nijhof
82e1ed43f8
Migrate Tuya integration to new sharing SDK (#109155)
* Scan QR code to log in And Migrate Tuya integration to new sharing SDK (#104767)

* Remove non-opt-in/out reporting

* Improve setup, fix unload

* Cleanup token listner, remove logging of sensitive data

* Collection of fixes after extensive testing

* Tests happy user config flow path

* Test unhappy paths

* Add reauth

* Fix translation key

* Prettier manifest

* Ruff format

* Cleanup of const

* Process review comments

* Adjust update token handling

---------

Co-authored-by: melo <411787243@qq.com>
2024-01-30 21:22:22 -05:00
Jan Bouwhuis
712ba2fdca
Add alexa PowerController on enabled features for climate entities (#109174)
Depend alexa PowerController on enabled features for climate entities
2024-01-30 20:38:32 -05:00
Duco Sebel
41fdcce226
Bumb python-homewizard-energy to 4.3.0 (#109131) 2024-01-31 01:50:00 +01:00
Noah Groß
95fca44e6d
Fix schema validation for product_id in picnic integration (#109083) 2024-01-31 01:44:31 +01:00
Marcel van der Veldt
182d00be66
Bump python-matter-server to 5.4.0 (#109178) 2024-01-31 01:39:00 +01:00
Erik Montnemery
fcfacaaabd
Store preferred border agent extended address for each thread dataset (#109065) 2024-01-31 00:57:46 +01:00
Robert Resch
09a89cd3e9
Fix Ecovacs duration sensors (#108868) 2024-01-31 00:43:39 +01:00
TheJulianJES
1aa9807e26
Fix "deprecated" typo in ZHA smartenergy comment (#109173)
* Fix "deprecated" typo in ZHA smartenergy comment

* Fix in both places
2024-01-31 00:07:59 +01:00
Josh Pettersen
b6126e7821
Convert gather calls into TaskGroups (#109010) 2024-01-30 12:38:45 -10:00
J. Nick Koston
bea7dd756a
Bump regenmaschine to 2024.01.0 (#109157) 2024-01-30 12:34:48 -10:00
Jack
2909e1c4fe
Fix ZHA handling of power factor ElectricalMeasurement attribute sensor (#107641)
* Correct handling of power_factor ElectricalMeasurement attribute

The Zigbee Cluster Library defines PowerFactor as an int8 with value supported from -100 to 100.

Currently the zha sensor handler attempts to apply the ac_power_divisor and ac_power_multiplier formatters against the attribute value, the spec outlines that this should not be the case.

The impact of the current code is that quirks not using the default values of 1 are multiplying/dividing
power and power factor values prior to updating the cluster attribute.

This results in either a non-conformant power_factor e.g. the value was multiplied by 10 so that an ac_power_divider of 10 could be used, or the power readings sacrificing a point of measurement for lower readings.

Two quirks currently use this workaround:
 * ts0601_din_power.py
 * ts0601_rcbo.py

* Update ZHA Metering formatter to perform None check on _div_mul_prefix

To address feedback:
https://github.com/home-assistant/core/pull/107641#discussion_r1447547054

* _div_mul_prefix needs self reference

* Simplify None check for _div_mul_prefix

Co-authored-by: Joakim Plate <elupus@ecce.se>

* Updates to formatting and CI test typing fix

* Use ' | ' in place of Union

* Add tests for power_factor sensor

---------

Co-authored-by: Joakim Plate <elupus@ecce.se>
2024-01-30 23:11:18 +01:00
Robert Resch
b409933d19
Add DurationConverter (#108865)
* Add DurationConverter

* Update withings snapshots

* Add sensor test

* Fix tests

* Update snapshots after #108902 was merged
2024-01-30 23:08:12 +01:00
escoand
e7d5ae7ef6
Add Nextcloud update entity (#106690)
* add nextcloud update entity

* don't init update entity on older nextcloud versions

* ruff

* pass skipUpdate to module

* bump deps

* bump requirements

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* bump requirements

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Update homeassistant/components/nextcloud/update.py

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-01-30 23:01:26 +01:00
TheJulianJES
0b09ffbcde
Bump zha-quirks to 0.0.110 (#109161)
* Bump zha-quirks to 0.0.110

* Reflect removal of `IasWd` cluster for Heiman sensor in tests
2024-01-30 16:39:59 -05:00
Simone Chemelli
d4c91bd0b7
Add a repair issue for Shelly devices with unsupported firmware (#109076)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-30 10:59:33 -10:00
Martin Hjelmare
e1576d5998
Handle deprecated cloud tts voice (#109124)
* Handle deprecated cloud tts voice

* Add test

* Fix test logic

* Add breaks in ha version

* Adjust translation string
2024-01-30 21:58:16 +01:00
puddly
758e7489f1
Fix ZHA cover inversion handling missing attributes (#109151)
* Allow `window_covering_type` to be `None`

* Create a `window_covering_mode` attribute and simplify inversion switch

* Revert "Create a `window_covering_mode` attribute and simplify inversion switch"

This reverts commit 048d649b4d.

* check both config status and mode

* coverage

---------

Co-authored-by: David Mulcahey <david.mulcahey@icloud.com>
2024-01-30 15:51:38 -05:00
karwosts
ef4e72f218
Fix precipitation typo in icons (#109156) 2024-01-30 10:32:53 -10:00
J. Nick Koston
a22244707b
Create an issue when database backups fail because the system runs out of resources (#109020) 2024-01-30 10:23:58 -10:00
Simone Chemelli
6174aa4e59
Remove Shelly RSSI sensor if Wi-FI is not configured (#108390)
* Remove Shelly RSSI sensor if Wi-FI is not configured

* fix tests
2024-01-30 21:18:54 +01:00
puddly
7fbfd44636
Filter ZHA light group color modes (#108861)
Ensure ZHA light color modes have proper defaults and are filtered
2024-01-30 15:14:03 -05:00
Jack
4ec3a17ed0
Add missing ZHA metering device types (#109126)
* Update smartenergy.py metering_device_type enums

* Added missing enum 127

* Enum 127 is also electric metering type

* Meter type constants and status enums in smartenergy cluster handler

Addresses 
https://github.com/home-assistant/core/pull/109126#discussion_r1471383887

Whilst I have the code open I've also added status handlers for the non-electrical meter types.

* New tests for different metering device type statuses
2024-01-30 15:09:15 -05:00
J. Nick Koston
bcb9a10d5a
Speed up listing issues via the repairs websocket api (#109149) 2024-01-30 09:57:08 -10:00
Jan Bouwhuis
04f0128a1c
Simplify MQTT device triggers in automations (#108309)
* Simplify MQTT device trigger

* Add test non unique trigger_id

* Adjust deprecation warning

* Make discovery_id optional

* refactor double if

* Improve validation, add tests and deprecation comments

* Avoid breaking change

* Inmprove error message

* Match on discovery_id instead of discovery_info

* Revert an unrelated change

* follow up comments

* Add comment and test on device update with non unique trigger

* Update homeassistant/components/mqtt/device_trigger.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/device_trigger.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-30 20:50:39 +01:00
G Johansson
066a0ccc6d
Add TURN_ON/OFF ClimateEntityFeature for HomeKit Device (#109137) 2024-01-30 08:57:41 -10:00
Ernst Klamer
70ee6a16ee
Add event entity to Xiaomi-BLE integration (#108811) 2024-01-30 08:42:56 -10:00
Franck Nijhof
1f7bf7c2a9
2024.1.6 (#109129) 2024-01-30 19:38:38 +01:00
Paul Bottein
2b534af960
Update reload icons for automation and person service (#109147) 2024-01-30 19:36:57 +01:00
Jan Bouwhuis
6023980c2e
Set TURN_ON and TURN_OFF feature on MQTT climate entities (#109146) 2024-01-30 19:35:46 +01:00
Robert Resch
7d2c6a1bb6
Add check for valid initial_suggested_unit (#108902)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-30 18:55:59 +01:00
Robert Resch
c363edad4a
Update Ecovacs binary sensor keys (#109145) 2024-01-30 18:55:37 +01:00
G Johansson
2b1d1340b7
Add TURN_ON/OFF ClimateEntityFeature for Mill (#108977) 2024-01-30 18:16:51 +01:00
G Johansson
36e3ba4834
Add TURN_ON/OFF ClimateEntityFeature for Netatmo (#108973) 2024-01-30 18:15:11 +01:00
G Johansson
6d43a5627a
Add TURN_ON/OFF ClimateEntityFeature for CoolMasterNet (#108972) 2024-01-30 18:14:16 +01:00
G Johansson
8395992dbe
Add TURN_ON/OFF ClimateEntityFeature for Advantage Air (#108971) 2024-01-30 18:13:30 +01:00
G Johansson
8f9969131b
Add TURN_ON/OFF ClimateEntityFeature for Nexia (#108970)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-01-30 18:13:08 +01:00
G Johansson
822d5b3ce8
Add TURN_ON/OFF ClimateEntityFeature for Vera (#108969) 2024-01-30 18:12:15 +01:00
G Johansson
1acc9007d4
Add TURN_ON/OFF ClimateEntityFeature for Adax (#108966) 2024-01-30 18:11:42 +01:00
G Johansson
96ee8ba9a8
Add TURN_ON/OFF ClimateEntityFeature for Fritzbox (#108964) 2024-01-30 18:11:08 +01:00
G Johansson
63594bac89
Add TURN_ON/OFF ClimateEntityFeature for IntesisHome (#109134) 2024-01-30 18:05:03 +01:00
G Johansson
9d664c0fdd
Add TURN_ON/OFF ClimateEntityFeature for Sensibo (#108962) 2024-01-30 18:03:46 +01:00
G Johansson
c51a675893
Add TURN_ON/OFF ClimateEntityFeature for Overkiz (#109132) 2024-01-30 18:01:53 +01:00
G Johansson
cf1adfbf24
Add TURN_ON/OFF ClimateEntityFeature for TOLO Sauna (#108965) 2024-01-30 18:01:06 +01:00