{"id":29107415,"url":"https://github.com/squazel/homeassistant-fibaro-intercom","last_synced_at":"2026-04-27T00:31:56.863Z","repository":{"id":301431562,"uuid":"1008964715","full_name":"Squazel/homeassistant-fibaro-intercom","owner":"Squazel","description":"Home Assistant custom integration for Fibaro Intercom devices, enabling local control and monitoring through Home Assistant.","archived":false,"fork":false,"pushed_at":"2025-06-26T20:19:58.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T21:47:37.774Z","etag":null,"topics":["fibaro","hacs","home-assistant","integration","intercom"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Squazel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-26T11:13:01.000Z","updated_at":"2025-06-26T20:20:02.000Z","dependencies_parsed_at":"2025-06-26T21:47:42.286Z","dependency_job_id":"eb6c4b3d-4ddb-49dd-abfc-4f89121315be","html_url":"https://github.com/Squazel/homeassistant-fibaro-intercom","commit_stats":null,"previous_names":["squazel/homeassistant-fibaro-intercom"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Squazel/homeassistant-fibaro-intercom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Squazel%2Fhomeassistant-fibaro-intercom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Squazel%2Fhomeassistant-fibaro-intercom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Squazel%2Fhomeassistant-fibaro-intercom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Squazel%2Fhomeassistant-fibaro-intercom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Squazel","download_url":"https://codeload.github.com/Squazel/homeassistant-fibaro-intercom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Squazel%2Fhomeassistant-fibaro-intercom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262539066,"owners_count":23325831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fibaro","hacs","home-assistant","integration","intercom"],"created_at":"2025-06-29T05:02:47.920Z","updated_at":"2026-04-27T00:31:56.855Z","avatar_url":"https://github.com/Squazel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FIBARO Intercom Integration for Home Assistant\n\n[![Code Quality](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/quality.yml/badge.svg)](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/quality.yml)\n[![Tests](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/tests.yml/badge.svg)](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/tests.yml)\n[![HACS](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/hacs.yml/badge.svg)](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/hacs.yml)\n[![hassfest](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/hassfest.yml/badge.svg)](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/hassfest.yml)\n[![CodeQL](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/codeql.yml/badge.svg)](https://github.com/Squazel/homeassistant-fibaro-intercom/actions/workflows/codeql.yml)\n\nA custom Home Assistant integration for controlling and monitoring FIBARO Intercom devices over their JSON-RPC 2.0 WebSocket API with reliable call detection and relay control capabilities.\n\n## Features\n\n- **Real-time Connection**: Persistent WebSocket connection with automatic reconnection and native keepalive\n- **Relay Control**: Open door/gate relays with optional timeout\n- **Doorbell Monitoring**: Real-time doorbell press detection to trigger automations\n- **Camera Integration**: Access to live video stream and still images\n- **Event Handling**: Home Assistant events for doorbell presses and relay events\n- **Custom Lovelace Card**: Unified dashboard card with camera and controls\n- **Robust Error Handling**: Comprehensive error handling and logging\n\n## Installation\n\n### HACS (Recommended)\n\n1. Open HACS in Home Assistant\n2. Go to \"Integrations\"\n3. Click the three dots in the top right corner\n4. Select \"Custom repositories\"\n5. Add this repository URL: `https://github.com/Squazel/homeassistant-fibaro-intercom`\n6. Select \"Integration\" as the category\n7. Click \"Add\" and close the dialog\n8. Locate Fibaro Intercom in the list of repositories and Download it\n9. Restart Home Assistant\n\n### Manual Installation\n\n1. Copy the `custom_components/fibaro_intercom` folder to your Home Assistant `custom_components` directory\n2. Restart Home Assistant\n\n## Configuration\n\n### Via UI\n\n1. Go to Settings → Devices \u0026 Services → Integrations\n2. Click \"Add Integration\"\n3. Search for \"FIBARO Intercom\"\n4. Enter your intercom details:\n   - **Host**: IP address or hostname\n   - **Username**: Local account username\n   - **Password**: Local account password\n\nNote: The integration uses the standard FIBARO Intercom WebSocket port (8081) and cannot be changed.\n\n### Configuration Options\n\nAfter setup, you can modify these options:\n- Credentials (username/password)\n- Camera stream URLs\n\n## Entities Created\n\n### Binary Sensors\n- **FIBARO Intercom Connection Status**: Shows if the integration is connected to the intercom (WebSocket connection status)\n- **FIBARO Intercom Relay 0**: Shows the state of the first relay (on = relay is open/activated)\n- **FIBARO Intercom Relay 1**: Shows the state of the second relay (on = relay is open/activated)\n\n### Camera\n- **FIBARO Intercom Camera**: Real-time video feed from the intercom camera\n- **Still Images**: Snapshot capability\n\n### Device Triggers\n- **Doorbell Pressed**: Fires when the doorbell button is pressed (recommended for automations)\n\n## Custom Lovelace Card\n\nThe integration includes a custom Lovelace card that provides a unified interface for your intercom. The card combines camera viewing with relay controls in a single, easy-to-use dashboard widget.\n\n### Card Setup\n\n**Automatic Setup (Default):**\nThe custom card is automatically available after installing the integration. The integration registers the frontend resources automatically, so you can immediately:\n\n1. Go to your dashboard and click \"Add Card\"\n2. Search for \"FIBARO\" or look for \"Custom: FIBARO Intercom Card\"\n3. Configure the card with your entities\n\n**Manual Setup (Alternative):**\nIf you prefer manual installation or encounter issues:\n\n1. **Add the resource manually:**\n   - Go to Settings → Dashboards → Resources\n   - Click \"Add Resource\"\n   - URL: `/fibaro_intercom/fibaro-intercom-card.js` (if using the integration's path)\n   - Or URL: `/local/fibaro-intercom-card.js` (if copied to www folder)\n   - Resource type: JavaScript Module\n   - Click \"Create\"\n\n2. **Use the card:**\n   - Restart Home Assistant and clear browser cache\n   - Go to your dashboard and click \"Add Card\"\n   - Search for \"FIBARO\" or look for \"Custom: FIBARO Intercom Card\"\n\n**Quick Configuration:**\n```yaml\ntype: custom:fibaro-intercom-card\ncamera_entity: camera.fibaro_intercom_camera\nrelay_0_entity: binary_sensor.fibaro_intercom_relay_0\nrelay_1_entity: binary_sensor.fibaro_intercom_relay_1\nconnection_status_entity: binary_sensor.fibaro_intercom_connection_status\n```\n\nFor complete card documentation, configuration options, and examples, see [`custom_components/fibaro_intercom/frontend/README.md`](custom_components/fibaro_intercom/frontend/README.md).\n\n## Services\n\n### `fibaro_intercom.open_relay`\n\nOpens a relay for a specified duration.\n\n**Parameters:**\n- `relay` (required): Relay number (0 or 1)\n- `timeout` (optional): Duration in milliseconds (250-30000ms)\n\n**Example:**\n```yaml\nservice: fibaro_intercom.open_relay\ndata:\n  relay: 0\n  timeout: 5000\n```\n\n## Events\n\n### `fibaro_intercom.doorbell_pressed`\n\nFired when the doorbell button is pressed. This event triggers device triggers for easy automation setup.\n\n**Event Data:**\n- `button`: Button number that was pressed\n- `device_id`: Device ID for the intercom\n\n**Example Automation (using Device Trigger):**\n```yaml\nautomation:\n  - alias: \"Doorbell Notification\"\n    trigger:\n      platform: device\n      device_id: [your_device_id]\n      domain: fibaro_intercom\n      type: doorbell_pressed\n    action:\n      service: notify.mobile_app_your_phone\n      data:\n        message: \"Someone is at the door!\"\n```\n\n**Alternative (using Event Trigger):**\n```yaml\nautomation:\n  - alias: \"Doorbell Notification\"\n    trigger:\n      platform: event\n      event_type: fibaro_intercom.doorbell_pressed\n    action:\n      service: notify.mobile_app_your_phone\n      data:\n        message: \"Someone is at the door!\"\n```\n\n## API Reference\n\nThe integration communicates with the FIBARO Intercom using JSON-RPC 2.0 over WebSocket.\n\nFor complete API documentation, see the [FIBARO Intercom API Reference](https://manuals.fibaro.com/knowledge-base-browse/intercom-api/).\n\n### WebSocket Endpoint\n```\nwss://\u003cIP_ADDRESS\u003e:8081/wsock\n```\n\nNote: The integration uses the standard FIBARO Intercom WebSocket port (8081) and maintains a persistent connection with automatic reconnection and native WebSocket keepalive for maximum reliability.\n\n### Authentication\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"com.fibaro.intercom.account.login\",\n  \"params\": {\n    \"user\": \"\u003cUSERNAME\u003e\",\n    \"pass\": \"\u003cPASSWORD\u003e\"\n  }\n}\n```\n\n### Relay Control\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 2,\n  \"method\": \"com.fibaro.intercom.relay.open\",\n  \"params\": {\n    \"token\": \"\u003cTOKEN\u003e\",\n    \"relay\": 0,\n    \"timeout\": 5000\n  }\n}\n```\n\n## Troubleshooting\n\n### Connection Issues\n\n1. **Check Network Connectivity**: Ensure Home Assistant can reach the intercom\n2. **Verify Credentials**: Confirm username/password are correct\n3. **Check Integration Status**: Verify the integration shows as \"Connected\" in Settings → Devices \u0026 Services\n4. **Review Logs**: Check Home Assistant logs for WebSocket connection errors\n\n### Testing Connection\n\nA test script is provided to diagnose connection issues independently of Home Assistant:\n\n**Using Environment Variables (Recommended):**\n```powershell\n# Windows PowerShell\n$env:FIBARO_HOST='192.168.1.100'\n$env:FIBARO_USERNAME='admin'\n$env:FIBARO_PASSWORD='your_password'\npython tests/test_connection.py\n```\n\n```bash\n# Linux/macOS\nexport FIBARO_HOST='192.168.1.100'\nexport FIBARO_USERNAME='admin'\nexport FIBARO_PASSWORD='your_password'\npython tests/test_connection.py\n```\n\n**Alternative:** Edit the script directly and replace the placeholder values with your intercom details.\n\nThe test script will:\n- ✅ Test WebSocket connectivity\n- ✅ Verify authentication\n- ✅ Provide detailed error messages\n- ✅ Confirm the integration should work\n\n### Debugging\n\nEnable debug logging by adding to your `configuration.yaml`:\n\n```yaml\nlogger:\n  logs:\n    custom_components.fibaro_intercom: debug\n```\n\n### Common Issues\n\n- **Authentication Failed**: Check username/password and ensure local account is enabled\n- **Connection Refused**: Verify the intercom IP address and port\n- **Camera Not Working**: Check camera URLs and authentication\n\n## Development\n\nFor development setup, testing, and contributing guidelines, see [tests/README.md](tests/README.md).\nFor project structure and documentation overview, see [PROJECT.md](PROJECT.md).\n\n**Quick start for developers:**\n```bash\ngit clone https://github.com/Squazel/homeassistant-fibaro-intercom.git\ncd homeassistant-fibaro-intercom\n\n# One-command setup\npython hass-dev.py setup\n\n# Development workflow:\npython hass-dev.py quality    # Quick format + lint check (no tests)\npython hass-dev.py check      # Full check including tests\npython hass-dev.py test       # Run tests only\npython hass-dev.py format     # Format code only\n```\n\n**Modern Development Stack:**\n- **Centralized Commands**: All development tools call `tools/commands.py` for consistency\n- **Ruff**: Ultra-fast linter and formatter (replaces flake8 + isort + black)\n- **Separate CI Workflows**: Code quality and tests run independently\n- **Pre-commit Integration**: Automatic code quality checks on commit\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests for new functionality\n5. Ensure all tests pass\n6. Submit a pull request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\n\n- **Issues**: [GitHub Issues](https://github.com/Squazel/homeassistant-fibaro-intercom/issues)\n- **Documentation**: This README and [tests/README.md](tests/README.md) for development\n- **Home Assistant Community**: [Community Forum](https://community.home-assistant.io/)\n- **FIBARO API Reference**: [Official API Documentation](https://manuals.fibaro.com/knowledge-base-browse/intercom-api/)\n\n## Version\n\n**v1.0.0** - Initial release with WebSocket connection, relay control, doorbell monitoring, camera integration, and configuration flow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquazel%2Fhomeassistant-fibaro-intercom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquazel%2Fhomeassistant-fibaro-intercom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquazel%2Fhomeassistant-fibaro-intercom/lists"}