# # solis-esphome-esp8266.yaml -- Ginlong Solis Inverter ESPhome definition for ESP8266 MCUs. # # (C) 2023-2024 Hajo Noerenberg # # Usage: # 1. Depending on your type of device (INV, ESINV or EPM), # include modbus definition in 'packages' section below # 2. Compile and upload # https://esphome.io/guides/getting_started_command_line.html#first-uploading # # # http://www.noerenberg.de/ # https://github.com/hn/ginlong-solis # # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3.0 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program. If not, see . # esphome: name: solis-esp8266 friendly_name: Ginlong Solis Inverter esp8266: board: d1_mini logger: packages: # Uncomment exactly one line depending on your device type #inv: !include common/solis-modbus-inv.yaml #esinv: !include common/solis-modbus-esinv.yaml #epm: !include common/solis-modbus-epm.yaml # Uncomment for optional INV inverter addon: Single Phase ACR10R energy meter #inv-acr10r-1ph: !include common/solis-modbus-inv-addon-acr10r-1ph.yaml # Uncomment for optional ESINV inverter addon: timers for battery charge and discharge periods #esinv-timer: !include common/solis-modbus-esinv-addon-timer.yaml time: - platform: homeassistant id: network_time api: encryption: key: !secret api_encryption_key ota: - platform: esphome password: !secret ota_password wifi: ssid: !secret wifi_ssid password: !secret wifi_password ap: ssid: "Ginlong Solis Inverter" password: !secret wifi_ap_password captive_portal: script: - mode: restart id: modbus_activity then: # e.g. blink led uart: id: modbus_uart tx_pin: D6 rx_pin: D5 baud_rate: 9600 modbus: #flow_control_pin: D7 send_wait_time: 300ms id: modbus_hw modbus_controller: - id: modbus_master address: 0x1 modbus_id: modbus_hw setup_priority: -10 button: - platform: factory_reset name: Restart with factory default settings id: reset_all - platform: restart name: Reboot device sensor: - platform: wifi_signal name: "WiFi Signal"