Skip to content

Commit

Permalink
Merge pull request airalab#735 from tubleronchik/master
Browse files Browse the repository at this point in the history
fix the article name, fix code formatting
  • Loading branch information
tubleronchik authored Sep 25, 2023
2 parents c86246c + 9ef5807 commit 4624abd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 27 deletions.
2 changes: 1 addition & 1 deletion data/sidebar_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
link: /docs/how-to-update-collator-node-version
- title_en: How to Connect SDS011 Sensor
link: /docs/sds-sensor-connect
- title_en: Connect SDS011 Sensor to Home Assistant
- title_en: How to Add SDS011 Sensor to Home Assistant
link: /docs/sds-sensor-hass
#- title_en: Configure Metrics With Prometheus And Grafana
# link: /docs/robonomics-prometheus-grafana
Expand Down
66 changes: 40 additions & 26 deletions docs/sds-sensor-hass.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Connect SDS011 Sensor to Home Assistant
title: How to Add SDS011 Sensor to Home Assistant

contributors: [tubleronchik]
---
Expand All @@ -19,20 +19,32 @@ Once HACS is installed, navigate to HACS -> Integrations and search for the `Loc
### Option 2: Manual Installation

Under the homeassistant user, clone the project repository:
```
git clone https://github.com/lichtteil/local_luftdaten.git
```

<code-helper copy>

```shell
git clone https://github.com/lichtteil/local_luftdaten.git
```
</code-helper>

If you already have any custom integrations, copy the `custom_components/local_luftdaten/` to your `custom_components` directory, For example:
```
cd local_luftdaten
mv custom_components/local_luftdaten ~/.homeassistant/custom_components/
```

<code-helper copy>

```
cd local_luftdaten
mv custom_components/local_luftdaten ~/.homeassistant/custom_components/
```
</code-helper>
If you don't have any custom integrations, copy the whole `custom_components` directory to your Home Assistant configuration directory. For example:
```
cd local_luftdaten
mv custom_components/ ~/.homeassistant/
```
<code-helper copy>
```
cd local_luftdaten
mv custom_components/ ~/.homeassistant/
```
</code-helper>
## Configuration
Expand All @@ -45,20 +57,22 @@ Create a new sensor entry in your `configuration.yaml` and adjust the host name
|`name` | string | required | Name of the sensor
|`monitored_conditions` | list | required | List of the monitored sensors

```yaml
sensor:
- platform: local_luftdaten
host: 192.168.0.100
scan_interval: 150
name: Air quality sensor
monitored_conditions:
- SDS_P1
- SDS_P2
- HTU21D_temperature
- HTU21D_humidity
- signal
```
<code-helper copy>
```yaml
sensor:
- platform: local_luftdaten
host: 192.168.0.100
scan_interval: 150
name: Air quality sensor
monitored_conditions:
- SDS_P1
- SDS_P2
- HTU21D_temperature
- HTU21D_humidity
- signal
```
</code-helper>
> List of all supported sensors can be found in the [repository](https://github.com/lichtteil/local_luftdaten).
Expand Down

0 comments on commit 4624abd

Please sign in to comment.