2023-05-12 17:55:51 +00:00
|
|
|
esphome:
|
|
|
|
name: houseplant
|
|
|
|
platform: ESP8266
|
|
|
|
board: nodemcuv2
|
|
|
|
|
|
|
|
logger:
|
|
|
|
level: INFO
|
|
|
|
|
|
|
|
ota:
|
|
|
|
password: "71987bd671fe226031259af06d0ccbea"
|
|
|
|
|
|
|
|
wifi:
|
|
|
|
ssid: !secret ssid
|
|
|
|
password: !secret pass
|
|
|
|
fast_connect: true
|
|
|
|
|
|
|
|
mqtt:
|
|
|
|
broker: henry.int.jnf.me
|
|
|
|
username: esphome
|
|
|
|
password: esphome
|
|
|
|
topic_prefix: esphome/houseplant
|
|
|
|
|
|
|
|
http_request:
|
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: adc
|
|
|
|
pin: A0
|
|
|
|
name: "Moisture Level"
|
|
|
|
id: moisture_level
|
|
|
|
unit_of_measurement: "u"
|
|
|
|
update_interval: 1h
|
|
|
|
filters:
|
|
|
|
- multiply: 1024
|
|
|
|
on_value:
|
|
|
|
- http_request.get:
|
|
|
|
verify_ssl: false
|
|
|
|
url: !lambda |-
|
|
|
|
return (std::string) "https://jasonsplant.jaywll.co/newreading?v=" + to_string(int(id(moisture_level).state));
|
|
|
|
headers:
|
2023-06-02 17:41:07 +00:00
|
|
|
auth-key: !secret houseplant_key
|
|
|
|
|
|
|
|
button:
|
|
|
|
- platform: restart
|
|
|
|
name: "Restart"
|