Working on matrix clock

This commit is contained in:
Maximilian Giller 2024-08-06 19:13:23 +02:00
parent 3709dc10bd
commit 0330e49ec0
3 changed files with 24 additions and 3 deletions

View file

@ -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]

View file

@ -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)