Alarm System Connected Via 5500SHAC (TCP/IP - Cleint)

Discussion in 'C-Bus Automation Controllers' started by Peri92, Aug 13, 2019.

  1. Peri92

    Peri92

    Joined:
    Aug 6, 2019
    Messages:
    1
    Likes Received:
    3
    Hi Guys,

    I have been trying for the past few days to get my Inception alarm system to control CBUS via 5500SHAC.

    I have seen anther post where someone has the "Inner Range Inception" alarm system working via RS232.

    Although the Inception panel also has the functionality to send TCP/IP messages.

    I have FINALLY got it working and thought i would share my finding.

    I have been able to connect the Inception system to the SHAC_CNI, with the below settings.

    Connection type: TCP (Client)
    Port: 10001
    IP Address: 192.168.178.199

    With these setting it is the only way i get the status as "Connected".

    (Not sure if required although i have also added the below to the "C:\Clipsal\C-Gate2\config\access.txt")

    interface 192.168.178.82 operate
    remote 192.168.178.82 operate
    user <username> <password> operate

    Of course I have the correct username and password i just haven't posted them on here.

    My current setup is:

    SHAC_IP:
    192.168.178.199
    Inception_IP:
    192.168.178.82
    5500PCU:
    USB Serial (Used for Diagnostic Utility).

    The Inception system requires "Data Framing" (Refer to the link above for the image).
    - Prefix for Sent Messages:
    - Suffix for Sent Messages:
    - Prefix for Received Messages:
    - Suffix for Received Messages:

    If i set all the above as (empty) the review logs show me a message being received every second.
    Message: \x11

    When i turn a light on from the Diagnostic Utility i get the following (received message) in the review log on the Inception alarm system: \052D380100010193\r\n

    Then I set the framing as;
    - Prefix for Sent Messages: \
    - Suffix for Sent Messages: \r\n
    - Prefix for Received Messages: \
    - Suffix for Received Messages: \r\n

    And I am now receiving and sending the correct commands.
     
    Peri92, Aug 13, 2019
    #1
    MarkB, Timbo and cbus-ed like this.
  2. Peri92

    Robbo_VIC

    Joined:
    Jan 24, 2011
    Messages:
    150
    Likes Received:
    0
    Location:
    Melbourne, VIC
    Resurrecting an old thread here, but I have tried on a couple of sites now and just can't get this integration to work consistently.

    This site I am on now has a dedicated CNI for the Inception, and I am able to send commands from the Inception to the Cbus network, but I just can't get the Inception to listen to all the other Cbus messages.

    Even with Nothing in the prefix and suffix for received messages, I'm not seeing anything in the log when I have enabled Detailed events.

    I'm thinking something to do with the CNI needing to be setup to broadcast all messages? I have had a ticket open with Clipsal for a while now and I haven't got any response.

    Previously I had it set to talk to a Wiser2 and I managed to get that working, but after a week or so it would drop out. I am assuming this is due to the network interface on the Wiser being taken over when someone opens the app, and it severs the connection to the Inception.
     
    Robbo_VIC, Jul 11, 2025
    #2
  3. Peri92

    Timbo

    Joined:
    Aug 3, 2004
    Messages:
    24
    Likes Received:
    4
    Location:
    Perth, Australia
    I didn't think you'd be able to configure the Inception to receive commands from a CNI, you need to mangle the C-Bus messages and form appropriate HTTP(S) REST API commands to push to Inception... ie using a SHAC/NAC etc etc.
    How are you firstly initialising the CNI to broadcast the C-Bus messages to the Inception IP (across reboots)?
    How are you extracting appropriate parts of the C-Bus messages in the very basic 'Data Framing' custom connection settings?

     
    Timbo, Jul 11, 2025
    #3
  4. Peri92

    Colin Moderator

    Joined:
    Aug 3, 2004
    Messages:
    164
    Likes Received:
    37
    Location:
    Australia
    The original thread discusses using NAC and SHAC devices, not as web servers or for framing, but for their CNI feature. This is similar to using a 5500 CNI, where the main difference is transmitting the same strings over a TCP packet to the CNI.

    To get a CNI to respond correctly with information or events from C-Bus, refer to the setup guide for CNI/PCI. You can configure the CNI/PCI to transmit events from C-Bus over an established connection and ensure configurations are retained on power up or restore.

    If referring to the PCI user guide, it is recommended to set up the PCI/CNI with the correct configuration initially and handle power-up notifications and other configurations as needed. The Inception panel may not support this, but you can configure the CNI/PCI to power up in a known state.

    Additionally, you can set application filtering to receive events only from specific applications, such as the lighting application (application 38).

    The Inception panel may not understand all events coming back from C-Bus, even if the application is filtered. It likely does not understand state corrections that occur on C-Bus frequently. The PCI/CNI can be configured to pass these events onwards or not, as needed (refer to the user guide for this configuration).

    It is also unknown if the Inception panel can handle concatenated messages. C-Bus can send events in one package, including multiple groups in the same communication stream. For example, a packet might turn on/off multiple groups or change the level of multiple groups in a single event. It is unclear whether the Inception panel can process these concatenated messages.
     
    Colin, Jul 11, 2025
    #4
    Timbo likes this.
  5. Peri92

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    127
    Likes Received:
    11
    If you have a SHAC/NAC why would you not drive this integration via web services/REST?

    inception can trigger a http endpoint for anything inception -> SHAC as a push the SHAC can poll the inceptions long-poll APIs. For anything C-Bus -> inception you could hit the Inception rest APIs to as an event script for anything C-bus -> Inception.

    Am I missing something?
     
    Ks04, Jul 14, 2025
    #5
  6. Peri92

    Colin Moderator

    Joined:
    Aug 3, 2004
    Messages:
    164
    Likes Received:
    37
    Location:
    Australia
    That is. Totally possible to do this with NAC/AC with firmware 1.18.0 and later, I was pointing out that the description provided for solution I. This thread is not doing that, but rather just using the C-Bus Serial Protocols over TCP.

    The Controllers with firmware compatible to using SpaceLogic C-Bus commission software feature called Sync which replaced the need for CGL import export in toolkit. Have a full Rest Interface and documented API which included control and state of all objects defined in the controller (not just C-Bus).

    however this API is only accessible using https

    There is also an older API for the controller enabled with remote access feature, this is covered in the user manual to some small extent. The feature is still there but it is not being maintained going forward where as the one I mentioned above is integral to the life of the product and will be maintained
     
    Colin, Jul 18, 2025
    #6
  7. Peri92

    Robbo_VIC

    Joined:
    Jan 24, 2011
    Messages:
    150
    Likes Received:
    0
    Location:
    Melbourne, VIC
    Hi there,
    In my particular case, the Cbus side of the integration was a Wiser2 and not a SHAC, so we had to do via Serial Protocols over TCP. We are just now replacing the Wiser2 with an Application Controller, so I'll switch over to the use the REST API to fire messages from the Inception to the AC. Thanks.
     
    Robbo_VIC, Oct 18, 2026
    #7
  8. Peri92

    oracle

    Joined:
    Jan 18, 2010
    Messages:
    149
    Likes Received:
    14
    Location:
    NSW
    Hey I have a small application if you care to test! - I have not got my inception panel but you could test it out was building this to give to my staff - it has taken the back burner to some other stuff so this is Alpha. All but tested I wont bore with my field acceptance test it goes as far as installing and setting up group addresses.
    I have tried to make it quick and simple. Have only tested the Cbus portion partially as noted the live panel test needs to be verified I should get around to it soonish - but if you try it please give feedback on issues and suggestions. I was simply trying to resemble some functionality of the old Ness integrations from days gone by - triggering scene etc from alarm events, adding arm function from a scene etc. C-bus button as a REX, I have a guarded disarm ability here it takes a few things to enable as it is a bad idea and would suggest you understand the risks.

    Shared file here

    Inception-side setup
    The menu labels can vary slightly by firmware.

    1. Sign in to Inception as an authorised installer.
    2. Create a dedicated user, for example AC2 Bridge. Do not use a named person’s routine account.
    3. Assign a Web Page Profile that permits REST Web API use.
    4. Assign only the specific area/input/output permissions required by the integration. Read-only objects can be exposed as feedback; control permission is required for activities.
    5. In Configuration → Users → Manage Users → Credentials → User API Token, generate a token and place it directly into the bridge. Do not put it in the URL or commissioning report.
    6. Disable unused access methods for this account and set an expiry/rotation process appropriate to the site.
    7. Verify the Inception date/time, DNS if used, and HTTPS certificate.
    API-token authentication requires REST protocol v13 or later. The bridge also supports session user/password authentication for older approved sites, but a revocable, dedicated token is preferred.

    AC2/NAC2 installation

    1. In the controller web interface, open Apps and its package installation function.
    2. Upload asg-inception-bridge_0.1.2-beta.4_all.ipk.
    3. Confirm the app appears as ASG Inception Bridge.
    4. Open it and create a unique local installer password of at least 10 characters.
    5. Under 1 Connect, enter only the Inception origin, such as https://10.20.30.40. Do not append /api/v1 and do not embed credentials.
    6. Select API token, paste the token, leave certificate verification on, enable the background connection, and save.
    7. Test the saved connection. A successful result includes the reported REST protocol version.
    8. Select Discover and verify. The counts should match the intended permission scope; unexpected objects mean the Inception integration user is too broad. Any scheduled item still marked Not found must be resolved before command commissioning.
    The bridge follows HTTP 307 redirects used by SkyTunnel, but local networking or a managed VPN is preferred. Never expose either controller through a general inbound port-forward.

    The state monitor allows 70 seconds for Inception's 60-second long poll. The separate command client caps its own network wait at 15 seconds, so an unreachable panel fails closed without tying up state monitoring.

    Quick start: Inception ↔ AC2/NAC2
    This is the shortest safe commissioning path. The C-Bus side can be prepared on the bench before the Inception controller or alarm contractor is available.

    1. Optional bench preconfiguration
    Ask the alarm contractor for each required object’s type (area, input or output), name, and Inception object ID/GUID or numeric Reporting ID—preferably both IDs.

    In 2 Objects, add objects individually or paste comma-/tab-separated rows in this order:

    type, object_id, reporting_id, name

    An object ID or Reporting ID is required. Names are for installers only and are never used for automatic matching. Pending objects are immediately selectable under Status points, Scenes and Commands, but remain fail-closed until verified.

    2. Prepare Inception
    1. Back up Inception and confirm its firmware is supported by the site.
    2. In Inception, create a dedicated integration user such as AC2 Bridge.
    3. Assign a REST Web API profile and only the permissions needed for the areas, inputs and outputs being integrated.
    4. Open the user’s Credentials, generate a User API Token, and copy it.
    5. Record the local controller address, preferably an HTTPS address on the isolated security/building-services network.
    Do not reuse an installer or everyday operator account. Do not port-forward Inception to the internet.

    3. Install on AC2 or NAC2
    1. Open the controller’s Apps package installer.
    2. Upload asg-inception-bridge_0.1.2-beta.4_all.ipk.
    3. Open ASG Inception Bridge and create its local installer password.
    4. Open 1 Connect.
    5. Enter the Inception base URL and API token, enable the connection, then select Save connection.
    6. Select Test saved connection, then Discover and verify.
    7. Open 2 Objects and resolve every entry marked Not found before enabling commands.
    If certificate verification fails with a self-signed Inception certificate, install a trusted certificate if practical. Only clear verification on an isolated local network and record that exception.

    4. Add feedback and scenes
    1. Under 3 Status points, add the required conditions. Enter an unused group for a small manual job, or leave Group blank for the Toolkit worksheet workflow. A true condition is level 255; false is 0.
    2. In Toolkit open application 56 – Lighting, select all groups and press Ctrl+Insert. Paste the copied seven-column table into 1 & 3 — Paste from Toolkit, confirm network 0 and application 56, then select Import / refresh Toolkit groups.
    3. Select Make two-column Toolkit rows. With First group blank, allocation starts one address above Toolkit’s highest used group; it does not fill gaps that may be deliberately reserved.
    4. Copy the generated rows. In Toolkit select Add Group → Add Multiple Groups → Paste from Excel. The bridge output contains only the two accepted columns: Address and Tag Name, with no heading.
    5. Add the groups in Toolkit, select all groups again, copy with Ctrl+Insert, and re-import the refreshed seven-column list. Exact unique tag-name matches are linked to their application/group addresses.
    6. The bridge applies nothing if decimal and hexadecimal addresses disagree, an address is outside 0–255, a group is duplicated, a tag matches multiple bridge points, or the selected address collides with another bridge function.
    7. Export the relevant Toolkit applications as CGL and import that CGL under Configurator → Utilities → Import Toolkit CGL file on AC2/NAC2. Toolkit applications import to the controller’s local network 0.
    8. Under 1 Connect, optionally allocate a dedicated bridge-health group. It is 255 while the long-poll connection is healthy and 0 when disabled or failed.
    9. Under 4 Scenes, choose an Inception condition and edge, then enter the C-Bus Trigger Group and Action Selector already assigned to the scene.
    10. Change the Inception state and prove both the feedback group and scene. The first state seen after service start creates a baseline and does not trigger a scene.
    5. Add commands
    1. Under 5 Commands, add each required action to its own unused momentary C-Bus group.
    2. Make the upstream logic set that group to 255. The bridge sends one action and resets it to 0.
    3. Test arm commands with an area that is ready, then with an open input. The latter must be refused; the bridge never auto-isolates a sensor.
    6. Treat disarm separately
    Leave remote disarm disabled unless the site specifically requires it and authorises its risk. If used:

    1. Map a disarm command group.
    2. Allocate a separate interlock group that must be fully on.
    3. Under 6 Safety, keep Require a second C-Bus interlock selected.
    4. Type ENABLE REMOTE DISARM, select enable and save.
    5. Prove all four cases: disabled, interlock off, active alarm, and valid disarm.
    The bridge also requires a held command, reads the live area state immediately before the action, blocks an active alarm by default, resets the command group and audits every attempt.

    upload_2026-10-19_21-21-45.png upload_2026-10-19_21-22-20.png upload_2026-10-19_21-23-17.png upload_2026-10-19_21-24-1.png upload_2026-10-19_21-24-36.png upload_2026-10-19_21-25-5.png upload_2026-10-19_21-25-57.png upload_2026-10-19_21-26-50.png upload_2026-10-19_21-28-48.png
     
    oracle, Oct 19, 2026
    #8
  9. Peri92

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    127
    Likes Received:
    11
    Curious what the value of the APK is doing here - is it just configuring the parameters?

    I've been using a resident script approach which works well for the last few years: https://github.com/ks00410/Cbus-Inception
     
    Ks04, Nov 6, 2026
    #9
  10. Peri92

    oracle

    Joined:
    Jan 18, 2010
    Messages:
    149
    Likes Received:
    14
    Location:
    NSW
    Fair question, and thanks for the link. The app uses Inception’s REST API and long polling too, with background monitoring and command services configured through a web interface. Configuration, commissioning and ongoing maintenance are the main reasons it exists.

    It lets installers select individual conditions—armed, alarm, zone active, tamper, etc.—and map them directly to C-Bus status groups. Scene triggers and C-Bus command groups are configurable without writing separate event scripts for each mapping.

    It also supports offline object schedules, so the C-Bus contractor can prepare mappings before connecting to the alarm controller, then verify them during commissioning. Toolkit tag-list generation and reimport help link group descriptions and addresses. Remote disarm has explicit settings, including a held command, an optional interlock and current area-state checks.

    The main use case is jobs where the C-Bus programmer and alarm installer are different people, or where another technician needs to maintain the integration later without working through Lua. The current scope concentrates on areas, zones, outputs and Custom Inputs, and it’s still in beta testing for our staff.

    If your existing scripts already meet your needs, there may be little reason to change. Different businesses have different workflows. For us, the aim is to send any of our installers to a project with a consistent package and guided setup process: install the IPK, discover or select the required objects, assign the mappings and test them. That helps reduce the amount of site-specific coding and the opportunity for mistakes, while making handover easier for the next technician.
     
    oracle, Nov 6, 2026
    #10
  11. Peri92

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    127
    Likes Received:
    11
    Makes sense - I like the IPK functionality for providing the wizard like setups. Need to think through what the right balance here is. These devices are so powerful, especially now AI helps write the scripts/packages!
    I'd love to be able to write to the alarm application group... might come back to this todo now.
     
    Ks04, Nov 6, 2026
    #11
  12. Peri92

    oracle

    Joined:
    Jan 18, 2010
    Messages:
    149
    Likes Received:
    14
    Location:
    NSW
    Writing Lua scripts and keeping them updated as things change has always been a bit of a challenge for me. I’m shit at documenting my own stuff, and scripts tend to end up scattered everywhere. Like most things, I’ll have a need or an idea, build it, get it working, and then put off the finishing touches. I reckon I have 50 projects sitting in “beta” for years across various hard drives

    AI has made a big difference there. Being able to turn that mess into something more polished and better documented makes it much easier to hand over to staff without them having to come back to me every time they need something.

    I haven’t shared much of it externally before, but there must be hundreds of us solving the same problems, each with our own flavour and spices. Until your link above, I hadn’t really looked too hard at other integrations or used many other people’s scripts.

    The whole IPK idea came out of some emergency lighting testing and reporting work I did on LogicMachine. I needed a deployable package that someone could install without having to write scripts or access the Lua engine. Once AI helped me package that properly for the app installer, I started thinking, “Why don’t I turn all my old scripts into installable apps?”

    So that’s really where I see the value: taking something I’ve already built and making it easier for someone else to install, configure and maintain. The wizard-style setup is a big part of that, also the gift of sharing ideas and hopefully saving someone some time to put some money back into a job is good too.
     
    oracle, Nov 7, 2026
    #12
  13. Peri92

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    127
    Likes Received:
    11
    Completely agree - I'm currently cleaning up, properly documenting and redoing my themes with AI based on a bunch of half started and never completed projects, all written with different patterns.

    It would be great to have a community marketplace for sharing of assets on this platform - there's so much capability and overlap in what people are doing. I'm on the fence as to if i opensource everything or charge for things - there's probably a balance to be struck here.
     
    Ks04, Nov 9, 2026
    #13
    oracle likes this.
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.