Hej,
Przekopałem internet oraz to forum jednak żaden z tematów nie odpowiada do końca na moje zagadnienie.
Przymierzam się do postawienia HA w nowym domu jednak przez pewną przykrą sytuację byłem zmuszony szybko zainstalować alarm. Zleciłem to profesjonalnej firmie nie analizując za bardzo komponentów systemu i dopiero teraz zobaczyłem jak duży był to błąd w kontekście integracji z HA. Instalator założył mi centralkę Perfecta, a z racji że dom już jest wykończony czujniki (głównie kontaktrony) są połączone bezprzewodowo.
To co chciałby osiągnąć to odczytanie stanu 4 czujników, tak aby w przyszłości spiąć to z klimatyzacją (otwarte okno → wyłącz klimę).
Sterowanie alarmem chcę utrzymać niezależne od HA.
Z tego co udało mi się znaleźć Perfecta ma 4 wyjścia które można wyzwalać poprzez sygnały z wejść(czujek): dwa niskoprądowe i dwa wysoko (25mA 12V i 1A 12V).
O ile z kwestią programowania centralki sobię poradzę o tyle potrzebuję waszej pomocy co zastosować żeby odczytać te sygnały z centralki i przekazać je do HA.
Trochę na około - to ekspander wyjść.
Zaletą jest to, że możesz go umieścić w dowolnym miejscu np. na szynie DIN w rozdzielni.
Dalej w wyjściami zrobisz co Ci pasuje.
Trochę nie rozumiem po co mam dawać ekspander i to jeszcze na szynę, skoro sama centralka ma wystarczającą liczbę wyjść na moje potrzeby (tak naprawdę dwa wyjścia wystarczą, bo zależy mi na dwóch pomieszczeniach gdzie otwarcie któregokolwiek z okien powinno wyłączyć klimatyzację)…
If your Perfecta has local communication, as Ethernet or Wifi, then set up a SIA integration on HA and you can read everything. If you have 4G then you need to access HA from the internet side but the story is the same SIA integration.
Zainteresuj się ESPHome
Mam tak zintegrowaną centralę CA-10
W twoim przypadku wystarczy
ESP8266 i Binary Sensor
binary_sensor:
- platform: gpio
pin:
number: D5
mode: INPUT_PULLUP
name: "Kontraktron"
id: inputd5
filters:
- delayed_on: 500ms
- invert:
- platform: gpio
pin:
number: D6
mode: INPUT_PULLUP
name: "inputd6"
id: inputd6
filters:
- delayed_on: 500ms
- invert:
- platform: gpio
pin:
number: D7
mode: INPUT_PULLUP
name: "inputd7"
id: inputd7
filters:
- delayed_on: 500ms
- invert:
W w/w przykładzie wykrywane jest zwarcie GND-D5 Kontaktron
Na podstawie w/w można dodać stan centrali np: Alarm i czuwanie ,albo inne kontaktrony
Można dodać też przekaźniki arduino
Do załączania czuwania, wyłączenia i czuwania
np
switch:
- platform: gpio
pin: D1
name: "Switch 1_1"
id: switchno11
interlock: [switchno11]
inverted: true
on_turn_on:
- delay: 1000ms
- switch.turn_off: switchno11
- platform: gpio
pin: D2
name: "Switch 1_2"
id: switchno12
interlock: [switchno12]
inverted: true
on_turn_on:
- delay: 1000ms
- switch.turn_off: switchno12
Offtopic: @marek_k, you could read all the states of the sensors of a CA-10 with this:
Jestem w podobnej sytuacji like OP. Mam Perfectę 16 i chciałbym mieć możliwość odczytu stanu czujek podłączonych do Perfecty do użycia w HA.
Jak trzeba podłączyć ESP8266 do centrali? Pytałem instalatora który ten system założył ale on nie ma pojęcia. Jego propozycja to wymiana perfecty na Integrę co by kosztowało 3-4 tysiące zł. Myślę że integracja przez ESPHome to dużo lepszy pomysł. Jeśli nie jest to bardzo skomplikowane to może sobie poradzę choć moja domena to raczej software
To zacznij od próby z integracją po SIA (Security Industry Association).
P.S.
Swoją drogą, jest to opisane parę postów wyżej w tym temacie. Dziwi mnie, że tak nieskutecznie pozyskujesz informacje. Ale może to przez ten angielski?
Odpowiedź ogólna, nie wnikam w szczególy konstrukcyjne, dotyczy każdej centrali, gdzie kontaktrony są zwierane do masy a wejścia centrali podciągnięte pullupami do jakiegoś potencjału dodatniego (rzędu powiedzmy 5V czy 12V).
ALE jeśli wejścia są parametryzowane (jeśli instalator był przytomny, a centrala to umożliwia, to niestety są) to w ten sposób się nie da. (dałoby się to ogarnąć stosując przetworniki ADC, ale nie wiem czy warto się szarpać - patrz post wyżej).
Najogólniej podpinasz wejścia ESP przez diody impulsowe spolaryzowane anodą do MCU i katodą do wejścia centralki. A masę z masą.
Te diody są kluczowe - zapobiegają skopceniu się MCU jeśli logika centralki używa wyższych napięć niż LVTTL (a w zasadzie nie słyszałem by jakaś centralka stosowała tak niskie napięcia) oraz zapobiegają przypadkowemu ściągnięciu do masy wejścia centralki np. podczas restartu MCU.
Dziękuję za pomoc.Widziałem ten post ale on sugerował że jest potrzebna jest łącznosć Ethernet or WiFi. Spróbuję integracji po SIA.
Połączenie do sieci jest potrzebne, podobnie jak w przypadku zastosowania ESP. Czymś trzeba skomunikować się z serwerem HA.
I dlatego właśnie pytałem o możliwość podłączenia ESP8266 do centrali. Perfecta 16 używa GSM/GPRS do komunikacji i nie ma oficjalnej możliwości dodania TCP/IP.
GSM/GPRS (tu jest inne zagadnienie - do kiedy to będzie działać biorąc pod uwagę refarmingi pasm GSM) to jest właśnie sieć, tylko w tym wypadku musiałbyś zrealizować połączenie za pośrednictwem internetu (to jest też opisane wyżej).
Ustal czy masz wejścia skonfigurowane jako parametryczne czy nie
albo po rezystorku/ach na liniach czujek (powinny być przy czujkach)
albo w konfiguracji programowej.
komplet aktualnych instrukcji jest na stronie wsparcia Satela, (ale wymaga logowania swoim kontem, więc się nie da hotlinkować)
https://www.satel.pl/produkty/sswin/perfecta/plyty-glowne-perfecta/perfecta-16/
First of all, I have not tried SIA with Perfecta, I don’t have Perfecta. But the Perfecta supports it and HA has SIA integration to integrate alarm systems. The pieces are there from the puzzle, just need to put them together.
The Perfecta line has 11 different versions. Yes, the Perfecta 16 has cellular 2G only, but it supports the mobile app and does communicate TCP/IP or UDP. It has SATEL protocol for remote stations and SIA-IP protocol as well.
https://www.satel.pl/en/product-category/intruder-alarms/perfecta/
For SIA with the GSM versions of the Perfecta you need to call your SIA server (HA integration) from the Internet, it is not local, obviously, because the alarm system is not connected locally to the same network, but only to the internet.
Swapping to a Perfecta IP 32 would cost less. That has ethernet and then local communication to HA. It seems to cost only 750 PLN:
Of course, to any alarm control panel you can connect to the outputs an ESP, if the inputs are mirrored to the outputs, and you can also use the inputs of the alarm panel to arm and disarm with it.
Satel ma też w ofercie moduł komunikacji ETHM-A
https://www.satel.pl/produkty/komunikacja-i-powiadamianie/komunikacja-tcp-ip/ethm-a/
Co ciekawe, podobno współpracuje z dowolną centralą, obsługuje SIA oraz MQTT.
I tried to look at that, but I have not digged too much into the Perfecta ecosystem. If it really works with Perfecta, then there is a solution for everything locally. (Especially with MQTT!)
Edit: I have looked at the page that you linked. It is like a Konnected.io device. Or an ESP connected to the outputs of an existing alarm system. Obviously it is less DIY. But it is not like an expansion module, where the alarm system communicates with it only on just 2 wires and shares all information like it does with a keypad.
Thank you both for all the info. ETHM-A option looks interesting and I will certainly look into this more. Satel does have another module called ETHM-1 Plus, which I was going to add if I’ve decided to upgrade to integra.
ETHM-1 Plus is known to work with Home Assistant according to the info here Satel Integra - Home Assistant. It specifically mentions that ETHM-1 is not supported but ETHM-A is not mentioned at all but I will look into this more.
I certainly know a lot more about my options now. Thank you all!
The ETHM-1 uses the a proprietary protocol to communicate with the Satel Integra HA integration.
And it works as an expansion module with full communication to the alarm control panel.
Meanwhile the ETHM-A uses the same setup like your ESP question, so the alarm control panel has to be configured to mirror the input to outputs and those outputs are connected to the ETHM-A’s inputs which then can be transmitted to MQTT or SIA or whatever other protocol it supports.
There might be another option, but need to look into that. Some models of Satel used to have keypads with a serial connector or something similar, and that serial connector could output the zone status, alarm status etc. I cannot remember which one was that. Might be the Versa line. Satel changed a lot even between models on the same line, like the CA-10 could output serial status, but not the CA-6. And the difference is really the number of inputs (in theory).
Thank you for looking into this. I like SIA for integration but would prefer to run it over local network, so I don’t have to rely on Satel servers and open HA ports to the internet, and I appreciate your help with understanding all options to achieve local network integration .
I understand now that ETHM-A is just a universal pre-packaged solution (like Konnected.io) that just happens to be made by Satel and in effect would be the same as ESP. ETHM-1 Plus, which is a proprietary expansion module for some Satel systems is apparently not compatible with Perfecta 16 so is not an option for me.
Again, thank you for your help and all the info. It will help me make an informed decision.
As I noted before, maybe a swap to a Perfecta IP 32 is one of the best options. Likely a one for one swap replacement, and I can imagine the same config can be uploaded to that as well from the Perfecta 16, but I am not an installer and have not used the software provided by Satel program these. The Perfecta IP 32 would give you local access as it would connect to your local network, and does support SIA also. With SIA, I believe it is only inputs, and cannot be armed and disarmed from it, which might be your interest as well. But for that there is the Satel app.