-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem setting up alarm #2
Comments
Hi, Happy you like this tool. I'm not an expert in configuring the alarm panels... I got assistance from the installation company for that part. My understanding (and this might be the confusing bit is that 2 zones are involved).
So check if you follow the configuration exactly in this order. Hope this helps. |
Bonjour, Je suis extrêmement intéressé par votre logiciel. Etant installateur de système d'alarme, je n'ai aucune difficulté sur celle-ci, mais aussi la bête que cela puisse paraitre, je n'ai aucune idée de comment installer utcar sur un Nas Synology DS216j? Pourriez vous me donner de l'aide à ce sujet ? |
Please write in English, my French is a little rusty ;) As far as i know, the Synology DS216j does not have the Docker package available. I think you will need docker to start Utcar on a Synology! Maybe there is another way, but docker seems the best way to go for this. It is maybe possible to get a golang package for synology but that was way to fiddly for me. Ive made my own adaptation of Utcar that uses MQTT to transport messages to Home Assistant. See https://github.com/sanderpleijers/utcar My docker startup code (docker_compose.yaml) looks like this;
Copy the utcar go files to a folder called 'utcar'. Then, the container is build with the DockerfileUTCAR file;
You will need to understand the basics of working with docker containers for this. Hope this helps you! |
Hi, I've tried both the @tdeckers and @sanderpleijers method to get a little more out of UTCAR than the heart beat, but it seems I keep missing something. @sanderpleijers could you maybe walk me through the setup (preferably with some additional screenshot) so I can copy the settings from the point where you only got a heartbeat to when you got every message. Thanks |
Hello Sander, i tryed to create a docker container with the docker-compose method. I get the next error: Building utcar ERROR: for utcar Cannot start service utcar: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/utcar": stat /utcar: no such file or directory: unknown ERROR: for utcar Cannot start service utcar: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/utcar": stat /utcar: no such file or directory: unknown Can you help me with this? |
It seems something is wrong with a path, it cannot find /utcar. Is the utcar folder available in the same place you start the docker_compose.yaml (using docker-compose up -d)? I use this short bit of an sh script to start my build: |
Hi Sander, thanks for your reaction, i did solve the problem myself. The container is running en connected to my alarm system and mqtt server, the only problem is that there is nothing populating at the mqtt side. container is succesfull connected to the broker en the message is parsed and send to the broker, only the broker doesnt create an topic. can you help me with this? |
Problem fixed, when is set the refained flag to true everything gets populated at te mqtt topic🥳 |
Hello Sander, your utcar version works perfect! I also have a question. I want to addopt other sia codes in the mqtt.go when i add them as “case” the work fine, but i want to populate other sia event to other topics. Can you help me with that? thanx in advance |
Hello Sander, Could you help me because there is something I don't understand. Utcar is well mounted in the Docker, I receive the alarm and heartbeat messages, but I do not understand how to retrieve these messages to perform an action in home assistant. how to create the link between HA and UTCAR? Thank you in advance for your answer :) |
Hi, @ROUGHSOUL; You need to make a few sensors in YAML for that. Like;
This is my own made up code, so no warranties... ;) I also have some automations to alert me when the alarm is activated or triggered. @bjornmorsman; can you show me what you made or wat you want? Maybe i can help... |
Hi, @sanderpleijers what is want is the i can edit the mqtt parser, you only use general alarms and i want to use more of the sia codes my ats1500aip spits out. i made a sensor for armed_away armed_home and not_armed. I ad the sia code to the mqtt.go and it works. The only problem is that the mqtt.go sends it to the wrong mqtt topic because it doenst get filtered at “gebied” its get filtered by zone. So when i arm “gebied 1” the mqtt topic becomes “zone 1” maby we can create an seperet filter for al the other sia codes that come from the alarm so that we can define different filters to different “case” codes as BA and BR etc. i hope it is a little bit clear my english is not so very well🤣 thanx in advance |
Hi @sanderpleijers this is what i made so far, i altered the parser to be compatible with SIA area modifier, now i can populate “sia.area” to the right area. my next question is that i want to have a different itemurl for the body’s CG,CL,CF,OP so i can create a different string to publish through mqtt. Hope you can help me with that, i cant find something usefull on google. func PublishMqtt(client MQTT.Client, sia SIA) error { ��������itemUrl := strings.Join([]string{"homeassistant/ats/gebied_", sia.area,> |
|
Hi @bjornmorsman; so i think you want both the zone and the area and maybe raw SIA code? Something like this?:
Or maybe you can alter the switch:
Really roughly drawn here. I did not do anything with Golang or this code for a while so I am a little rusty ;) So; Did not test any so please check if this is what you want and try it out. Please share your code on Github so we can check/ maybe pull it in the main code if usable. |
When compiling i get an error “topic not defined”
Hi @sanderpleijers, Do i need to define “topic” somewhere else? |
Maybe: instead of only the = sign? Or define it earlier with:
Just a quick guess... |
This is how it looks like, with = or := i get “topic declared and not used” when building 🤪 but i dont get where to declare something and use it somwhere else
|
After the switch (where you set the body and topics) you should use:
instead of
so like:
|
@sanderpleijers You mentioned that you are using the ATS8500 software together with HA for programming the HA zone. Would you mind sharing the program by PM? Then I can see if it's working as expected, |
@Jeffreyvanesch; i can share a bunch of files to download. Any way to send it to you privately? |
I have a question. Have all of the above (utcar) nowadays, for Home Assistant users, been replaced by the SIA integration https://www.home-assistant.io/integrations/sia/? My goal is to get the (X)SIA messages into HA. I'm just wondering, as I have an Aritech ATS4000 with ATS-IP-KIT ATS1809 and I have been trying to do many things, but after a full day of trying I cannot get it working. I know how to program the Aritech (via Titan) and I know HA... I have applied an heartbeat at the ATS-IP-KIT, but nothing comes thru. Probably, if you confirm, I have to setup a docker on my NAS as well... But please direct me a bit into the appropriate direction. Thanks |
@jnathalia; i still use my own UTCAR version in a docker container. The Home Asssitant SIA integration does not work (yet?). A github user wichers however made an interesting pull request: eavanvalkenburg/pysiaalarm#44 but no clue on how to install or setup that inside of Home Asssitant instead of the current SIA integration... |
Hi @sanderpleijers , I have installed a utcar docker on my Synology NAS as well. But also this doesn't work unfortunately. Do you have any clue why the messages do not come through? I’m using Aritech ATS and I don’t receive a Heartbeat. I’m listening to port 12300 and I have set my PAC to communicate to 192.168.1.100 (utcar IP address which is taken over from my host/NAS). Am I doing fundamentally wrong? It has something to do with my alarm system I guess… |
Hi @jnathalia; did you try to actually change something on the alarm (set it active for example)? I believe it only sends out data as soon something changes.... Is there a way to test communications (Restart communications maybe in your screenshot)? Im not sure the whole Heartbeat thing works the same way as in my ATS1000A-IP-MM board. |
I have tried all unfortunately, I know more or less how to program the alarm panel (with PAC, Area's, Zones etc). I also put the IP address as the first entry at Reporting Central Station as the 2nd is for backup and 3rd is for emergency. But no heartbeat... I should see it in the log (3rd tab) of the utcar docker? |
Yes, it should be visible. It looks like:
No clue on how to set it up properly for your model.... |
Hi @sanderpleijers, So, starting a new life with the Advanced... I followed your instructions about how to configure the ATS. All fine, as I receive the XSIA messages in UTCAR for all my PIR detectors. I'm using Synology Docker, so downloaded tdeckers/utcar which is available via the registry (container name: deckers-utcar-1). Is this the correct one or do you have published your own docker available for Synology? I couldn't find in Synology register (only hexamus/utcar which refers to a full preparation for ATSxxxxIP). So, I have reached the status to POST the XSIA to my Home Assistant, but this step isn't clear to me... I have already added in configuration.yaml
Some additional instruction is very much appreciated... thanks in advance! By the way, what a difficult thing to hook Aritech ATS to HA... I'm using Satel Integra at a few other sites and this integration is 2 seconds work without any filtering and creating artificial zones in the original alarm system. Just 1-to-1 status communication directly available in HA... I'm not complaining, because I have to work with ATS (replacing ATS Classic to Advanced is pretty simple, replacing to Satel Integra much more complicated...), but now I'm experiencing the real difference how integration can be realised... |
Hi @jnathalia. The files for docker that i used are in my own git repository. There is a difference in those scripts, that enables to send data to a mqtt server (an addin for Home Assistant). I used to build my own docker container from scratch witch docker compose. You can see some details of that earlier in this issue thread. I however do not maintain these files anymore, and i have moved on now to this because it is easier: eavanvalkenburg/pysiaalarm#49 git; https://github.com/voskuh/pysiaalarm (custom component to install; https://github.com/voskuh/custom-sia) |
Hi @sanderpleijers, See also the thread on https://github.com/eavanvalkenburg/pysiaalarm/issues/49 |
@sanderpleijers Sorry for my really late reply 😆 seems Git doesn't have a PM option. You can send it by mail to jeffreyvanesch@gmail.com
|
Hi @jnathalia; you should check the integration logging to see if there is any traffic logged. For me; the zone visibility in home assistant has never worked. I don't use that at all. I use it in another way (setup as custom sensors in yaml):
This catches the traffic to Home Assistant and of there is a specific code recieved I know that the zone is triggered. For further questions i think it is best to continue at [(https://github.com/eavanvalkenburg/pysiaalarm/issues/49)] @Jeffreyvanesch; ill try to compile a zip file containing the setup next week! |
Ah ok... So, you have installed via HACS the repository https://github.com/voskuh/custom-sia Then, do or don't (?) install the integration "SIA Alarm Systems"? Or just install via HACS the repository https://github.com/voskuh/custom-sia and skip the rest and just continue to define in your configuration.yaml a similar code as you have mentioned above? As you can see I need a bit more guidance. I will check the integration logging. Many thanks in advance. I hope I can get this working after such a long time... |
ok, got this working... Please confirm. And for the alarmstatus I also need to make a separate filter, output and zone in the ATS8500 software to be reported? I think this could be easier... |
@jnathalia there should be an easy way to configure your alarm status, do you have multiple clientnumbers for diferent area’s programmed in the ats8500 software? |
yes, I have multiple clientnumbers for different area's programmed in ATS8500 |
There is your problem, if you have more then 1 area with the same clientnumber you have to turn on “sia area modifier” before it can report arm and disarm messages. But the sia parser is not adopted for sia area modifier so it wont work. That’s the reason why i stil use the mqtt version of utcar, i adjusted the parser so it understands the sia area modifier. so the only easy way to make it work would be that voskuh adopts his sia parser to support area modifier. So we can use the alarmstatus. you can make a sensor for every area as you suggested, the downside of that is you get only “area 1” on/off. No armed/disarmed/disarmed_home |
Hi @bjornmorsman, yes I do have more than 1 area but NOT with the same client number. I have defined in ATS8500 the following: I have tried to make a "New entry" at the integration "SIA Alarm Systems" by specifying the port and account code: But it says: "Device is already configured". Weird, I have never done that... I think it is because I have to use the same port. My configuration.yaml has been defined as:
` I removed the "message: " definition as when another user set the alarm for the area it has another description/message. I'm not sure this is acceptable. Then checking the log and I can find the following: |
@bjornmorsman, I think the integration can listen to one account only. In my case 200000, so the combination of port and account is sia_even_12300_200000. It's not listening to any other account, so in my case account 100100. That's really a pity and indeed I think this is because of the integration of @voskuh... it should just listen to any account. So, when the Central Station is sending SIA coding it should only by interpreted if there is any definition in HA and the integration is all we need... Do you agree? For now I could make artificial (virtual) zones for each area to filter the status of the alarm panel. It's going to work...(I realised already), but I also want to read all my smoke detectors (15x) and magnetic contacts (approx 35) without making artificial zones (via filters and outputs)... I don't like as I have to duplicate basically my entire alarm system as it doesn't bring me the required messages... If anyone has a better suggestion? |
@jnathalia there is a checkbox “additional account” if you check that you can add multiple clientnumber in the integration, the problem with that is that is doesnt work properly. I tryed that last weekend but the area status is stil not working. The sia codes get acknowleged bij the integration but is not reflected tot the sensors. about the accounts, i dont know if listening to every account number is the right approatch. The is a solution and that would be adopting the sia parser to also support “sia area modifier” that is what we also use if we connect a system to a PAC with multiple the same clientnumbers. By design all pruducts of UTC use this approach, i think it is accourding the sia rules. Yes, you have to duplicate every zone to see its status in ha. That is very simple, an alarm system is made for alarm messages so if you open a door or a windows when the system is disarmd there is no alarm so nothing gets reported to the pac. That is why you have to kopie every zone so it can report open/close to the sia integration. There is an other way to read out an ats advanced, it uses the same way as the ats8500 does. Thats is direct connection to the alarm panel and then you wil recieve every message the panel sends. That is the ultimate way off connecting an advanced to home assistant. I love his integration and i really want to have it but €1000 euro for this integration is to much for me, thats the reason why a still use the utcar container for me its working good. I dont get all the messages i want but it is working for most parts i need. I had to create a bunch of virtual zones with outputs but thats all. so maybe if someone can reverse engineer a direct connection with an ats advanced that would be the best approuche. |
Thanks for the answer @bjornmorsman! The "additional account" at the integration doesn't work indeed as I explained above. If you look at the HA log you can see the SIA messages with another account code comes through but it fails when it comes to interpretation and therefore it's not reflected to your sensors. So, current integration of @voskuh works primarily on the port number and let anything come through, regardless the account. Why would listening to every account code not be the right approach? I believe, forget the "Sia area modifier". That's for other purposes. Keep the programming at your panel clean and transparant. Currently, all the SIA codes are coming through even if you use multiple (so different and unmodified) account codes. It's only a matter of parsing/interpretation. This keeps the setup clean without fiddling around with all kinds of translation, filters, outputs and zones at the alarm panel. For instance, a smoke detector gives an alarm even when the area is not armed. As the ATS8500 doesn't allow me to assign multiple areas to 1 zone (i.c. the smoke detector), it is only reported in my main area which it is assigned to (area "1 - Woonhuis"). Not my artificial area which I called area "4 - Home Assistant". In addition, my 2 Central Stations (PAC) are both "primary CS", so anything that needs to be reported with SIA codes is currently being reported. This you can also see at utcar or the HA log. The integration of @voskuh gets all the information but it's not being parsed and therefore I need to create a filter, output and (virtual) zone to have it reported in an additional area 4. This is the wrong approach in my opinion... About connecting the ATS Advanced ATSx500. Yes, I know there is a solution. There are actually 2, one of Verhees and of Domox. They are both using the SDK. This is exactly what we should do as well for HA. If you are an installer you can sign a NDA and you get access to this SDK and you can program and read directly from the panel. My background is programming in the past, but I'm not into the modern stuff anymore and I'm not sure if you can integrate the SDK into HA. Most likely not, as I presume it's .NET so the only way is to make a standalone program (maybe running in a docker?). For the latest ATSx700 (Axon) they have replaced the SDK by an API. In general the SDK or API is the best way to go forward, although keep in mind that the ATSx500 will be phased out so better to "invest" into the new Axon system when starting programming. By the way, I have tried to run the utcar with MQTT container but I failed. I'm using Synology and the standard utcar was available from the registry and runs fine. But I didn't know how to create a new docker with the modification for MQTT. I know MQTT works fine and is very stable. The downside in my situation is that my Synology goes down in the night, so SIA codes and MQTT would not work. Also, I don't like to have running additional dockers for such a simple thing... This ATS alarm integration has cost me so much effort, that I'm longing for my prior alarm system Satel Integra which I have installed on multiple sites connected to HA. Just 1 minute of work and you can read any zone you like... just out of the box in HA. I think I will ask @voskuh in another thread on GitHub to make some amendement. eavanvalkenburg/pysiaalarm#49 |
what would be you approach then? you always have to fiddle with filter output and virtual zone because "normal" open/close message's doesnt go to a PAC. the only way to report it to a PAC is to create an virtual zone that wil report as "UA" so if you when to reflect your windows/doors/motionsensors to HA you have to create a virtual zone, there is no other way with an ats advanced. yes than you have to buy the software/hardware of Patrick or domox. Satel Integra uses the same way of communication with home assistant, as Patrick en domox does you dont configure a PAC to send sia messages to home assistant i dont know why the multiple account are not working when you try it, i just added 4 account to the sia integration. |
@bjornmorsman, I agree for PIR's and magnetic contacts... the SIA approach forces you to create filters, output and (virtual) zones to forward them into HA. Such a pity to do all kind of things in an alarm panel where it's not meant to be for... (or is this a dangerous statement?) The screenshot is interesting... somehow I cannot do this 🤔. Should I remove the entire integration and define it once again? Does it work for you, are your sensors updated for the additional account codes? Do you see in Developer Tools, Events, the sia_event_12300_12345x four times? |
@jnathalia i think you need to re-add the integration and check the checkbox for additional account number. i get armed/disarmed for the 4 area's but it is not working correctly because i get always an FTC after some time. i am curious if you can get it to work, maybe my panel settings are not correct. |
I did re-add and yes now it's working (although the next steps to add additional accounts, the form fields I had to guess, no description...) I created two SIA codes at my trigger: CG and OP and this seems to be fine, although it's a binary sensor so it can only represent 2 states... Only the entities "12300 - 200000 - zone 1 - alarm" etc behave strange. After a while it says "Unavailable", but I think it was mentioned before in one of the forums... When this would work, I believe the smoke detectors I don't have to make any by-pass settings via ATS8500 software... When I receive a SIA code for fire alarm and I have defined the binary sensors, I think it may work... For now, I have to prepare my house for football ;-) |
@jnathalia i did some tests last night and this is what i set up.
then should every thing work as expected. you get every area status in ha including al the zones you have forwarded with outputs and virtual zones |
it's funny @bjornmorsman, you are on a different route then I'am... you are on the path having the same account codes for the areas you are using and then you enable the "SIA area modifier". This is working for you... I have defined for each area at my Central Station a different account code. I do not modify at all via "SIA area modifier". I re-added the SIA integration, added all the account codes and created binary sensors for the status of the areas. I did this for the areas 100000, 100100, 100200. I have a 4th area (HA) which is 200000 (when pasting code I don't know why it's losing the carriage return): `
` The only thing I need to make are virtual zones for the magnetic contacts like I did for the PIR's. |
By the way, you are reporting issues with the FTC... |
yes i think we are at different routes indeed, i dont get why you would use multiple clientnumbers. i am an alarm installer and if i program this at every customer they pay a fortune for a PAC. because for every extra clientnumber you pay 5 euro extra not including the overal fee. but in your case you if you are using 4 area,s you have 4 times the amount of devices in the sia integration
i like to have everything as clean as possible in home assistant so no unussed devices and sensor, but if it is working for you it is oke right? i only want to help you to setup the integration. |
yes i have te same error, if you check you ats8500 software "monitor" and then pac. i think you shall see the ftc error. that message is driving me crazy i think i am trying to get this working without the FTC error for 6 months now. i tryed every setting in my panel but nothings change the FTC error. i already reached out to voskuh because i have some error in my home assistant log, maybe he can fix it. for me the integration is not working because all the messages from my panel are delayed because of the FTC |
@jnathalia the way you do it you are missing half of the status updates of an area. you have no partial arm/disarm no area in fire and al sorts of status. the sensor zone 1 alarm get unavailable because of te FTC error, my sensors are updating very slowly because almost every message to HA needs almost 14 re-try's |
I understand your argument. I created a separate Central Station (PAC), specifically for HA. As I want to keep things distinguished as it has been originally setup in my ATS3500 and cost are not an issue for this PAC (as they shouldn't be in your case as it has only integration purposes), I prefer it as clean as possible. No translations, just the zone from the area it belongs to. Not that I'm using this distinction in HA... but this is just the original setup at my ATS (and this is quite complex as it has 5 DI's and many, many zones...) Yes, I do get the list of
But that's not really an issue and it distinguishes again my areas representing my extended house. So, you choose for a clean setup in HA, I choose for a 1-to-1 straight forward setup preventing myself to do any modification. I prefer not to modify my ATS as it has a certain purpose why it has been setup like this. About the FTC, I will look into the monitor later. Thanks for the tip. I'm quite sure this happened after I successfully connected SIA with HA. With utcar from a docker I didn't have this issues... |
This is correct. The zone 1 alarm is working for a moment, giving the right status. But after a while, I think 2 minutes or so, the zone 1 alarm gives the status "Unavailable". So, this approach is not working. Having defined the binary sensor in my configuration.yaml is fine. I have to do this anyway for all my PIR's, smoke detectors and later also magnetic sensors (if I decide to do so). About "missing half of the status updates of an area. you have no partial arm/disarm no area in fire and al sorts of status". How would you get this? A binary sensor has only 2 values... how would you get full armed, partial armed en disarmed? My solution: I created a (virtual) zone for an alarm by linking it to the flashing light. So, if there is a flashing light, there is a (serious) alarm. A fire alarm will be given by the smoke detector which can be easily derived from the zone itself. So, I will define in my configuration.yaml every zone representing a smoke detector. |
you asking for advice/help at this forum so i am trying to help you the best i can. cleary you dont understand how an ats advanced work nor sia protocol works nor how to use the appropriate binary_sensor or sensor in home assistant. so maybe someone else can help you fix you problems. |
@bjornmorsman, "Sometimes you have to play the role of a fool to fool the fool who thinks they're fooling you." I thought we were having some kind of a tête-à-tête. I don't know what I did wrong to you, but qualifying someone at Github is not allowed. I'm not going to defend myself, but the fact is that I have installed a wide variety of alarm systems and achieved perfect integration for many properties that are being rented out. I don't have any real problems with the integration e.g. FTC, I think you still have a problem about all "message to HA needs almost 14 re-try's" and your FTC-thing. As you said yourself: "maybe my panel settings are not correct". I believe with your expertise, this should be an easy thing for you, isn't it? And the good thing is, if you can't solve your issues yourself maybe someone will be so kind to help you. |
This is probably not the solution you desire, but you might consider using a universal Ethernet communicator, something like E16T or something similar that connects to the PSTN port of ATS7700 if you are not using it. I haven't connected any control panels to Home Assistant, but I do use this with old alarm panels, and once with Interlogix panels when communication issues arise. Advisor Master had the option for a serial printer output, but this feature is no longer available in Advisor Advanced. From what I could see, we are directed to use the Aritech ATS8600 Advisor Integrated Security Management Software. However, that seems to be overkill. |
Hello,
Thanks for this great piece of software, it seems to be running fine on my Synology NAS!
Only thing I cant figure out is how to properly setup the Alarm. I have a ATS1000A-IP-SM, and the ATS8500 software so the setup should be similar. I do get the alarm 'heartbeats', but no OH+XSIA messages in the logs. I think something is still wrong in my setup.
These are screenshots from my setup:
Logs on the NAS. Only heartbeats?
Can you please give me a hint on how to correctly setup the alarm? I am searching for hours but cannot get it to work it seems. I would like to use a few functions:
In the end I would like to use the docker container together with Home Assisant. For that I will have to make some modifications to your code (to submit messages via MQTT for example). But first, it needs to work as-is ;)
The text was updated successfully, but these errors were encountered: