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
New FUN Menu including Snake
Readme on how to add the OpenCO2-Sensor to Home Assistant. The hostname was changed to OpenCO2. This also enables http://openco2:9925
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,32 @@ The integrated, industry-leading humidity and temperature sensor offers high acc
29
29
30
30
For displaying the air quality as a traffic light (green, yellow, red, magenta). Brightness and color are adjustable via software.
31
31
32
+
# Home Assistant
33
+
34
+
Add this config to the `configuration.yaml` of your Home Assistant. Below Version 5.4 please change `OpenCO2` to the IP address.
35
+
```
36
+
rest:
37
+
scan_interval: 60
38
+
resource: http://OpenCO2:9925/metrics
39
+
method: GET
40
+
sensor:
41
+
- name: "CO2"
42
+
device_class: carbon_dioxide
43
+
unique_id: "d611314f-9010-4d0d-aa3b-37c7f350c82f"
44
+
value_template: >
45
+
{{ value | regex_findall_index("(?:rco2.*})(\d+)") }}
46
+
- name: "Temperature"
47
+
unique_id: "d611314f-9010-4d0d-aa3b-37c7f350c821"
48
+
device_class: temperature
49
+
value_template: >
50
+
{{ value | regex_findall_index("(?:atmp.*})((?:\d|\.)+)") }}
51
+
- name: "Humidity"
52
+
unique_id: "d611314f-9010-4d0d-aa3b-37c7f350c822"
53
+
device_class: humidity
54
+
value_template: >
55
+
{{ value | regex_findall_index("(?:rhum.*})((?:\d|\.)+)") }}
56
+
```
57
+
32
58
# 3D-printed housing
33
59
34
60
Size: 4.7 x 4.1 x 2.4 cm
@@ -51,10 +77,11 @@ Press the Menu button on the backside of the OpenCO2 Sensor. Select an option vi
51
77
52
78
# Wi-Fi
53
79
54
-
Enable Wi-Fi via the Menu button. When power is connected, an access point `OpenCO2 Sensor` is enabled. Connect to it and navigate to http://192.168.4.1 (it will open automatically on modern Smartphones). Insert your home Wi-Fi credentials under `Configure WiFi`. Choose your network name from the list in the top and insert the password. Click `Save`. The sensor will now be automatically connected. Navigate to IP:9925 to see current co2/temperature/humidity measurements.
80
+
Enable Wi-Fi via the Menu button. When power is connected, an access point `OpenCO2 Sensor` is enabled. Connect to it and navigate to http://192.168.4.1 (it will open automatically on modern Smartphones). Insert your home Wi-Fi credentials under `Configure WiFi`. Choose your network name from the list in the top and insert the password. Click `Save`. The sensor will now be automatically connected. Navigate to [openco2:9925](http://OpenCO2:9925) to see a graph of CO2, Temperature and Humidity measurements.
Connect the sensor to your Wi-Fi network and find out the IP of the sensor in your home network via the ui of your router or on the sensor itself via the button under Menu -> Info .
0 commit comments