-
Notifications
You must be signed in to change notification settings - Fork 31
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
Aritech - ATS1000A - test connection #49
Comments
I got the decoding working but it seem te be a different SIA protocol:
|
ik neem aan dat je in jou ats een pac hebt geprogrammeerd met het ip adres en poort van system wat pysiaalarm draait? |
Dat klopt
|
I would love to see the Aritech ATSx000 and ATSx500 series work with this integration. I have total access to both systems of you guys need anything to test. Im a Installer. If i can be of any assistance... Let me know. |
NL: Zou mooi zijn als dit gaat werken! Back to English: @RPJacobs; did you get anywhere with this? I have the same ATS1000A-IP-MM board. If you look at the UTCAR parser.go you can see some example regex patterns. If you need to test something, please let me know. Can you share the php files you have? A github user wichers also made an interesting pull request: #44 with support for our panels/alarms. @eavanvalkenburg is there anything we can do to get this installed for testing? |
Due to time constraints and too many projects I was putting this on hold, would be great if someone would pick this up. fyi. I did get my implementation working with my ATS after hacking it into HA. |
Hi @wichers; any instructions/hints on how to set it up in HA? I do have the custom_components\sia, but how to use your version of the pysiaalarm? Is that done via the manifest.json? I can also test the functionality if i get it running... |
Yes, some tips for HA are welcome. |
Based on the work of @wichers I adapted pysiaalarm to enable communication with my ATS1000A. To test the changes I cloned the home assistant SIA integration to a new repo and custom component. The custom SIA component uses the adapted pysialarm repo and adds an option to select OH protocol in the config flow. Furthermore there are some minor tweaks in code consequences in the alarm panel. It's necessary to use a 6 digit account id or add preceding 0's if you have a shorter account id in the settings of your alarm system. |
Hi voskuh, thanx for the great work! Can you tell us how we can install and use your custom component? |
Hi Bjorn, You need to copy the custom-sia repository to your home assistant config folder (the same folder where the configuration.yaml file is located). Then, when you install the SIA integration in the integration section (Settings > Devices & Services) this custom component will override the build in integration. |
Hi Voskuh, i am testing right now, when i install the custom sia as you said i get the following error. do you know what the problem is? Traceback (most recent call last): |
Nice work Voskuh, I also tried to install, but with no luck. Running HA on a VM on my NAS. |
There is a failure to load the adapted version of pysiaalarm. I made some changes in the manifest.json file. |
Hi Voskuh, Thnx for fixing the error, how did you program you pac in the ats8500 software? if i program it the way i am used to i get all sorts of errors. FTC, connection to pac failed. i think 1 at 10 messages gets to the custom component, al the others will fail. also a manual test call to the component will fail. is that correct? Thanx in advance |
I don't have the ats8500 software. So can't give you a fancy screenshot of my settings. I hope to get the software in the future because I want to control the alarm system with HA as well, but it needs reverse engineering. |
I can set you up with the latest software version, and firmware versions.
Technical documents, some knowhow and 18 years of experience with this
brand.
On topic, I think i got the HA part working, but its not receiving
information at the moment. Could be on the ATS side of programming or
something else, but i havent had time to check.
I use the ATS1500A-IP series (there is also a totally new model the ATS1700
on the market but i havent seen that yet.
Op wo 13 mrt 2024 19:06 schreef voskuh ***@***.***>:
… I don't have the ats8500 software. So can't give you a fancy screenshot of
my settings. I hope to get the software in the future because I want to
control the alarm system with HA as well, but it needs reverse engineering.
Ip address of home assistant
port: an unused port (same port in PAC and integration settings),
client number: random 6 digit number (must be same in PAC and integration
settings).
Protocol: oh-xsia
mode: Primary PAC
I don't have any errors on my GI and the connection to the custom
component is stable since this morning (after some changes I made to the
pysiaalarm repo). Before I had connection issues as well. Would you mind
enable debug logging of the integration in home assistant and share the log.
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVNVUNZIRAPV36AIFJARL6LYYCIR3AVCNFSM6AAAAAAX4ZF63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJVGIYTQNRVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@voskuh ; First of all thank you so much for your effort and time! Im waiting for this for so long now! :-D I use an ATS1000AIP. I have the custom_component setup like (screenshot has a 0 to much on the port btw) But nothing valid seems to come trough. Did i select the correct values in ATS8500? This is the home assistant log;
|
Great to see that at least some messages came through. Although the custom component can't read them properly. Seeing the incoming lines is very helpful. There are two types of incoming lines. A heartbeat (frequency based on heartbeat time) and other states. So if your system is sending messages in an other format, it's likely that they will not be recognized and it will fail. So we will need to add new Regex patterns for these line formats to fix it. @ThaSteef If it's possible to get the software I would be delighted. Can you provide me some HA debug logs as well? |
Nice to see someone picking this up. It could be helpful to have a look at OH Network Receiver ver. 3.2.4.4 User Manual, there are some SIA specific details about SIA message formatting. I think it would be even more helpful to get that software, so you don't need to do the reverse engineering of the messages from scratch. |
btw. It doesn't take much to get most of the software, I registered myself at https://secure.carriercms.com/ a long time ago. There you can find the ATS8500 software and firmware for your ATS. The OH Net Rec - Software page is restricted though. There should be a 4 user (limited) demo version of the OH NetRec software, somewhere.. |
hi all, love the interaction here, unfortunately I have sold the house with my alarm system, so no longer have a SIA enabled device to test against, if someone wants to be co-owner of this repo so that you can get these developments tested, integrated and release let me know! |
I tried setting it to OH V 1.9.3 but no change. Messages are coming in so it seems there is data only why is it different? Maybe different in room/panel setup? The data is looking good but sensors are not updated:
|
@voskuh, Here is a simplified server implementation that is working well for me: I still need to have a look at the types of response messages though. |
ATS8500 software and the update for the latest version are here: (for a few days) There is also the latest version for a ATSx500A-ip alarm panel. DONT USE IT ON A ATSx000a-IP PANEL!! |
The new versions of OH should bring extra features or new sensors. But the basics stay the same. |
Thanks for all the helpful comments and the download link. Will try to install and connect to my alarm system asap.
I can see in your logs that it's working correctly and the event is send to home assistant. But not all SIA codes will change the status of the alarm in HA. See https://github.com/voskuh/custom-sia/blob/master/custom_components/sia/alarm_control_panel.py (line 41 and further) for all SIA codes that lead to a change. It's possible to use other codes in automations. For example (in event_type 12300 is my port number and 072538 client ID):
So I assume the V1.9.3. format is parsed correctly, but there can be some issues with receiving all events. |
@sanderpleijers when i connect my system (ats3500) to the integration i get heartbeat errors and in the end an FTC. Do you see this behavior to?
|
Did an update on the custom component and pysiaalarm. Changes are:
Please update or re-install. Make sure to reboot. I hope it will fix most of the errors. Let me know and provide the output of the debug log if you experience issues. |
fyi updated my POC. I got my hands on both the V3 and V4 of OH-Netrec. My gist implementation |
Please note that in order to make it work your decryption should only contain |
@voskuh; Wow! events are comming in like they should on the newest version. There also is no 'orange led' error anymore on the key-panel, so it seems to work better! I made some yaml template sensors to get the motion sensor data. This works fine;
|
Hi Voskuh, Thnx for your work and the update, the messages are comming through this time. someting is stil wrong with the heartbeat is think @sanderpleijers, what are you pac settings? is still get heartbeat errors and after some time an FTC.
|
I made some more changes to the heartbeat parser. So please reinstall and try it! |
Hi Voskuh, and again thanx for the good work! Everything seems to work now. I get no heartbeat errors anymore an the sensors are updated properly. i had to turn on Area Modifier to show te arm and disarm status in homeassistant, after that also the heartbeat errors are gone. After i changed oh version to 3.1 everything stil works. When i thought everything is working properly ik got an FTC again. When i reprogram te ats the FTC goes back to normal but after some time it is comming back. The strange thing is, al the sensors keep working. No errors in the log, not in home assistant or in the ats8500 software. the only error i see in home assistant is this one. so when the timestamp is ' ' everything is ok and when the timestamp is populated with number i get an error
|
I will test my systems today, and let you guys know.
If you want to disable the heartbeat in your alarm panel, set the time to
23:59:59.
Then the alarm will not check the heartbeat, not sure what that means to HA
..
Op za 16 mrt 2024 om 05:47 schreef bjornmorsman ***@***.***>:
… Hi Voskuh,
and again thanx for the good work! Everything seems to work now. I get no
heartbeat errors anymore an the sensors are updated properly.
i had to turn on Area Modifier to show te arm and disarm status in
homeassistant, after that also the heartbeat errors are gone. After i
changed oh version to 3.1 everything stil works.
When i thought everything is working properly ik got an FTC again. When i
reprogram te ats the FTC goes back to normal but after some time it is
comming back. The strange thing is, al the sensors keep working. No errors
in the log, not in home assistant or in the ats8500 software.
the only error i see in home assistant is this one.
2024-03-16 05:34:38.402 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '001991', 'ti': None, 'id': None, 'ri': '04', 'code': 'UA', 'message': "059*'HA Woonkamer'NM", 'xdata': None, 'timestamp': '7713'}
2024-03-16 05:34:38.402 WARNING (MainThread) [pysiaalarm.event] Timestamp could not be parsed as a timestamp: 7713
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVNVUN2DRBDKP3COZDDBDYTYYPFGLAVCNFSM6AAAAAAX4ZF63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBRGYZTSOJZHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Met vriendelijke groeten,
Stefan Dekkers
|
Working nice over here! Power status seems to be not working. Can i somehow filter out the OP (disarming) en CL (arming) codes to know if the system is enabled or disabled |
Did some testing last night but disabeling the heartbeat gives me still an FTC and the orange led on the panel. so when timestamp is ' ' everything is fine, when timestamp is populated as an number i get the parsed error. @voskuh could you maybe check your code if you see some strange behaviour, its a bit unclear for me why the timestamp get populated with a number but not at every message send from the alarm panel. i activated the "Ignore the timestamp check of the SIA events" option in the sia integration but that doesnt help.
|
Great it works out for you. The power status will react on SIA codes AT and AR. So I assume it will change when you disconnect and reconnect AC power of your alarm system. But I didn't test it.
It's strange that only sometimes you get that error. I think it's not necessary to disable the heartbeat. |
Hi Voskuh, Thanx for the update, the timestamp errors are as good as gone. got only 1 in 30 minutes! i have no clue where the FTC comes from, maybe there is something wrong with the ACK message back to the panel?
|
I've given it some thought and more reverse-engineering of OH-NetRec, and I now believe that in it's current state, pyssiaalarm is the wrong location to add OH support. In case of merging OH/DC-09, I think pyssialarm needs complete refactoring so a clean separation between DC-09 and OH can exist. Right now the risk of breaking DC-09 is too high. As an OH event has SIA codes in them, there are of course similarities between OH/DC-09 where the event is enriched with information from the SIA tables, but that's it. Looking at OH protocol, the event structures are completely different, it's TCP only; it's basically a different protocol. Considering the addition of future OH V4 support, and the things mentioned above I've made a separate Osborne Hoffman project. The HA SIA integration has of course more similarities with OH, as the events are already parsed and ready to forward into HA. @voskuh, what's your thoughts on this? |
Hi Bjorn,
I agree that it is complex to integrate OH in pyssialarm. The changes of breaking something in the current implementation is quite high and maintaining will be hard. A separate project will be easier to maintain and will be more robust. But then a separate HA integration for our alarm systems seems more logical to me as well. |
Hello, I am an alarm system installer, I would be very happy to be able to discuss the subject with you. |
I have an Aritech ATS3500 and this integration seems to be working according to the thread... I'm delighted... I have installed via HACS the repository https://github.com/voskuh/custom-sia. I rebooted HA and the integration seems to be fine via HACS and I can see the integration "SIA Alarm Systems" from @voskuh (although no comments or further instructions). Via HA Settings, Devices & Services I'm trying to add the integration but the only I can find is "SIA Alarm Systems". The option "OH" has been added next to "TCP" and "UDP". Am I still on the right track? I have tried to add the repository via HACS https://github.com/voskuh/pysiaalarm but this cannot be added. What should be the next step? I configured my alarm system already and via the old utcar container I am receiving XSIA messages... so, I should be ready for receiving... Please assist me a little bit further. Thx PS I suppose I have to program my Central Station (PAC) to the internal IP address of my HA instance? My HA is installed at 192.168.1.140 and listening to port 12300. Any issue if it's using https instead of http? |
I have the integration of @voskuh up and running. I'm very happy, because this is the first time I have connected my ATSx500 Advanced alarm panel connected to HA and I can create all kinds of automation scenes. Thanks @voskuh! However, I have a request. Currently, the "additional account" at the integration doesn't work: It says: "Device is already configured". It's a bit weird as I have never done that... I think the message means that the same port has been used already. However, if you look at the HA log you can see the SIA messages with other account codes are coming through. It fails when it comes to parsing/interpretation and therefore it's not reflected to sensors in HA. The integration should follow the configuration of the alarm panel. When more than 1 area is being used and also more than 1 account code, currently the alarm panel reports multiple account code with SIA codes. So, when you consider the Central Station (PAC), all kinds of information is being reported depending on the settings of the panel. @voskuh, would it be possible to make a small extension? So, anything that has been reported by the Central Station (PAC) and posted to the specific port, could this be parsed by your integration? Currently, if you look at Developer Tools, Events in HA we get only one Event (for instance sia_event_12300_200000), but this should be multiple events (for instance in addition sia_event_12300_100000) if you have added account codes according to the picture above. This would prevent many users to create all kind of by-passes in our alarm systems by duplicating original zones into filters, outputs and back to (virtual) zones. As well as the state of the panel it's much more easier to read out. 🙏🙏🙏 |
Hi @voskuh, i did some test to fix the FTC and Polling errors i get when i connect my ats to home assistant, i think it has to do something with this error in my home assistant log. is this something you can fix or is it a problem with pysiaalarm?
|
After re-adding the integration, I succeeded in adding additional accounts and now I can read the additional account codes (messages from other areas). The integration UI is a bit buggy I believe as the next steps to add additional accounts, the form fields I had to guess, there was no description anymore (first screen ok, the following are empty fields only). |
Hi Bjorn, The warning in the logs is new, introduced in version 2024.7.0 of home assistant 119058. I'm testing a fix, so hopefully in the upcoming days I will push an update to the repo. Unfortunately I didn't had time the last month to look into a seperate component for our alarm systems. |
Hi , any feedback regarding this issue? Thanks |
@ThaSteef Did you already know there is a HA integration for Alphatronics UNii since a couple of months? |
Yes, got that running in our testing room at Work. Works great.
Unfortunately I still have a aritech at home 😁
Op wo 23 okt 2024 11:50 schreef rrooggiieerr ***@***.***>:
… @ThaSteef <https://github.com/ThaSteef> Did you already know there is a
HA integration for Alphatronics UNii since a couple of months?
https://github.com/unii-security/homeassistant-unii
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVNVUN3VELR3VJNFOPHHLDTZ45WOPAVCNFSM6AAAAAAX4ZF63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZRGU2TMNJQHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Detected blocking call to open with args was fixed by @voskuh to test it change a line in your manifest.json:
|
when i replace the links i get the following error. Do you have the same error?
|
If you want to work around this issue temporarily in a development environment, you can manually install the required package inside the Home Assistant Docker container. Note that this approach only works if you’re running Home Assistant in a containerized environment (e.g., Docker or Home Assistant OS). Access the Home Assistant Docker container:
Manually install the package with pip:
Verify the installation: |
@bjornmorsman Can you try "requirements": ["git+https://github.com/voskuh/pysiaalarm@fix-blocking-call#pysiaalarm"] in manifest.json |
I’ve been working on improving the custom-sia integration and created a fork here: https://github.com/RPJacobs/custom-sia. Improvements I made:
I’ve also submitted a pull request to @voskuh so that we can merge these changes into the 'main' repository and avoid having to maintain separate forks. @eavanvalkenburg can we use you repo? I hope this helps others who are working with this integration. Feedback and suggestions are always welcome! |
We have a php sia pac script but trying to switch to pysiaalarm for HA intergration.
If I start run.py with the same port and key, my alarm generates the following error
I think this is due to the fact that the alarm first needs a (scrambled) 48 hex key send to it before it gives the sia message. After the alarm connects to the port my php script send the key to the alarm:
please advice
The text was updated successfully, but these errors were encountered: