-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
AX Hub support #31
Comments
Did you try to use the integration ? do you have any logs from "trial of usage this integration" from HA ? |
Hi petrleo !, thanks for repply
During handling of the above exception, another exception occurred:
|
@youmax01 if the endpoints differs too much it is easier to make another integration and implement it separately or at least on start of configuration make it as device type and the workflow will be changed. This integration is for AX Pro. And it should stay for AX Pro. Because there seems to be lot of differences. Can you gather some info. I cannot find this AX hub on official site. So I would get some documentation on this. If the main protocol is that different I would rather create separated repo. |
thanks you i add manually on my HA , do you need see config? |
No. I don't need currently see your config. I need documentation for your device. Cannot find any links to AX Hub on HikVision official site. Can you provide some docs? API Endpoints etc? The main login method is different can you manually check the result xml? I can make some changes for easier debug of it. But it will be later today. |
Okay found some piece of documentation ... |
yes!, is this, ISAPI for this hub is equal to AXPRO maybe? all parameters is here: |
I understand. The ISAPI is standardised. It is going to be almost the same. But the stuff around. Currently it is for you response of method |
I was going in deep if we can check the connect process. Sadly I will try maybe take over this control flow. For failed calls and make separate calling. But since this library is outside of the project we cannot tailor it to our needs. Currently there is no easy way other than full debug of HA and communication. You can try on your own if you have the knowledge about XML, HTTP to make some cUrl calls or use postman or something like that. But when I don't have the device I cannot fully help. In file import logging
logging.getLogger(__name__).warning("Debug data %s", xml_data) In log of HA this would give me response of your device and we can try to proceed. |
i will try! and post the result soon. tanks |
Your screenshot shows “var” folder.
And what type of installation do you have ?
Is it Homeassistant OS? Or docker container?
This file is dependency so it is instaled in HA python
st 15. 3. 2023 v 16:49 odesílatel youmax01 ***@***.***>
napsal:
… dont have /usr/local/lib/xxxxxxxxxx folder
[image: image]
<https://user-images.githubusercontent.com/35151341/225364948-92ba54cd-ce3c-44f2-84d8-f1906593d966.png>
have:
[image: image]
<https://user-images.githubusercontent.com/35151341/225364367-8063a5af-0e79-4fe1-9313-04bc3ea4520a.png>
—
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACH4VNYPSYJQFS6GXKUPS7LW4HQGXANCNFSM6AAAAAAVZLBFQA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
I dont know if the ui addon has permissions to view those folders. The path
was provided by you from the log. So it is there.
Can you use ssh?
Or configure the file addon to show hidden files and have root permissions
?
st 15. 3. 2023 v 17:11 odesílatel youmax01 ***@***.***>
napsal:
… yes, sorry, this is the printscreen
homeassistant os on X86
i dont know how /usb/local/lib/ is empty
[image: image]
<https://user-images.githubusercontent.com/35151341/225370281-699be44b-040b-404a-8d48-7ec2219ffe79.png>
—
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACH4VN4YTHA2MQMSUHVHGRLW4HS3VANCNFSM6AAAAAAVZLBFQA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Strange. I will take a look on architecture od haOS on desktop later and
respond.
st 15. 3. 2023 v 17:14 odesílatel youmax01 ***@***.***>
napsal:
… [image: image]
<https://user-images.githubusercontent.com/35151341/225372246-5ac3fc42-46fd-4ed2-bcfe-b2662a1994c2.png>
—
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACH4VN7WLQG2XUFVHPREP5LW4HTE7ANCNFSM6AAAAAAVZLBFQA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Last thing try to become a root. su - or sudo -i
st 15. 3. 2023 v 17:15 odesílatel Petr Leo Compel ***@***.***>
napsal:
… Strange. I will take a look on architecture od haOS on desktop later and
respond.
st 15. 3. 2023 v 17:14 odesílatel youmax01 ***@***.***>
napsal:
> [image: image]
> <https://user-images.githubusercontent.com/35151341/225372246-5ac3fc42-46fd-4ed2-bcfe-b2662a1994c2.png>
>
> —
> Reply to this email directly, view it on GitHub
> <#31 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACH4VN7WLQG2XUFVHPREP5LW4HTE7ANCNFSM6AAAAAAVZLBFQA>
> .
> You are receiving this because you were assigned.Message ID:
> ***@***.***>
>
|
Okay I found out. HomeAssistant is running in docker container. So in SSH you have to get in the container first... |
Please try absolute path command. Like |
Did you update your HA instance by any chance ? |
If will not get trough this last hope will be update in version 1.0.0. Maybe released tomorrow. I will try manage some backup logging in connect process |
Hi, I have the previous ax alarm hub (not the pro). I also happen to be a programmer and I have some experience with python. I don't have any experience with home assistant though. It's all new stuff for me. So, apart from adding these extra logging lines in the code, what else should I do? Are there any specific settings from the alarm hub side that are needed for the integration to work? Where do I find the logs from the integration? I hope we can help to make this work. Thanks. |
I run home assistant inside truenas scale using the truecharts app. It's not convenient to make changes to the integration files inside the app, so I think it would be better to fork this repo, make test changes and add that repo inside hacs, instead of the original one. So, in which python file in the repo I put the above logging code? |
It is not that easy... The lib is https://github.com/gunkutzeybek/hikaxpro but it is for AX Pro. Owner of the repo is not responding -> gunkutzeybek/hikaxpro#11 waiting for first pull request... It was only a workaround to test it. Sadly I do not have AX Hub otherwise it would be tested and maybe if protocol differs too much I would create separate integration for that... You can on your own test via If you would provide response of correct login (you can scrable the return values for security) I can manage fix of that for compatibility. @nautilus7 |
@nautilus7 for example HomeKit (iOS) integration if you use Apple. Or Google Home integration. |
Currently there is a lot of logging enabled. I will create separate option for logging ex hub fully. (for reasons like this - since I do not own this device). And next release (1.2.0) will close this issue and we from now on support AX Hub. |
I tried disarming the alarm (from the dashboard), but it did not work:
Same for arming (home and away). Same error. |
Ok, so it seems that I cannot see the battery levels on the individual devices (motion detectors, door contacts, etc) when logging directly to the control panel. It seems the ax hub API does not provide this info? Only the control panel itself has a battery level indicator which is NOT available in the integration... Also I have a wireless keypad in my installation, which is not listed in the hass integration's devices... |
If Panel does not see battery levels we will not get it also. |
With release v1.2.0 AX Hub should be supported. Logging is opt-in. And after solving other things with @nautilus7 thank you for providing debug outputs. And keeping up. |
Thank you for the hard work. Great results! |
Exellent ! Y willy try. Good work! |
Still not able to arm/disarm:
|
@nautilus7 I dont know if AX Hub actually supports "Arm away". Or if you can disarm / arm without "code" you might will have to configure the code. |
@nautilus7 Can you in AX Hub panel trigger arm / disarm ? Can you capture it in Dev Tools ? URL + payload. |
It does support "away arm". None of the arming/disarming can be done via the web interface of the control panel. You can only do it via the hik-connect app, or the keypad of course. What "code" should I put in? I don't have any code, except from the one I use in the keypad. But the keypad code is only known to the keypad itself. The hub is not aware of that code. |
The keypad should be linked to the system and it knows the code (it should be assigned to the user). You can try. |
Tried the code. No luck unfortunately.... Exact same error as before. Tried both away and home arming... |
I will try figure out what call has to be made to make it fully work. The ISAPI spec says it should be supported and since the response is 400 not 404 I think it is just bad request content. |
@petrleocompel hi, did you make any progress on this? |
Sadly no progress. I didn't find any documentation and differences. If anybody has some info or can try any kind of "post" request to the system would be amazing. Because I do not own AX Hub and I cannot test it. It would be possible to test it with somebody live on discord or any other communicator. For such meeting please send me email to make it happen. |
Main bug found. Internal library has |
In this case Arm / disarm should be working from version 1.3.1. |
Looking forward to it! Thanks. |
@nautilus7 you can test 1.3.1 it was released. |
No it's not. You have forgotten to push the changes upstream, I guess. |
https://github.com/petrleocompel/hikaxpro_hacs/releases/tag/v1.3.1 |
Sorry my bad I really just released tag... 🤦♂️ |
Yeah, me was looking in master branch commits only. |
Now it is released |
Hi, i hava a AX hub alarm, use the same ISAP protocol, but do not work with this integration
is possible to help to add config?
i have a list of isap config of my alarm
http://192.168.1.4/ISAPI/SecurityCP/status/host?format=json
For shortening of conversation - attached file (json not supported - log ext - still json valid file)
axhub-status-response.json.log
The text was updated successfully, but these errors were encountered: