Watch
1
0
Fork
You've already forked homeassistant-comelit
0
mirror of https://github.com/gicamm/homeassistant-comelit.git synced 2026-09-20 06:15:03 +00:00
No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giovanni Cammarata d863a43ade Add the pyproject.
Enforce ruff format in CI.
Add a formatting check to the lint job .
Add dependabot.
2026-09-15 07:31:05 +02:00
.devcontainer Update README and update devcontainer to support remote python debugging 2024-11-14 11:47:25 +01:00
.github Add the pyproject. 2026-09-15 07:31:05 +02:00
custom_components/comelit Add the pyproject. 2026-09-15 07:31:05 +02:00
debug Add instructions for debugging with MQTT 2024-05-04 18:17:11 +02:00
tests Add the pyproject. 2026-09-15 07:31:05 +02:00
.git-blame-ignore-revs Add the pyproject. 2026-09-15 07:31:05 +02:00
.gitignore Integrate the coverage in sonarqube. 2026-08-26 20:18:12 +02:00
configuration.yaml Add the support for vedo binary sensors 2024-06-03 10:14:43 +02:00
hacs.json Integrate HACS 2023-02-12 19:18:06 +01:00
LICENSE Add support to Comelit Hub 2021-07-25 08:36:41 +02:00
pyproject.toml Add the pyproject. 2026-09-15 07:31:05 +02:00
README.md Add the pyproject. 2026-09-15 07:31:05 +02:00
sonar-project.properties Integrate the coverage in sonarqube. 2026-08-26 20:18:12 +02:00

Comelit SimpleHome and Comelit Vedo integration for Home Assistant

GitHub Release GitHub Release Test Coverage Quality Gate Status Code Smells Technical Debt Maintainability Rating Vulnerabilities SonarQube Cloud License Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Comelit SimpleHome and Comelit Vedo integration lets you connect your Home Assistant instance to Comelit Simple Home and Vedo systems.

For more information, see the Wiki.

Installation

  • Install using HACS ( Or copy the contents of custom_components/comelit/ to <your config dir>/custom_components/comelit/.)
  • Add the following to your <your config dir>/configuration.yaml file:
# Comelit Hub/Vedo
comelit:
  hub:
    host: HUB IP ADDRES
    port: 1883
    mqtt-user: hsrv-user
    mqtt-password: sf1nE9bjPc
    username: 'HUB USER'
    password: 'HUB PASSWORD'
    serial: HUB SERIAL
    client: homeassistant
    scan_interval: 2
  vedo:
    host: VEDO IP ADDRESS
    port: 80
    password: 'VEDO PASSWORD'
    scan_interval: 30

  • Restart Home Assistant

How to find the hub serial?

Comelit app

  • Open the Comelit app
  • Scan for a new hub device (Or if it's already added to the app, check in 'Manage Devices' -> Comelit Hub -> Network Configuration -> ID)
  • Copy the serial (Hub MAC Address) (remove all symbols and hsrv prefix, i.e. "HSRV 00:25:29:17:2D:C2" -> "002529172DC2")

For more information, see the Wiki.

Supported features

  • Lights
  • Shutters
  • Energy Production
  • Energy Consumption
  • Clima
  • Temperature/Humidity
  • Automation
  • Scenario
  • Alarm

The integration also exports the alarm sensor as a presence detector. It allows presence-based lights, scenes, and so on.

Comelit scenario

The integration supports the comelit scenario. It exports the scenario as a scene. A scene can be useful for exporting some VIP features (such as opening the door) which, otherwise, cannot be fully reachable through the Hub.

Lovelace example

Below is an example with lovelace:

- type: entities
  title: Test
  entities:

# lights
  - entity: light.comelit_light_garage
    name: Garage
  - entity: light.comelit_light_bathroom
    name: Bathroom

# power
  - entity: sensor.comelit_power_prod_ftv
    name: Production
  - entity: sensor.comelit_power_cons
    name: Consume

    # door lock
  - entity: scene.comelit_doorlock
    name: Door lock
    icon: mdi:key

    # switch
  - entity: switch.comelit_switch1
    name: Switch1

    # clima
  - entity: climate.comelit_bathroom
    name: Bathroom
  - entity: climate.comelit_living
    name: Living

    # humidity
  - entity: sensor.comelit_humidity_bathroom
    name: Bathroom
  - entity: sensor.comelit_humidity_living
    name: Living

    # temperature
  - entity: sensor.comelit_temperature_bathroom
    name: Bathroom
  - entity: sensor.comelit_temperature_living
    name: Living

    # shutters
  - entity: cover.comelit_living
    name: Living
  - entity: cover.comelit_kitchen_sx
    name: Kitchen

    # vedo Alarm
  - entity: binary_sensor.comelit_vedo_garage
    name: Garage
  - entity: alarm_control_panel.comelit_vedo_garage
    name: Garage

Development

All development tooling (dependency groups, ruff, pytest and coverage) is configured in pyproject.toml. Home Assistant itself is only a test dependency; the integration's runtime requirements live in custom_components/comelit/manifest.json.

This repository is not a pip-installable package: pip install . will not work and is not meant to. Install the development dependency groups instead.

Home Assistant 2025.4.x needs Python 3.13 (its dependencies have no wheels for 3.14 yet), so pin the interpreter when creating the virtualenv:

python3.13 -m venv venv                # or: uv venv --python 3.13 venv
source venv/bin/activate
python3 -m pip install --upgrade pip   # `--group` needs pip >= 25.1
python3 -m pip install --group dev     # or --group lint / --group test

ruff check .    # lint
pytest          # tests + coverage (writes coverage.xml for SonarCloud/Codecov)