-
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
Loxone Intercome XL support #19
Comments
Would you be able to share your Intercom entry from the structure file? |
How to do that? Install the plugin, set login/pass and then what? |
You can download the structure file using a webbrowser by using the following url (change the ip to match your miniserver); There should be a "type: Intercom" entry. You might need an editor that formats the json to properly read it. The plugin uses this info to map it to a HomeBridge accessory. If you could share this intercom entry it would be very helpful. |
|
So, basic layout of this item is the same as the Intercomv2 item. I have added basic support for this item in the latest beta. It should give you the doorbell and the pushbutton (Ava uks) associated to the intercom. However, the intercomv2 has an additional state called "address". Subscribing to this state will give you the ip address of the intercom, which can be used to access the webcam. I do not see how we are able to resolve this webcam ip on the v1 item. Do you see any other item in the structure file containing the webcam ip? I will also check the documentation for this. As a workaround we could make a configuration option in the plugin where you specify the webcam url for a v1 item. |
@rudyberends I've checked JSON again and there is no any IP/url/port related to camera video stream available unfortunately. I have internal ip and external video IP/address in config app and mobile apps. |
Another issue i guess will be about camera streaming format - i have only mjpeg feed at a moment and i dont known about any h264 streams out of this intercom. Ive managed to view it via ffmpeg camera plugin in homebridge with this source/command:
Snapshot jpeg available via |
mjpeg feed should be fine. Could you check the output of the following url? Change the ip to match your miniserver. Note that the uuid is from your intercom item. |
"value" contains slash encoded json |
strange that the internal stream url is not available in this output, but at least there is enough info here to create it ourselves. Just to make sure, if you use the following url in your browser And you add the logintoken as displayed in the output, you get instant access to the video stream right? |
Correct, instant access via this local ip and external ip too. |
JFYI: V1 works great with HomeKit notification and switch button to unlock the door! Thank you! Looking forward to help you with V2 of this Intercom support. |
Some errors in HB console:
|
It could be that this error was the result of a change in the config. I will look into this, but it might not be related to the intercom changes |
I have pushed a new version to the beta release, but I am not able to test this myself. It might also have broken the intercomv2 support, so I will test this part myself. In theory you should now see the webcam from the doorbell in homekit. At the very least it will spit out some debug messages in the logs. If it is not working as expected, would you be able to share them? Please feel free to mask any sensitive data. |
Installing right now and will report for any issues. |
When you start/restart homebridge there should be some "debug !! ... !!" Messages in the console/log screen. Could you post these debug messages? |
|
i am testing it against some public Loxone demo server which also has an intercomV1. Looks good to me. I can't get an image from the webcam, because I am not internal, but everything seems fine. I do not get your errors. The only difference is that this public demo server does not have authentication set, so it might be something with the token. Maybe we can simplify things and skip the use of token authentication and stick with basic authentication. |
Confirmed - popup auth requested and it works with login/pass from json response and without login=token query |
i have changed the authentication in the latest beta. Could you test it again with this new version? |
Video feed confirmed (no audio). Intercom call and door open action i will test tomorrow morning! Thanks! |
Still have this error on Homebridge restart:
|
If video is working, then it now has the exact same features as the intercomV2 has using this plugin. I think we should try to get rid of any errors you have and then push this implementation to the production build. Concerning your request for audio; The video stream itself (mjpg) does not contain any audio. However, Loxone has 2 way audio implemented using a separate protocol for their intercoms. We should be able to implement this intercom function. I will look into this, and it will be implemented for all intercoms. (V1/XL and v2). I am not sure if you are interested in it, but I am also looking into a homekit secure video implementation. This should also be possible and there is already some code in the current plugin to support this. It will also be available for all intercoms. I do not have a lock mechanism on my doorbell myself, but I have also looked into this before. I think this "unlock button" is a screenshot from an older version of IOS and was removed in more recent versions and is now replaced by what you see in your setup. See also this thread; Samfox2/homebridge-videodoorbell#62 However, if you find a working homebridge implementation of this feature in another plugin, then I guess we can also implement it for the loxone plugin. |
I've tried to create fake HTTP Lock with Loxone API call to open the intercom door - it looks better then simple switch and its visible on Apple Watch in better way. Maybe it's possible to make this switch accessory act and looks like a Lock device - it will be better. For faster video start I've added few ffmpeg params and it works better. Working SIP two way audio already discussed and implemented in FFMPEG CAMERA here. Few more discussions available here. |
Turning it into a door lock is doable. You can do this already if you add a switch in your loxone config between the intercom push button and the output. Using a proper naming convention, this switch will turn into a lock. Will this be a working solution for you? |
@rudyberends Like this? |
It will only work on a switch for now. If you add a switch to your loxone config and you name it "Doorlock Front door" or something, and you set the alias in the config to "Doorlock", it will turn this switch into a doorlock. If you put this switch between your pushbutton and the output in Loxone config, then you will have what you want in homekit. We could also look at changing the pushbutton directly into a switch, but some code changes are then required. The issue with a pushbutton is that it does not have a state (on/off), so it does not map to a doorlock that well. |
v 1.2.0:
|
The latest beta has some debug output. Could you post your error again with the additional debug output? |
Two debug blocks and no errors/warnings:
|
This might be the error for the issue; { service: 'Ava uks', state: 'active' } The service takes the name from the pushbutton. In your case it contains spaces. I changed the code to remove all spaces from the service name. The code is in the latest beta. Could you see if this resolves your error? |
Cool, no more warnings! |
i will close this one, as it now has the same features as the V2 intercom. I will try to implement 2 way communication. Please feel free to open another issue if you have more ideas for the intercom. |
on 1.3.0 now I have this:
|
i made some new features and accidentally pushed it to the master branch. I am using semantic versioning with a workflow, so a build is automatically created and pushed to NPM. The changes I made for the intercom are not (yet) in this release. I will publish them to the master branch in a while. Right now the latest beta should contain al your fixes. |
@rudyberends Hello! Can you please help me with SIP capabilities of LOXONE intercom? Im trying to use SIP extension with Scrypted and can't find the proper way to setup it. I have all data needed from LOXONE intercom admin and LOXONE configurator. I need to setup SIP FROM and SIP OUT settings somehow and I've tried my Scrypted local ip for FROM and loxone intercom ip for OUT and it doesn't work for some reason. Timeouts in logs. |
Discussed in https://github.com/rudyberends/homebridge-loxone-proxy/discussions/18
Originally posted by 350d August 6, 2023
Hello! Will it support Loxone Intercome XL (camera + doorbell)?
I can help with tests if needed. Thanks!
The text was updated successfully, but these errors were encountered: