Routeur solaire utilisant un proxy
La configuration du client Proxy utilise uniquement un compteur de puissance Home Assistant
| # ----------------------------------------------------------------------------------------------------
# ESPHome configuration - This part depends on your hardware target
# ----------------------------------------------------------------------------------------------------
esphome:
name: "esp8285"
friendly_name: ESP8285
min_version: 2025.3.2
esp8266:
board: esp8285
# Enable logging
logger:
baud_rate: 115200
level: INFO
logs:
component: ERROR
http_request.arduino: ERROR
# Enable Home Assistant API
api:
encryption:
key: !secret proxy_api_encryption_key
# Enable over-the-air updates
ota:
- platform: esphome
# WiFi connection
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# If you have a WiFi activity plannification, you may have to update the reboot timeout (Default: 15min)
reboot_timeout: 24h
# ----------------------------------------------------------------------------------------------------
# Customisation
# ----------------------------------------------------------------------------------------------------
packages:
solar_router:
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
refresh: 1d
files:
- path: solar_router/common.yaml
- path: solar_router/power_meter_shelly_em.yaml
vars:
power_meter_activated_at_start: 1
power_meter_ip_address: "192.168.1.26:8000"
emeter_index: "0"
http_request:
esp8266_disable_ssl_support: True
|
Cette configuration du Routeur Solaire utilise un compteur de puissance client Proxy, un régulateur Triac et un moteur de routeur solaire.
Les broches GPIO ont été définies pour correspondre à la configuration matérielle décrite ici
| # ----------------------------------------------------------------------------------------------------
# ESPHome configuration - This part depends on your hardware target
# ----------------------------------------------------------------------------------------------------
esphome:
name: "esp8266"
friendly_name: ESP8266
min_version: 2025.3.2
esp8266:
board: esp01_1m
restore_from_flash: true
# Enable logging
logger:
baud_rate: 115200
level: INFO
logs:
component: ERROR
http_request.arduino: ERROR
# Enable Home Assistant API
api:
encryption:
key: !secret proxy_api_encryption_key
# WiFi connection
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# If you have a WiFi activity plannification, you may have to update the reboot timeout (Default: 15min)
reboot_timeout: 24h
# ----------------------------------------------------------------------------------------------------
# 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.
packages:
solar_router:
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
refresh: 1d
files:
- path: solar_router/power_meter_proxy_client.yaml
vars:
power_meter_ip_address: "192.168.1.28"
- path: solar_router/engine_1dimmer_1bypass.yaml
vars:
green_led_pin: GPIO1
yellow_led_pin: GPIO2
- path: solar_router/regulator_solid_state_relay.yaml
vars:
regulator_gate_pin: GPIO4
- path: solar_router/regulator_mecanical_relay.yaml
vars:
relay_regulator_gate_pin: GPIO0
|