百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

ajax-security-hass

> 安全
开源

Ajax 安全系统的 Home Assistant 集成

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Ajax 安全系统的 Home Assistant 集成

Ajax Security System Integration for Home Assistant

Full-featured Home Assistant integration for Ajax Security Systems.


[!CAUTION]

Proxy Mode Security

When using a proxy, the proxy administrator can see all API requests/responses and your credentials hash. This means the proxy can impersonate you with the Ajax API. For a detailed threat model analysis, see Issue #47. For security considerations, see Security & Privacy.


[!NOTE]

About This Integration

This is NOT an official Ajax Systems addon. It is a community-developed integration created in collaboration with Ajax Systems.

Special thanks to Ajax Systems for their support and assistance during development. Their help made this integration possible!


[!WARNING]

Prerequisites - API Access Required

This integration requires API credentials that are not publicly available.

To use this integration, you need one of the following:

  • An enterprise API key from Ajax Systems (Direct mode) - available through Ajax partnership program
  • Access to a community proxy server (Proxy mode) - no public proxy currently available

⚠️ Regular users without API access cannot use this integration at this time. Self-hosting a proxy is not possible without Ajax API credentials.

For discussions and updates, join the community: HACF Forum


[!WARNING]

Real-Time Events Only When Armed

Due to Ajax Systems architecture, real-time events (SSE/SQS) are only received when the system is armed. When disarmed, the integration uses polling (30s for sensors, 5s for door sensors). This is an Ajax API limitation.


⚠️ Project Status & Community

This integration is actively developed but I'm just getting started with Ajax security systems. I currently own and test with:

  • ✅ Hub 2 Plus
  • ✅ MotionCam (Motion detector with photo capture)
  • ✅ DoorProtect Plus (Door/window contact sensor)
  • ✅ GlassProtect (Glass break detector)
  • ✅ HomeSiren (Indoor siren)
  • ✅ Socket (Smart plug with energy monitoring)
  • ✅ Button (Panic/smart button)

Users tested:

  • ✅ Superior Hub Hybrid 4G
  • ✅ KeyPad TouchScreen Jeweller (limited info available from API)
  • ✅ Superior DoorProtect Plus Jeweller
  • ✅ FireProtect 2 RB (Heat/Smoke/CO Jeweller)
  • ✅ Superior HomeSiren Jeweller
  • ✅ ReX 2 Jeweller (Range extender)
  • ✅ StreetSiren Jeweller
  • ✅ Superior MotionCam (PhOD) Jeweller
  • ✅ MultiTransmitter Fibra (with wire input support)
  • ✅ LeaksProtect (Flood detector)
  • ✅ LightSwitch (1-gang and 2-gang)
  • ✅ TurretCam / BulletCam / MiniDome (Video Edge cameras with RTSP)
  • ✅ Doorbell (Ajax doorbell)

Since I don't have access to all Ajax devices, I cannot test every device type.

** Community Help Needed**: If you own other Ajax devices and want to help test and improve this integration, your contributions would be greatly appreciated! Together we can make this the best Ajax integration for Home Assistant.

Issues, pull requests, and feedback are welcome!

✨ Key Features

Real-Time Synchronization (Optional)

  • Real-time security events - Arm/disarm, alarms, and intrusions in Note: No API key required for end users, but requires access to a community proxy server. No public proxy is currently available - check the HACF Forum for updates.

⚠️ User accounts only: This integration only supports user accounts. PRO/Enterprise accounts are not supported.

Direct Mode (Enterprise API key only)

Direct connection to the Ajax API. Requires an enterprise API key from Ajax Systems.

  • API Key: Your enterprise API key from Ajax Systems
  • Email: Your Ajax account email
  • Password: Your Ajax account password
  • TOTP Secret (optional): Base32 two-factor secret from your Ajax account. Required if two-factor authentication is enabled on the account (Ajax made 2FA mandatory on 2025-09-01)
  • AWS Credentials (optional): For real-time event notifications via SQS

Note: Enterprise API keys are only available through Ajax Systems partnership program.

Optional: Real-Time Events

SSE (Proxy Mode)

In proxy mode, real-time events are automatically received via Server-Sent Events (SSE). No additional configuration required.

AWS SQS (Direct Mode)

For instant updates ( [!WARNING]

Due to Ajax Systems architecture, real-time events (SSE/SQS) are only received when the system is armed.

When disarmed, Ajax does not send real-time events - this is an Ajax API limitation, not the integration.

  • Motion and door events are not sent to SQS/SSE
  • The integration uses fast polling (5 seconds) for door sensors
  • Motion sensors fall back to standard polling (30 seconds)

Exception: Sensors with "Always Active" mode enabled will send real-time events even when disarmed.

Options (after setup)

Go to the integration options to configure:

  • Persistent Notifications: Show notifications in Home Assistant UI
  • Notification Filter: Choose which notifications to display
  • Monitored Spaces: Select which hubs/spaces to monitor

Security & Privacy

Credential Storage

  • Local storage only: Credentials are stored in Home Assistant's encrypted config entry system

Authentication Process

  1. Password hashing: Your password is hashed using SHA-256 before transmission
  2. Two-factor authentication: If your Ajax account has 2FA enabled, the integration generates the TOTP code locally from the secret you provide — the secret itself never leaves your Home Assistant instance and is redacted from diagnostics
  3. Secure communication: All API communication uses HTTPS (TLS/SSL)
  4. Session tokens: Tokens are stored locally and refreshed automatically

Direct Mode

  • No third parties: The integration communicates directly with Ajax servers
  • End-to-end encrypted communication between your Home Assistant and Ajax

Proxy Mode

When using a proxy, the proxy administrator can see:

  • All API requests and responses (alarm state, arm/disarm actions, device status)
  • Your email address

Important: This integration does not manage any proxy server. For security and trust considerations, contact the person or organization providing your proxy access.

What the Developer Cannot Access

  • ❌ I (the developer) cannot access your credentials
  • ❌ No analytics, telemetry, or tracking
  • ❌ No data collection of any kind
  • ✅ Fully open source - you can audit the code yourself

Usage

Security Control

Use the Alarm Control Panel entity to control your security system:

yaml
# Example automation: Arm when leaving home
automation:
  - alias: "Arm Ajax when leaving"
    trigger:
      - platform: state
        entity_id: person.your_name
        to: "not_home"
    action:
      - service: alarm_control_panel.alarm_arm_away
        target:
          entity_id: alarm_control_panel.ajax_alarm_home

Force Arming

Use force arming to arm the system even with open sensors:

yaml
# Force arm (away)
service: ajax.force_arm
target:
  entity_id: alarm_control_panel.ajax_alarm_home

# Force arm night mode
service: ajax.force_arm_night
target:
  entity_id: alarm_control_panel.ajax_alarm_home

⚠️ Warning: Force arming ignores open sensors and system problems. Use with caution.

Panic Button

yaml
# Trigger emergency alarm
service: button.press
target:
  entity_id: button.ajax_panic_home

⚠️ Warning: The panic button triggers a real emergency alarm.

Device Information Report

Generate a diagnostic report to help improve the integration:

yaml
service: ajax.generate_device_info

This creates an anonymized JSON file with device information (no sensitive data included).

How It Works (Data Update)

The integration combines push and adaptive polling so the UI stays in sync without hammering the Ajax cloud:

Mode Push channel REST polling Notes
Armed SSE (proxy) or AWS SQS (direct) 30 s Real-time events arrive in SQS (direct)

Troubleshooting

Authentication Errors

The integration provides specific error messages to help diagnose login issues:

Error Cause Solution
Invalid API key API key is missing or incorrect Check your enterprise API key
Invalid email or password Wrong credentials Verify your Ajax account email and password
Account type not supported Using a PRO/Enterprise account Use a standard user account instead

Integration not loading

  1. Check Home Assistant logs for errors
  2. Verify your Ajax credentials are correct
  3. Ensure you have an active internet connection
  4. Make sure you're using a user account (not PRO/Enterprise)

Real-time updates not working

  1. Verify AWS SQS credentials are configured correctly
  2. Check that the queue name matches exactly
  3. Review logs for SQS connection errors

Devices not appearing

  1. Wait for initial sync to complete (up to 30 seconds)
  2. Check that devices are visible in the Ajax app
  3. Try reloading the integration

Debug Logging

yaml
logger:
  default: info
  logs:
    custom_components.ajax: debug

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

If you have Ajax devices that aren't tested yet, your help would be invaluable in improving device support.

Development Process

This integration is developed through a collaborative approach:

  • Human expertise - Architecture, security decisions, and code review by @foXaCe
  • AI assistance - Code generation using Claude (Anthropic)
  • Community contributions - Bug reports, testing, and feature requests

All code is reviewed, tested with real hardware, and open source.

License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Disclaimer

This integration is not officially affiliated with Ajax Systems. It is a community project developed with support from Ajax Systems.

Use at your own risk. The developer is not responsible for any issues arising from the use of this integration.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonajax-securitycustom-componenthacshome-assistant

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.