Working on matrix clock
This commit is contained in:
parent
3709dc10bd
commit
0330e49ec0
3 changed files with 24 additions and 3 deletions
19
README.md
19
README.md
|
@ -18,17 +18,30 @@ Should be a very simple **server** implementation of what is required in Max's s
|
||||||
Example Hue Light:
|
Example Hue Light:
|
||||||
```
|
```
|
||||||
[HueLight]
|
[HueLight]
|
||||||
- implementes [LightDevice]
|
- implementes [LightEntity]
|
||||||
- uses [HueBridge]
|
- uses [HueBridge]
|
||||||
```
|
```
|
||||||
|
|
||||||
Example with ZigBee2Mqtt Temperature and Matrix Clock Temperature:
|
Example with ZigBee2Mqtt Temperature and Matrix Clock Temperature:
|
||||||
```
|
```
|
||||||
[Z2mClimate]
|
[Z2mClimate]
|
||||||
- implements [ClimateDevice]
|
- implements [ClimateEntity]
|
||||||
- uses [Z2mBridge]
|
- uses [Z2mBridge]
|
||||||
|
|
||||||
[MatrixClock]
|
[MatrixClock]
|
||||||
- implements [ClimateDevice]
|
- implements [ClimateEntity]
|
||||||
- uses no bridge, works on a per-device connection
|
- 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]
|
||||||
|
|
8
src/mash/entities/matrixclock.py
Normal file
8
src/mash/entities/matrixclock.py
Normal 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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue