Natywne wsparcie dla MQTT

Awatar użytkownika
pzygmunt
Posty: 18278
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

W dockerowym 36 zmieniła się biblioteka ssl. Możesz spróbować przekompilować supla-server z podstawowym openssl-em.
andrzejano
Posty: 339
Rejestracja: śr sie 30, 2017 8:47 am

@pzygmunt.Proszę o pomoc.Mam problem z integracją svr7.supla.org z HA

Logger: aiohttp.server
Source: components/hassio/__init__.py:609
First occurred: 16:46:07 (2 occurrences)
Last logged: 17:19:26

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 331, in post
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 609, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Integration error: password - Integration 'password' not found.
Integration error: port - Integration 'port' not found.
Invalid config for [discovery]: expected a dictionary for dictionary value @ data['discovery']. Got True. (See ?, line ?).
Integration error: broker - Integration 'broker' not found.
Integration error: certificate - Integration 'certificate' not found.
Integration error: username - Integration 'username' not found.
Awatar użytkownika
pzygmunt
Posty: 18278
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Masz błędny config. Włącz sobie weryfikację konfiguracji z poziomu GUI
andrzejano
Posty: 339
Rejestracja: śr sie 30, 2017 8:47 am

mam tak.

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
- platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

mqtt:
broker: mqtt7.supla.org
port: 8883
certificate: auto
username: xxxxx
password: xxxxx
discovery: true

jakies ustawienia, przekierowanie w routerze potrzebne?
andrzejano
Posty: 339
Rejestracja: śr sie 30, 2017 8:47 am

pzygmunt pisze: pt lut 11, 2022 9:21 pm Masz błędny config. Włącz sobie weryfikację konfiguracji z poziomu GUI
mimo to

Sprawdzanie konfiguracji
Kliknij Sprawdź konfigurację, by upewnić się, że jest ona prawidłowa.
Konfiguracja nieprawidłowa

Integration error: password - Integration 'password' not found.
Integration error: port - Integration 'port' not found.
Invalid config for [discovery]: expected a dictionary for dictionary value @ data['discovery']. Got True. (See ?, line ?).
Integration error: broker - Integration 'broker' not found.
Integration error: certificate - Integration 'certificate' not found.
Integration error: username - Integration 'username' not found.
Awatar użytkownika
pzygmunt
Posty: 18278
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Stawiam, że skopiowałeś z instrukcji jak leci bez wcięć (spacji na początku) w odpowiednich miejscach. Mają one znaczenie.
andrzejano
Posty: 339
Rejestracja: śr sie 30, 2017 8:47 am

Dzięki, istotna uwaga, ruszyło.
myrcin
Posty: 55
Rejestracja: pt cze 07, 2019 9:08 am

Cześć,

Z pomocą tego wątku udało mi się zintegrować własną instancję Supla z Home Assitant. Na Supla mam moduł NICE i z poziomu Supla gdy klikam Open lub Close nic się nie dzieje ale gdy klikam Open/Close NICE 'tyka'. To jest dla mnie ok.

Obrazek

Jednak z poziomu HA mam aktywne tylko przyciski Open oraz Close natomiast ten trzeci jest nieaktywny. Sądzę, że Open i Close nie działają bo nawet na Supla nie działają. Natomiast ten trzeci jest wyszarzony więc pewnie nic do Supla nie przekazuje. Jak mogę to naprawić?

Obrazek
Awatar użytkownika
lukfud
Posty: 2091
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

myrcin pisze: czw lut 17, 2022 1:01 pm Cześć,

Z pomocą tego wątku udało mi się zintegrować własną instancję Supla z Home Assitant. Na Supla mam moduł NICE i z poziomu Supla gdy klikam Open lub Close nic się nie dzieje ale gdy klikam Open/Close NICE 'tyka'. To jest dla mnie ok.

Jednak z poziomu HA mam aktywne tylko przyciski Open oraz Close natomiast ten trzeci jest nieaktywny. Sądzę, że Open i Close nie działają bo nawet na Supla nie działają. Natomiast ten trzeci jest wyszarzony więc pewnie nic do Supla nie przekazuje. Jak mogę to naprawić?
Musisz dodać czujnik otwarcia.
https://www.facebook.com/groups/supladiy/
myrcin
Posty: 55
Rejestracja: pt cze 07, 2019 9:08 am

lukfud pisze: czw lut 17, 2022 1:36 pm
Musisz dodać czujnik otwarcia.
Dzięki, zadziałało. Musiałem podłączyć do bramy bo na biurku czujnik otwarcia mi nie działał.
ODPOWIEDZ

Wróć do „MQTT”