Skip to main content

No project description provided

Project description

hass-inspirair

GitHub CI

python python python python

pre-commit

A python application that connects to the ventilation system InspirAir® Home from Aldes via ModBus and exposes it as a device for Home Assistant .

Schematics of dataflow
graph LR
    P(hass-inspirair) <-- MQTT --> M(MQTT Broker)
    I[InspirAir Home] <-- ModBus --> P
    HM(Home Assistant \n MQTT Integration) <--MQTT--> M
    H[Home Assistant] <----> HM

Only the ventilation mode is currently writable. However, it takes some time before the value changes after a write command. Since the register will stay at its previous value until the target state is reached.

Following features are implemented:

1. Register after starting up
sequenceDiagram
    participant H as Home Assistant(MQTT)
    participant L as hass-inspirair
    participant I as InspirAir
    
    
    L->>+I: read_holding_registers
    activate L
    L-->>L: creat config
    
    L->>-H: register <prefix>/<sensor_type>/<object_id>/<device_serial>/config
2. Continues updates
sequenceDiagram

    participant H as Home Assistant(MQTT)
    participant L as hass-inspirair
    participant I as InspirAir


    L->>I: read_holding_registers
    activate L
    L->>L: parse result
    L->>H: publish <prefix>/climate/<device_serial>/state
    L->>L: sleep for <polling interval>
    deactivate L
3. React on Home Assistant Inputs
sequenceDiagram
    participant H as Home Assistant(MQTT)
    participant L as hass-inspirair
    participant I as InspirAir

    H->>L: publish "<prefix>/select/<object_id>/<device_serial>/set"
     activate L
    L->>I: write_registers
    L->>I: read_holding_registers

    L->>L: parse result
    L->>H: publish <prefix>/climate/<device_serial>/state
    deactivate L
4. React on Home Assistant MQTT lifecycle events
sequenceDiagram

    participant H as Home Assistant(MQTT)
    participant L as hass-inspirair
    participant I as InspirAir

    H->>L: publish "<prefix>/status" payload: "online"
    activate L
    L->>+I: read_holding_registers

    L-->>L: creat config

    L->>-H: register <prefix>/<sensor_type>/<object_id>/<device_serial>/config
5. Multilanguage Support Default language is german, however, an english translation is available.

Supported Models

In theory this application should work with any InspirAir® Home Ventilation system.

Currently, only the following was actually tested:

  • InspirAIR Home SC 370

Usage

Configure a config.ini file based on your requirements (or use environment variables) . See config.ini for configuration options which can also be set via environment variables Config Values.

pip intall hass-inspirair
ha-inspirair -c ./config.ini

For are more exhaustive usage tutorial see docs/tutorial/index.md.

Simulator/Testing

The compose stack includes a simulator that exposes the relevante registers via Modbus-TCP. The presented values are a pure mock. However, this stack can be used to try out the behavior of the MQTT discovery.

  1. Run docker-compose up
  2. goto http://localhost:8123
  3. Setup a user
  4. Add the MQTT Integration (host=mqtt, no further credentials)
  5. A device should show up

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hass_inspirair-0.6.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

hass_inspirair-0.6.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file hass_inspirair-0.6.0.tar.gz.

File metadata

  • Download URL: hass_inspirair-0.6.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hass_inspirair-0.6.0.tar.gz
Algorithm Hash digest
SHA256 cead4fc2aa4cc2ec4efecddbf4302002e7bd7ed674c49f5b6b877d11d61fc28b
MD5 a7e2f6997e4b0a5cc1b812600a3fbef7
BLAKE2b-256 d0c7af0df80b5328de3df4093fd1ffd515860814e7a35e39ee47977dadf29b18

See more details on using hashes here.

Provenance

The following attestation bundles were made for hass_inspirair-0.6.0.tar.gz:

Publisher: pypi.yaml on The-Smartest-Home/hass_inspirair

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hass_inspirair-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: hass_inspirair-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hass_inspirair-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d910b863a0e2d6eb799cc4f0811b0fc551379adf98f817d105f95bbba5e9ff5
MD5 971eeaaa06022d5ae1f1fc089b7cc83d
BLAKE2b-256 21aa1aa5ea4752648fab585f52bf82640c6e36d5a32f0ecb87657273e8407c35

See more details on using hashes here.

Provenance

The following attestation bundles were made for hass_inspirair-0.6.0-py3-none-any.whl:

Publisher: pypi.yaml on The-Smartest-Home/hass_inspirair

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page