ESPHome-Devices/devices/master_bath_humidity_temp_sensor.yaml
ChNussbaum 13f3977342 Everything uses packages
Finish folder re-org
README updates
2020-10-07 17:21:38 -05:00

61 lines
1.4 KiB
YAML

substitutions:
device_id: master_bath_humidity_temp_sensor
device_name: Master Bathroom Humidity and Temperature Sensor
platform: ESP8266
board: d1_mini
ip_address: !secret master_bath_humidity_temp_sensor_ip
ota_pwd: !secret master_bath_humidity_temp_sensor_ota_pwd
api_pwd: !secret master_bath_humidity_temp_sensor_api_pwd
ap_wifi_pwd: !secret master_bath_humidity_temp_sensor_ap_wifi_pwd
packages:
device_base: !include ../packages/device_base.yaml
binary_sensor:
- platform: template
id: trigger_humidity
lambda: return (id(humidity).state - id(median_humidity).state) > 5;
filters:
- delayed_off: 5min
i2c:
sda: D2
scl: D1
scan: true
output:
- platform: gpio
pin: D3
id: bme_gnd
sensor:
- platform: bme280
temperature:
id: temperature
name: "Master Bathroom Temperature"
pressure:
id: pressure
name: "Master Bathroom Pressure"
humidity:
id: humidity
name: "Master Bathroom Humidity"
address: 0x76
update_interval: 15s
- platform: template
name: "Master Bathroom Median Humidity"
id: median_humidity
unit_of_measurement: '%'
icon: mdi:water-percent
lambda: return id(humidity).state;
update_interval: 60s
filters:
- median:
window_size: 360
send_every: 2
send_first_at: 2
status_led:
pin:
number: D4
inverted: true