Compare commits
1 Commits
dev-setup
...
feature/do
| Author | SHA1 | Date | |
|---|---|---|---|
| f4f23796d5 |
3
.env.example
Normal file
3
.env.example
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Home Assistant Zugriff
|
||||||
|
SILLYHOME_HA_URL=http://localhost:8123
|
||||||
|
SILLYHOME_HA_TOKEN=dein_long_lived_access_token
|
||||||
31
README.md
31
README.md
@@ -12,3 +12,34 @@ TheSillyHome zeigte die Idee: statt statischer Regeln das Zuhause aus Verhaltens
|
|||||||
- Automationen vorschlagen und direkt generieren
|
- Automationen vorschlagen und direkt generieren
|
||||||
- Lokal-first ohne Cloudpflicht
|
- Lokal-first ohne Cloudpflicht
|
||||||
- Erweiterbar, testbar, dokumentiert
|
- Erweiterbar, testbar, dokumentiert
|
||||||
|
|
||||||
|
## Quickstart (lokaler Betrieb)
|
||||||
|
|
||||||
|
1. **Voraussetzungen**
|
||||||
|
- Python 3.11+
|
||||||
|
- Home Assistant mit REST-API erreichbar
|
||||||
|
- `pip install -e .[dev]`
|
||||||
|
|
||||||
|
2. **Umgebungsvariablen** (`.env` im Projektroot)
|
||||||
|
```
|
||||||
|
SILLYHOME_HA_URL=http://localhost:8123
|
||||||
|
SILLYHOME_HA_TOKEN=dein_long_lived_access_token
|
||||||
|
```
|
||||||
|
Tipp: `.env.example` kopieren und anpassen. Tokens niemals committen!
|
||||||
|
|
||||||
|
3. **Server starten**
|
||||||
|
```
|
||||||
|
uvicorn app.main:app --reload
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Prüfen**
|
||||||
|
- OpenAPI-Docs: http://localhost:8000/docs
|
||||||
|
- Health: http://localhost:8000/health
|
||||||
|
- Entities: http://localhost:8000/v1/entities (benötigt gültige HA-Konfiguration)
|
||||||
|
|
||||||
|
5. **Tests**
|
||||||
|
```
|
||||||
|
pytest -q
|
||||||
|
ruff check .
|
||||||
|
mypy app tests
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user