I have a Min TL-XH. I know, SPH and MIN uses different Modbus Adresses.
I testes this YAML, but the Error Message i got was:
INFO ESPHome 2024.7.0
INFO Reading configuration /config/esphome/growatt.yaml…
Failed config
esphome: None
name: growatt
friendly_name: Growatt
on_boot:
priority: -100
then:
- delay: 20s
- logger.log: ************* In da boot *******************
-
Unable to find action with the name ‘script.execute’.
script.execute:
id: setClock
- script.execute:
id: |-
setBatteryTimes
Used YAML:
esphome:
name: "growatt"
friendly_name: Growatt
on_boot:
priority: -100
then:
- delay: 20s
- logger.log: "************* In da boot *******************"
- script.execute:
id: setClock
- script.execute:
id: setBatteryTimes
std::vector<uint16_t> gridfirst_data = {0,23<<8|59,0,0,0,0,0,0,0};
std::vector<uint16_t> batteryfirst_data = {100,100,1,0,0,0,0,0,0,0,0,23<<8|59,0,0,0,0,0,0,0};
std::vector<uint16_t> loadfirst_data = {0,23<<8|59,0,0,0,0,0,0,0};
// Create a modbus command item with the time information as the payload
esphome::modbus_controller::ModbusCommandItem set_gridfirst_command =
esphome::modbus_controller::ModbusCommandItem::create_write_multiple_command(controller, 1080, gridfirst_data.size(), gridfirst_data);
esphome::modbus_controller::ModbusCommandItem set_batfirst_command =
esphome::modbus_controller::ModbusCommandItem::create_write_multiple_command(controller, 1090, batteryfirst_data.size(), batteryfirst_data);
esphome::modbus_controller::ModbusCommandItem set_loadfirst_command =
esphome::modbus_controller::ModbusCommandItem::create_write_multiple_command(controller, 1110, loadfirst_data.size(), loadfirst_data);
// Submit the command to the send queue
controller->queue_command(set_gridfirst_command);
controller->queue_command(set_batfirst_command);
controller->queue_command(set_loadfirst_command);
ESP_LOGI("Lambda","Setting Grid/Battery/Load");
Whats wrong? Is this YAML not compatible with MIN?