Super easy for someone with exprirence. This is my first aproach to ESPHome and ESP at all.
Im using ESPHome Sprinkler Controller Component and I want to add the start time internally to the ESP.
My current code is:
esphome:
name: sprinkler-controller
esp8266:
board: esp12f
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "qbiw79EQD/J3mq7dqj90vrXz7EVt88w4c1EKEY6gGhA="
ota:
password: "713b41379d7e7a8716ec6867124a1bb8"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sprinkler-Controller"
password: "nsMf1LkjvyvT"
captive_portal:
sprinkler:
- id: sc_controlador
main_switch: "sc_interruptor_general"
auto_advance_switch: "sc_avance_automatico"
valve_overlap: 2s
valves:
- valve_switch: "Zona 1"
enable_switch: "sc_Enable Zona 1"
run_duration: 900s
valve_switch_id: sc_relay_1
- valve_switch: "Zona 2"
enable_switch: "sc_Enable Zona 2"
run_duration: 900s
valve_switch_id: sc_relay_2
- valve_switch: "Zona 3"
enable_switch: "sc_Enable Zona 3"
run_duration: 900s
valve_switch_id: sc_relay_3
- valve_switch: "Zona 4"
enable_switch: "sc_Enable Zona 4"
run_duration: 900s
valve_switch_id: sc_relay_4
- valve_switch: "Zona 5"
enable_switch: "sc_Enable Zona 5"
run_duration: 900s
valve_switch_id: sc_relay_5
- valve_switch: "Zona 6"
enable_switch: "sc_Enable Zona 6"
run_duration: 900s
valve_switch_id: sc_relay_6
switch:
- platform: gpio
pin: GPIO16
name: Relay1
id: sc_relay_1
inverted: True
- platform: gpio
pin: GPIO14
name: Relay2
id: sc_relay_2
inverted: True
- platform: gpio
pin: GPIO12
name: Relay3
id: sc_relay_3
- platform: gpio
pin: GPIO13
name: Relay4
id: sc_relay_4
- platform: gpio
pin: GPIO15
name: Relay5
id: sc_relay_5
- platform: gpio
pin: GPIO00
name: Relay6
id: sc_relay_6
- platform: gpio
pin: GPIO04
name: Relay7
id: sc_relay_7
- platform: gpio
pin: GPIO05
name: Relay8
id: sc_relay_8
and I have an input_datetime.start_time_sprinkler
helper in HA.
I’m sure this help will be a starter point to me to actually undestand how ESPHome works.
Thanks!!!