Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GrowSmart - ESPHome
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
GrowSmart - ESPHome
Commits
f47ec469
Commit
f47ec469
authored
2 years ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
add VPD
tweak SCD40 temperature offset set i2c to 10kHz
parent
12647d64
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
growbox.yaml
+1
-0
1 addition, 0 deletions
growbox.yaml
packages/esp32.yaml
+1
-0
1 addition, 0 deletions
packages/esp32.yaml
packages/scd40.yaml
+1
-0
1 addition, 0 deletions
packages/scd40.yaml
packages/vpd.yaml
+19
-0
19 additions, 0 deletions
packages/vpd.yaml
with
22 additions
and
0 deletions
growbox.yaml
+
1
−
0
View file @
f47ec469
...
...
@@ -10,3 +10,4 @@ packages:
yieryi2178
:
!include
packages/yieryi3178.yaml
scd40
:
!include
packages/scd40.yaml
mlx90614
:
!include
packages/mlx90614.yaml
vpd
:
!include
packages/vpd.yaml
This diff is collapsed.
Click to expand it.
packages/esp32.yaml
+
1
−
0
View file @
f47ec469
...
...
@@ -4,3 +4,4 @@ esp32:
i2c
:
sda
:
21
scl
:
22
frequency
:
10khz
This diff is collapsed.
Click to expand it.
packages/scd40.yaml
+
1
−
0
View file @
f47ec469
sensor
:
-
platform
:
scd4x
update_interval
:
5s
temperature_offset
:
4.85
ambient_pressure_compensation_source
:
bme280_pressure
co2
:
id
:
scd40_co2
...
...
This diff is collapsed.
Click to expand it.
packages/vpd.yaml
0 → 100644
+
19
−
0
View file @
f47ec469
sensor
:
-
platform
:
template
id
:
vpd
name
:
"
Vapor
Pressure
Deficit"
update_interval
:
5s
accuracy_decimals
:
2
unit_of_measurement
:
'
kPa'
lambda
:
|-
float temperature = (id(mlx90614_temperature_object).state - 32) * 5/9;
float humidity = id(bme280_humidity).state;
float vpSaturation = 610.7 * pow(10, (7.5 * temperature / (temperature + 237.3)));
float vpDeficit = ((100.0 - humidity) / 100.0) * vpSaturation;
return vpDeficit / 1000;
prometheus
:
relabel
:
vpd
:
id
:
vpd
name
:
"
Vapor
Pressure
Deficit"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment