Readme ergänzt
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.pio/
|
||||
.vscode/
|
||||
.vscode/
|
||||
.codex
|
||||
27
README.md
27
README.md
@@ -3,3 +3,30 @@ Die LED-Uhr wird von einem ATmega8-Mikrocontroller gesteuert, der die Anzeigedat
|
||||

|
||||
|
||||
Die Uhr ist in unser Home Assistant eingebunden und gibt per AutoDiscovery ihre Config bekannt.
|
||||
|
||||
## Home Assistant MQTT AutoDiscovery
|
||||
|
||||
Die Uhr publisht die Discovery-Config retained auf folgendes Topic:
|
||||
|
||||
```text
|
||||
homeassistant/switch/fooclock/display/config
|
||||
```
|
||||
|
||||
Payload (aktueller Stand aus `src/fooclock.ino` mit `device_id=fooclock_01`):
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "7FooClock",
|
||||
"unique_id": "fooclock_01_display",
|
||||
"cmd_t": "fooclock/display/set",
|
||||
"stat_t": "fooclock/display/state",
|
||||
"pl_on": "ON",
|
||||
"pl_off": "OFF",
|
||||
"icon": "mdi:clock-digital",
|
||||
"device": {
|
||||
"identifiers": ["fooclock_01"],
|
||||
"name": "7FooClock",
|
||||
"manufacturer": "DIY"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user