periodic push
This commit is contained in:
53
esphome/sensors/plantsensors.yaml
Executable file
53
esphome/sensors/plantsensors.yaml
Executable file
@@ -0,0 +1,53 @@
|
||||
---
|
||||
sensor:
|
||||
# Soil humidity %
|
||||
- platform: adc
|
||||
pin: ${pin_soil}
|
||||
name: '${device_name} Soil Moisture'
|
||||
id: ${device_name}_moisture
|
||||
icon: 'mdi:watering-can'
|
||||
update_interval: ${update_interval}
|
||||
attenuation: 11db
|
||||
accuracy_decimals: 2 # comment for calibration
|
||||
unit_of_measurement: '%' # comment for calibration
|
||||
device_class: 'moisture'
|
||||
state_class: 'measurement'
|
||||
# unit_of_measurement: "V" # uncomment for calibration
|
||||
filters: # comment when calibrating
|
||||
- calibrate_linear: # comment when calibrating
|
||||
# Map 0.0 (from sensor) to 0.0 (true value)
|
||||
- ${moisture_min} -> 0.0 # comment when calibrating
|
||||
- ${moisture_max} -> 100.0 # comment when calibrating
|
||||
|
||||
# Fertilizer sensor
|
||||
- platform: adc
|
||||
pin: ${pin_fertilizer}
|
||||
name: '${device_name} Soil Conductivity'
|
||||
icon: 'mdi:flower'
|
||||
update_interval: ${update_interval}
|
||||
accuracy_decimals: 2 # comment for calibration
|
||||
unit_of_measurement: 'µS/cm' # comment when calibrating
|
||||
# device_class: '' # for now home assistant does not support this class
|
||||
state_class: 'measurement'
|
||||
# unit_of_measurement: "V" # uncomment for raw data
|
||||
filters: # comment when calibrating
|
||||
- calibrate_linear: # comment when calibrating
|
||||
# Map 0.0 (from sensor) to 0.0 (true value)
|
||||
- ${conductivity_min} -> 0.0 # comment when calibrating
|
||||
- ${conductivity_max} -> 100.0 # comment when calibrating
|
||||
|
||||
# Lux sensor
|
||||
- platform: bh1750
|
||||
i2c_id: bus_a
|
||||
name: '${device_name} BH1750 Illuminance'
|
||||
address: 0x23
|
||||
unit_of_measurement: 'lx'
|
||||
icon: 'mdi:white-balance-sunny'
|
||||
device_class: 'illuminance'
|
||||
state_class: 'measurement'
|
||||
setup_priority: -300
|
||||
update_interval: ${update_interval}
|
||||
# convert to illuminance
|
||||
filters:
|
||||
- lambda: |-
|
||||
return x * 200.0;
|
||||
Reference in New Issue
Block a user