# ----------------------------------------------------------------------------------------------------# ESPHome configuration - This part depends on your hardware target# ----------------------------------------------------------------------------------------------------esphome:name:"esp8285"friendly_name:ESP8285esp8266:board:esp8285# Enable logginglogger:baud_rate:115200level:INFOlogs:component:ERRORhttp_request.arduino:ERROR# Enable Home Assistant APIapi:encryption:key:!secretproxy_api_encryption_key# Enable over-the-air updatesota:-platform:esphome# WiFi connectionwifi:ssid:!secretwifi_ssidpassword:!secretwifi_password# If you have a WiFi activity plannification, you may have to update the reboot timeout (Default: 15min)reboot_timeout:24h# ----------------------------------------------------------------------------------------------------# Customisation# ----------------------------------------------------------------------------------------------------substitutions:# Power meter source -----------------------------------------------------------# Define ip address of Shelly EM probepower_meter_ip_address:"192.168.1.26:8000"emeter_index:"0"# LEDs -------------------------------------------------------------------------# Yellow LED is reflecting power meteryellow_led_pin:GPIO1# power_meter_activated has to be set to 1 to activate the power measurment readglobals:-id:power_meter_activatedtype:intinitial_value:"1"# Uncomment the following lines if you want to use the source from github# packages:# power_meter:# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/# file: solar_router/power_meter_shelly_em.yaml# refresh: 5s# Remove the following lines if you want to use the source from githubpackages:common:<<:!includesolar_router/common.yamlpower_meter:<<:!includesolar_router/power_meter_shelly_em.yamlhttp_request:esp8266_disable_ssl_support:True
# ----------------------------------------------------------------------------------------------------# ESPHome configuration - This part depends on your hardware target# ----------------------------------------------------------------------------------------------------esphome:name:solarrouterfriendly_name:SolarRouteresp32:board:esp32devframework:type:arduino# Enable logginglogger:baud_rate:115200level:INFOlogs:component:ERROR# Enable Home Assistant APIapi:encryption:key:!secretapi_encryption_key# Enable over-the-air updatesota:-platform:esphomepassword:!secretsolar_router_ota_password# Enable improv serialimprov_serial:# WiFi connectionwifi:ssid:!secretwifi_ssidpassword:!secretwifi_password# If you have a WiFi activity plannification, you may have to update the reboot timeout (Default: 15min)reboot_timeout:24h# Activate web interfaceweb_server:port:80# ----------------------------------------------------------------------------------------------------# Customisation# ----------------------------------------------------------------------------------------------------# This part of the script is designed to be use for customisation. It shouldn't be necessary to# edit other part of the script to perform configuration.substitutions:# Power meter source -----------------------------------------------------------# Define ip address of Proxy Power Meterpower_meter_ip_address:"192.168.1.30"# Regulator --------------------------------------------------------------------regulator:"ac_dimmer"# Regulator configuration # Define GPIO pin connected to AC Dimmer for gate and zero crossing detection.regulator_gate_pin:GPIO22regulator_zero_crossing_pin:GPIO23# LEDs -------------------------------------------------------------------------# Green LED is reflecting regulation status# Yellow LED is reflecting power meter statusgreen_led_pin:GPIO19yellow_led_pin:GPIO18# Uncomment the following lines if you want to use the source from github# packages:# power_meter:# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/# file: solar_router/power_meter_proxy_client.yaml# refresh: 5s# regulator:# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/# file: solar_router/regulator_triac.yaml# refresh: 5s# solar_router:# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/# file: solar_router/engine.yaml# refresh: 5s# Remove the following lines if you want to use the source from githubpackages:common:<<:!includesolar_router/common.yamlpower_meter:<<:!includesolar_router/power_meter_proxy_client.yamlregulator:<<:!includesolar_router/regulator_triac.yamlsolar_router:<<:!includesolar_router/engine.yamlenergy_counter:<<:!includesolar_router/energy_counter_theorical.yaml