Martin Hjelmare
376008940b
Disable advanced window cover position Matter sensor by default ( #145713 )
...
* Disable advanced window cover position Matter sensor by default
* Enanble disabled sensors in snapshot test
2025-05-27 17:46:21 +02:00
Ludovic BOUÉ
e22ea85e84
Add Matter Pump device type ( #145335 )
...
* Pump status
* Pump speed
* PumpStatusRunning
* ControlModeEnum
* Add tests
* Clean code
* Update tests and sensors
* Review fixes
* Add RPM unit
* Fix for unknown value
* Update snapshot
* OperationMode
* Update snapshots
* Update snapshot
* Update tests/components/matter/test_select.py
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
* Handle SupplyFault bit enabled too
* Review fix
* Unmove
* Remove pump_operation_mode
* Update snapshot
---------
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
2025-05-23 17:20:27 +02:00
Ludovic BOUÉ
9e6de48a22
Matter Device Energy Management cluster ESAState attribute ( #144430 )
...
* ESAState
* Update strings.json
* Add test
2025-05-22 12:53:08 +02:00
Simone Chemelli
484a547758
Fix pylance warning on SnapshotAssertion import ( #145206 )
2025-05-19 13:55:48 +02:00
Ludovic BOUÉ
4adf5ce826
Support for Matter 1.4 Water Heater device type ( #131505 )
...
* Create water_heater.json
* Update water_heater.json
* Update water_heater.json
* TankVolume
* TankPercentage
* WaterHeaterMode
WaterHeaterMode
* Update sensor.py
* ruff-format
* Update water_heater.json
Attributes of WaterHeaterManagement Cluster on Endpoint 2
ClusterId 148 (0x0094)
* Update test_sensor.py
water_heater fixture
* Update test_sensor.py
* SensorDeviceClass=VOLUME_STORAGE for `TankVolume`
* `BoostStateEnum` map
* WaterHeaterManagementBoostState
* Update sensor.py
* WaterHeaterManagementEstimatedHeatRequired
* Fix UnitOfEnergy
* Format
* Add `device_types.WaterHeater` to Climate
* Strings for Tank sensors
* WaterHeater icons
* Update icons.json
* Update strings.json
* Update water_heater.json
* ruff-format
* Fix tests
* Fix sensor.py
* Fix icons
* WaterHeaterManagementEstimatedHeatRequired
* WaterHeaterManagementBoostState
* BoostState as a binary sensor
* ElectricalPowerMeasurement values
* Fix tests
* Create water_heater.py
* Update climate.py from dev branch
* Resolve conflicts
* ruff-format
* Add Platform.WATER_HEATER
* Update water_heater.py
* Update water_heater.py
* Update water_heater.py
* Update water_heater.py
* Add WaterHeaterManagement sensors
* Update tests
* Add select test
* Add strings
* First try with water_heater
* Testing current_operation
* BoostState attribute
* target_temperature attributes
* target_temperature attribute
* set_temperature and set_operation_mode
* turn_on / turn_off
* Trigger Boost command
* Fix WaterHeaterBoostInfoStruct
* Add test file
* Add climate cluster to fixture
* Add climate cluster to fixture
* Add tests
* Add ON_OFF feature
* Update tests
* Update tests
* Translate WaterHeaterMode
* Change description
* Update test and snapshots
* Update snapshots
* Set entity name to None to make the device name be the name of the entity
* Format
* Update water_heater.py
* Fix format
* ruff-format
* Import ServiceValidationError
* Update homeassistant/components/matter/water_heater.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update water_heater.py
* Update test_water_heater.py
* Update test_water_heater.ambr
* Update test_water_heater.py
* Update select.py
* Update snapshots
* Rename to boost_info
* Set WaterHeaterMode
* Update snapshots
* Update snapshots
* Fix for warning
W7431: Argument 3 should be of type AddConfigEntryEntitiesCallback in async_setup_entry (hass-argument-type)
* Update strings.json
* Update strings and tests
* Fix missing brace
* Update tests
* fix test
* Updates strings
* Fix async_set_temperature
* Update tests
* Update tests
* Update homeassistant/components/matter/water_heater.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Sort strings in strings.json
* Update homeassistant/components/matter/water_heater.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove unused line
* Remove min/max target temperatures
* Remove BOOST_STATE_MAP
* Add comment
* Remove SUPPORT_FLAGS_HEATER
* Remove system_mode_value check
* Update homeassistant/components/matter/water_heater.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Reformat async_set_temperature()
* Update snapshots
* Remove MatterWaterHeaterMode selector
* Update snapshots
* Rename test to test_water_heater_set_temperature
* Add test_water_heater_set_operation_mode
* Remove reset_mock
* Update tests/components/matter/test_water_heater.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add test_update_from_water_heater
* Add test_water_heater_turn_on_off
* Add test_water_heater_boostmode
* Fix SystemMode value for STATE_HIGH_DEMAND
* Add disable boost from water heater device side test
* Remove unused lines
* Remove unused lines
* Fix test indentation
* Fix water heater tests
* Check for None
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-04-25 15:28:28 +02:00
Ludovic BOUÉ
3c60bff7dc
Add support for Matter EVSE devicetype ( #137189 )
...
* Binary sensors
* Add tests
* Update strings
* Enable testing
* Add command_timeout to MatterEntityDescription
* Add entities
* Update strings.json
* Add sensors
* Add tests
* Move command_timeout keyword to MatterGenericCommandSwitch
* Icons
* Update snapshots
* Add tests for switch entity
* Fix switch tests
* Rename states
* Update strings.json
* Update snapshot
* Rename charging switch
* Remove MatterEntity
* Update strings.json
* Update snapshots
* Update snaphots 2/2
* Update strings
* Update test binary
2025-04-04 17:57:22 +02:00
Ludovic BOUÉ
3f013ab620
Add sensor for Matter OperationalState cluster / CurrentPhase attribute ( #129757 )
2025-01-28 16:39:41 +01:00
Artem Sorokin
0cd7aff6ea
Add power/energy sensor for Matter draft electrical measurement cluster ( #132920 )
2025-01-28 08:37:39 +01:00
Ludovic BOUÉ
6015c936b0
Add a Matter temperature sensor based on `Thermostat` device `LocalTemperature` attribute ( #133888 )
2025-01-27 11:35:33 +01:00
Ludovic BOUÉ
1ea6cba1f5
Handle empty string `BatReplacementDescription` from Matter attribute value ( #134457 )
2025-01-22 12:28:18 +01:00
Ludovic BOUÉ
1512cd5fb7
Add Matter battery replacement description ( #132974 )
2024-12-17 00:03:32 +01:00
Joost Lekkerkerker
f90ed9e9db
Remove expected lingering test fixture from Matter ( #127713 )
2024-10-06 16:00:40 +02:00
Joost Lekkerkerker
6e12726b11
Use Parametrizing in Matter tests ( #126759 )
...
* Overhaul matter tests
* Overhaul
* Remove matter_client where obsolete
* Move snapshots to the top
* Use usefixtures
* Add Valve
2024-09-26 19:40:20 +02:00
Joost Lekkerkerker
662a704165
Use snake case in matter fixture nodes ( #126743 )
2024-09-25 15:29:17 +02:00
Joost Lekkerkerker
6e4e5ba8c5
Make Matter snapshot logic a shared function ( #126744 )
2024-09-25 15:12:48 +02:00
Joost Lekkerkerker
31d722f1ef
Introduce snapshot testing to matter ( #126693 )
...
* Introduce snapshot testing to matter
* Introduce snapshot testing to matter
2024-09-25 09:46:32 +02:00
Ludovic BOUÉ
b370893e58
Add support for OperationalState Attribute from Matter OperationalState cluster ( #125627 )
2024-09-24 21:30:30 +02:00
Marcel van der Veldt
ffa76dfd24
Add discovery schemas for Matter Smoke and CO Alarm Cluster ( #126622 )
...
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-09-24 18:23:45 +02:00
Ludovic BOUÉ
31a1ad8409
Add Pressure and Altitude discovery schemas for Matter Eve Weather device ( #125690 )
...
* Update number.py to add EveWeatherAltitude attribute
* Update sensor.py to add EveCluster Pressure Attribute
* Update strings.json
* Create eve-weather-sensor.json
* Update test_sensor.py
* Update eve-weather-sensor.json
* Update test_sensor.py
Pressure
AttributeId: 319422484 (0x00130a0014) - Value type: float32
* Update test_sensor.py
* Update test_sensor.py
* Update test_sensor.py
* Update manifest.json
Bump to python-matter-server==6.5.0
* Update requirements_all.txt
Bump requirements to python-matter-server 6.5.0
* Update requirements_test_all.txt
Bump requirements to python-matter-server 6.5.0
* Update test_sensor.py
* Update test_sensor.py
* Update sensor.py
* Update sensor.py
* Update test_sensor.py
* Update sensor.py
* Update test_sensor.py
* Update test_sensor.py
* Update test_sensor.py
* fix test fixture
* Update requirements_all.txt
* Update requirements_test_all.txt
* Update manifest.json
* fix tests
* Update test_sensor.py
* add device class
---------
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
2024-09-24 17:59:58 +02:00
Ludovic BOUÉ
741b025751
Add EveCluster ValvePosition Attribute ( #125809 )
2024-09-24 16:33:19 +02:00
Joost Lekkerkerker
adcdb7a900
Map unknown air quality to None in Matter ( #126639 )
...
Map unknown to None in Matter
2024-09-24 15:30:01 +02:00
Ludovic BOUÉ
e08a94fe1c
Add Matter tests for BatVoltage attribute from PowerSource cluster ( #125645 )
...
* Add BatVoltage Attribute from PowerSource Cluster
* Update sensor.py
Remove comment
* Update homeassistant/components/matter/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fixture for a Eve Door & Window node
Fixture for a Eve Door & Window node to check BatVoltage attribute from PowerSource cluster
* Test battery voltage sensor
* Update test_sensor.py
* ruff-format
* Update test_sensor.py
* Update test_sensor.py
battery_voltage attribute test
* Update test_sensor.py
* Update test_sensor.py
* Update tests/components/matter/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update test_sensor.py
* Adjust values
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-16 14:16:03 +02:00
Marcel van der Veldt
cbd884d54a
Add discovery schemas for Matter 1.3 power/energy sensors ( #125403 )
...
* Add missing discovery schemas for (Matter 1.3) Power/Energy measurements
* Prevent discovery of custom cluster if 1.3 cluster present
* add tests
* Use f-strings
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-07 07:55:08 +02:00
Marcel van der Veldt
a95c074ab8
Extend Matter sensor discovery schemas for Air Purifier / Air Quality devices ( #118483 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-05-30 16:59:45 +02:00
Alexey Guseynov
fc5d58effd
Add Total Volatile Organic Compounds (tVOC) matter discovery schema ( #116963 )
2024-05-30 12:20:02 +02:00
Marcel van der Veldt
7136be5047
Bump Python Matter Server library to 6.1.0(b0) ( #118388 )
2024-05-29 19:20:18 +02:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] ( #112710 )
2024-03-08 14:55:15 +01:00
matt7aylor
dec9eb9ae4
Matter sensors for air quality measurements ( #108173 )
...
* Matter sensors for air quality measurements
Add sensors for CO2, PM1, PM2.5, PM10 and TVOC
* Add initial tests for matter air quality sensor
* Remove VOC data as requires unit extraction from cluster
2024-01-27 08:46:24 +01:00
Marcel van der Veldt
516966db33
Add Matter custom cluster sensors (Eve Energy Plug energy measurements) ( #104830 )
...
* Support for sensors from custom clusters in Matter
* lint
* no need to write state twice
* Add test for eve energy plug
* Update homeassistant/components/matter/entity.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* adjust comment
* debounce extra poll timer
* use async_call_later helper
* Update homeassistant/components/matter/entity.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* wip extend test
* Update test_sensor.py
* fix state class for sensors
* trigger (fake) event callback on all subscribers
* Update eve-energy-plug.json
* add test for additionally polled value
* adjust delay to 3 seconds
* Adjust subscribe_events to always use kwargs
* Update tests/components/matter/common.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update test_sensor.py
* remove redundant code
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-12-04 17:21:41 +01:00
Jan-Philipp Benecke
9326ea09a5
Update m* tests to use entity & device registry fixtures ( #103980 )
2023-11-15 10:33:11 +01:00
Martin Hjelmare
02192ddf82
Set Matter battery sensors as diagnostic ( #95794 )
...
* Set matter battery sensor to diagnostic
* Update tests
* Use new eve contact sensor dump across the board
* Assert entity category
* Complete typing
2023-07-04 14:54:37 +02:00
epenet
c51bde9a26
Fail CI on lingering tasks ( #88905 )
2023-03-07 11:35:48 +01:00
Marcel van der Veldt
301144993c
Fix support for Bridge(d) and composed devices in Matter ( #88662 )
...
* Refactor discovery of entities to support composed and bridged devices
* Bump library version to 3.1.0
* move discovery schemas to platforms
* optimize a tiny bit
* simplify even more
* fixed bug in light platform
* fix color control logic
* fix some issues
* Update homeassistant/components/matter/discovery.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* fix some tests
* fix light test
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-23 14:58:37 -05:00
Marcel van der Veldt
881e85d74f
Bump python-matter-server to 3.0.0 ( #88607 )
...
* Bump python-matter-server to 3.0.0
Include all fixes for the changed api schema of the library
* fix test fixtures
* remove invalid data from fixtures
* fix some of the tests
* fix binary sensor bug
* fix sensor bug
* fix switch test
* fix tests
* adjust bugs and typos
2023-02-22 14:24:30 -05:00
Martin Hjelmare
9d96a021c7
Add matter sensor platform ( #83147 )
2022-12-06 21:39:00 +01:00