Watch
1
0
Fork
You've already forked homeassistant-comelit
0
mirror of https://github.com/gicamm/homeassistant-comelit.git synced 2026-11-08 20:14:15 +00:00
No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giovanni Cammarata 34d070ab0f Reduce technical debt reported by SonarCloud
- Split Vedo polling and hub entity updates into smaller functions
- Use specific exceptions and logging.exception
- Remove empty update methods, unused code and stale TODOs
- Replace assert inside try with an explicit check
2026-11-03 09:52:29 +01:00
.devcontainer Update README and update devcontainer to support remote python debugging 2024-11-14 11:47:25 +01:00
.github Fix SonarCloud vulnerabilities and raise test coverage 2026-11-03 09:42:49 +01:00
custom_components/comelit Reduce technical debt reported by SonarCloud 2026-11-03 09:52:29 +01:00
debug Add instructions for debugging with MQTT 2024-05-04 18:17:11 +02:00
tests Reduce technical debt reported by SonarCloud 2026-11-03 09:52:29 +01: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 Fix SonarCloud vulnerabilities and raise test coverage 2026-11-03 09:42:49 +01:00
README.md Fix SonarCloud vulnerabilities and raise test coverage 2026-11-03 09:42:49 +01:00
sonar-project.properties Fix SonarCloud vulnerabilities and raise test coverage 2026-11-03 09:42:49 +01:00
uv.lock Fix SonarCloud vulnerabilities and raise test coverage 2026-11-03 09:42:49 +01: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. They are locked in uv.lock, so use uv:

uv sync --locked --group dev    # or --only-group lint / --only-group test

uv run ruff check .    # lint
uv run pytest          # tests + coverage (writes coverage.xml for Codecov)

After changing a dependency group in pyproject.toml, run uv lock and commit the updated uv.lock.