You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.bh1750.markdown
+31-21Lines changed: 31 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,25 @@
1
1
---
2
2
layout: page
3
3
title: "BH1750 Light sensor"
4
-
description: "Instructions how to integrate a BH1750 light sensor in a Raspberry PI into Home Assistant."
4
+
description: "Instructions how to integrate a BH1750 light sensor into Home Assistant."
5
5
date: 2017-06-10 00:00
6
6
sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
10
logo: raspberry-pi.png
11
11
ha_category: Sensor
12
-
ha_release: 0.47
12
+
ha_release: 0.48
13
13
ha_iot_class: "Local Push"
14
14
---
15
15
16
16
17
-
The `bh1750` sensor platform allows you to read the ambient light level in lux from a [BH1750FVI sensor](http://cpre.kmutnb.ac.th/esl/learning/bh1750-light-sensor/bh1750fvi-e_datasheet.pdf) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins) to your [Raspberry Pi](https://www.raspberrypi.org/). It allows you to use all the resolution modes of the sensor described in its datasheet.
17
+
The `bh1750` sensor platform allows you to read the ambient light level in lux from a [BH1750FVI sensor](http://cpre.kmutnb.ac.th/esl/learning/bh1750-light-sensor/bh1750fvi-e_datasheet.pdf) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins). It allows you to use all the resolution modes of the sensor described in its datasheet.
18
+
19
+
Tested devices:
20
+
21
+
-[Raspberry Pi](https://www.raspberrypi.org/)
22
+
18
23
19
24
To use your BH1750 sensor in your installation, add the following to your `configuration.yaml` file:
20
25
@@ -24,7 +29,19 @@ sensor:
24
29
- platform: BH1750
25
30
```
26
31
27
-
Or, if you want to specify the resolution mode of the digital sensor or need to change the default I2c address (which is 0x23), add more details to the yaml config.
32
+
Configuration variables:
33
+
34
+
- **name** (*Optional*): The name of the sensor
35
+
- **i2c_address** (*Optional*): I2c address of the sensor. It is 0x23 or 0x5C.
36
+
- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2 and 3.
37
+
- **operation_mode** (*Optional*): Working mode for the sensor. Defaults to `continuous_high_res_mode_1` for continuous measurement and 1 lx resolution.
38
+
- **measurement_delay_ms** (*Optional*): Delay time in ms for waiting the sensor to get the measure. Defaults to 120 ms.
39
+
- **multiplier** (*Optional*): Correction coefficient to multiply the measured light level. Value between 0.1 and 10. Default is 1.
40
+
41
+
42
+
## {% linkable_title Full Examples %}
43
+
44
+
If you want to specify the resolution mode of the digital sensor or need to change the default I2c address (which is 0x23), add more details to the `configuration.yaml` file.
28
45
29
46
The sensor can work with resolutions of 0.5 lx (high res mode 1), 1 lx (high res mode 2) or 4 lx (low res mode), and make measurements continuously or one time each call. To set any of these operation modes, select one of these combinations: `continuous_low_res_mode`, `continuous_high_res_mode_2`, `continuous_high_res_mode_1`, `one_time_high_res_mode_1`, `one_time_high_res_mode_2`, `one_time_low_res_mode`.
30
47
@@ -39,43 +56,36 @@ sensor:
39
56
scan_interval: 25
40
57
```
41
58
42
-
Configuration variables:
43
-
44
-
- **name** (*Optional*): The name of the sensor
45
-
- **i2c_address** (*Optional*): I2c address of the sensor. It is 0x23 or 0x5C.
46
-
- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2 and 3.
47
-
- **operation_mode** (*Optional*): Working mode for the sensor. Defaults to `continuous_high_res_mode_1` for continuous measurement and 1 lx resolution.
48
-
- **measurement_delay_ms** (*Optional*): Delay time in ms for waiting the sensor to get the measure. Defaults to 120 ms.
49
-
- **multiplier** (*Optional*): Correction coefficient to multiply the measured light level. Value between 0.1 and 10. Default is 1.
50
-
59
+
## {% linkable_title Directions for installing smbus support on Raspberry Pi %}
51
60
52
-
### Directions for installing smbus support on Raspberry Pi:
61
+
Enable I2c interface with the Raspberry Pi configuration utility:
53
62
54
-
Enable I2c interface with the Raspberry Pi config utility:
55
63
```bash
56
64
# pi user environment: Enable i2c interface
57
-
sudo raspi-config
65
+
$ sudo raspi-config
58
66
```
67
+
59
68
Select `Interfacing options->I2C` choose `<Yes>` and hit `Enter`, then go to `Finish` and you'll be prompted to reboot.
60
69
61
70
Install dependencies for use the `smbus-cffi` module and enable your _homeassistant_ user to join the _i2c_ group:
71
+
62
72
```bash
63
73
# pi user environment: Install i2c dependencies and utilities
Copy file name to clipboardExpand all lines: source/_components/sensor.bme280.markdown
+37-34Lines changed: 37 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,24 @@
1
1
---
2
2
layout: page
3
3
title: "BME280 Sensor"
4
-
description: "Instructions how to integrate a BME280 sensor in a Raspberry PI into Home Assistant."
4
+
description: "Instructions how to integrate a BME280 sensor into Home Assistant."
5
5
date: 2017-06-10 00:00
6
6
sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
10
logo: raspberry-pi.png
11
11
ha_category: Sensor
12
-
ha_release: 0.47
12
+
ha_release: 0.48
13
13
ha_iot_class: "Local Push"
14
14
---
15
15
16
16
17
-
The `bme280` sensor platform allows you to read temperature, humidity and pressure values of a [Bosch BME280 Environmental sensor](https://cdn-shop.adafruit.com/datasheets/BST-BME280_DS001-10.pdf) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins) to your [Raspberry Pi](https://www.raspberrypi.org/). It allows you to use all the operation modes of the sensor described in its datasheet.
17
+
The `bme280` sensor platform allows you to read temperature, humidity and pressure values of a [Bosch BME280 Environmental sensor](https://cdn-shop.adafruit.com/datasheets/BST-BME280_DS001-10.pdf) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins). It allows you to use all the operation modes of the sensor described in its datasheet.
18
+
19
+
Tested devices:
20
+
21
+
-[Raspberry Pi](https://www.raspberrypi.org/)
18
22
19
23
To use your BME280 sensor in your installation, add the following to your `configuration.yaml` file:
20
24
@@ -24,7 +28,23 @@ sensor:
24
28
- platform: bme280
25
29
```
26
30
27
-
Or, if you want to specify the working mode of the digital sensor or need to change the default I2c address (which is 0x76), add more details to the yaml config:
31
+
Configuration variables:
32
+
33
+
- **name** (*Optional*): The name of the sensor
34
+
- **i2c_address** (*Optional*): I2c address of the sensor. It is 0x76 or 0x77.
35
+
- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2 and 3.
36
+
- **operation_mode** (*Optional*): Power mode for the sensor. Use 2 for forced mode or 3 for normal mode. Defaults to normal mode.
37
+
- **time_standby** (*Optional*): Standby time in ms for normal mode of operation as described in the sensor datasheet. Defaults to 5 ms.
38
+
- **oversampling_temperature** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 1.
39
+
- **oversampling_pressure** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 1.
40
+
- **oversampling_humidity** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 1.
41
+
- **filter_mode** (*Optional*): IIR filter coeficient as described in the sensor datasheet. Default is 0, for filter off.
42
+
- **delta_temperature** (*Optional*): Absolute delta for temperature correction.
43
+
- **monitored_conditions** array (*Optional*): Conditions to monitor. Available conditions are *temperature*, *humidity* and *pressure*. By default all three are displayed.
44
+
45
+
## {% linkable_title Full Examples %}
46
+
47
+
If you want to specify the working mode of the digital sensor or need to change the default I2c address (which is 0x76), add more details to the `configuration.yaml` file:
28
48
29
49
```yaml
30
50
# Example of customized configuration.yaml entry
@@ -47,25 +67,9 @@ sensor:
47
67
48
68
This sensor is somehow famous for generating relatively high temperature measurements compared to other sensors (it looks like self-heating does not feel good for some encapsulations). If you experience this problem, you can define an absolute delta of temperature correction using a negative number.
49
69
50
-
Configuration variables:
51
-
52
-
- **name** (*Optional*): The name of the sensor
53
-
- **i2c_address** (*Optional*): I2c address of the sensor. It is 0x76 or 0x77.
54
-
- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2 and 3.
55
-
- **operation_mode** (*Optional*): Power mode for the sensor. Use 2 for forced mode or 3 for normal mode. Defaults to normal mode.
56
-
- **time_standby** (*Optional*): Standby time in ms for normal mode of operation as described in the sensor datasheet. Defaults to 5 ms.
57
-
- **oversampling_temperature** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 1.
58
-
- **oversampling_pressure** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 1.
59
-
- **oversampling_humidity** (*Optional*): Oversampling multiplier as described in the sensor datasheet. Can be 0 (no sampling), 1, 2, 4, 8, or 16. Default is 1.
60
-
- **filter_mode** (*Optional*): IIR filter coeficient as described in the sensor datasheet. Default is 0, for filter off.
61
-
- **delta_temperature** (*Optional*): Absolute delta for temperature correction.
62
-
- **monitored_conditions** array (*Optional*): Conditions to monitor. Available conditions are *temperature*, *humidity* and *pressure*. By default all three are displayed.
63
-
64
-
#### Customizing the sensor data
65
-
66
-
**Give the values friendly names & icons**
70
+
## {% linkable_title Customizing the sensor data %}
67
71
68
-
Add the following to your `customize`
72
+
Give the values friendly names and icons, add the following to your `customize:` section.
69
73
70
74
```yaml
71
75
# Example configuration.yaml entry
@@ -81,9 +85,7 @@ customize:
81
85
friendly_name: "Pressure"
82
86
```
83
87
84
-
**Create a group**
85
-
86
-
Add the following to your `groups`
88
+
To create a group, add the following to your `groups` section.
87
89
88
90
```yaml
89
91
# Example configuration.yaml entry
@@ -96,38 +98,39 @@ group:
96
98
- sensor.ambient_pressure
97
99
```
98
100
101
+
## {% linkable_title Directions for installing smbus support on Raspberry Pi %}
99
102
100
-
### Directions for installing smbus support on Raspberry Pi:
103
+
Enable I2c interface with the Raspberry Pi configuration utility:
101
104
102
-
Enable I2c interface with the Raspberry Pi config utility:
103
105
```bash
104
106
# pi user environment: Enable i2c interface
105
-
sudo raspi-config
107
+
$ sudo raspi-config
106
108
```
109
+
107
110
Select `Interfacing options->I2C` choose `<Yes>` and hit `Enter`, then go to `Finish` and you'll be prompted to reboot.
108
111
109
112
Install dependencies for use the `smbus-cffi` module and enable your _homeassistant_ user to join the _i2c_ group:
113
+
110
114
```bash
111
115
# pi user environment: Install i2c dependencies and utilities
Copy file name to clipboardExpand all lines: source/_components/sensor.htu21d.markdown
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,24 @@
1
1
---
2
2
layout: page
3
3
title: "HTU21D Temperature and humidity sensor"
4
-
description: "Instructions how to integrate a HTU21D Temperature and humidity sensor in a Raspberry PI into Home Assistant."
4
+
description: "Instructions how to integrate a HTU21D Temperature and humidity sensor into Home Assistant."
5
5
date: 2017-06-10 00:00
6
6
sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
10
logo: raspberry-pi.png
11
11
ha_category: Sensor
12
-
ha_release: 0.47
12
+
ha_release: 0.48
13
13
ha_iot_class: "Local Push"
14
14
---
15
15
16
16
17
-
The `htu21d` sensor platform allows you to read the temperature and humidity from a [HTU21D sensor](http://www.datasheetspdf.com/PDF/HTU21D/779951/1) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins) to your [Raspberry Pi](https://www.raspberrypi.org/).
17
+
The `htu21d` sensor platform allows you to read the temperature and humidity from a [HTU21D sensor](http://www.datasheetspdf.com/PDF/HTU21D/779951/1) connected via [I2c](https://en.wikipedia.org/wiki/I²C) bus (SDA, SCL pins).
18
+
19
+
Tested devices:
20
+
21
+
-[Raspberry Pi](https://www.raspberrypi.org/)
18
22
19
23
To use your HTU21D sensor in your installation, add the following to your `configuration.yaml` file:
20
24
@@ -29,11 +33,10 @@ Configuration variables:
29
33
- **name** (*Optional*): The name of the sensor
30
34
- **i2c_bus** (*Optional*): I2c bus where the sensor is. Defaults to 1, for Raspberry Pi 2 and 3.
31
35
32
-
#### Customizing the sensor data
33
36
34
-
**Give the values friendly names & icons**
37
+
## {% Customizing the sensor data %}
35
38
36
-
Add the following to your `customize`
39
+
Give the values friendly names and icons, add the following to your `customize:` section.
37
40
38
41
```yaml
39
42
# Example configuration.yaml entry
@@ -46,9 +49,7 @@ customize:
46
49
friendly_name: "Humidity"
47
50
```
48
51
49
-
**Create a group**
50
-
51
-
Add the following to your `groups`
52
+
To create a group, add the following to your `groups` section.
52
53
53
54
```yaml
54
55
# Example configuration.yaml entry
@@ -60,37 +61,39 @@ group:
60
61
- sensor.htu21d_sensor_humidity
61
62
```
62
63
63
-
### Directions for installing smbus support on Raspberry Pi:
64
+
## {% linkable_title Directions for installing smbus support on Raspberry Pi %}
65
+
66
+
Enable I2c interface with the Raspberry Pi configuration utility:
64
67
65
-
Enable I2c interface with the Raspberry Pi config utility:
66
68
```bash
67
69
# pi user environment: Enable i2c interface
68
-
sudo raspi-config
70
+
$ sudo raspi-config
69
71
```
72
+
70
73
Select `Interfacing options->I2C` choose `<Yes>` and hit `Enter`, then go to `Finish` and you'll be prompted to reboot.
71
74
72
75
Install dependencies for use the `smbus-cffi` module and enable your _homeassistant_ user to join the _i2c_ group:
76
+
73
77
```bash
74
78
# pi user environment: Install i2c dependencies and utilities
0 commit comments