This custom component for Home Assistant integrates your own Ecocity Airhome sensor (air quality/particle sensor).
If you use HACS you can install and update this component.
- Go into HACS -> CUSTOM REPOSITORIES and add url: https://github.com/mykhailog/local_ecocity_airhome with type "integration"
- Go to integration, search "airhome" and click Install.
Download and unzip or clone this repository and copy custom_components/local_ecocity_airhome/
to your configuration directory of Home Assistant, e.g. ~/.homeassistant/custom_components/
.
In the end your file structure should look like that:
~/.homeassistant/custom_components/local_ecocity_airhome/__init__.py
~/.homeassistant/custom_components/local_ecocity_airhome/manifest.json
~/.homeassistant/custom_components/local_ecocity_airhome/sensor.py
Create a new sensor entry in your configuration.yaml
and adjust the host name or the ip address.
sensor:
- platform: local_ecocity_airhome
host: 192.168.0.123
name: AirHome
monitored_conditions:
- BME280_temperature
- BME280_humidity
- BME280_pressure
- PMS_P0
- PMS_P1
- PMS_P2
- CO2
Following sensor data can be read:
- BME280_temperature
- BME280_humidity
- BME280_pressure
- CO2
- PMS_P0
- PMS_P1
- PMS_P2
Sensor type signal
gives the wifi signal strength of the sensor device.
Use Template Sensors to round the values or to give them a offset.
sensor:
- platform: template
sensors:
temperature:
value_template: '{{ (states("sensor.airhome_temperature") | float) | round(1) - 2}}'
friendly_name: 'Temperature'
unit_of_measurement: '°C'