Let's add to our room sensor - Part 3 - eCO2 and TVOC

Home Automator
2 Apr 202432:06

Summary

TLDRIn this home automation tutorial, Pascal introduces viewers to the SGP30 air quality sensor, part of a multi-sensor series. He explains the importance of monitoring CO2 and TVOC levels for health and comfort, detailing the setup process, integration with Home Assistant, and coding for ESPHome. The tutorial also covers the significance of different CO2 levels and provides an introduction to the CCS811 sensor. Pascal thanks his supporters and invites viewers to follow along on GitHub and Patreon for more information.

Takeaways

  • πŸ˜€ The tutorial is part of a series on home automation and introduces the SGP30 air quality sensor for monitoring eco2 and TVOC levels.
  • πŸ” The video includes chapters for easy navigation and is designed to help viewers skip to specific sections of interest.
  • πŸ“š For beginners, the tutorial suggests starting with the first video in the series that explains setting up an ESP32.
  • πŸ’» The tutorial assumes viewers have access to Home Assistant software and provides a link for those who need to install it.
  • πŸ™ The presenter expresses gratitude to contributors and viewers, highlighting the importance of community support for channel growth.
  • 🌿 The importance of monitoring eco2 and TVOC is emphasized for health and virus transmission mitigation, especially in indoor environments.
  • πŸ›  The SGP30 sensor is introduced as a digital multi-pixel gas sensor with a focus on its capabilities and compact design.
  • πŸ”Œ The tutorial covers the hardware setup, including how to connect the SGP30 sensor to the ESP32 using I2C communication.
  • πŸ“ The video provides a step-by-step guide on integrating the SGP30 sensor with the ESP32, including code snippets and explanations.
  • πŸ“ˆ The presenter discusses the significance of eco2 and TVOC levels, explaining the health implications of different concentration ranges.
  • 🎨 The tutorial concludes with a demonstration of how to visualize eco2 and TVOC data using the Horseshoe card in Home Assistant.

Q & A

  • What is the purpose of this tutorial?

    -The purpose of this tutorial is to guide viewers on how to integrate an air quality sensor, specifically the sgp30, into their home automation system to monitor indoor air quality.

  • What is the significance of monitoring eCO2 and TVOC levels?

    -Monitoring eCO2 (carbon dioxide) and TVOC (total volatile organic compounds) levels is crucial for indoor air quality and health. High CO2 levels can indicate poor ventilation, which can lead to a concentration of viral particles and affect cognitive performance. TVOC monitoring helps identify sources of harmful emissions and take necessary actions to improve air quality.

  • What are the potential health impacts of high CO2 levels?

    -High CO2 levels can lead to dryness, reduced cognitive performance, headaches, and decreased concentration. In extreme cases, levels above 5,000 ppm can cause oxygen deprivation, leading to permanent brain damage or even death.

  • What is the recommended safe level for TVOC?

    -The recommended safe level for TVOC is below 0.3 mg per cubic meter, at which the risk of adverse health effects is minimal.

  • What are the key components of the sgp30 sensor module?

    -The sgp30 sensor module includes a digital I2C interface, a temperature-controlled micro hot plate, and two pre-processed indoor air quality sensors for detecting a wide range of VOCs and H2 (hydrogen).

  • How does the sgp30 sensor module integrate with other devices?

    -The sgp30 sensor module integrates with other devices using a digital I2C interface, making it easy to connect to IoT devices for air quality monitoring.

  • What are the necessary hardware components for setting up the sgp30 sensor?

    -The necessary hardware components include the sgp30 air quality sensor module, an ESP32 for the home automation system, and a connection to a power source (VCC) and ground (GND).

  • What software is required to use the sgp30 sensor with home automation?

    -The required software includes Home Assistant for the home automation system and ESP-Home for configuring the ESP32 device.

  • How can viewers access the code used in the tutorial?

    -The code used in the tutorial is available on GitHub, and the link can be found in the video description.

  • What is the address of the sgp30 sensor in the I2C interface?

    -The I2C address of the sgp30 sensor is 0x58.

  • How often should the sgp30 sensor update its measurements?

    -The sgp30 sensor should update its measurements every 30 seconds, as set in the tutorial's code.

  • What is the significance of using compensation in the sgp30 sensor readings?

    -Using compensation, such as temperature and humidity from a DHT22 sensor, helps to improve the accuracy of the sgp30 sensor readings by accounting for environmental factors.

  • How can viewers customize their Home Assistant dashboard to display sensor data?

    -Viewers can use the Horseshoe card in Home Assistant to customize their dashboard. This card allows for the display of sensor data with color-coded ranges indicating different levels of air quality.

Outlines

00:00

πŸ€– Home Automation Tutorial Introduction

In this segment, Pascal introduces a new home automation tutorial focusing on integrating an air quality sensor. He apologizes for some technical difficulties and highlights the importance of time, adding chapters to the tutorial for easy navigation. The tutorial is part of a series, and viewers are encouraged to start with the first part if they are new. Pascal also mentions his GitHub for code and thanks his supporters, Steve and Steven, for their contributions. He invites viewers to his Patreon for more information about his channel and situation.

05:01

🌿 Understanding the Importance of Air Quality Sensors

Pascal explains the significance of monitoring indoor air quality, specifically eco2 (carbon dioxide) and TVOC (Total Volatile Organic Compounds). He discusses how high CO2 levels can indicate poor ventilation and potential virus transmission, emphasizing the health benefits of good air quality. TVOC monitoring helps identify harmful compounds and improve indoor environments. The SGP30 sensor, which uses ceramic sensor technology, is introduced as a key component for this tutorial, capable of detecting a wide range of gases and providing calibrated air quality signals.

10:02

πŸ”Œ Setting Up the SGP30 Sensor with ESPHome

This paragraph delves into the technical setup of the SGP30 sensor with ESPHome. Pascal guides viewers on how to connect the sensor to the existing light sensor setup via I2C, detailing the wiring connections. He also provides instructions on how to define the I2C interface in the code and locate the SGP30 at address 0x58. The tutorial includes steps to add the sensor to the ESPHome configuration, including setting up the eco2 and TVOC sensors, and using temperature and humidity data from a DHT22 sensor for compensation.

15:06

πŸ“Š Viewing Sensor Data in the Dashboard

Pascal demonstrates how to view the sensor data in the Home Assistant dashboard. He discusses the CCS811 sensor as an alternative to the SGP30 and notes the differences in the ESPHome configuration. The focus then shifts to understanding the levels of CO2 and TVOC and their implications for health and comfort. Pascal explains the normal and potentially harmful ranges for these measurements, providing a clear guideline for interpreting the sensor data.

20:13

🏑 Customizing the Dashboard with Horseshoe Card

In this segment, Pascal shows how to customize the Home Assistant dashboard using the Horseshoe card. He guides viewers on how to edit the card to display eco2 and TVOC data, changing the data source from open weather map to the ESPHome device sensors. The tutorial includes steps to adjust the color scheme based on the eco2 levels, using hex values for a visual representation of the air quality. Pascal also discusses the need for a separate video to fully explain the Horseshoe card functionality.

25:13

🌳 Outdoor Air Quality Monitoring

Pascal shares his personal setup, monitoring outdoor air quality with a weather station. He compares the CO2 and TVOC levels outdoors to the indoor environment, noting the high levels of CO2 in his city, Johannesburg. The discussion highlights the importance of monitoring both indoor and outdoor air quality and the potential health impacts of poor air quality. Pascal also mentions plans for future videos to further explore the Horseshoe card and other visualization options.

30:19

πŸ™Œ Conclusion and Acknowledgments

In the final paragraph, Pascal thanks his supporters, Steve and Steven, for their donations and acknowledges his first Patreon, Steven Brard, for his contributions and inspiration. He encourages viewers to like, subscribe, and turn on notifications to stay updated with his channel. Pascal also invites viewers to check out his Patreon for more support and concludes the tutorial with a reminder of the importance of implementing eco2 and TVOC sensors for better air quality monitoring.

Mindmap

Keywords

πŸ’‘Home Automation

Home automation refers to the integration of various technologies within a home to control and manage devices and systems remotely. In the video, the theme revolves around adding an air quality sensor to a home automation setup, enhancing the control and monitoring of indoor environments.

πŸ’‘SGP30

The SGP30 is a digital multi-pixel gas sensor designed for easy integration into IoT devices. It is used in the video to monitor air quality by detecting levels of CO2 and TVOC. The script discusses how to set up and integrate this sensor into a home automation system.

πŸ’‘Air Quality Sensor

An air quality sensor is a device that measures the quality of the air in an environment, typically by detecting levels of pollutants and gases. In the video, the SGP30 air quality sensor is highlighted as a way to monitor CO2 and TVOC levels, which are crucial for understanding indoor air quality.

πŸ’‘CO2

CO2, or carbon dioxide, is a gas that is naturally present in the atmosphere and is also produced by human activities. In the context of the video, monitoring CO2 levels is important for assessing indoor air quality and ventilation, as high levels can indicate poor air circulation and potential health risks.

πŸ’‘TVOC

TVOC stands for Total Volatile Organic Compounds. These are a group of organic chemicals that can be found in both indoor and outdoor air and can have adverse health effects. The video discusses the importance of monitoring TVOC levels to maintain a healthy indoor environment.

πŸ’‘I2C Interface

The I2C interface is a communication protocol used for attaching low-speed peripherals to a motherboard or device. In the video, the I2C interface is mentioned as the method by which the SGP30 sensor communicates with the home automation system.

πŸ’‘Home Assistant

Home Assistant is an open-source home automation platform that can be used to control and monitor various devices in a home. The video script includes instructions on how to integrate the SGP30 sensor with Home Assistant for monitoring air quality.

πŸ’‘ESP32

The ESP32 is a series of low-cost, low-power microcontrollers with integrated Wi-Fi and Bluetooth capabilities. In the video, the ESP32 is likely used as the central processing unit for the home automation system, interfacing with the SGP30 sensor.

πŸ’‘Horseshoe Card

The Horseshoe card is a type of card used in Home Assistant for displaying data in a graphical format. In the video, the script discusses how to use the Horseshoe card to visualize the data from the SGP30 sensor, providing a visual representation of CO2 and TVOC levels.

πŸ’‘Virus Transmission Mitigation

Virus transmission mitigation refers to measures taken to reduce the spread of viruses, such as improving ventilation. The video explains how monitoring CO2 levels can help identify poorly ventilated spaces, which can be linked to increased risk of virus transmission.

πŸ’‘Indoor Air Quality

Indoor air quality is the quality of the air inside a building, which can affect the health and comfort of occupants. The video focuses on using the SGP30 sensor to monitor CO2 and TVOC levels as a means of assessing and improving indoor air quality.

Highlights

Introduction to a home automation tutorial series focusing on integrating an air quality sensor.

Apology for technical difficulties and assurance of resolving them promptly.

Inclusion of video chapters for viewer convenience to navigate through the content.

Overview of the SGP30 air quality sensor and its role in enhancing a multi-sensor system.

Explanation of how to set up an ESP32 for beginners in the series.

Invitation to follow the tutorial series on GitHub for code access.

Acknowledgment of community support with special thanks to contributors.

Importance of monitoring eco2 and TVOC for indoor air quality and health.

Discussion on the advantages of eco2 monitoring for virus transmission mitigation.

Link between high CO2 levels and potential health issues like headaches and reduced concentration.

Introduction to TVOC and its significance in creating a healthier home environment.

Technical explanation of the SGP30 sensor's capabilities and integration into IoT devices.

Detailed guide on setting up the SGP30 sensor with ESP32 using I2C communication.

Code demonstration for integrating the SGP30 sensor into the existing system.

Explanation of the need for temperature and humidity compensation in sensor readings.

Instructions on setting up the Home Assistant for sensor data integration.

Analysis of CO2 and TVOC levels and their impact on health and comfort.

Tutorial on creating a visual representation of sensor data using the Horseshoe card in Home Assistant.

Discussion on the CCS811 sensor as an alternative to the SGP30 with minor code adjustments.

Personal application of the sensor in the presenter's setup and real-world data sharing.

Final thanks to the community and call to action for likes, subscriptions, and notifications.

Introduction of Patreon and invitation for support, with acknowledgment of the first patron.

Transcripts

play00:00

hey there I'm Pascal and welcome to

play00:04

another home automator tutorial and I

play00:07

want to up front to say I am very sorry

play00:09

that I'm looking on this side that's

play00:11

where my notes are right now I'm hoping

play00:14

that I will be solving this shortly all

play00:17

right so I know that your time is

play00:19

valuable and because of that I've added

play00:24

chapters to this tutorial you can access

play00:27

them on the video timeline or in the

play00:30

description if you want to skip to the

play00:32

mey stuff go straight to about the

play00:37

sgp30 air quality sensor linked below

play00:41

this is part three of the series and

play00:45

we'll continue to add to our room multi

play00:48

sensor by adding this air quality sensor

play00:52

so we are going to learn how to monitor

play00:55

our rooms eco2 and T before I start

play00:59

though

play01:00

if you are new to the Channel please go

play01:03

and start with the first of the series

play01:05

where I explain how to set up an

play01:08

esp32 and get the most out of it you can

play01:11

go to the series right here in the card

play01:15

and I'll leave a link in the

play01:17

playlist if you want to follow me during

play01:20

this tutorial my code is on GitHub I

play01:23

will also leave that in the description

play01:26

below before we go any further there are

play01:29

a few thanks that I have to give I want

play01:32

to thank Steve and step for their

play01:35

messages and coffee

play01:38

contributions the channel will grow

play01:41

thanks to people like Steve and Steven

play01:44

but all of you that have commented that

play01:47

have liked that have watched my videos I

play01:51

want to thank you too this is my 12th

play01:54

video I want to go forward and do many

play01:58

more lastly I'd love you to head over to

play02:00

my patreon I'm not asking you to join

play02:04

but there are news there that explain a

play02:06

bit more about my situation and the

play02:09

situation of this channel I think it's

play02:11

important that you understand now that

play02:13

I've got all of that out of the way let

play02:15

me explain what eco2 and tiok is and why

play02:21

we should monitor

play02:23

[Music]

play02:28

it

play02:32

for today's tutorial we'll need a few

play02:35

things Hardware wise we will need either

play02:38

an sgp30 air quality sensor module or a

play02:43

CSS

play02:44

811 air quality sensor module also we'll

play02:48

need some software home assistant and if

play02:51

you don't have home assistant yet I will

play02:53

leave a link in the description below so

play02:57

that you can go and install it and ESP

play03:00

home again I will leave the link in the

play03:03

description now why do we want an eco2

play03:07

and TVO

play03:16

sensor why would we want to monitor air

play03:19

quality monitoring eco2 and title carbon

play03:23

dioxide offers several crucial

play03:26

advantages particularly in the context

play03:29

of indoor air quality and health firstly

play03:33

virus transmission mitigation E2

play03:36

monitors provide a valuable gauge on an

play03:39

area's ventilation as people Excel they

play03:42

release CO2 and individuals carrying Aon

play03:47

viruses also emit tiny viral particles

play03:52

so the one is linked with the other high

play03:55

CO2 level indicates a potential

play03:58

concentration of these particles

play04:00

by monitoring CO2 we can identify poorly

play04:03

ventilated space and take corrective

play04:06

actions from mechanical ventilation or

play04:10

ensuring that doors and windows remain

play04:12

open this helps to reduce the risk of

play04:15

virus transmission and keep indoor air

play04:19

fresh and safe secondly it helps to have

play04:23

a better comfort and higher productivity

play04:26

Beyond virus control ecco2 monitoring

play04:29

contribut Ed to a more pleasant

play04:31

environment for occupants studies reveal

play04:34

that elevated CO2 levels can lead to

play04:36

driness Ander cognitive performance

play04:40

headache and reduce

play04:42

concentration now I'm going to just go

play04:45

through the my notes on total volatile

play04:48

organic compounds or deox offer several

play04:52

crucial benefits for health and

play04:54

well-being awareness and informed

play04:57

decision tvok monitoring and empowers us

play05:00

with the knowledge about the indoor air

play05:03

quality by understanding tvok levels we

play05:06

can identify sources of VO emissions

play05:10

volatile organic compounds and take

play05:13

informed action whether it's improving

play05:15

ventilation or eliminating specific vo

play05:18

sources this awareness helps to create

play05:22

healthier home environment for our

play05:24

families tvok encompasses a diverse

play05:27

group of organic and chemical found in

play05:30

both indoor and outdoor

play05:32

air while some are harmful and naturally

play05:36

occurring others like for

play05:39

[Music]

play05:41

mes and Benzene can be very harmful

play05:45

monitoring tvok allows us to distinguish

play05:49

between this variance and take necessary

play05:51

steps to protect ourselves from adverse

play05:55

health effects by keeping tvok levels in

play05:58

check we contribute to our our overall

play06:00

well-being and comfort I will discuss

play06:03

the levels of these effects for both e

play06:07

CO2 andok later in this

play06:17

tutorial the

play06:19

sgp30 is a digital multi-pixel gas

play06:23

sensor designed for easy integration

play06:26

into iot devices the techn ology

play06:30

utilizes ceran

play06:33

C seos technology which integrates a

play06:38

complete sensor system on a single chip

play06:41

it includes a digital i2c interface a

play06:45

temperature controlled micro hot plate

play06:48

and two pre-processed indoor quality

play06:50

sensors the gas detection of the sgp30

play06:54

can detect a wide range of T Vox or Vox

play06:58

and H2

play07:00

hydrogen it provides two calibrated air

play07:03

quality signal for easy integration the

play07:05

sgp30 comes in a very compact six pin

play07:09

dfn package the typical accuracy is

play07:13

within measured values of

play07:24

15% the sensor we're going to be using

play07:26

today is the

play07:28

sgp30 it spin outs include the following

play07:32

VCC for the sensor power from 1.8 volts

play07:37

to 5 volts we'll be using 5

play07:40

volts Common

play07:43

Ground SC the clock pin for i2c SDA the

play07:49

data pin for i2c and then the 1.8 volt

play07:54

out which we will not be

play07:58

using

play08:28

e

play08:34

so here we are we have the setup we did

play08:37

in the previous tutorial where we

play08:39

introduced the light sensor which is

play08:42

over here we are going to bridge from

play08:45

the light sensor straight into

play08:49

our

play08:52

sgp30 uh we can do that thanks to i2c

play08:56

using addressing as its standard so we

play09:00

can actually bring to here and then if

play09:03

we want to to the next and to the next

play09:04

and so forth okay so the yellow is SC

play09:11

and the Orange is

play09:15

SDA clock for yellow data for

play09:22

orange that will be put into the

play09:26

spg3 SDA and SC we will take from the

play09:32

Common Ground Rail and put into the

play09:36

ground of the

play09:38

spg3 and we will take the uh the 5 volts

play09:43

from the 5 volts common Rail and put it

play09:47

into

play09:57

VCC let's get into to the code but

play10:00

before we get into the

play10:01

code remember all of the code is

play10:04

available on my GitHub page the link is

play10:07

in the description

play10:10

below if you not defined the i2c

play10:13

interface yet you'll need to do so

play10:16

before we even start touching the code

play10:19

so please have a look at my previous

play10:22

tutorial when I explain how to use i2c

play10:27

and where we put light s

play10:30

into the code again before we get into

play10:33

the code since our

play10:36

i2c part is already in the code we

play10:39

should be able to find the

play10:42

sgp30 at address 0x 58 so we're going to

play10:47

go into the logs and we going to let the

play10:50

logs run I will wait for one of the

play10:54

sensors to give some data it's actually

play10:56

more than that which is perfect we're

play10:58

going to scroll back and right here we

play11:02

found i2c device at address 058 exactly

play11:07

where we thought it was going to be now

play11:08

we can go into the code and for that

play11:11

we're going to go into

play11:13

edit and and first things first we are

play11:17

going to scroll

play11:18

down and we are getting into the area

play11:22

where we should be adding our code you

play11:25

can see right now the

play11:27

dht22 you can see the

play11:30

bh1750 which is our light sensor so now

play11:33

we've got a little bit of space I've got

play11:36

everything ready for us into the buffer

play11:38

so I am just going to paste it and run

play11:41

through it with

play11:42

you firstly we have the Declaration of

play11:46

the platform we are going to use this is

play11:49

going to be the

play11:50

sgp30 following that we are going to be

play11:53

pulling the data from the eco2 sensor

play11:59

which we're going to creatively name

play12:02

eco2 the ID and I think you've got the

play12:05

picture by now if you've been following

play12:07

me that it's always device internal name

play12:11

and the sensor name so in this case it

play12:14

will be

play12:15

eco2 the accuracy decimals we're going

play12:18

to make one for now we're going to do

play12:21

exactly the same thing for the TX

play12:23

senser firstly we're going to call it t

play12:28

I know very creative then the ID is

play12:32

going to be our device internal name and

play12:36

underscore T and the accuracy decimal is

play12:40

going to be one now we are going to

play12:41

store the Baseline and you're going to

play12:44

tell me yes but isn't there a whole lot

play12:47

of steps to get there and I'm going to

play12:49

tell you yes there is however we are not

play12:53

going to deal with the Baseline

play12:56

today I will try to make a video about

play12:59

how to set up a TVO sensor Baseline at

play13:03

the later stage I just want us to be

play13:06

able to use it right now the variances

play13:10

are going to be very small and you're

play13:11

going to understand why

play13:13

shortly the address obviously is 0

play13:19

x58 and the reason why our variances are

play13:22

going to be low is because we are going

play13:24

to use

play13:26

compensation we are going to use the

play13:28

temperat that we get from the dht22

play13:32

Which is higher in the code and the

play13:34

humidity from the dht22 which is also

play13:38

higher in the code the update interval

play13:41

is going to be at 30 seconds like we've

play13:44

set everything

play13:45

else and right now we are going to

play13:49

install by clicking install clicking

play13:53

wirelessly and patiently waiting that it

play13:56

is going to rebuild our our firmware and

play14:01

because I built the firmware a little

play14:03

earlier it had cached it it is now

play14:06

uploading it a few moments

play14:09

later and here we are we are waiting for

play14:12

the as to reboot a little longer than a

play14:15

few minutes

play14:18

later

play14:20

ah here I here is our

play14:23

initiation and now we have some data

play14:27

coming through

play14:30

and we can see that

play14:33

um the t-o sensor is not giving us any

play14:37

data at this point the eco2 is telling

play14:40

us 400 we will talk about the limits and

play14:47

what that data means shortly but right

play14:50

now what I want to do is actually go

play14:52

back a little up and you can see the s

play14:57

gp30 is is a

play15:01

long um a a long sensor to track it

play15:05

starts here and it goes all the way down

play15:11

to over

play15:12

here all right we are going to stop here

play15:16

we are going to close

play15:18

here and I will see you inside the

play15:27

dashboard

play15:31

before we carry on I promised you that

play15:33

we would look at the

play15:36

ccs811 eco2 and TX sensor here we are on

play15:42

the documentation of ESB home if we

play15:46

scroll down a little bit we will end up

play15:49

with this example and you will see that

play15:53

outside of the CCS 811 there is not much

play15:58

difference to the Cod that we have done

play16:00

the difference and let me point it out

play16:02

to you is over here now we do have

play16:07

address like we've used in the

play16:11

sgp30 and we have temperature and

play16:14

humidity however temperature and

play16:17

humidity are not nested and they are not

play16:20

indented this is relatively important

play16:24

you can't just take the code from the

play16:26

one to the other it will

play16:36

fail let's visit the

play16:40

device and to visit the device we're

play16:42

going to click on visit username is

play16:47

admin password is

play16:54

myet there we are and we can see the

play16:58

logs on the one side

play17:02

and if we go down we still don't have

play17:06

any T data I am not

play17:10

surprised and we have eco2 right here so

play17:16

we've got it in the logs and in the

play17:18

device

play17:27

itself before we go and actually design

play17:31

something for the dashboard there are

play17:34

things that we need to know and these

play17:36

are what are the levels and what they

play17:40

mean so let's decipher the values

play17:43

together and start with CO2 levels in

play17:46

between 250 and 400 part per million

play17:50

this is a normal background

play17:53

concentration in outdoor ambient air

play17:56

from 400 to 1,000 parts per minut

play17:58

million the concentration is typical of

play18:02

an occupied indoor space and there is

play18:05

good air exchange from 1,000 to 2,000

play18:09

parts per million people may start to

play18:13

complain about D driness and poor air

play18:16

quality from 2,000 to 500 parts per

play18:20

million headaches sleepiness feeling

play18:24

stagnant feeling that the air is stale

play18:27

stuffy uh with poor with poor

play18:30

concentration loss of attention

play18:33

increased heart rate and slight Nosa may

play18:36

be present from 5,000 parts per million

play18:39

we've reached the limit that we can take

play18:43

from 40,000 parts per million you are

play18:46

then in oxygen deprivation resulting in

play18:49

permanent brain damage comma or even

play18:53

death now let's talk a bit about evok

play18:57

and let's decipher those levels the

play19:00

recommended safe level is below

play19:04

0.3 mgram per cubic meter at this level

play19:09

the risk of adverse health effects from

play19:12

Vox is minimal from 0.3 to 0.5 mgram per

play19:19

cubic meter is within range of indoor

play19:24

air quality and remains acceptable from

play19:27

0.5 5 to 1 mgam per cubic M we should

play19:33

start getting

play19:34

concerned from 1 to 3 mg per cubic M

play19:39

it's becoming

play19:41

serious anything beyond that will impact

play19:46

health and comfort especially over the

play19:48

long term now let's go and Implement

play19:51

something like that inside of all my

play19:53

system using the Horseshoe card if you

play19:56

haven't seen my short tutorial on the

play19:59

Horseshoe card please click on the link

play20:03

above and come back here when you are

play20:12

finished we've got on the right hand

play20:15

side a very basic example of a whole

play20:17

shoe card we are going to do something

play20:19

far more complicated than that so again

play20:23

if you haven't installed Hax if you

play20:25

don't have the Horseshoe card yet please

play20:28

click on the link above I will also

play20:30

leave it in the description and go and

play20:33

see that video and come back when you're

play20:35

finished so we're going to open this

play20:37

card and we're going to hit edit now

play20:40

right now it's getting its information

play20:43

from open weather map temperature we are

play20:46

going to change that to change that we

play20:49

need the sensors so we're going to

play20:50

duplicate the tab we are on this tab

play20:54

going to hit here to expand the menu and

play20:58

we're going to go all the way down to

play21:00

settings in settings we're going to go

play21:02

to

play21:03

devices espb one device and as you can

play21:08

see we have eco2 and tvoc already to get

play21:13

the sensor name you click on the sensor

play21:16

that you

play21:18

want on the Range and right here you can

play21:23

copy it and we can go back here and we

play21:26

are going to put

play21:29

instead of sensor open weather map

play21:32

temperature we are going to put sensor.

play21:36

ESP room sensors eco2 we're going to

play21:40

change this from temperature to

play21:46

PPM and the

play21:49

attribute does not exist so we are going

play21:52

to take the attribute out and this is

play21:56

where we're going to stop right now

play21:58

we're going to save and you can see 400

play22:01

PPM Johannesburg we're going to edit

play22:04

again Control Alt

play22:07

a so that we get the lot we're going to

play22:11

copy

play22:14

it we're going to cancel we're going to

play22:18

add a card scroll all the way

play22:22

down put a manual card in delete this

play22:26

part and paste it

play22:29

go back to the

play22:32

settings close this and we are going to

play22:35

go and and click the wrench card and

play22:39

again click on copy go back here to the

play22:45

top and we are going to do sensor we're

play22:48

going to replace it with t t in parts

play22:53

per

play22:56

million and we should have if zero which

play23:00

is

play23:01

correct now this is not to show you

play23:05

exactly how the Horseshoe card works I

play23:09

will do that in a separate video right

play23:12

now though what we are going to do is go

play23:15

back to this one edit and we are going

play23:18

to go all the way down now right now

play23:21

what it does is that at about 10 it goes

play23:25

from red to blue according to what we've

play23:28

learned

play23:29

earlier up to 400 we are pretty safe in

play23:34

The Blue Zone so we can do 400

play23:38

here from

play23:40

400 to

play23:45

1,000 we are in another Zone which is a

play23:49

bit

play23:50

more uh

play23:52

dangerous if you don't want to use names

play23:56

of colors you use use hex values for

play24:01

colors how do you get hex values for

play24:03

colors we go to a hex value Color Picker

play24:08

so we're going to look for one Color

play24:13

Picker there we

play24:16

are okay we'll take the first one it

play24:18

doesn't matter here we are I guess it's

play24:22

this one yes does it work here as well

play24:25

yes it does the first one I believe

play24:29

should be a very light green so we're

play24:34

going to take that color and we're going

play24:37

to go back and the this should be in my

play24:41

opinion a very light green now if you do

play24:44

this it won't work I have to put the

play24:46

hash before it let's see if it works and

play24:50

it

play24:57

doesn't

play25:01

or doesn't it take oh it may need to

play25:05

be this save

play25:09

yes okay so we've got it

play25:13

and

play25:16

from then from 1,000 I would like to go

play25:20

a little darker in fact I'll go

play25:26

a Qui

play25:31

there we are going to take

play25:34

that

play25:39

and

play25:41

again

play25:43

hash and now we have another color a

play25:46

little longer than a few minutes

play25:49

later and what we are going to do as

play25:52

well is change

play25:54

Johannesburg to

play25:57

my

play25:59

r

play26:02

e

play26:04

CO2 oops it's CO2 we are going to save

play26:10

and this is basically what we're going

play26:12

to get I don't know why it ends up there

play26:15

so right now we are in the green if you

play26:20

want to you can change one sorry you can

play26:25

change

play26:27

one

play26:30

so yes so right now the Horseshoe scale

play26:33

starts at minus 10 and goes all the way

play26:36

to 40 this is why everything looks wrong

play26:39

so the minimum is going to be my a Zer

play26:44

and our maximum is going to be

play26:48

6,000 okay so now that we've got all of

play26:52

that sorted we're going to save and

play26:55

we're going to see that we are only at

play26:58

400 and it is pretty safe now I haven't

play27:01

beautified it or anything of the kind I

play27:04

will show you

play27:06

quickly what it would look

play27:09

like if we follow this but instead

play27:14

of using the actual values I'm going to

play27:17

take a zero out of here and I'm going to

play27:21

put 400 here because that will show

play27:25

us that should show us

play27:29

oh I'm still up to 6,000 which is why it

play27:32

doesn't

play27:34

work okay this is what it would show us

play27:37

as and you can see there is a

play27:40

gradual uh from the green to the red

play27:43

passing the other colors that we've

play27:45

actually put in which are both here and

play27:48

here okay let me go and put it back to

play27:50

what it

play27:54

was this is

play27:56

400 1,00

play27:59

2,000 and this is

play28:02

5,000 okay and we are going to say that

play28:06

this is at

play28:09

6,000

play28:12

save now because I'm not getting any

play28:15

data out of the t-o sensor yet what I

play28:19

will do is I will wait until tomorrow

play28:23

and see if there is data coming through

play28:26

and uh right now this is what the eco2

play28:30

looks

play28:32

like we can pretty it up and we can do

play28:35

something quite nice to view to give you

play28:39

an example let me hop directly into my

play28:43

setup this is my setup this is directly

play28:46

from my weather station so it's not

play28:50

indoors but Outdoors you can see that

play28:53

the CO2 is actually extremely high in

play28:56

the moment you can also o see that uh

play29:00

our lowest is at

play29:02

407 which is equivalent to what it

play29:05

should be outside and bordering onto

play29:09

inside and the maximum is at

play29:12

7,992 which is current I live in a city

play29:16

where going outside at night is actually

play29:19

a problem Johannesburg is airwise very

play29:23

bad same thing go for tvok you can see

play29:26

that at the point we were at one parts

play29:30

per billion and if I look this was

play29:34

probably around 2:00 and yeah this was

play29:37

probably around 2:00 and right now he at

play29:41

1,156 parts per billion so these are

play29:44

things that you can get to do with the

play29:47

Horseshoe card the bottom of it I will

play29:50

also cover in a different video it is a

play29:56

graph that comes from hack and uh this

play30:00

is what we're looking at being able to

play30:02

do it's something like this where you

play30:05

have all of this data available to you

play30:08

this is where we working towards slowly

play30:10

but

play30:19

surely I think we've covered

play30:22

eco2 in quite some depth I hope that

play30:26

you've enjoyed this tutorial and

play30:28

explainer but before I leave you I'd

play30:31

like to thank Steve and Steven for their

play30:34

kind donation of coffee

play30:38

again and I must mention my first

play30:41

patreon a home automat manager Steven

play30:46

brard who brya as you would say in

play30:49

French uh who has been not only a

play30:54

contributor but also a source of

play30:56

inspiration during our discussions on

play31:00

patreon and it is very very appreciated

play31:04

the channel may be small today we do not

play31:06

know where we're going to go tomorrow

play31:08

I'm hoping that we're going to be able

play31:10

to help a lot more people before my

play31:13

goodbyes please don't forget to like

play31:17

subscribe and smash that notification

play31:20

button so that you never have to miss a

play31:23

video if you want to support the

play31:26

channel I have started my patreon you

play31:29

can go and have a look at the patreon I

play31:32

will leave the link below and um I wish

play31:36

you the best with implementing a eco2

play31:41

and TX sensor whether it is the

play31:46

sgp30 or it is the CCS 811 this is

play31:50

Pascal signing off and I'll see you in

play31:54

the next

play31:56

tutorial

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Air QualityHome AutomationTutorialSensorsIndoor HealthESP32CO2 MonitoringTVOCIoT DevicesSmart Home