Skip to content

Add documentation for Olarm integration #39772

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

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

pelicarno
Copy link

@pelicarno pelicarno commented Jun 30, 2025

Proposed change

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive user guide for integrating Olarm smart alarm systems with Home Assistant, including setup instructions, supported features, example automations, troubleshooting tips, and known limitations.

@home-assistant home-assistant bot added in-progress This PR/Issue is currently being worked on needs-rebase The PR has been branched of the wrong base branch or targets an incorrect target branch next This PR goes into the next branch labels Jun 30, 2025
@home-assistant
Copy link

It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the current branch. Please change the target branch of this PR to current and rebase if needed. If this is documentation for a new feature, please add a link to that PR in your description.

Copy link

netlify bot commented Jun 30, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 61ecace
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/68638b9b4bb6570008d338eb
😎 Deploy Preview https://deploy-preview-39772--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@home-assistant home-assistant bot removed the needs-rebase The PR has been branched of the wrong base branch or targets an incorrect target branch label Jun 30, 2025
@home-assistant home-assistant bot added the has-parent This PR has a parent PR in a other repo label Jun 30, 2025
@pelicarno
Copy link
Author

pelicarno commented Jul 1, 2025

Hi

I closed previous PR which was targeting incorrect branch (current instead of next) as advised and have created a new one.

Also fixed an issue with the documentation advised by CodeRabbit

Thanks for your help, much appreciated.

@pelicarno pelicarno marked this pull request as ready for review July 1, 2025 18:17
@Copilot Copilot AI review requested due to automatic review settings July 1, 2025 18:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive documentation for the new Olarm integration in Home Assistant, covering setup steps, supported devices, entities, automation examples, troubleshooting, and known limitations.

  • Adds a new olarm.markdown file with integration metadata and setup instructions
  • Documents available entities, automation example, and removal procedure
  • Details troubleshooting tips, known limitations, and use cases
Comments suppressed due to low confidence (2)

source/_integrations/olarm.markdown:44

  • [nitpick] The punctuation and style in the numbered list under 'Before Configuration' are inconsistent; ensure each list item either ends with a period or remove terminal punctuation uniformly for clarity.
1. In the Olarm App: Go to **Profile** > **Device List** > **[Select Device]** > **Developer Settings**, then enable **API Access**

source/_integrations/olarm.markdown:117

  • [nitpick] Consider rephrasing to 'A maximum of 5 Olarm devices per integration instance are supported' for clearer pluralization and readability.
- A maximum of 5 Olarm {% term device %}s per {% term integration %} instance are currently supported

Comment on lines +89 to +91
condition:
- condition: template
value_template: "{% raw %}{{ is_state('binary_sensor.zone_001_front_door', 'on') }}{% endraw %}"
Copy link
Preview

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The template condition duplicates the state trigger in this automation example; consider removing the redundant condition or replacing it with a direct state condition to simplify the example.

Suggested change
condition:
- condition: template
value_template: "{% raw %}{{ is_state('binary_sensor.zone_001_front_door', 'on') }}{% endraw %}"

Copilot uses AI. Check for mistakes.

Copy link
Contributor

coderabbitai bot commented Jul 1, 2025

📝 Walkthrough

Walkthrough

A new documentation file for the Olarm smart alarm system integration has been added. The file provides setup instructions, entity descriptions, automation examples, troubleshooting tips, limitations, and use cases for integrating Olarm devices with Home Assistant.

Changes

File(s) Change Summary
source/_integrations/olarm.markdown Added comprehensive documentation for the Olarm smart alarm system integration with Home Assistant.

Sequence Diagram(s)

sequenceDiagram
    User->>Home Assistant: Enable Olarm integration
    Home Assistant->>Olarm Cloud: Authenticate with Olarm account
    Olarm Cloud-->>Home Assistant: Return device and sensor data
    Home Assistant-->>User: Expose Olarm entities (zones, sensors, etc.)
    User->>Home Assistant: Configure automations using Olarm entities
    Home Assistant->>User: Trigger automations/notifications based on Olarm state changes
Loading

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (3)
source/_integrations/olarm.markdown (3)

73-75: Minor grammar – missing pronoun

(if have an Olarm MAX)(if you have an Olarm MAX)

-#### MAX module sensors (if have an Olarm MAX)
+#### MAX module sensors (if you have an Olarm MAX)

90-92: Template unnecessarily re-checks the same entity

Inside the same trigger you re-evaluate the identical entity state in a condition:

value_template: "{{ is_state('binary_sensor.zone_001_front_door', 'on') }}"

The condition is redundant because the trigger already guarantees the state transition to on.
Consider removing it for clarity (and a tiny performance gain).


100-104: Comma splice in troubleshooting sentence

Insert a comma to join two independent clauses:

Ensure the device is online, and the subscription is active

-Ensure the {% term device %} is online and the subscription is active
+Ensure the {% term device %} is online, and the subscription is active
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between adf7251 and 61ecace.

📒 Files selected for processing (1)
  • source/_integrations/olarm.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/olarm.markdown

[grammar] ~29-~29: This phrase is duplicated. You should probably use “Olarm PRO” only once.
Context: ...N1 – Paradox - Olarm GEN1 – Universal - Olarm PRO - Olarm PRO 4G - Olarm MAX ## Prerequisites - A...

(PHRASE_REPETITION)


[grammar] ~37-~37: This phrase is duplicated. You should probably use “the device” only once.
Context: ...larm panel - An active subscription for the device - The device has public API access enabled ## Befor...

(PHRASE_REPETITION)


[grammar] ~73-~73: It seems that a pronoun is missing.
Context: ...n latch mode) #### MAX module sensors (if have an Olarm MAX) - `binary_sensor.max...

(IF_VB)


[uncategorized] ~102-~102: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ...: Ensure the {% term device %} is online and the subscription is active - **Missing ...

(COMMA_COMPOUND_SENTENCE_2)


[uncategorized] ~109-~109: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...in the Olarm system ### Removal {% my integrations badge %} 1. Go to **{% my integrations...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)

🪛 markdownlint-cli2 (0.17.2)
source/_integrations/olarm.markdown

57-57: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


58-58: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


62-62: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


63-63: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


65-65: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


66-66: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


68-68: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


69-69: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


73-73: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


74-74: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)

🔇 Additional comments (1)
source/_integrations/olarm.markdown (1)

23-32: Add blank lines around lists to satisfy markdownlint (MD032)

Headings and lists should be separated by a blank line; otherwise the Markdown renderer occasionally mangles the block and CI fails.

## Supported devices
-
-The following devices are known to be supported by the {% term integration %}:
-
-- Olarm GEN1 – Paradox
-- Olarm GEN1 – Universal
-- Olarm PRO
-- Olarm PRO 4G  
-- Olarm MAX
+
+
+The following devices are known to be supported by the {% term integration %}:
+
+* Olarm GEN1 – Paradox
+* Olarm GEN1 – Universal
+* Olarm PRO
+* Olarm PRO 4G  
+* Olarm MAX

Likely an incorrect or invalid review comment.

Comment on lines +53 to +76
### Binary sensors

The integration creates various binary sensors depending on your alarm system configuration:

#### Zone sensors
- `binary_sensor.zone_XXX_<zone_name>`: Individual zone status for each configured zone
- Device class automatically set based on zone type (door, window, motion)
- Extra attribute: `bypassed` indicates if the zone is currently bypassed

#### Zone bypass sensors (optional)
- `binary_sensor.zone_XXX_bypass_<zone_name>`: Shows bypass status for each zone (only if bypass {% term entities %} are enabled during setup)

#### System sensors
- `binary_sensor.ac_power`: Indicates if AC power is available to the alarm panel

#### LINK module sensors (if LINK modules are connected)
- `binary_sensor.<link_name>_link_input_XX_<input_name>`: LINK input status
- `binary_sensor.<link_name>_link_output_XX_<output_name>`: LINK output status (for outputs in latch mode)
- `binary_sensor.<link_name>_link_relay_XX_<relay_name>`: LINK relay status (for relays in latch mode)

#### MAX module sensors (if have an Olarm MAX)
- `binary_sensor.max_input_XX_<input_name>`: MAX input status
- `binary_sensor.max_output_XX_<output_name>`: MAX output status (for outputs in latch mode)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Multiple heading / list spacing violations (MD022 & MD032)

Sections ### Binary sensors, #### Zone sensors, #### Zone bypass sensors, #### System sensors, #### LINK module sensors, and #### MAX module sensors all miss the required blank line before/after the heading and before list blocks.
Please insert a blank line in each spot or run markdownlint --fix to auto-correct.

🧰 Tools
🪛 LanguageTool

[grammar] ~73-~73: It seems that a pronoun is missing.
Context: ...n latch mode) #### MAX module sensors (if have an Olarm MAX) - `binary_sensor.max...

(IF_VB)

🪛 markdownlint-cli2 (0.17.2)

57-57: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


58-58: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


62-62: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


63-63: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


65-65: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


66-66: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


68-68: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


69-69: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)


73-73: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)


74-74: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)

🤖 Prompt for AI Agents
In source/_integrations/olarm.markdown between lines 53 and 76, the headings and
lists lack the required blank lines before and after headings and before list
blocks, violating markdownlint rules MD022 and MD032. To fix this, insert a
blank line before each heading and after each heading before the list starts, as
well as ensure there is a blank line before each list block. Alternatively, run
markdownlint with the --fix option to automatically correct these spacing
issues.

Comment on lines +1 to +15
---
title: Olarm
description: Instructions on how to integrate Olarm devices into Home Assistant.
ha_release: 2025.1
ha_iot_class: Cloud Push
ha_category:
- Binary sensor
ha_codeowners:
- '@olarmtech'
ha_config_flow: true
ha_domain: olarm
ha_integration_type: integration
ha_platforms:
- binary_sensor
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Front-matter schema deviates from Home Assistant standards

The ha_* prefixed keys aren’t recognised by the docs builder.
Use the canonical names (iot_class, config_flow, domain, integration_type, platforms, etc.) to avoid the page being silently dropped during the build.

---
-title: Olarm
-description: Instructions on how to integrate Olarm devices into Home Assistant.
-ha_release: 2025.1
-ha_iot_class: Cloud Push
-ha_category:
-  - Binary sensor
-ha_codeowners:
-  - '@olarmtech'
-ha_config_flow: true
-ha_domain: olarm
-ha_integration_type: integration
-ha_platforms:
-  - binary_sensor
+title: Olarm
+description: Integrate Olarm smart alarm communicators with Home Assistant.
+ha_release: 2025.1
+iot_class: cloud_push
+integration_type: hub
+config_flow: true
+domain: olarm
+codeowners:
+  - '@olarmtech'
+platforms:
+  - binary_sensor
---

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In source/_integrations/olarm.markdown lines 1 to 15, the front-matter keys
prefixed with "ha_" do not conform to Home Assistant documentation standards and
cause the docs builder to ignore the page. Rename all keys by removing the "ha_"
prefix and use the canonical names such as "iot_class", "config_flow", "domain",
"integration_type", and "platforms" to ensure the integration page is properly
recognized and included during the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-parent This PR has a parent PR in a other repo in-progress This PR/Issue is currently being worked on next This PR goes into the next branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant