From 0330e49ec0cf33c54185dd382fbdd2f58c78ebdd Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Tue, 6 Aug 2024 19:13:23 +0200 Subject: [PATCH] Working on matrix clock --- README.md | 19 ++++++++++++++++--- src/mash/bridges/matrixclock.py | 0 src/mash/entities/matrixclock.py | 8 ++++++++ 3 files changed, 24 insertions(+), 3 deletions(-) delete mode 100644 src/mash/bridges/matrixclock.py create mode 100644 src/mash/entities/matrixclock.py diff --git a/README.md b/README.md index cac803a..53e6b33 100644 --- a/README.md +++ b/README.md @@ -18,17 +18,30 @@ Should be a very simple **server** implementation of what is required in Max's s Example Hue Light: ``` [HueLight] - - implementes [LightDevice] + - implementes [LightEntity] - uses [HueBridge] ``` Example with ZigBee2Mqtt Temperature and Matrix Clock Temperature: ``` [Z2mClimate] - - implements [ClimateDevice] + - implements [ClimateEntity] - uses [Z2mBridge] [MatrixClock] - - implements [ClimateDevice] + - implements [ClimateEntity] - uses no bridge, works on a per-device connection ``` + +### Device types + +G: Get +S: Set + +- Hue [GS] +- Brightness [GS] +- Saturation [GS] +- Temperature [G] +- Humidity [G] +- Message [S] +- Contact [G] diff --git a/src/mash/bridges/matrixclock.py b/src/mash/bridges/matrixclock.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/mash/entities/matrixclock.py b/src/mash/entities/matrixclock.py new file mode 100644 index 0000000..8b73b7f --- /dev/null +++ b/src/mash/entities/matrixclock.py @@ -0,0 +1,8 @@ +from mash.entities.entity import Entity + + +class MatrixClockEntity(Entity): + def __init__(self, *, id: str, name: str, room: str, device_type: str, groups: list[str] = ...) -> None: + super().__init__(id=id, name=name, room=room, device_type=device_type, groups=groups) + +