Alexei Chetroi
d31a0c8dca
Correctly handle device triggers for missing ZHA devices ( #74894 )
2022-07-13 14:13:46 -07:00
Alexei Chetroi
240a83239a
Correctly handle device triggers for missing ZHA devices ( #74894 )
2022-07-10 13:35:45 -04:00
Alexei Chetroi
dcbac86fc0
Bump up ZHA dependencies ( #71663 )
2022-05-10 19:21:46 -04:00
Alexei Chetroi
2b3df46f06
Bump up ZHA dependencies ( #64676 )
2022-01-21 21:14:46 -05:00
Alexei Chetroi
b54f2c9487
Don't throw when a Zigbee device has an unknown ZCL cluster ( #62964 )
...
* Fix channel name for clusters with None ep_attribute
* Correctly generate entity name based on channel names
2021-12-28 21:04:11 -05:00
Alexei Chetroi
997809c6c4
Refactor ZHA entity matching process ( #60063 )
...
* Group multi-matches by channels
* Group multi-matched by explicit groups
* Registryless AnalogInput and PowerConfiguration
* Refactor single cluster sensor registry
* Refactor single cluster cover and lock registry
* Refactor single cluster binary_sensor registry
* Pylint
2021-12-12 07:52:49 -05:00
Alexei Chetroi
a3ede8f895
Add 3157100-E model to Centralite thermostat ( #61073 )
2021-12-06 15:51:58 -08:00
Alexei Chetroi
4e9fd56b8c
Add 3157100-E model to Centralite thermostat ( #61073 )
2021-12-05 20:36:05 -05:00
Alexei Chetroi
9b493be2b2
Bump up ZHA dependencies ( #60474 )
2021-11-27 22:49:59 -05:00
Alexei Chetroi
f9fc92c36b
Add Battery sensor regardless if the battery_percent_remaining attribute is supported or not ( #59264 )
2021-11-08 20:47:47 -08:00
Alexei Chetroi
958c588a19
Bump up ZHA dependencies ( #59314 )
2021-11-07 19:06:22 -08:00
Alexei Chetroi
cc82976d15
Add Battery sensor regardless if the battery_percent_remaining attribute is supported or not ( #59264 )
2021-11-07 12:53:28 -05:00
Alexei Chetroi
fe15736418
Log correct ZHA channel initialization step ( #58410 )
2021-10-25 16:30:00 +02:00
Alexei Chetroi
0c684cee51
Bump up ZHA dependencies ( #58409 )
2021-10-25 10:29:47 -04:00
Alexei Chetroi
723596076d
Add ZHA HVAC Action sensor ( #57021 )
...
* WIP
* Refactor multi-entity matching
Eliminate the notion on primary channel.
* Cleanup climate tests
* Refactor multi-entity match
Remove the "primary channel" in multiple entity matches
* Cleanup
* Add HVAC Action sensor
* Add a "stop_on_match" option for multi entities matches
Nominally working HVAC state sensors
* Add id_suffix for HVAC action sensor
* Fix Zen HVAC action sensor
* Pylint
2021-10-04 12:57:58 -04:00
Alexei Chetroi
d0827a9129
ZHA support for additional entities on ElectricalMeasurement ZCL cluster ( #56909 )
...
* Add electrical measurement type state attribute.
* Add active_power_max attribute
* Skip unsupported attributes on entity update
* Fix tests
* Create sensor only if the main attribute is supported
* Refactor ElectricalMeasurement sensor to use attr specific divisor and multiplier
* Multiple entities for electrical measurement cluster
* Update discovery tests
* Sensor clean up
* update tests
* Pylint
2021-10-02 21:57:49 -04:00
Alexei Chetroi
dbba2c4afe
Add "Summation Delivered" Sensor for SmartEnergy metering ZHA channel ( #56666 )
2021-09-29 09:35:20 -07:00
Alexei Chetroi
a5d405700c
ZHA channel ZCL attributes initialization ( #56476 )
...
* Add dict of attributes to initialize
* Refactor get_attributes() method
Read 5 attributes at the time.
* Add ZCL_INIT_ATTRS attribute to base Zigbee channel
* Update tests and general clusters
* Update channels to use ZCL_INIT_ATTRS
* Update channels to use ZCL_INIT_ATTRS
* Fix tests
* Refactor async_initialize() to be a retryable request
* Maky pylint happy again
2021-09-22 11:34:30 -04:00
Alexei Chetroi
f5dd71d1e0
Bump up ZHA dependencies ( #56359 )
2021-09-17 19:52:49 -04:00
Alexei Chetroi
5b0e00a74b
Refactor ZHA HVAC thermostat channel ( #56238 )
...
* Refactor HVAC channel to use zigpy cached attributes
* Allow named attributes in ZHA test attribute reports
* Let attribute write to update cache
* WIP Update tests
* Cleanup
2021-09-17 15:17:34 -04:00
Alexei Chetroi
fe1311ba34
Bump up zha dependencies ( #56206 )
2021-09-13 21:27:29 -04:00
Alexei Chetroi
c6888e4faf
Refactor ZHA tests ( #55844 )
...
* Replace ZHA tests FakeDevice
* Refactor ZHA tests to use zigpy devices and endpoints
* Use common consts for zigpy device mocks
Use the same dict key names for device signature mocks as zha quirks.
* Use const for test device list
* Update tests/components/zha/common.py
2021-09-06 19:00:06 -04:00
Alexei Chetroi
aa6cb84b27
Optimize ZHA ZCL attribute reporting configuration ( #55796 )
...
* Refactor ZCL attribute reporting configuration
Configure up to 3 attributes in a single request.
* Use constant for attribute reporting configuration
* Update tests
* Cleanup
* Remove irrelevant for this PR section
2021-09-05 17:45:08 -04:00
Alexei Chetroi
8f85472df3
Pick right coordinator ( #55555 )
2021-09-02 12:50:45 -07:00
Alexei Chetroi
cb1e0666c8
Pick right coordinator ( #55555 )
2021-09-01 22:54:35 -04:00
Alexei Chetroi
6f24f4e302
Bump up ZHA dependencies ( #55242 )
...
* Bump up ZHA dependencies
* Bump up zha-device-handlers
2021-08-26 09:37:04 -07:00
Alexei Chetroi
d3ac72d013
Bump up ZHA dependencies ( #55242 )
...
* Bump up ZHA dependencies
* Bump up zha-device-handlers
2021-08-26 11:38:35 -04:00
Alexei Chetroi
289734c748
Update ZHA config entry radio detection ( #55128 )
2021-08-24 15:25:31 -05:00
Alexei Chetroi
2927dcd809
Use a debouncer when updating ZHA group state ( #53263 )
2021-08-24 10:09:36 -07:00
Alexei Chetroi
37c3062874
Bump up ZHA dependencies ( #53732 )
2021-07-29 23:34:58 -07:00
Alexei Chetroi
5eba3e485b
Bump up ZHA dependencies ( #53732 )
2021-07-29 16:16:47 -07:00
Alexei Chetroi
505dd500cb
Bump up ZHA dependencies ( #53472 )
...
* Bump up ZHA dependencies
* Fix ZHA WS API tests
2021-07-25 22:09:40 -04:00
Alexei Chetroi
c9ae141eab
Mark ZHA Light methods as a callbacks ( #53170 )
...
* ZHA Light.set_level is safe to run in the loop
* Fix tests.
2021-07-20 09:33:45 +03:00
Alexei Chetroi
4e82659f3a
Bump up ZHA depdencies ( #52818 )
2021-07-12 13:57:15 -07:00
Alexei Chetroi
fb7b202251
Bump up ZHA depdencies ( #52818 )
2021-07-09 22:37:56 -04:00
Alexei Chetroi
a7ee86730c
Bump up ZHA dependencies ( #52611 )
2021-07-07 11:20:56 +02:00
Alexei Chetroi
88cd7f481d
Bump up ZHA dependencies ( #52611 )
2021-07-07 08:30:48 +02:00
Alexei Chetroi
1c9053fef6
Bump up zha dependencies ( #52555 )
2021-07-06 11:54:28 +02:00
Alexei Chetroi
f58b231bbd
Bump up zha dependencies ( #52555 )
2021-07-05 14:00:32 -04:00
Alexei Chetroi and Franck Nijhof
8de7312c92
Bump up ZHA dependencies ( #52374 )
...
* Bump up ZHA dependencies
* Fix broken tests
* Update tests/components/zha/common.py
Co-authored-by: Franck Nijhof <git@frenck.dev >
Co-authored-by: Franck Nijhof <git@frenck.dev >
2021-07-02 17:56:36 +02:00
Alexei Chetroi and Franck Nijhof
8e846164a4
Bump up ZHA dependencies ( #52374 )
...
* Bump up ZHA dependencies
* Fix broken tests
* Update tests/components/zha/common.py
Co-authored-by: Franck Nijhof <git@frenck.dev >
Co-authored-by: Franck Nijhof <git@frenck.dev >
2021-07-01 14:05:55 -04:00
Alexei Chetroi
7f309b4e6e
Add support for Formaldehyde and VOC level sensors ( #52232 )
2021-07-01 07:34:09 -04:00
Alexei Chetroi
cc622f46c5
Bump up ZHA dependencies ( #51765 )
2021-06-13 21:53:37 -04:00
Alexei Chetroi
bc88f6af09
Bump up ZHA dependencies ( #49959 )
2021-05-01 17:25:28 -07:00
Alexei Chetroi
ef2b8bbca8
Bump up ZHA dependencies ( #49959 )
2021-05-01 15:55:04 -04:00
Alexei Chetroi
345873f94f
Don't bind all clusters unconditionally ( #49793 )
2021-04-27 20:25:34 -04:00
Alexei Chetroi
4a6bb96a0f
Stop fast polling of a Zigbee device after a check-in command ( #49685 )
...
* Stop fast polling after a check-in
* Update tests
2021-04-25 21:15:04 -04:00
Alexei Chetroi and Hmmbob
c512ab7ec9
Implement Ignore list for poll control configuration on Ikea devices ( #48667 )
...
Co-authored-by: Hmmbob <33529490+hmmbob@users.noreply.github.com >
2021-04-06 19:12:21 +00:00
Alexei Chetroi and Hmmbob
6204765835
Implement Ignore list for poll control configuration on Ikea devices ( #48667 )
...
Co-authored-by: Hmmbob <33529490+hmmbob@users.noreply.github.com >
2021-04-04 21:21:47 -07:00
Alexei Chetroi
269608d1af
Bump up ZHA dependencies ( #48257 )
2021-03-23 11:03:16 -04:00
Alexei Chetroi
6a66ccef1b
Bump up ZHA dependencies ( #47997 )
2021-03-16 12:21:08 -04:00
Alexei Chetroi
7d8eb49d88
Bump up ZHA dependency ( #47873 )
2021-03-13 16:06:07 -05:00
Alexei Chetroi
f3c71a69f0
Allow 10mV precision for ZHA battery sensor entities ( #47520 )
2021-03-08 07:37:33 -05:00
Alexei Chetroi
79b5ca9415
Add device classes for CO and CO2 measurements ( #47487 )
2021-03-07 00:52:43 +01:00
Alexei Chetroi
a12b98e30e
Update ZHA dependencies ( #47479 )
2021-03-05 17:01:54 -05:00
Alexei Chetroi
39b9ad0ca0
Update ZHA dependencies ( #47282 )
2021-03-02 22:36:50 +00:00
Alexei Chetroi
7ef174fb5e
Update ZHA dependencies ( #47282 )
2021-03-02 21:12:30 +01:00
Alexei Chetroi
9ae4818a23
Update ZHA dependencies ( #45569 )
2021-01-26 11:54:05 -05:00
Alexei Chetroi
daf24dc508
Always apply default light profiles, unless a profile is given ( #45450 )
2021-01-23 06:20:53 +01:00
Alexei Chetroi
120304f235
Bump up ZHA dependency ( #45230 )
2021-01-16 22:05:08 +01:00
Alexei Chetroi
0b9687f7bd
Bump up ZHA dependency ( #45230 )
2021-01-16 13:43:35 -05:00
Alexei Chetroi
de8f273bd0
Allow input_number entity_id as for numeric_state trigger thresholds ( #45091 )
...
* Allow input_number as limits for numeric_state trigger
* Rename threshold schema
2021-01-13 16:20:59 +01:00
Alexei Chetroi
ec038bc6ea
Allow any parameter of a light profile as an optional parameter ( #44079 )
...
* No code duplication for profile application
* Refactor color profile as a dataclass
* Typing
* Make color_x and color_y of a Light profile optional
* Update tests
* Make brightness field of a Light profile optional
* Transition can be of a float type
* Allow fractional transition times in light profiles
Make transition of a float type.
Allow transition to be optional with 5 column CSV files.
* Make pylint happy
* Fix dropped async_mock
* Simplify CSV row schema
2021-01-13 12:11:20 +01:00
Alexei Chetroi
864546201e
Bump up ZHA dependencies ( #44680 )
...
- zigpy == 0.29.0
- zigpy_deconz == 0.11.1
- zha-quirks == 0.0.51
2021-01-01 21:13:25 +01:00
Alexei Chetroi
64dd748330
Bump up ZHA dependencies ( #44680 )
...
- zigpy == 0.29.0
- zigpy_deconz == 0.11.1
- zha-quirks == 0.0.51
2020-12-31 14:07:15 +01:00
Alexei Chetroi
6253054fd4
Bump up dependencies on pyserial and pyserial-asyncio ( #44089 )
2020-12-10 20:41:31 +01:00
Alexei Chetroi
9cfeb44b56
Exclude coordinator when looking up group members entity IDs ( #44058 )
2020-12-09 19:07:29 +01:00
Alexei Chetroi
70257d7a21
Update ZHA dependencies ( #44039 )
...
zha-quirks==0.0.48
zigpy==0.28.2
zigpy-znp==0.3.0
2020-12-09 19:07:10 +01:00
Alexei Chetroi
51f9da94e1
Exclude coordinator when looking up group members entity IDs ( #44058 )
2020-12-08 14:34:26 -05:00
Alexei Chetroi
e0bcee1cc3
Update ZHA dependencies ( #44039 )
...
zha-quirks==0.0.48
zigpy==0.28.2
zigpy-znp==0.3.0
2020-12-07 20:06:32 -05:00
Alexei Chetroi
a1720fdd2b
Cleanup ZHA fan channel ( #43973 )
...
* Use zigpy cached values for ZHA Fan speed
* Disable update_before_add for ZHA fans
* Refresh state of the group
* Fix group tests
2020-12-05 18:24:49 -05:00
Alexei Chetroi
40e5634db3
Add ZHA Coordinator to LightLink cluster groups ( #43959 )
...
* Add coordinator to LighLink cluster groups
* Make pylint happy
2020-12-05 11:20:10 -05:00
Alexei Chetroi
125ceb7449
Refactor ZHA core channel initialization ( #43953 )
...
* Cleanup Basic channnel
Remove unused methods.
* Refactor async_configure() method
Split async_configure() into async_configure() and
async_configure_channel_specfici()
* Refactor async_initilize() method
Split into two different methods and configure channel specifics via
async_configure_channel_specific()
* Fixes
2020-12-04 18:45:09 -05:00
Alexei Chetroi
032d569cd1
Add Analog cluster for Lumi plugs ( #43817 )
2020-12-01 14:34:07 -05:00
Alexei Chetroi
c42b650031
Bump up ZHA dependencies ( #43707 )
...
bellows==0.21.0
zigpy==0.28.1
zha-quirks==0.0.47
2020-11-27 16:39:44 -05:00
Alexei Chetroi
e32669a2d9
Remove zigpy monkey patching ( #43456 )
...
* Use event handler for incoming messages from zigpy
* Bump up zha dependency
2020-11-20 20:02:52 -05:00
Alexei Chetroi
54c4e9335f
Refactor ZHA sensor initialization ( #43339 )
...
* Refactor ZHA sensors to use cached values after restart
* Get attr from cluster, not channel
* Run cached state through formatter method
* Use cached values for div/multiplier for SmartEnergy channel
* Restore batter voltage from cache
* Refactor sensor to use cached values only
* Update tests
* Add battery sensor test
2020-11-18 21:34:12 -05:00
Alexei Chetroi
70a3489845
Update Zha dependencies ( #43373 )
2020-11-18 20:31:22 -05:00
Alexei Chetroi
f1693e2433
Refactor ZHA tests to allow attribute reads during device initialization ( #43357 )
...
* Allow plugging zigpy attribute reads in tests
* Migrate ZHA tests to use new patched attribute reads
* Remove logging in tests
2020-11-18 19:12:38 -05:00
Alexei Chetroi
84569549f8
Refactor ZHA light initialization ( #43149 )
...
* Refactor ZHA light initialization
* Don't do redundant attribute reads
2020-11-14 17:24:41 -05:00
Alexei Chetroi
11ded51ddb
Bump up ZHA dependencies ( #43104 )
2020-11-11 19:03:22 +01:00
Alexei Chetroi
4b7829d777
Allow ZHA coordinator binding/unbinding ( #42854 )
...
* Allow coordinator ZDO binding/unbinding operations
* Let coordinator to provide endpoint it
* Refactor ClusterPair to a dataclass
* Rename ClusterPair
2020-11-06 17:33:13 -05:00
Alexei Chetroi
9ccc49411a
Refactor ZHA light state restoration after a restart ( #42726 )
...
* Restore ZHA light state and level
* Restore state and color temp from zigpy cache
2020-11-01 17:19:36 -05:00
Alexei Chetroi
a93ae418a2
Bump up ZHA dependencies ( #42679 )
...
* Bump up ZHA dependencies
* Fix tests because of zigpy request signature change
2020-11-01 19:59:51 +00:00
Alexei Chetroi
8868028dcd
Bump up ZHA dependencies ( #42679 )
...
* Bump up ZHA dependencies
* Fix tests because of zigpy request signature change
2020-11-01 11:05:55 -05:00
Alexei Chetroi
868b14f151
Update ZHA dependencies ( #42245 )
2020-10-22 23:33:22 +00:00
Alexei Chetroi
0ab7bc7e75
Update ZHA dependencies ( #42245 )
2020-10-23 01:30:32 +02:00
Alexei Chetroi
c29f613b1d
Fix schema for set_zigbee_cluster_attribute service ( #41850 )
2020-10-16 20:02:14 -04:00
Alexei Chetroi
aa8e336af5
Bump up zha dependency to 0.26.0 ( #41371 )
2020-10-07 13:14:00 +02:00
Alexei Chetroi
0ec4887837
Bump up zha dependency to 0.26.0 ( #41371 )
2020-10-07 01:15:49 +02:00
Alexei Chetroi
17ebc85b62
Bump up ZHA dependency ( #41109 )
2020-10-03 19:43:11 +00:00
Alexei Chetroi
2707bbeb23
Better parsing of the ZHA device profile id ( #41024 )
2020-10-03 19:43:06 +00:00
Alexei Chetroi
9765fc13e8
Bump up ZHA dependency ( #41109 )
2020-10-02 21:25:50 -04:00
Alexei Chetroi
f1f23c0453
Better parsing of the ZHA device profile id ( #41024 )
2020-10-01 21:47:33 -04:00
Alexei Chetroi
10bb399449
Bump up zha dependencies ( #40914 )
2020-10-01 19:58:19 +00:00
Alexei Chetroi
9fa23f6479
Bump up zha dependencies ( #40914 )
2020-09-30 20:53:00 -04:00
Alexei Chetroi
47286fbe2a
Refactor permit services to allow joining using install codes ( #40652 )
...
* Update zha.permit schema to support install code
* Move install code to core helpers
* QR code converter for enbrighten
* Fix schemas
* Update test for permit service
* Refactor zha.permit to accept install codes
* Test zha.permit from QR code
* Fix regex for Embrighten QR code
* Add regex for Aqara QR codes
* Add Consciot regex for QR code
* Reuse test params for WS tests
* ZHA WS permit command with install code
* Tests for zha.permit WS service
* Refactor zha.permit and zha.remove service to use ATTR_IEEE for the address
* Make pylint happy
* Deprecate only ieee_address param for now
2020-09-28 20:55:08 -04:00
Alexei Chetroi
b9823791f7
Bump up ZHA dependency ( #40734 )
2020-09-28 20:37:56 -04:00
Alexei Chetroi
988bc8b35f
Bump up zha dependency ( #40689 )
...
* Bump up zha dependency
* Update ZHA dependency for zigpy
2020-09-27 22:23:53 -04:00
Alexei Chetroi
f09f7feb94
Update schema for zha.set_zigbee_cluster_attribute service ( #40600 )
2020-09-25 18:36:55 -04:00