Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi H1 Wired Double Rocker Switch With Neutral #1391

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e2ef3ef
Working on Aqara D1 3 button wall switch
Feb 22, 2022
f28f1f4
reformated some stuff, added workaround for possibly compatibility issue
Feb 22, 2022
d9e77f4
reformat
Feb 22, 2022
0053f16
reformat
Feb 22, 2022
75c8cb7
added Aqara H1
Feb 25, 2022
267e0f0
generalized a bit
Feb 25, 2022
7688988
reformat
Feb 25, 2022
602d75a
generalize
Feb 25, 2022
f0f9a74
clean up
Mar 14, 2022
c14a9c6
updated opple switch and added configuratione exposure
Mar 15, 2022
86e3988
Merge remote-tracking branch 'upstream/dev' into dumpfheimer/xiaomi-d…
Apr 15, 2022
1fb4488
removed 'expose' attribute as it seems to have no future
Apr 28, 2022
f41ec15
Merge remote-tracking branch 'upstream/dev' into dumpfheimer/xiaomi-d…
Apr 28, 2022
18aeb89
trying "multi-class multi-face approach"
Aug 11, 2022
22f18ee
trying "multi-class multi-face approach": fixes
Aug 11, 2022
476d1c5
trying "multi-class multi-face approach": fixing isort
Aug 11, 2022
9fd7454
trying "multi-class multi-face approach": fixing flake8
Aug 11, 2022
e4f3110
trying "multi-class multi-face approach": fixing black
Aug 11, 2022
d35c729
trying "multi-class multi-face approach": fixing isort
Aug 11, 2022
143bde1
trying "multi-class multi-face approach": fixing tests (which I do no…
Aug 11, 2022
369adc9
trying "multi-class multi-face approach": fixing black
Aug 11, 2022
dd294d7
trying "multi-class multi-face approach": fixing tests (which I do no…
Aug 11, 2022
08f8806
trying "multi-class multi-face approach": fixing tests.. moved 3 butt…
Aug 11, 2022
fbe5dab
trying "multi-class multi-face approach": removed 3 button switch (fo…
Aug 11, 2022
070bbab
trying "multi-class multi-face approach": fixing flake8
Aug 11, 2022
7102c5e
added metering cluster (suddenly worked without any other changes aft…
Aug 11, 2022
f90b742
Merge branch 'zigpy:dev' into dumpfheimer/xiaomi-d1-3button-wall-switch
dumpfheimer Aug 12, 2022
bc60e6a
testing xiaomi metering cluster
Aug 12, 2022
8e3af7b
Merge branch 'dumpfheimer/xiaomi-d1-3button-wall-switch' of github.co…
Aug 12, 2022
2591a7b
merged the two "hold" commands as they seem to be the same for both b…
Aug 27, 2022
563fc96
using smartenergy Metering
Aug 27, 2022
5c1af80
fix tests
Aug 27, 2022
c5fd125
Merge branch 'zigpy:dev' into dumpfheimer/xiaomi-d1-3button-wall-switch
dumpfheimer Aug 27, 2022
0fdaed7
switched from uint8_t to enum8 for configuration entitites
Aug 27, 2022
6963960
Merge branch 'dumpfheimer/xiaomi-d1-3button-wall-switch' of github.co…
Aug 27, 2022
d8ec61f
reverted "switched from uint8_t to enum8 for configuration entitites"…
Aug 27, 2022
011a239
fixed typing/enum issue for configuration entitites
Aug 27, 2022
b3072c6
fixed isort
Aug 27, 2022
40795f7
feedback from devs
Aug 30, 2022
b8a37ba
feedback from devs
Aug 30, 2022
e7c5401
feedback from devs
Aug 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions zhaquirks/xiaomi/__init__.py
Expand Up @@ -25,6 +25,7 @@
RelativeHumidity,
TemperatureMeasurement,
)
from zigpy.zcl.clusters.smartenergy import Metering
import zigpy.zcl.foundation as foundation
import zigpy.zdo
from zigpy.zdo.types import NodeDescriptor
Expand Down Expand Up @@ -461,6 +462,10 @@ class DeviceTemperatureCluster(LocalDataCluster, DeviceTemperature):
"""Device Temperature Cluster."""


class XiaomiMeteringCluster(LocalDataCluster, Metering):
"""Xiaomi Metering Cluster."""


class TemperatureMeasurementCluster(CustomCluster, TemperatureMeasurement):
"""Temperature cluster that filters out invalid temperature readings."""

Expand Down