cc67e9843c
ESPHome-Configs für Growatt MIC 1500 TL-X und SPH 5000 TL3-BH-UP mit Modbus-RTU Integration über den Growatt SuniStick. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
183 lines
3.7 KiB
YAML
183 lines
3.7 KiB
YAML
esphome:
|
|
name: growatt-mic-1500
|
|
friendly_name: Growatt MIC 1500 TL-X
|
|
|
|
esp8266:
|
|
board: esp07s
|
|
|
|
logger:
|
|
|
|
api:
|
|
encryption:
|
|
key: "HIER_API_KEY_EINTRAGEN" # 32-Byte Base64-Key, wird in der ESPHome-UI automatisch generiert
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: "HIER_OTA_PASSWORT_EINTRAGEN" # Beliebiges Passwort für Over-the-Air Updates
|
|
|
|
wifi:
|
|
ssid: "HIER_WLAN_NAME_EINTRAGEN" # Name deines WLANs (SSID)
|
|
password: "HIER_WLAN_PASSWORT_EINTRAGEN" # Passwort deines WLANs
|
|
ap:
|
|
ssid: "Growatt MIC 1500 TL-X Fallback Hotspot"
|
|
password: "HIER_HOTSPOT_PASSWORT_EINTRAGEN" # Passwort für den Notfall-Hotspot (min. 8 Zeichen)
|
|
|
|
captive_portal:
|
|
|
|
time:
|
|
- platform: homeassistant
|
|
id: homeassistant_time
|
|
|
|
output:
|
|
# Blue Led
|
|
- id: light_bl
|
|
platform: gpio
|
|
pin: 16
|
|
# Green Led
|
|
- id: light_gr
|
|
platform: gpio
|
|
pin: 0
|
|
# Red Led
|
|
- id: light_rd
|
|
platform: gpio
|
|
pin: 2
|
|
|
|
uart:
|
|
id: mod_bus
|
|
tx_pin: 1
|
|
rx_pin: 3
|
|
baud_rate: 115200
|
|
|
|
modbus:
|
|
id: modbus1
|
|
uart_id: mod_bus
|
|
|
|
modbus_controller:
|
|
- id: growatt
|
|
# the Modbus device addr
|
|
address: 0x1
|
|
modbus_id: modbus1
|
|
setup_priority: -10
|
|
|
|
|
|
sensor:
|
|
- platform: modbus_controller
|
|
name: "DcPower"
|
|
address: 5
|
|
register_type: "read"
|
|
unit_of_measurement: W
|
|
device_class: power
|
|
icon: mdi:flash
|
|
value_type: U_DWORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "DcVoltage"
|
|
address: 3
|
|
register_type: "read"
|
|
unit_of_measurement: V
|
|
device_class: voltage
|
|
icon: mdi:flash
|
|
value_type: U_WORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "DcInputCurrent"
|
|
address: 4
|
|
register_type: "read"
|
|
unit_of_measurement: A
|
|
device_class: current
|
|
icon: mdi:flash
|
|
value_type: U_WORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "AcFrequency"
|
|
address: 37
|
|
register_type: "read"
|
|
unit_of_measurement: Hz
|
|
icon: mdi:flash
|
|
value_type: U_WORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.01
|
|
|
|
- platform: modbus_controller
|
|
name: "AcVoltage"
|
|
address: 38
|
|
register_type: "read"
|
|
unit_of_measurement: V
|
|
device_class: voltage
|
|
icon: mdi:flash
|
|
value_type: U_WORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "AcOutputCurrent"
|
|
address: 39
|
|
register_type: "read"
|
|
unit_of_measurement: A
|
|
device_class: current
|
|
icon: mdi:flash
|
|
value_type: U_WORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "AcPower"
|
|
address: 40
|
|
register_type: "read"
|
|
unit_of_measurement: W
|
|
device_class: power
|
|
icon: mdi:flash
|
|
value_type: U_DWORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "EnergyToday"
|
|
address: 53
|
|
register_type: "read"
|
|
unit_of_measurement: kWh
|
|
device_class: energy
|
|
icon: mdi:flash
|
|
value_type: U_DWORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
- platform: modbus_controller
|
|
name: "EnergyTotal"
|
|
address: 55
|
|
register_type: "read"
|
|
unit_of_measurement: kWh
|
|
state_class: total_increasing
|
|
device_class: energy
|
|
icon: mdi:flash
|
|
value_type: U_DWORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1
|
|
|
|
|
|
- platform: modbus_controller
|
|
name: "Temperature"
|
|
address: 93
|
|
register_type: "read"
|
|
unit_of_measurement: C
|
|
device_class: temperature
|
|
icon: mdi:thermometer
|
|
value_type: U_WORD
|
|
accuracy_decimals: 1
|
|
filters:
|
|
- multiply: 0.1 |