Рет қаралды 8,927
Remote monitor of tractor battery voltage over time. Home Assistant integration provides notification when battery voltage drops below 12V. See @scrapmetalworks for more tractor mod videos.
------------------------------------Yaml file--------------------------
esphome:
name: tractor_monitor
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret ssid_name
password: !secret ssid_password
Optional manual IP
manual_ip:
static_ip: 192.168.1.45
gateway: 192.168.1.1
subnet: 255.255.255.0
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Tractor Monitor Fallback Hotspot"
password: "o1KUAjIckEwO"
captive_portal:
Enable logging
logger:
Enable Home Assistant API
api:
ota:
sensor:
- platform: adc
pin: A0
name: "Tractor Battery Voltage"
update_interval: 30s
filters:
- multiply: 17.4
deep_sleep:
run_duration: 240s
sleep_duration: 120min