> For the complete documentation index, see [llms.txt](https://docs.unwaste.energy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unwaste.energy/unwaste-dla-home-assistant/connecting-devices.md).

# Łączenie urządzeń

Przygotuj urządzenia i integracje Home Assistant do użycia z Unwaste EMS.

## Łączenie urządzeń

## Zanim skonfigurujesz Unwaste

Unwaste EMS odczytuje dane z i wysyła sygnały sterujące przez **encje Home Assistant**.

Zanim dodasz źródła produkcji, magazynowanie lub urządzenia w Unwaste **tryb projektowania**, te integracje muszą już działać w Home Assistant.

***

### Co przygotować w Home Assistant

#### Pomiar energii

Dla **Obwód główny**, potrzebujesz Home Assistant **energia** czujników, które raportują:

* energia pobrana z sieci
* energia oddana do sieci (jeśli masz PV lub eksport)

Użyj tych samych encji, które dodałbyś do Home Assistant **Energia** pulpitu lub dedykowanych integracji inteligentnego licznika.

#### Produkcja (PV)

Skonfiguruj integrację falownika tak, aby **produkcja energii** (oraz opcjonalnie Prognoza) były dostępne.

#### Magazynowanie (Bateria)

Skonfiguruj encje integracji baterii dla:

* energia zmagazynowana i odzyskana (liczniki skumulowane)
* poziom naładowania (procent lub kWh), jeśli dostępny
* encje sterujące (przełączniki lub listy wyboru), jeśli Unwaste Robot ma zarządzać baterią

#### Urządzenia, którymi można sterować

Dla urządzeń, którymi chcesz, aby Unwaste Robot zarządzał, zidentyfikuj encje Home Assistant, które mogą:

* przełączać tryby pracy lub
* ustawiać poziomy mocy / temperatury docelowe

Przykłady: encje klimatu Pompa ciepła, przełączniki Ładowarka EV, wejścia SG Ready.

Przypiszesz te encje w [Sterowanie urządzeniem](/konfiguracja-unwaste-robot/device/device-control.md).

***

### Nazewnictwo encji

Nazwy encji zależą od twoich integracji. Unwaste pokazuje listę zgodnych encji podczas konfiguracji każdego pola.

Jeśli oczekiwany czujnik się nie pojawi:

* potwierdź, że integracja działa w Home Assistant,
* sprawdź, czy encja zgłasza poprawną klasę urządzenia (energia, moc itd.),
* poczekaj, aż encja otrzyma co najmniej jedną aktualizację.

***

### Następne kroki

Gdy encje Home Assistant są gotowe:

1. Ukończ [Wstępna konfiguracja](/unwaste-dla-home-assistant/initial-configuration.md) jeśli jeszcze tego nie zrobiłeś.
2. Postępuj zgodnie z [Projektowanie instalacji elektrycznej](/konfiguracja-unwaste-robot/designing-your-electrical-installation.md) aby utworzyć graf instalacji.
3. Przypisz encje w każdym formularzu (połączenie, Obwód elektryczny, produkcja, magazynowanie, urządzenie).

Opcjonalne odczyty i Alerty można dodać później za pomocą [Opcjonalne monitorowanie](/konfiguracja-unwaste-robot/optional-monitoring.md) i [Alerty monitorowania](/konfiguracja-unwaste-robot/optional-monitoring/monitoring-alerts.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.unwaste.energy/unwaste-dla-home-assistant/connecting-devices.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
