-
Notifications
You must be signed in to change notification settings - Fork 185
/
plant.yaml
executable file
·87 lines (79 loc) · 2.59 KB
/
plant.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
#-
# _ _
# _ __ | | __ _ _ __ | |_
# | '_ \| |/ _` | '_ \| __|
# | |_) | | (_| | | | | |_
# | .__/|_|\__,_|_| |_|\__|
# |_|
#
#- from github.com/basnijholt/home-assistant-config
# Get information with the following Python code
# import pandas as pd
# pd.set_option("display.max_colwidth", -1)
# pd.set_option("display.max_columns", 100)
# # https://github.com/khronimo/MiFloraDB/blob/master/PlantDB_5335_U0.csv
# import pandas as pd
# df = pd.read_csv("PlantDB_5335_U0.txt")
# for plant in ["monstera", "spathiphyllum", "calathea"]:
# rows = df[df.pid.str.contains(plant)]
# for _, row in rows.iterrows():
# d = {
# "min_moisture": "min_soil_moist",
# "max_moisture": "max_soil_moist",
# "min_conductivity": "min_soil_ec",
# "max_conductivity": "max_soil_ec",
# "min_brightness": "min_light_lux", # not sure about the units (/ 10)
# "max_brightness": "max_light_lux", # (/ 10)
# "min_temperature": "min_temp",
# "max_temperature": "max_temp",
# }
# print(f"{row.alias.replace(' ', '_')}:")
# for k, v in d.items():
# print(f" {k}: {row[v]}")
# print()
monstera:
sensors:
moisture: sensor.mi_flora_monstera_moisture
battery: sensor.mi_flora_monstera_battery
temperature: sensor.mi_flora_monstera_temperature
conductivity: sensor.mi_flora_monstera_conductivity
brightness: sensor.mi_flora_monstera_illuminance
min_moisture: 15
max_moisture: 60
min_conductivity: 350
max_conductivity: 2000
min_brightness: 80
max_brightness: 1500
min_temperature: 12
max_temperature: 32
calathea: # calathea_makoyana
sensors:
moisture: sensor.mi_flora_calathea_moisture
battery: sensor.mi_flora_calathea_battery
temperature: sensor.mi_flora_calathea_temperature
conductivity: sensor.mi_flora_calathea_conductivity
brightness: sensor.mi_flora_calathea_illuminance
min_moisture: 15
max_moisture: 65
min_conductivity: 350
max_conductivity: 1000
min_brightness: 80
max_brightness: 2000
min_temperature: 12
max_temperature: 32
peace_lily: # spathiphyllum
sensors:
moisture: sensor.mi_flora_peace_lily_moisture
battery: sensor.mi_flora_peace_lily_battery
temperature: sensor.mi_flora_peace_lily_temperature
conductivity: sensor.mi_flora_peace_lily_conductivity
brightness: sensor.mi_flora_peace_lily_illuminance
min_moisture: 15
max_moisture: 65
min_conductivity: 350
max_conductivity: 2000
min_brightness: 100
max_brightness: 2250
min_temperature: 15
max_temperature: 32